primarycare-binder 1.1.39 → 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 +1049 -830
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8391,6 +8391,271 @@ var urls = (_urls = {
|
|
|
8391
8391
|
get_hospitals_locality: "/api/v1/getHospitalBasedonLocality"
|
|
8392
8392
|
}, _defineProperty(_urls, "get_cities", "/api/v1/getCityFromHospital"), _defineProperty(_urls, "get_symptoms", "/api/v1/getSymptoms"), _defineProperty(_urls, "get_speciality", "/api/v1/getSpeciality"), _defineProperty(_urls, "upsert_service", "/api/v1/upsertService"), _defineProperty(_urls, "read_service", "/api/v1/readService"), _defineProperty(_urls, "delete_service", "/api/v1/deleteService"), _defineProperty(_urls, "upsert_slot", "/api/v1/upsertSlot"), _defineProperty(_urls, "read_slot", "api/v1/readSlot"), _defineProperty(_urls, "delete_slot", "api/v1/deleteSlot"), _defineProperty(_urls, "slot_availability", "api/v1/readAvailibalityChecking"), _defineProperty(_urls, "upsert_task", "api/v1/upsertTask"), _defineProperty(_urls, "read_task", "api/v1/readTask"), _defineProperty(_urls, "delete_task", "api/v1/deleteTask"), _defineProperty(_urls, "upsert_schedule", "api/v1/upsertSchedule"), _defineProperty(_urls, "read_schedule", "api/v1/readSchedule"), _defineProperty(_urls, "delete_schedule", "api/v1/deleteSchedule"), _defineProperty(_urls, "upsert_person", "api/v1/upsertPerson"), _defineProperty(_urls, "read_person", "api/v1/readPerson"), _defineProperty(_urls, "delete_person", "api/v1/deletePerson"), _defineProperty(_urls, "upsert_practitioner_role", "api/v1/upsertPractitionerRole"), _defineProperty(_urls, "read_practitioner_role", "api/v1/readPractitionerRole"), _defineProperty(_urls, "delete_practitioner_role", "api/v1/deletePractitionerRole"), _defineProperty(_urls, "get_user_info", "api/v1/getUserInfo"), _defineProperty(_urls, "oraganization_registration", "api/v1/orgUserRegistration"), _defineProperty(_urls, "oraganization_siginIn", "".concat(__keyClockLogin__, "/api/v1/orgUserSignIn")), _defineProperty(_urls, "oraganization_registet_patient", "api/v1/upsert_document"), _urls);
|
|
8393
8393
|
|
|
8394
|
+
var makeName = function makeName() {
|
|
8395
|
+
var _prefix$coding, _prefix$coding$, _suffix$coding, _suffix$coding$;
|
|
8396
|
+
|
|
8397
|
+
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8398
|
+
var _nameObj$prefix = nameObj.prefix,
|
|
8399
|
+
prefix = _nameObj$prefix === void 0 ? "" : _nameObj$prefix,
|
|
8400
|
+
_nameObj$text = nameObj.text,
|
|
8401
|
+
text = _nameObj$text === void 0 ? "" : _nameObj$text,
|
|
8402
|
+
_nameObj$given = nameObj.given,
|
|
8403
|
+
given = _nameObj$given === void 0 ? "" : _nameObj$given,
|
|
8404
|
+
_nameObj$family = nameObj.family,
|
|
8405
|
+
family = _nameObj$family === void 0 ? "" : _nameObj$family,
|
|
8406
|
+
_nameObj$suffix = nameObj.suffix,
|
|
8407
|
+
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix;
|
|
8408
|
+
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || "";
|
|
8409
|
+
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || "";
|
|
8410
|
+
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
8411
|
+
};
|
|
8412
|
+
|
|
8413
|
+
var fetchData$3 = /*#__PURE__*/function () {
|
|
8414
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(input) {
|
|
8415
|
+
var url,
|
|
8416
|
+
__options,
|
|
8417
|
+
res,
|
|
8418
|
+
data,
|
|
8419
|
+
_args = arguments;
|
|
8420
|
+
|
|
8421
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8422
|
+
while (1) {
|
|
8423
|
+
switch (_context.prev = _context.next) {
|
|
8424
|
+
case 0:
|
|
8425
|
+
url = _args.length > 1 && _args[1] !== undefined ? _args[1] : __baseUrl__;
|
|
8426
|
+
__options = {
|
|
8427
|
+
method: "POST",
|
|
8428
|
+
headers: {
|
|
8429
|
+
"Content-Type": "application/json"
|
|
8430
|
+
},
|
|
8431
|
+
body: {}
|
|
8432
|
+
};
|
|
8433
|
+
_context.next = 4;
|
|
8434
|
+
return fetch(url, _objectSpread2(_objectSpread2({}, __options), input));
|
|
8435
|
+
|
|
8436
|
+
case 4:
|
|
8437
|
+
res = _context.sent;
|
|
8438
|
+
_context.next = 7;
|
|
8439
|
+
return res.json();
|
|
8440
|
+
|
|
8441
|
+
case 7:
|
|
8442
|
+
data = _context.sent;
|
|
8443
|
+
return _context.abrupt("return", data);
|
|
8444
|
+
|
|
8445
|
+
case 9:
|
|
8446
|
+
case "end":
|
|
8447
|
+
return _context.stop();
|
|
8448
|
+
}
|
|
8449
|
+
}
|
|
8450
|
+
}, _callee);
|
|
8451
|
+
}));
|
|
8452
|
+
|
|
8453
|
+
return function fetchData(_x) {
|
|
8454
|
+
return _ref3.apply(this, arguments);
|
|
8455
|
+
};
|
|
8456
|
+
}();
|
|
8457
|
+
|
|
8458
|
+
var getImgUrl = function getImgUrl(fileId) {
|
|
8459
|
+
return fileId ? "".concat(__imgdownloadBaseUrl__).concat(fileId) : "";
|
|
8460
|
+
};
|
|
8461
|
+
|
|
8462
|
+
var getUtcTime = function getUtcTime(date) {
|
|
8463
|
+
if (date) {
|
|
8464
|
+
return moment.utc(date).unix();
|
|
8465
|
+
} else {
|
|
8466
|
+
return moment.utc().unix();
|
|
8467
|
+
}
|
|
8468
|
+
};
|
|
8469
|
+
|
|
8470
|
+
var utcTOLocal$1 = function utcTOLocal(date, format) {
|
|
8471
|
+
var Ndate = new Date();
|
|
8472
|
+
|
|
8473
|
+
if (typeof date === "number") {
|
|
8474
|
+
Ndate = moment.unix(date);
|
|
8475
|
+
} else {
|
|
8476
|
+
Ndate = moment(date);
|
|
8477
|
+
}
|
|
8478
|
+
|
|
8479
|
+
var fmt = format ? format : "DD-MM-YYYY";
|
|
8480
|
+
return moment.utc(Ndate).local().format(fmt);
|
|
8481
|
+
}; // const getUtcTime = (date) => {
|
|
8482
|
+
// let a = null
|
|
8483
|
+
// if (date) {
|
|
8484
|
+
// a = new Date(date)
|
|
8485
|
+
// } else {
|
|
8486
|
+
// a = new Date()
|
|
8487
|
+
// }
|
|
8488
|
+
// a = a.toUTCString()
|
|
8489
|
+
// return ((new Date(a).getTime())/1000)
|
|
8490
|
+
// };
|
|
8491
|
+
// const utcTOLocal = (date, format) => {
|
|
8492
|
+
// let Ndate = new Date(date * 1000);
|
|
8493
|
+
// let fmt = format ? format : "DD-MM-YYYY"
|
|
8494
|
+
// if (format) {
|
|
8495
|
+
// return moment(Ndate).format(fmt);
|
|
8496
|
+
// } else {
|
|
8497
|
+
// return moment(Ndate)
|
|
8498
|
+
// }
|
|
8499
|
+
// };
|
|
8500
|
+
|
|
8501
|
+
|
|
8502
|
+
var deg2rad = function deg2rad(deg) {
|
|
8503
|
+
return deg * (Math.PI / 180);
|
|
8504
|
+
};
|
|
8505
|
+
|
|
8506
|
+
var getDisctanceFromLatLonInKm = function getDisctanceFromLatLonInKm(lat1, lon1, lat2, lon2) {
|
|
8507
|
+
var R = 6371; // Radius of the earth in km
|
|
8508
|
+
|
|
8509
|
+
var dLat = deg2rad(lat2 - lat1); // deg2rad below
|
|
8510
|
+
|
|
8511
|
+
var dLon = deg2rad(lon2 - lon1);
|
|
8512
|
+
var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.sin(dLon / 2) * Math.sin(dLon / 2);
|
|
8513
|
+
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
8514
|
+
var d = R * c; // Distance in km
|
|
8515
|
+
|
|
8516
|
+
return parseFloat(d).toFixed(2);
|
|
8517
|
+
};
|
|
8518
|
+
|
|
8519
|
+
var getLocation = function getLocation() {
|
|
8520
|
+
return new es6Promise.Promise(function (resolve, reject) {
|
|
8521
|
+
navigator.geolocation.getCurrentPosition(function (position) {
|
|
8522
|
+
var lat = position.coords.latitude;
|
|
8523
|
+
var _long = position.coords.longitude;
|
|
8524
|
+
resolve([false, {
|
|
8525
|
+
lat: lat,
|
|
8526
|
+
"long": _long
|
|
8527
|
+
}]);
|
|
8528
|
+
}, function (error) {
|
|
8529
|
+
resolve([true, error]);
|
|
8530
|
+
});
|
|
8531
|
+
});
|
|
8532
|
+
};
|
|
8533
|
+
|
|
8534
|
+
var getCurrentPosition = /*#__PURE__*/function () {
|
|
8535
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
8536
|
+
var permission, lat, _long2, _yield$getLocation, _yield$getLocation2, err, currLocation;
|
|
8537
|
+
|
|
8538
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
8539
|
+
while (1) {
|
|
8540
|
+
switch (_context2.prev = _context2.next) {
|
|
8541
|
+
case 0:
|
|
8542
|
+
_context2.next = 2;
|
|
8543
|
+
return navigator.permissions.query({
|
|
8544
|
+
name: 'geolocation'
|
|
8545
|
+
})["catch"](function (err) {
|
|
8546
|
+
return {
|
|
8547
|
+
state: 'denied'
|
|
8548
|
+
};
|
|
8549
|
+
});
|
|
8550
|
+
|
|
8551
|
+
case 2:
|
|
8552
|
+
permission = _context2.sent;
|
|
8553
|
+
|
|
8554
|
+
if (!(permission.state !== 'denied')) {
|
|
8555
|
+
_context2.next = 11;
|
|
8556
|
+
break;
|
|
8557
|
+
}
|
|
8558
|
+
|
|
8559
|
+
_context2.next = 6;
|
|
8560
|
+
return getLocation();
|
|
8561
|
+
|
|
8562
|
+
case 6:
|
|
8563
|
+
_yield$getLocation = _context2.sent;
|
|
8564
|
+
_yield$getLocation2 = _slicedToArray(_yield$getLocation, 2);
|
|
8565
|
+
err = _yield$getLocation2[0];
|
|
8566
|
+
currLocation = _yield$getLocation2[1];
|
|
8567
|
+
|
|
8568
|
+
if (!err) {
|
|
8569
|
+
lat = currLocation.lat;
|
|
8570
|
+
_long2 = currLocation["long"];
|
|
8571
|
+
}
|
|
8572
|
+
|
|
8573
|
+
case 11:
|
|
8574
|
+
return _context2.abrupt("return", {
|
|
8575
|
+
lat: lat,
|
|
8576
|
+
"long": _long2
|
|
8577
|
+
});
|
|
8578
|
+
|
|
8579
|
+
case 12:
|
|
8580
|
+
case "end":
|
|
8581
|
+
return _context2.stop();
|
|
8582
|
+
}
|
|
8583
|
+
}
|
|
8584
|
+
}, _callee2);
|
|
8585
|
+
}));
|
|
8586
|
+
|
|
8587
|
+
return function getCurrentPosition() {
|
|
8588
|
+
return _ref4.apply(this, arguments);
|
|
8589
|
+
};
|
|
8590
|
+
}();
|
|
8591
|
+
|
|
8592
|
+
var getLatLong = /*#__PURE__*/function () {
|
|
8593
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(city) {
|
|
8594
|
+
var _resp$results, _resp$results$, _resp$results$$geomet, _resp$results$$geomet2, _resp$results2, _resp$results2$, _resp$results2$$geome, _resp$results2$$geome2;
|
|
8595
|
+
|
|
8596
|
+
var url, data, resp, lat, _long3, _resp$results3, _resp$results3$, _resp$results3$$geome, _resp$results3$$geome2, _resp$results4, _resp$results4$, _resp$results4$$geome, _resp$results4$$geome2;
|
|
8597
|
+
|
|
8598
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
8599
|
+
while (1) {
|
|
8600
|
+
switch (_context3.prev = _context3.next) {
|
|
8601
|
+
case 0:
|
|
8602
|
+
url = "https://maps.googleapis.com/maps/api/geocode/json?address=".concat(city, "&key=AIzaSyBqeACJgp12OLU6EkHeUtFgya2naH1LhrU");
|
|
8603
|
+
_context3.next = 3;
|
|
8604
|
+
return fetch(url);
|
|
8605
|
+
|
|
8606
|
+
case 3:
|
|
8607
|
+
data = _context3.sent;
|
|
8608
|
+
_context3.next = 6;
|
|
8609
|
+
return data.json();
|
|
8610
|
+
|
|
8611
|
+
case 6:
|
|
8612
|
+
resp = _context3.sent;
|
|
8613
|
+
|
|
8614
|
+
if ((resp === null || resp === void 0 ? void 0 : (_resp$results = resp.results) === null || _resp$results === void 0 ? void 0 : (_resp$results$ = _resp$results[0]) === null || _resp$results$ === void 0 ? void 0 : (_resp$results$$geomet = _resp$results$.geometry) === null || _resp$results$$geomet === void 0 ? void 0 : (_resp$results$$geomet2 = _resp$results$$geomet.location) === null || _resp$results$$geomet2 === void 0 ? void 0 : _resp$results$$geomet2.lat) && (resp === null || resp === void 0 ? void 0 : (_resp$results2 = resp.results) === null || _resp$results2 === void 0 ? void 0 : (_resp$results2$ = _resp$results2[0]) === null || _resp$results2$ === void 0 ? void 0 : (_resp$results2$$geome = _resp$results2$.geometry) === null || _resp$results2$$geome === void 0 ? void 0 : (_resp$results2$$geome2 = _resp$results2$$geome.location) === null || _resp$results2$$geome2 === void 0 ? void 0 : _resp$results2$$geome2.lng)) {
|
|
8615
|
+
lat = resp === null || resp === void 0 ? void 0 : (_resp$results3 = resp.results) === null || _resp$results3 === void 0 ? void 0 : (_resp$results3$ = _resp$results3[0]) === null || _resp$results3$ === void 0 ? void 0 : (_resp$results3$$geome = _resp$results3$.geometry) === null || _resp$results3$$geome === void 0 ? void 0 : (_resp$results3$$geome2 = _resp$results3$$geome.location) === null || _resp$results3$$geome2 === void 0 ? void 0 : _resp$results3$$geome2.lat;
|
|
8616
|
+
_long3 = resp === null || resp === void 0 ? void 0 : (_resp$results4 = resp.results) === null || _resp$results4 === void 0 ? void 0 : (_resp$results4$ = _resp$results4[0]) === null || _resp$results4$ === void 0 ? void 0 : (_resp$results4$$geome = _resp$results4$.geometry) === null || _resp$results4$$geome === void 0 ? void 0 : (_resp$results4$$geome2 = _resp$results4$$geome.location) === null || _resp$results4$$geome2 === void 0 ? void 0 : _resp$results4$$geome2.lng;
|
|
8617
|
+
}
|
|
8618
|
+
|
|
8619
|
+
return _context3.abrupt("return", {
|
|
8620
|
+
lat: lat,
|
|
8621
|
+
"long": _long3
|
|
8622
|
+
});
|
|
8623
|
+
|
|
8624
|
+
case 9:
|
|
8625
|
+
case "end":
|
|
8626
|
+
return _context3.stop();
|
|
8627
|
+
}
|
|
8628
|
+
}
|
|
8629
|
+
}, _callee3);
|
|
8630
|
+
}));
|
|
8631
|
+
|
|
8632
|
+
return function getLatLong(_x2) {
|
|
8633
|
+
return _ref5.apply(this, arguments);
|
|
8634
|
+
};
|
|
8635
|
+
}(); // Get age using moment
|
|
8636
|
+
|
|
8637
|
+
|
|
8638
|
+
var getAge = function getAge(date) {
|
|
8639
|
+
if (date) {
|
|
8640
|
+
var yearDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'years', false);
|
|
8641
|
+
|
|
8642
|
+
if (yearDiff > 0) {
|
|
8643
|
+
return yearDiff + ' Y';
|
|
8644
|
+
}
|
|
8645
|
+
|
|
8646
|
+
var monthDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'months', false);
|
|
8647
|
+
|
|
8648
|
+
if (monthDiff > 0) {
|
|
8649
|
+
return monthDiff + ' M';
|
|
8650
|
+
}
|
|
8651
|
+
|
|
8652
|
+
var dayDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'days', false);
|
|
8653
|
+
return dayDiff + ' D';
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8656
|
+
return "";
|
|
8657
|
+
};
|
|
8658
|
+
|
|
8394
8659
|
var _extraReducers$F;
|
|
8395
8660
|
var __options$a = {
|
|
8396
8661
|
method: "POST",
|
|
@@ -9194,6 +9459,68 @@ var DELETE_USER = createAsyncThunk("authSlice/deleteUser", /*#__PURE__*/_asyncTo
|
|
|
9194
9459
|
}
|
|
9195
9460
|
}, _callee15, null, [[2, 15]]);
|
|
9196
9461
|
})));
|
|
9462
|
+
var GET_COUNTRY_CODE_LIST = createAsyncThunk("authSlice/country_code_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
|
|
9463
|
+
var payload,
|
|
9464
|
+
_ref27,
|
|
9465
|
+
rejectWithValue,
|
|
9466
|
+
queries,
|
|
9467
|
+
data,
|
|
9468
|
+
arry,
|
|
9469
|
+
_args16 = arguments;
|
|
9470
|
+
|
|
9471
|
+
return regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
9472
|
+
while (1) {
|
|
9473
|
+
switch (_context16.prev = _context16.next) {
|
|
9474
|
+
case 0:
|
|
9475
|
+
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
9476
|
+
_ref27 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
|
|
9477
|
+
_context16.prev = 2;
|
|
9478
|
+
queries = {
|
|
9479
|
+
"db_name": dbName,
|
|
9480
|
+
"entity": "SMGeographicMaster",
|
|
9481
|
+
"sort": "SMGeographicMaster.GeoLocationISDCode",
|
|
9482
|
+
"filter": "lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
9483
|
+
"return_fields": "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}"
|
|
9484
|
+
};
|
|
9485
|
+
_context16.next = 6;
|
|
9486
|
+
return fetchData$3({
|
|
9487
|
+
body: JSON.stringify(queries)
|
|
9488
|
+
}, __readDocumentUrl__);
|
|
9489
|
+
|
|
9490
|
+
case 6:
|
|
9491
|
+
data = _context16.sent;
|
|
9492
|
+
arry = [];
|
|
9493
|
+
data.result.map(function (value) {
|
|
9494
|
+
var _value$GeoLocationISD;
|
|
9495
|
+
|
|
9496
|
+
arry.push({
|
|
9497
|
+
name: value.geogLevelName,
|
|
9498
|
+
flag: "https://upload.wikimedia.org/wikipedia/en/4/41/Flag_of_India.svg",
|
|
9499
|
+
altSpellings: value._id,
|
|
9500
|
+
callingCodes: value === null || value === void 0 ? void 0 : (_value$GeoLocationISD = value.GeoLocationISDCode) === null || _value$GeoLocationISD === void 0 ? void 0 : _value$GeoLocationISD.replaceAll("+", "") // label: value.GeoLocationISDCode,
|
|
9501
|
+
// value: value._id,
|
|
9502
|
+
// ...value
|
|
9503
|
+
|
|
9504
|
+
});
|
|
9505
|
+
});
|
|
9506
|
+
return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
9507
|
+
data: arry
|
|
9508
|
+
}));
|
|
9509
|
+
|
|
9510
|
+
case 12:
|
|
9511
|
+
_context16.prev = 12;
|
|
9512
|
+
_context16.t0 = _context16["catch"](2);
|
|
9513
|
+
return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9514
|
+
message: _context16.t0.message
|
|
9515
|
+
})));
|
|
9516
|
+
|
|
9517
|
+
case 15:
|
|
9518
|
+
case "end":
|
|
9519
|
+
return _context16.stop();
|
|
9520
|
+
}
|
|
9521
|
+
}
|
|
9522
|
+
}, _callee16, null, [[2, 12]]);
|
|
9523
|
+
})));
|
|
9197
9524
|
var authSlice = createSlice({
|
|
9198
9525
|
name: "authSlice",
|
|
9199
9526
|
initialState: {
|
|
@@ -9212,7 +9539,8 @@ var authSlice = createSlice({
|
|
|
9212
9539
|
deleteUser: _objectSpread2({}, defaultState.Info),
|
|
9213
9540
|
changePassword: _objectSpread2({}, defaultState.Info),
|
|
9214
9541
|
tokenValidate: _objectSpread2({}, defaultState.Info),
|
|
9215
|
-
refreshToken: _objectSpread2({}, defaultState.Info)
|
|
9542
|
+
refreshToken: _objectSpread2({}, defaultState.Info),
|
|
9543
|
+
country_code_list: _objectSpread2({}, defaultState.Info)
|
|
9216
9544
|
},
|
|
9217
9545
|
extraReducers: (_extraReducers$F = {}, _defineProperty(_extraReducers$F, REGISTER_USERS.fulfilled, function (state, action) {
|
|
9218
9546
|
var _action$payload;
|
|
@@ -9354,6 +9682,16 @@ var authSlice = createSlice({
|
|
|
9354
9682
|
var _action$payload28;
|
|
9355
9683
|
|
|
9356
9684
|
state.refreshToken = (_action$payload28 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload28 !== void 0 ? _action$payload28 : {};
|
|
9685
|
+
}), _defineProperty(_extraReducers$F, GET_COUNTRY_CODE_LIST.fulfilled, function (state, action) {
|
|
9686
|
+
var _action$payload29;
|
|
9687
|
+
|
|
9688
|
+
state.country_code_list = (_action$payload29 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload29 !== void 0 ? _action$payload29 : {};
|
|
9689
|
+
}), _defineProperty(_extraReducers$F, GET_COUNTRY_CODE_LIST.pending, function (state, action) {
|
|
9690
|
+
state.country_code_list.loading = true;
|
|
9691
|
+
}), _defineProperty(_extraReducers$F, GET_COUNTRY_CODE_LIST.rejected, function (state, action) {
|
|
9692
|
+
var _action$payload30;
|
|
9693
|
+
|
|
9694
|
+
state.country_code_list = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
9357
9695
|
}), _extraReducers$F)
|
|
9358
9696
|
});
|
|
9359
9697
|
var authActions = {
|
|
@@ -9370,7 +9708,8 @@ var authActions = {
|
|
|
9370
9708
|
DELETE_USER: DELETE_USER,
|
|
9371
9709
|
CHANGE_PASSWORD: CHANGE_PASSWORD,
|
|
9372
9710
|
TOKEN_VALIDATE: TOKEN_VALIDATE,
|
|
9373
|
-
REFRESH_TOKEN: REFRESH_TOKEN
|
|
9711
|
+
REFRESH_TOKEN: REFRESH_TOKEN,
|
|
9712
|
+
GET_COUNTRY_CODE_LIST: GET_COUNTRY_CODE_LIST
|
|
9374
9713
|
};
|
|
9375
9714
|
var authSlice$1 = authSlice.reducer;
|
|
9376
9715
|
|
|
@@ -9467,271 +9806,6 @@ var fuzzySearchActions = {
|
|
|
9467
9806
|
}; // end
|
|
9468
9807
|
var fuzzySearchReducer$1 = fuzzySearchReducer.reducer;
|
|
9469
9808
|
|
|
9470
|
-
var makeName = function makeName() {
|
|
9471
|
-
var _prefix$coding, _prefix$coding$, _suffix$coding, _suffix$coding$;
|
|
9472
|
-
|
|
9473
|
-
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9474
|
-
var _nameObj$prefix = nameObj.prefix,
|
|
9475
|
-
prefix = _nameObj$prefix === void 0 ? "" : _nameObj$prefix,
|
|
9476
|
-
_nameObj$text = nameObj.text,
|
|
9477
|
-
text = _nameObj$text === void 0 ? "" : _nameObj$text,
|
|
9478
|
-
_nameObj$given = nameObj.given,
|
|
9479
|
-
given = _nameObj$given === void 0 ? "" : _nameObj$given,
|
|
9480
|
-
_nameObj$family = nameObj.family,
|
|
9481
|
-
family = _nameObj$family === void 0 ? "" : _nameObj$family,
|
|
9482
|
-
_nameObj$suffix = nameObj.suffix,
|
|
9483
|
-
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix;
|
|
9484
|
-
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || "";
|
|
9485
|
-
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || "";
|
|
9486
|
-
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
9487
|
-
};
|
|
9488
|
-
|
|
9489
|
-
var fetchData$3 = /*#__PURE__*/function () {
|
|
9490
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(input) {
|
|
9491
|
-
var url,
|
|
9492
|
-
__options,
|
|
9493
|
-
res,
|
|
9494
|
-
data,
|
|
9495
|
-
_args = arguments;
|
|
9496
|
-
|
|
9497
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
9498
|
-
while (1) {
|
|
9499
|
-
switch (_context.prev = _context.next) {
|
|
9500
|
-
case 0:
|
|
9501
|
-
url = _args.length > 1 && _args[1] !== undefined ? _args[1] : __baseUrl__;
|
|
9502
|
-
__options = {
|
|
9503
|
-
method: "POST",
|
|
9504
|
-
headers: {
|
|
9505
|
-
"Content-Type": "application/json"
|
|
9506
|
-
},
|
|
9507
|
-
body: {}
|
|
9508
|
-
};
|
|
9509
|
-
_context.next = 4;
|
|
9510
|
-
return fetch(url, _objectSpread2(_objectSpread2({}, __options), input));
|
|
9511
|
-
|
|
9512
|
-
case 4:
|
|
9513
|
-
res = _context.sent;
|
|
9514
|
-
_context.next = 7;
|
|
9515
|
-
return res.json();
|
|
9516
|
-
|
|
9517
|
-
case 7:
|
|
9518
|
-
data = _context.sent;
|
|
9519
|
-
return _context.abrupt("return", data);
|
|
9520
|
-
|
|
9521
|
-
case 9:
|
|
9522
|
-
case "end":
|
|
9523
|
-
return _context.stop();
|
|
9524
|
-
}
|
|
9525
|
-
}
|
|
9526
|
-
}, _callee);
|
|
9527
|
-
}));
|
|
9528
|
-
|
|
9529
|
-
return function fetchData(_x) {
|
|
9530
|
-
return _ref3.apply(this, arguments);
|
|
9531
|
-
};
|
|
9532
|
-
}();
|
|
9533
|
-
|
|
9534
|
-
var getImgUrl = function getImgUrl(fileId) {
|
|
9535
|
-
return fileId ? "".concat(__imgdownloadBaseUrl__).concat(fileId) : "";
|
|
9536
|
-
};
|
|
9537
|
-
|
|
9538
|
-
var getUtcTime = function getUtcTime(date) {
|
|
9539
|
-
if (date) {
|
|
9540
|
-
return moment.utc(date).unix();
|
|
9541
|
-
} else {
|
|
9542
|
-
return moment.utc().unix();
|
|
9543
|
-
}
|
|
9544
|
-
};
|
|
9545
|
-
|
|
9546
|
-
var utcTOLocal$1 = function utcTOLocal(date, format) {
|
|
9547
|
-
var Ndate = new Date();
|
|
9548
|
-
|
|
9549
|
-
if (typeof date === "number") {
|
|
9550
|
-
Ndate = moment.unix(date);
|
|
9551
|
-
} else {
|
|
9552
|
-
Ndate = moment(date);
|
|
9553
|
-
}
|
|
9554
|
-
|
|
9555
|
-
var fmt = format ? format : "DD-MM-YYYY";
|
|
9556
|
-
return moment.utc(Ndate).local().format(fmt);
|
|
9557
|
-
}; // const getUtcTime = (date) => {
|
|
9558
|
-
// let a = null
|
|
9559
|
-
// if (date) {
|
|
9560
|
-
// a = new Date(date)
|
|
9561
|
-
// } else {
|
|
9562
|
-
// a = new Date()
|
|
9563
|
-
// }
|
|
9564
|
-
// a = a.toUTCString()
|
|
9565
|
-
// return ((new Date(a).getTime())/1000)
|
|
9566
|
-
// };
|
|
9567
|
-
// const utcTOLocal = (date, format) => {
|
|
9568
|
-
// let Ndate = new Date(date * 1000);
|
|
9569
|
-
// let fmt = format ? format : "DD-MM-YYYY"
|
|
9570
|
-
// if (format) {
|
|
9571
|
-
// return moment(Ndate).format(fmt);
|
|
9572
|
-
// } else {
|
|
9573
|
-
// return moment(Ndate)
|
|
9574
|
-
// }
|
|
9575
|
-
// };
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
var deg2rad = function deg2rad(deg) {
|
|
9579
|
-
return deg * (Math.PI / 180);
|
|
9580
|
-
};
|
|
9581
|
-
|
|
9582
|
-
var getDisctanceFromLatLonInKm = function getDisctanceFromLatLonInKm(lat1, lon1, lat2, lon2) {
|
|
9583
|
-
var R = 6371; // Radius of the earth in km
|
|
9584
|
-
|
|
9585
|
-
var dLat = deg2rad(lat2 - lat1); // deg2rad below
|
|
9586
|
-
|
|
9587
|
-
var dLon = deg2rad(lon2 - lon1);
|
|
9588
|
-
var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.sin(dLon / 2) * Math.sin(dLon / 2);
|
|
9589
|
-
var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
9590
|
-
var d = R * c; // Distance in km
|
|
9591
|
-
|
|
9592
|
-
return parseFloat(d).toFixed(2);
|
|
9593
|
-
};
|
|
9594
|
-
|
|
9595
|
-
var getLocation = function getLocation() {
|
|
9596
|
-
return new es6Promise.Promise(function (resolve, reject) {
|
|
9597
|
-
navigator.geolocation.getCurrentPosition(function (position) {
|
|
9598
|
-
var lat = position.coords.latitude;
|
|
9599
|
-
var _long = position.coords.longitude;
|
|
9600
|
-
resolve([false, {
|
|
9601
|
-
lat: lat,
|
|
9602
|
-
"long": _long
|
|
9603
|
-
}]);
|
|
9604
|
-
}, function (error) {
|
|
9605
|
-
resolve([true, error]);
|
|
9606
|
-
});
|
|
9607
|
-
});
|
|
9608
|
-
};
|
|
9609
|
-
|
|
9610
|
-
var getCurrentPosition = /*#__PURE__*/function () {
|
|
9611
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
9612
|
-
var permission, lat, _long2, _yield$getLocation, _yield$getLocation2, err, currLocation;
|
|
9613
|
-
|
|
9614
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
9615
|
-
while (1) {
|
|
9616
|
-
switch (_context2.prev = _context2.next) {
|
|
9617
|
-
case 0:
|
|
9618
|
-
_context2.next = 2;
|
|
9619
|
-
return navigator.permissions.query({
|
|
9620
|
-
name: 'geolocation'
|
|
9621
|
-
})["catch"](function (err) {
|
|
9622
|
-
return {
|
|
9623
|
-
state: 'denied'
|
|
9624
|
-
};
|
|
9625
|
-
});
|
|
9626
|
-
|
|
9627
|
-
case 2:
|
|
9628
|
-
permission = _context2.sent;
|
|
9629
|
-
|
|
9630
|
-
if (!(permission.state !== 'denied')) {
|
|
9631
|
-
_context2.next = 11;
|
|
9632
|
-
break;
|
|
9633
|
-
}
|
|
9634
|
-
|
|
9635
|
-
_context2.next = 6;
|
|
9636
|
-
return getLocation();
|
|
9637
|
-
|
|
9638
|
-
case 6:
|
|
9639
|
-
_yield$getLocation = _context2.sent;
|
|
9640
|
-
_yield$getLocation2 = _slicedToArray(_yield$getLocation, 2);
|
|
9641
|
-
err = _yield$getLocation2[0];
|
|
9642
|
-
currLocation = _yield$getLocation2[1];
|
|
9643
|
-
|
|
9644
|
-
if (!err) {
|
|
9645
|
-
lat = currLocation.lat;
|
|
9646
|
-
_long2 = currLocation["long"];
|
|
9647
|
-
}
|
|
9648
|
-
|
|
9649
|
-
case 11:
|
|
9650
|
-
return _context2.abrupt("return", {
|
|
9651
|
-
lat: lat,
|
|
9652
|
-
"long": _long2
|
|
9653
|
-
});
|
|
9654
|
-
|
|
9655
|
-
case 12:
|
|
9656
|
-
case "end":
|
|
9657
|
-
return _context2.stop();
|
|
9658
|
-
}
|
|
9659
|
-
}
|
|
9660
|
-
}, _callee2);
|
|
9661
|
-
}));
|
|
9662
|
-
|
|
9663
|
-
return function getCurrentPosition() {
|
|
9664
|
-
return _ref4.apply(this, arguments);
|
|
9665
|
-
};
|
|
9666
|
-
}();
|
|
9667
|
-
|
|
9668
|
-
var getLatLong = /*#__PURE__*/function () {
|
|
9669
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(city) {
|
|
9670
|
-
var _resp$results, _resp$results$, _resp$results$$geomet, _resp$results$$geomet2, _resp$results2, _resp$results2$, _resp$results2$$geome, _resp$results2$$geome2;
|
|
9671
|
-
|
|
9672
|
-
var url, data, resp, lat, _long3, _resp$results3, _resp$results3$, _resp$results3$$geome, _resp$results3$$geome2, _resp$results4, _resp$results4$, _resp$results4$$geome, _resp$results4$$geome2;
|
|
9673
|
-
|
|
9674
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
9675
|
-
while (1) {
|
|
9676
|
-
switch (_context3.prev = _context3.next) {
|
|
9677
|
-
case 0:
|
|
9678
|
-
url = "https://maps.googleapis.com/maps/api/geocode/json?address=".concat(city, "&key=AIzaSyBqeACJgp12OLU6EkHeUtFgya2naH1LhrU");
|
|
9679
|
-
_context3.next = 3;
|
|
9680
|
-
return fetch(url);
|
|
9681
|
-
|
|
9682
|
-
case 3:
|
|
9683
|
-
data = _context3.sent;
|
|
9684
|
-
_context3.next = 6;
|
|
9685
|
-
return data.json();
|
|
9686
|
-
|
|
9687
|
-
case 6:
|
|
9688
|
-
resp = _context3.sent;
|
|
9689
|
-
|
|
9690
|
-
if ((resp === null || resp === void 0 ? void 0 : (_resp$results = resp.results) === null || _resp$results === void 0 ? void 0 : (_resp$results$ = _resp$results[0]) === null || _resp$results$ === void 0 ? void 0 : (_resp$results$$geomet = _resp$results$.geometry) === null || _resp$results$$geomet === void 0 ? void 0 : (_resp$results$$geomet2 = _resp$results$$geomet.location) === null || _resp$results$$geomet2 === void 0 ? void 0 : _resp$results$$geomet2.lat) && (resp === null || resp === void 0 ? void 0 : (_resp$results2 = resp.results) === null || _resp$results2 === void 0 ? void 0 : (_resp$results2$ = _resp$results2[0]) === null || _resp$results2$ === void 0 ? void 0 : (_resp$results2$$geome = _resp$results2$.geometry) === null || _resp$results2$$geome === void 0 ? void 0 : (_resp$results2$$geome2 = _resp$results2$$geome.location) === null || _resp$results2$$geome2 === void 0 ? void 0 : _resp$results2$$geome2.lng)) {
|
|
9691
|
-
lat = resp === null || resp === void 0 ? void 0 : (_resp$results3 = resp.results) === null || _resp$results3 === void 0 ? void 0 : (_resp$results3$ = _resp$results3[0]) === null || _resp$results3$ === void 0 ? void 0 : (_resp$results3$$geome = _resp$results3$.geometry) === null || _resp$results3$$geome === void 0 ? void 0 : (_resp$results3$$geome2 = _resp$results3$$geome.location) === null || _resp$results3$$geome2 === void 0 ? void 0 : _resp$results3$$geome2.lat;
|
|
9692
|
-
_long3 = resp === null || resp === void 0 ? void 0 : (_resp$results4 = resp.results) === null || _resp$results4 === void 0 ? void 0 : (_resp$results4$ = _resp$results4[0]) === null || _resp$results4$ === void 0 ? void 0 : (_resp$results4$$geome = _resp$results4$.geometry) === null || _resp$results4$$geome === void 0 ? void 0 : (_resp$results4$$geome2 = _resp$results4$$geome.location) === null || _resp$results4$$geome2 === void 0 ? void 0 : _resp$results4$$geome2.lng;
|
|
9693
|
-
}
|
|
9694
|
-
|
|
9695
|
-
return _context3.abrupt("return", {
|
|
9696
|
-
lat: lat,
|
|
9697
|
-
"long": _long3
|
|
9698
|
-
});
|
|
9699
|
-
|
|
9700
|
-
case 9:
|
|
9701
|
-
case "end":
|
|
9702
|
-
return _context3.stop();
|
|
9703
|
-
}
|
|
9704
|
-
}
|
|
9705
|
-
}, _callee3);
|
|
9706
|
-
}));
|
|
9707
|
-
|
|
9708
|
-
return function getLatLong(_x2) {
|
|
9709
|
-
return _ref5.apply(this, arguments);
|
|
9710
|
-
};
|
|
9711
|
-
}(); // Get age using moment
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
var getAge = function getAge(date) {
|
|
9715
|
-
if (date) {
|
|
9716
|
-
var yearDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'years', false);
|
|
9717
|
-
|
|
9718
|
-
if (yearDiff > 0) {
|
|
9719
|
-
return yearDiff + ' Y';
|
|
9720
|
-
}
|
|
9721
|
-
|
|
9722
|
-
var monthDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'months', false);
|
|
9723
|
-
|
|
9724
|
-
if (monthDiff > 0) {
|
|
9725
|
-
return monthDiff + ' M';
|
|
9726
|
-
}
|
|
9727
|
-
|
|
9728
|
-
var dayDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'days', false);
|
|
9729
|
-
return dayDiff + ' D';
|
|
9730
|
-
}
|
|
9731
|
-
|
|
9732
|
-
return "";
|
|
9733
|
-
};
|
|
9734
|
-
|
|
9735
9809
|
var _extraReducers$D;
|
|
9736
9810
|
var __options$8 = {
|
|
9737
9811
|
method: "POST",
|
|
@@ -16349,6 +16423,8 @@ var UPSERT_PERSON = createAsyncThunk("personApiSlice/upsertPerson", /*#__PURE__*
|
|
|
16349
16423
|
firstName,
|
|
16350
16424
|
_payload$lastName,
|
|
16351
16425
|
lastName,
|
|
16426
|
+
_payload$middleName,
|
|
16427
|
+
middleName,
|
|
16352
16428
|
_payload$gender,
|
|
16353
16429
|
gender,
|
|
16354
16430
|
_payload$email,
|
|
@@ -16366,7 +16442,7 @@ var UPSERT_PERSON = createAsyncThunk("personApiSlice/upsertPerson", /*#__PURE__*
|
|
|
16366
16442
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
16367
16443
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
16368
16444
|
_context.prev = 2;
|
|
16369
|
-
_payload$phone = payload.phone, phone = _payload$phone === void 0 ? "" : _payload$phone, _payload$dob = payload.dob, dob = _payload$dob === void 0 ? "" : _payload$dob, _payload$firstName = payload.firstName, firstName = _payload$firstName === void 0 ? "" : _payload$firstName, _payload$lastName = payload.lastName, lastName = _payload$lastName === void 0 ? "" : _payload$lastName, _payload$gender = payload.gender, gender = _payload$gender === void 0 ? "" : _payload$gender, _payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email, photo = payload.photo;
|
|
16445
|
+
_payload$phone = payload.phone, phone = _payload$phone === void 0 ? "" : _payload$phone, _payload$dob = payload.dob, dob = _payload$dob === void 0 ? "" : _payload$dob, _payload$firstName = payload.firstName, firstName = _payload$firstName === void 0 ? "" : _payload$firstName, _payload$lastName = payload.lastName, lastName = _payload$lastName === void 0 ? "" : _payload$lastName, _payload$middleName = payload.middleName, middleName = _payload$middleName === void 0 ? "" : _payload$middleName, _payload$gender = payload.gender, gender = _payload$gender === void 0 ? "" : _payload$gender, _payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email, photo = payload.photo;
|
|
16370
16446
|
imageInfo = [];
|
|
16371
16447
|
|
|
16372
16448
|
if (photo) {
|
|
@@ -16405,7 +16481,7 @@ var UPSERT_PERSON = createAsyncThunk("personApiSlice/upsertPerson", /*#__PURE__*
|
|
|
16405
16481
|
use: "",
|
|
16406
16482
|
text: firstName,
|
|
16407
16483
|
family: lastName,
|
|
16408
|
-
given:
|
|
16484
|
+
given: middleName,
|
|
16409
16485
|
prefix: "",
|
|
16410
16486
|
suffix: "",
|
|
16411
16487
|
period: [{
|
|
@@ -16540,12 +16616,12 @@ var ADD_RELATED_PERSON = createAsyncThunk("personApiSlice/addRelatedPerson", /*#
|
|
|
16540
16616
|
// true
|
|
16541
16617
|
"relationship": relationType,
|
|
16542
16618
|
"name": [{
|
|
16543
|
-
"use": "
|
|
16619
|
+
"use": "",
|
|
16544
16620
|
"text": firstName,
|
|
16545
16621
|
"family": lastName,
|
|
16546
|
-
"given":
|
|
16547
|
-
"prefix":
|
|
16548
|
-
"suffix": "
|
|
16622
|
+
"given": "",
|
|
16623
|
+
"prefix": "",
|
|
16624
|
+
"suffix": "",
|
|
16549
16625
|
"period": [{
|
|
16550
16626
|
"start": Math.floor(Date.now() / 1000),
|
|
16551
16627
|
"end": 0
|
|
@@ -18001,9 +18077,9 @@ var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18001
18077
|
_payload$OrgID2 = payload.OrgID, OrgID = _payload$OrgID2 === void 0 ? "" : _payload$OrgID2;
|
|
18002
18078
|
body = {
|
|
18003
18079
|
db_name: "primarycare",
|
|
18004
|
-
entity: "
|
|
18005
|
-
filter: "
|
|
18006
|
-
return_fields: "
|
|
18080
|
+
entity: "Practitioner",
|
|
18081
|
+
filter: "document(Practitioner.practitioner_role)[*].SpecialtyID any == '" + OrgID + "'",
|
|
18082
|
+
return_fields: "merge(Practitioner,{name:document(Practitioner.name)},{practitioner_role:(for PractitionerRole in PractitionerRole filter Practitioner.practitioner_role any == PractitionerRole._id return merge(PractitionerRole,{role:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == PractitionerRole.role return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))}, {SpecialtyID:(for CodeableConceptMaster in CodeableConceptMaster filter PractitionerRole.SpecialtyID == CodeableConceptMaster._id return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}) ) } ) )}, {practitioner_type:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == Practitioner.practitioner_type return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))})"
|
|
18007
18083
|
};
|
|
18008
18084
|
_context9.next = 7;
|
|
18009
18085
|
return fetchData$3({
|
|
@@ -19094,7 +19170,7 @@ var dashboardQuery = {
|
|
|
19094
19170
|
Encounter: "Encounter._key=='".concat(encounter_key, "' && Encounter.activestatus==true && lower(document(Encounter.status).display)=='consultation over'"),
|
|
19095
19171
|
Appointment: "Appointment.id in Encounter.appointmentId && Appointment.start>=".concat(start, " && Appointment.end<=").concat(end)
|
|
19096
19172
|
},
|
|
19097
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))})"
|
|
19173
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))})"
|
|
19098
19174
|
};
|
|
19099
19175
|
}
|
|
19100
19176
|
};
|
|
@@ -20533,7 +20609,7 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
20533
20609
|
};
|
|
20534
20610
|
|
|
20535
20611
|
var generateReadJSON_colseConsultation = function generateReadJSON_colseConsultation(data) {
|
|
20536
|
-
var _data$visit_type, _data$reasonReference, _data$reasonReference2, _data$appointmentId, _data$appointmentId2, _data$appointmentId$c, _data$appointmentId3, _data$appointmentId4, _data$appointmentId5, _data$appointmentId6, _data$appointmentId6$, _data$patient_id$0$ph, _data$patient_id, _data$patient_id$, _data$patient_id$$pho, _ref47, _data$patient_id2, _data$patient_id2$0$n, _data$patient_id2$0$n2, _data$patient_id3, _data$patient_id3$0$n, _data$patient_id3$0$n2, _data$patient_id$0$ag, _data$patient_id4, _data$patient_id4$, _data$patient_id5, _data$patient_id5$, _data$patient_id5$$ge, _data$patient_id6, _data$patient_id6$, _data$patient_id6$$ge, _data$patient_id7, _data$patient_id7$, _data$patient_id7$$ge, _data$patient_id$0$al, _data$patient_id8, _data$patient_id8$, _data$patient_id$0$te, _data$patient_id9, _data$patient_id9$, _data$patient_id9$$te, _data$patient_id9$$te2, _data$practitioner_de, _data$practitioner_de2, _data$practitioner_de3, _data$practitioner_de4, _data$practitioner_de5, _data$practitioner_de6, _data$practitioner_de7, _data$practitioner_de8, _data$practitioner_de9, _data$practitioner_de10, _data$practitioner_de11;
|
|
20612
|
+
var _data$visit_type, _data$reasonReference, _data$reasonReference2, _data$appointmentId, _data$appointmentId2, _data$appointmentId$c, _data$appointmentId3, _data$appointmentId4, _data$appointmentId4$, _data$appointmentId5, _data$appointmentId6, _data$appointmentId6$, _data$patient_id$0$ph, _data$patient_id, _data$patient_id$, _data$patient_id$$pho, _ref47, _data$patient_id2, _data$patient_id2$0$n, _data$patient_id2$0$n2, _data$patient_id3, _data$patient_id3$0$n, _data$patient_id3$0$n2, _data$patient_id$0$ag, _data$patient_id4, _data$patient_id4$, _data$patient_id5, _data$patient_id5$, _data$patient_id5$$ge, _data$patient_id6, _data$patient_id6$, _data$patient_id6$$ge, _data$patient_id7, _data$patient_id7$, _data$patient_id7$$ge, _data$patient_id$0$al, _data$patient_id8, _data$patient_id8$, _data$patient_id$0$te, _data$patient_id9, _data$patient_id9$, _data$patient_id9$$te, _data$patient_id9$$te2, _data$practitioner_de, _data$practitioner_de2, _data$practitioner_de3, _data$practitioner_de4, _data$practitioner_de5, _data$practitioner_de6, _data$practitioner_de7, _data$practitioner_de8, _data$practitioner_de9, _data$practitioner_de10, _data$practitioner_de11;
|
|
20537
20613
|
|
|
20538
20614
|
var json = {
|
|
20539
20615
|
visitType: (_data$visit_type = data === null || data === void 0 ? void 0 : data.visit_type) !== null && _data$visit_type !== void 0 ? _data$visit_type : "",
|
|
@@ -20541,7 +20617,9 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
20541
20617
|
reasonCode: (_data$reasonReference = data === null || data === void 0 ? void 0 : (_data$reasonReference2 = data.reasonReference) === null || _data$reasonReference2 === void 0 ? void 0 : _data$reasonReference2.display) !== null && _data$reasonReference !== void 0 ? _data$reasonReference : "",
|
|
20542
20618
|
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$appointmentId = data.appointmentId) === null || _data$appointmentId === void 0 ? void 0 : _data$appointmentId.start) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$appointmentId2 = data.appointmentId) === null || _data$appointmentId2 === void 0 ? void 0 : _data$appointmentId2.start, "DD MMM,YYYY hh:mm A") : "",
|
|
20543
20619
|
consultationMode: (_data$appointmentId$c = data === null || data === void 0 ? void 0 : (_data$appointmentId3 = data.appointmentId) === null || _data$appointmentId3 === void 0 ? void 0 : _data$appointmentId3.consultationMode) !== null && _data$appointmentId$c !== void 0 ? _data$appointmentId$c : "",
|
|
20544
|
-
appointmentReason: (data === null || data === void 0 ? void 0 : (_data$appointmentId4 = data.appointmentId) === null || _data$appointmentId4 === void 0 ? void 0 : _data$appointmentId4.appointmentReason) && Array.isArray(data === null || data === void 0 ? void 0 : (_data$appointmentId5 = data.appointmentId) === null || _data$appointmentId5 === void 0 ? void 0 : _data$appointmentId5.appointmentReason) ? data === null || data === void 0 ? void 0 : (_data$appointmentId6 = data.appointmentId) === null || _data$appointmentId6 === void 0 ? void 0 : (_data$appointmentId6$ = _data$appointmentId6.appointmentReason) === null || _data$appointmentId6$ === void 0 ? void 0 : _data$appointmentId6$.
|
|
20620
|
+
appointmentReason: (data === null || data === void 0 ? void 0 : (_data$appointmentId4 = data.appointmentId) === null || _data$appointmentId4 === void 0 ? void 0 : (_data$appointmentId4$ = _data$appointmentId4.appointmentReason) === null || _data$appointmentId4$ === void 0 ? void 0 : _data$appointmentId4$.length) > 0 && Array.isArray(data === null || data === void 0 ? void 0 : (_data$appointmentId5 = data.appointmentId) === null || _data$appointmentId5 === void 0 ? void 0 : _data$appointmentId5.appointmentReason) ? data === null || data === void 0 ? void 0 : (_data$appointmentId6 = data.appointmentId) === null || _data$appointmentId6 === void 0 ? void 0 : (_data$appointmentId6$ = _data$appointmentId6.appointmentReason) === null || _data$appointmentId6$ === void 0 ? void 0 : _data$appointmentId6$.map(function (v) {
|
|
20621
|
+
return v === null || v === void 0 ? void 0 : v.display;
|
|
20622
|
+
}) : "",
|
|
20545
20623
|
//PATIENT DEATAIL
|
|
20546
20624
|
patientPhoto: (_data$patient_id$0$ph = data === null || data === void 0 ? void 0 : (_data$patient_id = data.patient_id) === null || _data$patient_id === void 0 ? void 0 : (_data$patient_id$ = _data$patient_id[0]) === null || _data$patient_id$ === void 0 ? void 0 : (_data$patient_id$$pho = _data$patient_id$.photo) === null || _data$patient_id$$pho === void 0 ? void 0 : _data$patient_id$$pho[0]) !== null && _data$patient_id$0$ph !== void 0 ? _data$patient_id$0$ph : "",
|
|
20547
20625
|
// need to expand
|
|
@@ -38269,7 +38347,7 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
38269
38347
|
case 5:
|
|
38270
38348
|
data = _context.sent;
|
|
38271
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 (_) {
|
|
38272
|
-
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;
|
|
38273
38351
|
|
|
38274
38352
|
return {
|
|
38275
38353
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38292,25 +38370,21 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
38292
38370
|
// clinic: _?.Encounter?.practitioner_details?.[0]?.clinic,
|
|
38293
38371
|
// dob: _?.Appointment?.PersonID?.[0]?.birthDay,
|
|
38294
38372
|
// gender: _?.Appointment?.PersonID?.[0]?.gender,
|
|
38295
|
-
contact: (_
|
|
38296
|
-
visitType: (_$Appointment$appoint = _ === null || _ === void 0 ? void 0 : (_$
|
|
38297
|
-
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38298
|
-
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) || "",
|
|
38299
38377
|
// type: "OP",
|
|
38300
38378
|
// "Register Visit": true,
|
|
38301
38379
|
// "Modify Appointment": true,
|
|
38302
38380
|
// "Cancel Appointment": true,
|
|
38303
38381
|
// "View Profile": true,
|
|
38304
38382
|
// data: _,
|
|
38305
|
-
|
|
38306
|
-
appNo: _.Appointment.id
|
|
38307
|
-
}),
|
|
38308
|
-
modifyaction: JSON.stringify({
|
|
38309
|
-
appNo: _.Appointment.id
|
|
38310
|
-
}),
|
|
38311
|
-
cancelaction: JSON.stringify({
|
|
38383
|
+
action: JSON.stringify({
|
|
38312
38384
|
appNo: _.Appointment.id
|
|
38313
|
-
})
|
|
38385
|
+
}) // modifyaction: JSON.stringify({ appNo: _.Appointment.id }),
|
|
38386
|
+
// cancelaction: JSON.stringify({ appNo: _.Appointment.id }),
|
|
38387
|
+
|
|
38314
38388
|
};
|
|
38315
38389
|
}) : [];
|
|
38316
38390
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38355,10 +38429,12 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
38355
38429
|
case 5:
|
|
38356
38430
|
data = _context2.sent;
|
|
38357
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 (_) {
|
|
38358
|
-
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;
|
|
38359
38433
|
|
|
38360
38434
|
return {
|
|
38361
|
-
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",
|
|
38362
38438
|
// name: makeName(_?.Encounter?.patient_id?.[0]?.name?.[0] || {}),
|
|
38363
38439
|
// mrn: _?.Encounter?.patient_id?.[0]?.MRN,
|
|
38364
38440
|
// date: _?.Appointment?.start
|
|
@@ -38387,32 +38463,32 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
38387
38463
|
// "View Profile": true,
|
|
38388
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]) || {}),
|
|
38389
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,
|
|
38390
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38391
|
-
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") : ""),
|
|
38392
38468
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter3 = _.Encounter) === null || _$Encounter3 === void 0 ? void 0 : _$Encounter3.visit_type,
|
|
38393
|
-
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 : "",
|
|
38394
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 : "",
|
|
38395
|
-
|
|
38471
|
+
action: JSON.stringify({
|
|
38396
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 : "",
|
|
38397
38473
|
enId: _.Encounter.id,
|
|
38398
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,
|
|
38399
|
-
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,
|
|
38400
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
|
|
38401
|
-
})
|
|
38402
|
-
|
|
38403
|
-
|
|
38404
|
-
|
|
38405
|
-
|
|
38406
|
-
|
|
38407
|
-
|
|
38408
|
-
|
|
38409
|
-
|
|
38410
|
-
|
|
38411
|
-
|
|
38412
|
-
|
|
38413
|
-
|
|
38414
|
-
|
|
38415
|
-
|
|
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
|
+
|
|
38416
38492
|
};
|
|
38417
38493
|
}) : [];
|
|
38418
38494
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38457,7 +38533,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38457
38533
|
case 5:
|
|
38458
38534
|
data = _context3.sent;
|
|
38459
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 (_) {
|
|
38460
|
-
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;
|
|
38461
38537
|
|
|
38462
38538
|
return {
|
|
38463
38539
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38489,34 +38565,34 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38489
38565
|
// "Modify Appointment": true,
|
|
38490
38566
|
// "Cancel Appointment": true,
|
|
38491
38567
|
// "View Profile": true,
|
|
38492
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38493
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38494
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38495
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38496
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38497
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38498
|
-
refNo: (_$Encounter$
|
|
38499
|
-
|
|
38500
|
-
appNo: (_$Encounter$
|
|
38501
|
-
enId: _.Encounter.id,
|
|
38502
|
-
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,
|
|
38503
|
-
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,
|
|
38504
|
-
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
|
|
38505
|
-
}),
|
|
38506
|
-
modifyaction: JSON.stringify({
|
|
38507
|
-
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 : "",
|
|
38508
|
-
enId: _.Encounter.id,
|
|
38509
|
-
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,
|
|
38510
|
-
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,
|
|
38511
|
-
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
|
|
38512
|
-
}),
|
|
38513
|
-
cancelaction: JSON.stringify({
|
|
38514
|
-
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 : "",
|
|
38515
38577
|
enId: _.Encounter.id,
|
|
38516
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38517
|
-
personId: (_$Appointment$
|
|
38518
|
-
patientId: (_$Encounter$
|
|
38519
|
-
})
|
|
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
|
+
|
|
38520
38596
|
};
|
|
38521
38597
|
}) : [];
|
|
38522
38598
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38561,7 +38637,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38561
38637
|
case 5:
|
|
38562
38638
|
data = _context4.sent;
|
|
38563
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 (_) {
|
|
38564
|
-
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;
|
|
38565
38641
|
|
|
38566
38642
|
return {
|
|
38567
38643
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38593,34 +38669,34 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38593
38669
|
// "Modify Appointment": true,
|
|
38594
38670
|
// "Cancel Appointment": true,
|
|
38595
38671
|
// "View Profile": true,
|
|
38596
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38597
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38598
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38599
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38600
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38601
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38602
|
-
refNo: (_$Encounter$
|
|
38603
|
-
|
|
38604
|
-
appNo: (_$Encounter$
|
|
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 : "",
|
|
38605
38681
|
enId: _.Encounter.id,
|
|
38606
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38607
|
-
personId: (_$Appointment$
|
|
38608
|
-
patientId: (_$Encounter$
|
|
38609
|
-
})
|
|
38610
|
-
|
|
38611
|
-
|
|
38612
|
-
|
|
38613
|
-
|
|
38614
|
-
|
|
38615
|
-
|
|
38616
|
-
|
|
38617
|
-
|
|
38618
|
-
|
|
38619
|
-
|
|
38620
|
-
|
|
38621
|
-
|
|
38622
|
-
|
|
38623
|
-
|
|
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
|
+
|
|
38624
38700
|
};
|
|
38625
38701
|
}) : [];
|
|
38626
38702
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38665,7 +38741,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38665
38741
|
case 5:
|
|
38666
38742
|
data = _context5.sent;
|
|
38667
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 (_) {
|
|
38668
|
-
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;
|
|
38669
38745
|
|
|
38670
38746
|
return {
|
|
38671
38747
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38697,34 +38773,34 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38697
38773
|
// "Modify Appointment": true,
|
|
38698
38774
|
// "Cancel Appointment": true,
|
|
38699
38775
|
// "View Profile": true,
|
|
38700
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38701
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38702
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38703
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38704
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38705
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38706
|
-
refNo: (_$Encounter$
|
|
38707
|
-
|
|
38708
|
-
appNo: (_$Encounter$
|
|
38709
|
-
enId: _.Encounter.id,
|
|
38710
|
-
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,
|
|
38711
|
-
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,
|
|
38712
|
-
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
|
|
38713
|
-
}),
|
|
38714
|
-
modifyaction: JSON.stringify({
|
|
38715
|
-
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 : "",
|
|
38716
|
-
enId: _.Encounter.id,
|
|
38717
|
-
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,
|
|
38718
|
-
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,
|
|
38719
|
-
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
|
|
38720
|
-
}),
|
|
38721
|
-
cancelaction: JSON.stringify({
|
|
38722
|
-
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 : "",
|
|
38723
38785
|
enId: _.Encounter.id,
|
|
38724
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38725
|
-
personId: (_$Appointment$
|
|
38726
|
-
patientId: (_$Encounter$
|
|
38727
|
-
})
|
|
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
|
+
|
|
38728
38804
|
};
|
|
38729
38805
|
}) : [];
|
|
38730
38806
|
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38769,7 +38845,7 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38769
38845
|
case 5:
|
|
38770
38846
|
data = _context6.sent;
|
|
38771
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 (_) {
|
|
38772
|
-
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;
|
|
38773
38849
|
|
|
38774
38850
|
return {
|
|
38775
38851
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -38801,34 +38877,34 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38801
38877
|
// "Modify Appointment": true,
|
|
38802
38878
|
// "Cancel Appointment": true,
|
|
38803
38879
|
// "View Profile": true,
|
|
38804
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38805
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38806
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38807
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
38808
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
38809
|
-
appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$
|
|
38810
|
-
refNo: (_$Encounter$
|
|
38811
|
-
|
|
38812
|
-
appNo: (_$Encounter$
|
|
38813
|
-
enId: _.Encounter.id,
|
|
38814
|
-
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,
|
|
38815
|
-
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,
|
|
38816
|
-
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
|
|
38817
|
-
}),
|
|
38818
|
-
modifyaction: JSON.stringify({
|
|
38819
|
-
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 : "",
|
|
38820
38889
|
enId: _.Encounter.id,
|
|
38821
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
38822
|
-
personId: (_$Appointment$
|
|
38823
|
-
patientId: (_$Encounter$
|
|
38824
|
-
})
|
|
38825
|
-
|
|
38826
|
-
|
|
38827
|
-
|
|
38828
|
-
|
|
38829
|
-
|
|
38830
|
-
|
|
38831
|
-
|
|
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
|
+
|
|
38832
38908
|
};
|
|
38833
38909
|
}) : [];
|
|
38834
38910
|
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38874,46 +38950,44 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38874
38950
|
case 5:
|
|
38875
38951
|
data = _context7.sent;
|
|
38876
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 (_) {
|
|
38877
|
-
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;
|
|
38878
38954
|
|
|
38879
38955
|
return {
|
|
38880
|
-
img:
|
|
38881
|
-
|
|
38882
|
-
|
|
38883
|
-
|
|
38884
|
-
|
|
38885
|
-
|
|
38886
|
-
|
|
38887
|
-
|
|
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) : "",
|
|
38888
38966
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
38889
38967
|
// age: _?.patient_id?.[0]?.age,
|
|
38890
|
-
|
|
38891
|
-
date:
|
|
38892
|
-
|
|
38893
|
-
|
|
38894
|
-
|
|
38895
|
-
|
|
38896
|
-
|
|
38897
|
-
|
|
38898
|
-
|
|
38899
|
-
|
|
38900
|
-
|
|
38901
|
-
|
|
38902
|
-
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
"View Patient": true,
|
|
38907
|
-
Attend: true,
|
|
38908
|
-
action: true,
|
|
38909
|
-
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 ?? '',
|
|
38910
38984
|
// // data: _,
|
|
38911
38985
|
// enId: _.id,
|
|
38912
38986
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
38913
38987
|
// // gender: _?.PersonID?.[0]?.gender,
|
|
38914
38988
|
// contact: _?.PersonID?.[0]?.telecom?.[0]?.value ?? "",
|
|
38915
38989
|
// pId : _?.patient_id?.id,
|
|
38916
|
-
|
|
38990
|
+
action: true
|
|
38917
38991
|
};
|
|
38918
38992
|
}) : [];
|
|
38919
38993
|
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -38958,10 +39032,14 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38958
39032
|
case 5:
|
|
38959
39033
|
data = _context8.sent;
|
|
38960
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 (_) {
|
|
38961
|
-
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;
|
|
38962
39036
|
|
|
38963
39037
|
return {
|
|
38964
|
-
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",
|
|
38965
39043
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
38966
39044
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
38967
39045
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -38988,29 +39066,30 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38988
39066
|
// // gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
38989
39067
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
38990
39068
|
// pId: _?.patient_id?.id ?? "",
|
|
38991
|
-
name:
|
|
38992
|
-
|
|
38993
|
-
|
|
38994
|
-
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) || "",
|
|
38995
|
-
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 : "",
|
|
38996
|
-
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 : ""
|
|
38997
|
-
}),
|
|
38998
|
-
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) || "",
|
|
38999
|
-
date: JSON.stringify({
|
|
39000
|
-
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") : "",
|
|
39001
|
-
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") : ""
|
|
39002
|
-
}),
|
|
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),
|
|
39003
39072
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
39004
|
-
|
|
39005
|
-
|
|
39006
|
-
var _spl$coding2, _spl$coding2$;
|
|
39007
|
-
|
|
39008
|
-
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;
|
|
39009
|
-
}).join(", "),
|
|
39010
|
-
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) || ""
|
|
39011
|
-
}),
|
|
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) || "",
|
|
39012
39075
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display) || "",
|
|
39013
|
-
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
|
+
|
|
39014
39093
|
};
|
|
39015
39094
|
}) : [];
|
|
39016
39095
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39055,10 +39134,12 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
39055
39134
|
case 5:
|
|
39056
39135
|
data = _context9.sent;
|
|
39057
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 (_) {
|
|
39058
|
-
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;
|
|
39059
39138
|
|
|
39060
39139
|
return {
|
|
39061
|
-
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",
|
|
39062
39143
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39063
39144
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39064
39145
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39085,27 +39166,33 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
39085
39166
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39086
39167
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39087
39168
|
// pId: _?.patient_id?.id,
|
|
39088
|
-
name: JSON.stringify({
|
|
39089
|
-
|
|
39090
|
-
|
|
39091
|
-
|
|
39092
|
-
|
|
39093
|
-
|
|
39094
|
-
}),
|
|
39095
|
-
|
|
39096
|
-
|
|
39097
|
-
|
|
39098
|
-
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") : ""
|
|
39099
|
-
}),
|
|
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),
|
|
39100
39179
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
39101
|
-
|
|
39102
|
-
|
|
39103
|
-
|
|
39104
|
-
|
|
39105
|
-
|
|
39106
|
-
|
|
39107
|
-
|
|
39108
|
-
|
|
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
|
+
// }),
|
|
39109
39196
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display) || "",
|
|
39110
39197
|
action: true
|
|
39111
39198
|
};
|
|
@@ -39152,10 +39239,14 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
39152
39239
|
case 5:
|
|
39153
39240
|
data = _context10.sent;
|
|
39154
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 (_) {
|
|
39155
|
-
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;
|
|
39156
39243
|
|
|
39157
39244
|
return {
|
|
39158
|
-
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",
|
|
39159
39250
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39160
39251
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39161
39252
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39182,27 +39273,33 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
39182
39273
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39183
39274
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39184
39275
|
// pId: _?.patient_id?.id,
|
|
39185
|
-
name: JSON.stringify({
|
|
39186
|
-
|
|
39187
|
-
|
|
39188
|
-
|
|
39189
|
-
|
|
39190
|
-
|
|
39191
|
-
}),
|
|
39192
|
-
|
|
39193
|
-
|
|
39194
|
-
|
|
39195
|
-
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") : ""
|
|
39196
|
-
}),
|
|
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),
|
|
39197
39286
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
39198
|
-
|
|
39199
|
-
|
|
39200
|
-
|
|
39201
|
-
|
|
39202
|
-
|
|
39203
|
-
|
|
39204
|
-
|
|
39205
|
-
|
|
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
|
+
// }),
|
|
39206
39303
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display) || "",
|
|
39207
39304
|
action: true
|
|
39208
39305
|
};
|
|
@@ -39249,10 +39346,12 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
39249
39346
|
case 5:
|
|
39250
39347
|
data = _context11.sent;
|
|
39251
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 (_) {
|
|
39252
|
-
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;
|
|
39253
39350
|
|
|
39254
39351
|
return {
|
|
39255
|
-
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",
|
|
39256
39355
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39257
39356
|
// mrn: _?.patient_id?.[0]?.MRN,
|
|
39258
39357
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39278,28 +39377,28 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
39278
39377
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39279
39378
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39280
39379
|
// pId: _?.patient_id?.id,
|
|
39281
|
-
name: JSON.stringify({
|
|
39282
|
-
|
|
39283
|
-
|
|
39284
|
-
|
|
39285
|
-
|
|
39286
|
-
|
|
39287
|
-
}),
|
|
39288
|
-
|
|
39289
|
-
|
|
39290
|
-
|
|
39291
|
-
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") : ""
|
|
39292
|
-
}),
|
|
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),
|
|
39293
39390
|
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
39294
|
-
|
|
39295
|
-
|
|
39296
|
-
|
|
39297
|
-
|
|
39298
|
-
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;
|
|
39299
|
-
}).join(", "),
|
|
39300
|
-
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) || ""
|
|
39301
|
-
}),
|
|
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) || "",
|
|
39302
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
|
+
// }),
|
|
39303
39402
|
action: true
|
|
39304
39403
|
};
|
|
39305
39404
|
}) : [];
|
|
@@ -39345,10 +39444,14 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
39345
39444
|
case 5:
|
|
39346
39445
|
data = _context12.sent;
|
|
39347
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 (_) {
|
|
39348
|
-
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;
|
|
39349
39448
|
|
|
39350
39449
|
return {
|
|
39351
|
-
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",
|
|
39352
39455
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39353
39456
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39354
39457
|
// age: _?.patient_id?.[0]?.age,
|
|
@@ -39375,27 +39478,33 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
39375
39478
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39376
39479
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39377
39480
|
// pId: _?.patient_id?.id,
|
|
39378
|
-
name: JSON.stringify({
|
|
39379
|
-
|
|
39380
|
-
|
|
39381
|
-
|
|
39382
|
-
|
|
39383
|
-
|
|
39384
|
-
}),
|
|
39385
|
-
|
|
39386
|
-
|
|
39387
|
-
|
|
39388
|
-
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") : ""
|
|
39389
|
-
}),
|
|
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),
|
|
39390
39491
|
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
39391
|
-
|
|
39392
|
-
|
|
39393
|
-
|
|
39394
|
-
|
|
39395
|
-
|
|
39396
|
-
|
|
39397
|
-
|
|
39398
|
-
|
|
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
|
+
// }),
|
|
39399
39508
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display) || "",
|
|
39400
39509
|
action: true
|
|
39401
39510
|
};
|
|
@@ -39443,39 +39552,50 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
39443
39552
|
case 5:
|
|
39444
39553
|
data = _context13.sent;
|
|
39445
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 (_) {
|
|
39446
|
-
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;
|
|
39447
39556
|
|
|
39448
39557
|
return {
|
|
39449
|
-
img:
|
|
39450
|
-
|
|
39451
|
-
|
|
39452
|
-
|
|
39453
|
-
|
|
39454
|
-
|
|
39455
|
-
|
|
39456
|
-
|
|
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) || "",
|
|
39457
39576
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
39458
39577
|
// age: _?.patient_id?.[0]?.age,
|
|
39459
|
-
|
|
39460
|
-
date:
|
|
39461
|
-
|
|
39462
|
-
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
|
|
39467
|
-
|
|
39468
|
-
|
|
39469
|
-
|
|
39470
|
-
|
|
39471
|
-
|
|
39472
|
-
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39477
|
-
|
|
39478
|
-
|
|
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 ?? '',
|
|
39479
39599
|
// // data: _,
|
|
39480
39600
|
// enId: _.id,
|
|
39481
39601
|
// age: getAge(_?.PersonID?.[0]?.birthDay),
|
|
@@ -39527,10 +39647,14 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
39527
39647
|
case 5:
|
|
39528
39648
|
data = _context14.sent;
|
|
39529
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 (_) {
|
|
39530
|
-
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;
|
|
39531
39651
|
|
|
39532
39652
|
return {
|
|
39533
|
-
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",
|
|
39534
39658
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39535
39659
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39536
39660
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39556,27 +39680,33 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
39556
39680
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39557
39681
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39558
39682
|
// pId: _?.patient_id?.id,
|
|
39559
|
-
name: JSON.stringify({
|
|
39560
|
-
|
|
39561
|
-
|
|
39562
|
-
|
|
39563
|
-
|
|
39564
|
-
|
|
39565
|
-
}),
|
|
39566
|
-
|
|
39567
|
-
|
|
39568
|
-
|
|
39569
|
-
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") : ""
|
|
39570
|
-
}),
|
|
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),
|
|
39571
39693
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
39572
|
-
|
|
39573
|
-
|
|
39574
|
-
|
|
39575
|
-
|
|
39576
|
-
|
|
39577
|
-
|
|
39578
|
-
|
|
39579
|
-
|
|
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
|
+
// }),
|
|
39580
39710
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display) || "",
|
|
39581
39711
|
action: true
|
|
39582
39712
|
};
|
|
@@ -39623,10 +39753,14 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
39623
39753
|
case 5:
|
|
39624
39754
|
data = _context15.sent;
|
|
39625
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 (_) {
|
|
39626
|
-
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;
|
|
39627
39757
|
|
|
39628
39758
|
return {
|
|
39629
|
-
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",
|
|
39630
39764
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39631
39765
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39632
39766
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39652,27 +39786,33 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
39652
39786
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39653
39787
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39654
39788
|
// pId: _?.patient_id?.id,
|
|
39655
|
-
name: JSON.stringify({
|
|
39656
|
-
|
|
39657
|
-
|
|
39658
|
-
|
|
39659
|
-
|
|
39660
|
-
|
|
39661
|
-
}),
|
|
39662
|
-
|
|
39663
|
-
|
|
39664
|
-
|
|
39665
|
-
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") : ""
|
|
39666
|
-
}),
|
|
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),
|
|
39667
39799
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
39668
|
-
|
|
39669
|
-
|
|
39670
|
-
|
|
39671
|
-
|
|
39672
|
-
|
|
39673
|
-
|
|
39674
|
-
|
|
39675
|
-
|
|
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
|
+
// }),
|
|
39676
39816
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display) || "",
|
|
39677
39817
|
action: true
|
|
39678
39818
|
};
|
|
@@ -39719,10 +39859,14 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39719
39859
|
case 5:
|
|
39720
39860
|
data = _context16.sent;
|
|
39721
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 (_) {
|
|
39722
|
-
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;
|
|
39723
39863
|
|
|
39724
39864
|
return {
|
|
39725
|
-
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",
|
|
39726
39870
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39727
39871
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39728
39872
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39748,27 +39892,33 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39748
39892
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39749
39893
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39750
39894
|
// pId: _?.patient_id?.id,
|
|
39751
|
-
name: JSON.stringify({
|
|
39752
|
-
|
|
39753
|
-
|
|
39754
|
-
|
|
39755
|
-
|
|
39756
|
-
|
|
39757
|
-
}),
|
|
39758
|
-
|
|
39759
|
-
|
|
39760
|
-
|
|
39761
|
-
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") : ""
|
|
39762
|
-
}),
|
|
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),
|
|
39763
39905
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
39764
|
-
|
|
39765
|
-
|
|
39766
|
-
|
|
39767
|
-
|
|
39768
|
-
|
|
39769
|
-
|
|
39770
|
-
|
|
39771
|
-
|
|
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
|
+
// }),
|
|
39772
39922
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display) || "",
|
|
39773
39923
|
action: true
|
|
39774
39924
|
};
|
|
@@ -39815,10 +39965,14 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39815
39965
|
case 5:
|
|
39816
39966
|
data = _context17.sent;
|
|
39817
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 (_) {
|
|
39818
|
-
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;
|
|
39819
39969
|
|
|
39820
39970
|
return {
|
|
39821
|
-
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",
|
|
39822
39976
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39823
39977
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39824
39978
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39844,27 +39998,33 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39844
39998
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39845
39999
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39846
40000
|
// pId: _?.patient_id?.id,
|
|
39847
|
-
name: JSON.stringify({
|
|
39848
|
-
|
|
39849
|
-
|
|
39850
|
-
|
|
39851
|
-
|
|
39852
|
-
|
|
39853
|
-
}),
|
|
39854
|
-
|
|
39855
|
-
|
|
39856
|
-
|
|
39857
|
-
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") : ""
|
|
39858
|
-
}),
|
|
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),
|
|
39859
40011
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
39860
|
-
|
|
39861
|
-
|
|
39862
|
-
|
|
39863
|
-
|
|
39864
|
-
|
|
39865
|
-
|
|
39866
|
-
|
|
39867
|
-
|
|
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
|
+
// }),
|
|
39868
40028
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display) || "",
|
|
39869
40029
|
action: true
|
|
39870
40030
|
};
|
|
@@ -39911,10 +40071,14 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39911
40071
|
case 5:
|
|
39912
40072
|
data = _context18.sent;
|
|
39913
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 (_) {
|
|
39914
|
-
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;
|
|
39915
40075
|
|
|
39916
40076
|
return {
|
|
39917
|
-
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",
|
|
39918
40082
|
// name: makeName(_?.patient_id?.[0]?.name?.[0] || {}),
|
|
39919
40083
|
// mrn: _?.patient_id?.[0]?.MRN || "",
|
|
39920
40084
|
// refNo: _?.appointmentId?.[0]?.appno || "",
|
|
@@ -39940,27 +40104,33 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39940
40104
|
// gender: _?.appointmentId?.[0]?.PersonID?.[0]?.gender,
|
|
39941
40105
|
// contact: _?.patient_id?.[0]?.telecom?.[0]?.value ?? "",
|
|
39942
40106
|
// pId: _?.patient_id?.id,
|
|
39943
|
-
name: JSON.stringify({
|
|
39944
|
-
|
|
39945
|
-
|
|
39946
|
-
|
|
39947
|
-
|
|
39948
|
-
|
|
39949
|
-
}),
|
|
39950
|
-
|
|
39951
|
-
|
|
39952
|
-
|
|
39953
|
-
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") : ""
|
|
39954
|
-
}),
|
|
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),
|
|
39955
40117
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
39956
|
-
|
|
39957
|
-
|
|
39958
|
-
|
|
39959
|
-
|
|
39960
|
-
|
|
39961
|
-
|
|
39962
|
-
|
|
39963
|
-
|
|
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
|
+
// }),
|
|
39964
40134
|
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$status10 = _.status) === null || _$status10 === void 0 ? void 0 : _$status10.display) || "",
|
|
39965
40135
|
action: true
|
|
39966
40136
|
};
|
|
@@ -42233,13 +42403,13 @@ var consultActions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
|
|
|
42233
42403
|
var query$2 = {
|
|
42234
42404
|
//FRONTDESK
|
|
42235
42405
|
getPatientsCheckedIn: function getPatientsCheckedIn(data) {
|
|
42236
|
-
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 }");
|
|
42237
42407
|
},
|
|
42238
42408
|
getTriageDone: function getTriageDone(data) {
|
|
42239
|
-
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 }");
|
|
42240
42410
|
},
|
|
42241
42411
|
getVisitCompleted: function getVisitCompleted(data) {
|
|
42242
|
-
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 }");
|
|
42243
42413
|
},
|
|
42244
42414
|
getPatientsNoShows: function getPatientsNoShows(data) {
|
|
42245
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 }");
|
|
@@ -42356,15 +42526,17 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
42356
42526
|
case 5:
|
|
42357
42527
|
data = _context.sent;
|
|
42358
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 (_) {
|
|
42359
|
-
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$;
|
|
42360
42530
|
|
|
42361
42531
|
return {
|
|
42362
|
-
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",
|
|
42363
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]) || {}),
|
|
42364
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,
|
|
42365
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42366
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$
|
|
42367
|
-
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) {
|
|
42368
42540
|
var _spl$coding, _spl$coding$;
|
|
42369
42541
|
|
|
42370
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;
|
|
@@ -42374,7 +42546,13 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
42374
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),
|
|
42375
42547
|
type: _ === null || _ === void 0 ? void 0 : _.visit_type,
|
|
42376
42548
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display,
|
|
42377
|
-
|
|
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
|
+
})
|
|
42378
42556
|
};
|
|
42379
42557
|
}) : [];
|
|
42380
42558
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42419,25 +42597,33 @@ var GET_TRAIGE_DONE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDone"
|
|
|
42419
42597
|
case 5:
|
|
42420
42598
|
data = _context2.sent;
|
|
42421
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 (_) {
|
|
42422
|
-
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$;
|
|
42423
42601
|
|
|
42424
42602
|
return {
|
|
42425
|
-
img:
|
|
42426
|
-
|
|
42427
|
-
|
|
42428
|
-
|
|
42429
|
-
|
|
42430
|
-
|
|
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) {
|
|
42431
42611
|
var _spl$coding2, _spl$coding2$;
|
|
42432
42612
|
|
|
42433
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;
|
|
42434
42614
|
}).join(", "),
|
|
42435
42615
|
ward: "Ward 1",
|
|
42436
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
42437
|
-
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),
|
|
42438
42618
|
type: _ === null || _ === void 0 ? void 0 : _.visit_type,
|
|
42439
42619
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status2 = _.status) === null || _$status2 === void 0 ? void 0 : _$status2.display,
|
|
42440
|
-
|
|
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
|
+
})
|
|
42441
42627
|
};
|
|
42442
42628
|
}) : [];
|
|
42443
42629
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42482,25 +42668,33 @@ var GET_VISIT_COMPLETED = createAsyncThunk("currentVisitStatsApiSlice/getVisitCo
|
|
|
42482
42668
|
case 5:
|
|
42483
42669
|
data = _context3.sent;
|
|
42484
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 (_) {
|
|
42485
|
-
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$;
|
|
42486
42672
|
|
|
42487
42673
|
return {
|
|
42488
|
-
img:
|
|
42489
|
-
|
|
42490
|
-
|
|
42491
|
-
|
|
42492
|
-
|
|
42493
|
-
|
|
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) {
|
|
42494
42682
|
var _spl$coding3, _spl$coding3$;
|
|
42495
42683
|
|
|
42496
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;
|
|
42497
42685
|
}).join(", "),
|
|
42498
42686
|
ward: "Ward 1",
|
|
42499
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
42500
|
-
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),
|
|
42501
42689
|
type: _ === null || _ === void 0 ? void 0 : _.visit_type,
|
|
42502
42690
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status3 = _.status) === null || _$status3 === void 0 ? void 0 : _$status3.display,
|
|
42503
|
-
|
|
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
|
+
})
|
|
42504
42698
|
};
|
|
42505
42699
|
}) : [];
|
|
42506
42700
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42545,21 +42739,27 @@ var GET_PATIENTS_NO_SHOWS = createAsyncThunk("currentVisitStatsApiSlice/getPatie
|
|
|
42545
42739
|
case 5:
|
|
42546
42740
|
data = _context4.sent;
|
|
42547
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 (_) {
|
|
42548
|
-
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$;
|
|
42549
42743
|
|
|
42550
42744
|
return {
|
|
42551
|
-
img: "https://www.fillmurray.com/640/360",
|
|
42745
|
+
// img: "https://www.fillmurray.com/640/360",
|
|
42552
42746
|
name: "Louis Barrett",
|
|
42553
|
-
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 : "",
|
|
42554
42748
|
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
42555
42749
|
orderTime: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
42556
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 : "",
|
|
42557
42751
|
ward: "Ward 1",
|
|
42558
|
-
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 : "",
|
|
42559
42753
|
contact: "Contact",
|
|
42560
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 : "",
|
|
42561
42755
|
encounterStatus: "Pending",
|
|
42562
|
-
|
|
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
|
+
})
|
|
42563
42763
|
};
|
|
42564
42764
|
}) : [];
|
|
42565
42765
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42605,28 +42805,30 @@ var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/
|
|
|
42605
42805
|
case 5:
|
|
42606
42806
|
data = _context5.sent;
|
|
42607
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 (_) {
|
|
42608
|
-
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;
|
|
42609
42809
|
|
|
42610
42810
|
return {
|
|
42611
|
-
img:
|
|
42612
|
-
|
|
42613
|
-
|
|
42614
|
-
|
|
42615
|
-
|
|
42616
|
-
|
|
42617
|
-
|
|
42618
|
-
|
|
42619
|
-
|
|
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") : "",
|
|
42620
42822
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42621
|
-
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) {
|
|
42622
42824
|
var _spl$coding4, _spl$coding4$;
|
|
42623
42825
|
|
|
42624
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;
|
|
42625
42827
|
}).join(", "),
|
|
42626
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) || "",
|
|
42627
42829
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status4 = _.status) === null || _$status4 === void 0 ? void 0 : _$status4.display,
|
|
42628
|
-
"View Patient": true,
|
|
42629
|
-
|
|
42830
|
+
// "View Patient": true,
|
|
42831
|
+
action: true
|
|
42630
42832
|
};
|
|
42631
42833
|
}) : [];
|
|
42632
42834
|
return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42671,28 +42873,31 @@ var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getV
|
|
|
42671
42873
|
case 5:
|
|
42672
42874
|
data = _context6.sent;
|
|
42673
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 (_) {
|
|
42674
|
-
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;
|
|
42675
42877
|
|
|
42676
42878
|
return {
|
|
42677
|
-
img:
|
|
42678
|
-
|
|
42679
|
-
|
|
42680
|
-
|
|
42681
|
-
|
|
42682
|
-
|
|
42683
|
-
|
|
42684
|
-
|
|
42685
|
-
|
|
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") : "",
|
|
42686
42890
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42687
|
-
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) {
|
|
42688
42892
|
var _spl$coding5, _spl$coding5$;
|
|
42689
42893
|
|
|
42690
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;
|
|
42691
42895
|
}).join(", "),
|
|
42692
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) || "",
|
|
42693
42897
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display,
|
|
42694
|
-
"View Patient": true,
|
|
42695
|
-
Attend: true
|
|
42898
|
+
// "View Patient": true,
|
|
42899
|
+
// Attend: true,
|
|
42900
|
+
action: true
|
|
42696
42901
|
};
|
|
42697
42902
|
}) : [];
|
|
42698
42903
|
return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42737,14 +42942,14 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
42737
42942
|
case 5:
|
|
42738
42943
|
data = _context7.sent;
|
|
42739
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 (_) {
|
|
42740
|
-
var _$
|
|
42945
|
+
var _$PersonID2, _$PersonID2$, _$PersonID2$$name, _$PersonID2$$name$, _$PersonID3, _$PersonID3$, _$type2, _$type2$, _$practitioner_detail8, _$practitioner_detail9;
|
|
42741
42946
|
|
|
42742
42947
|
return {
|
|
42743
|
-
img: "https://www.fillmurray.com/640/360",
|
|
42744
|
-
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,
|
|
42745
42950
|
mrn: "MRN",
|
|
42746
42951
|
age: "Age",
|
|
42747
|
-
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,
|
|
42748
42953
|
contact: "Contact",
|
|
42749
42954
|
refNo: "Ref No",
|
|
42750
42955
|
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
@@ -42753,8 +42958,9 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
42753
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,
|
|
42754
42959
|
clinic: "Clinic",
|
|
42755
42960
|
encounterStatus: "Pending",
|
|
42756
|
-
"View Patient": true,
|
|
42757
|
-
Attend: true
|
|
42961
|
+
// "View Patient": true,
|
|
42962
|
+
// Attend: true,
|
|
42963
|
+
action: true
|
|
42758
42964
|
};
|
|
42759
42965
|
}) : [];
|
|
42760
42966
|
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42799,28 +43005,31 @@ var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriag
|
|
|
42799
43005
|
case 5:
|
|
42800
43006
|
data = _context8.sent;
|
|
42801
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 (_) {
|
|
42802
|
-
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;
|
|
42803
43009
|
|
|
42804
43010
|
return {
|
|
42805
|
-
img:
|
|
42806
|
-
|
|
42807
|
-
|
|
42808
|
-
|
|
42809
|
-
|
|
42810
|
-
|
|
42811
|
-
|
|
42812
|
-
|
|
42813
|
-
|
|
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") : "",
|
|
42814
43022
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42815
|
-
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) {
|
|
42816
43024
|
var _spl$coding6, _spl$coding6$;
|
|
42817
43025
|
|
|
42818
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;
|
|
42819
43027
|
}).join(", "),
|
|
42820
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) || "",
|
|
42821
43029
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status6 = _.status) === null || _$status6 === void 0 ? void 0 : _$status6.display,
|
|
42822
|
-
"View Patient": true,
|
|
42823
|
-
Attend: true
|
|
43030
|
+
// "View Patient": true,
|
|
43031
|
+
// Attend: true,
|
|
43032
|
+
action: true
|
|
42824
43033
|
};
|
|
42825
43034
|
}) : [];
|
|
42826
43035
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42866,14 +43075,14 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
42866
43075
|
case 5:
|
|
42867
43076
|
data = _context9.sent;
|
|
42868
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 (_) {
|
|
42869
|
-
var _$
|
|
43078
|
+
var _$PersonID4, _$PersonID4$, _$PersonID4$$name, _$PersonID4$$name$, _$PersonID5, _$PersonID5$, _$type3, _$type3$, _$practitioner_detail12, _$practitioner_detail13;
|
|
42870
43079
|
|
|
42871
43080
|
return {
|
|
42872
|
-
img: "https://www.fillmurray.com/640/360",
|
|
42873
|
-
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,
|
|
42874
43083
|
mrn: "MRN",
|
|
42875
43084
|
age: "Age",
|
|
42876
|
-
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,
|
|
42877
43086
|
contact: "Contact",
|
|
42878
43087
|
refNo: "Ref No",
|
|
42879
43088
|
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
@@ -42882,8 +43091,9 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
42882
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,
|
|
42883
43092
|
clinic: "Clinic",
|
|
42884
43093
|
encounterStatus: "Pending",
|
|
42885
|
-
"View Patient": true,
|
|
42886
|
-
Attend: true
|
|
43094
|
+
// "View Patient": true,
|
|
43095
|
+
// Attend: true,
|
|
43096
|
+
action: true
|
|
42887
43097
|
};
|
|
42888
43098
|
}) : [];
|
|
42889
43099
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42928,28 +43138,31 @@ var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice
|
|
|
42928
43138
|
case 5:
|
|
42929
43139
|
data = _context10.sent;
|
|
42930
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 (_) {
|
|
42931
|
-
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;
|
|
42932
43142
|
|
|
42933
43143
|
return {
|
|
42934
|
-
img:
|
|
42935
|
-
|
|
42936
|
-
|
|
42937
|
-
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
|
|
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") : "",
|
|
42943
43155
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
42944
|
-
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) {
|
|
42945
43157
|
var _spl$coding7, _spl$coding7$;
|
|
42946
43158
|
|
|
42947
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;
|
|
42948
43160
|
}).join(", "),
|
|
42949
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) || "",
|
|
42950
43162
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status7 = _.status) === null || _$status7 === void 0 ? void 0 : _$status7.display,
|
|
42951
|
-
"View Patient": true,
|
|
42952
|
-
Attend: true
|
|
43163
|
+
// "View Patient": true,
|
|
43164
|
+
// Attend: true,
|
|
43165
|
+
action: true
|
|
42953
43166
|
};
|
|
42954
43167
|
}) : [];
|
|
42955
43168
|
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -42994,28 +43207,31 @@ var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/get
|
|
|
42994
43207
|
case 5:
|
|
42995
43208
|
data = _context11.sent;
|
|
42996
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 (_) {
|
|
42997
|
-
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;
|
|
42998
43211
|
|
|
42999
43212
|
return {
|
|
43000
|
-
img:
|
|
43001
|
-
|
|
43002
|
-
|
|
43003
|
-
|
|
43004
|
-
|
|
43005
|
-
|
|
43006
|
-
|
|
43007
|
-
|
|
43008
|
-
|
|
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") : "",
|
|
43009
43224
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
43010
|
-
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) {
|
|
43011
43226
|
var _spl$coding8, _spl$coding8$;
|
|
43012
43227
|
|
|
43013
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;
|
|
43014
43229
|
}).join(", "),
|
|
43015
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) || "",
|
|
43016
43231
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status8 = _.status) === null || _$status8 === void 0 ? void 0 : _$status8.display,
|
|
43017
|
-
"View Patient": true,
|
|
43018
|
-
Attend: true
|
|
43232
|
+
// "View Patient": true,
|
|
43233
|
+
// Attend: true,
|
|
43234
|
+
action: true
|
|
43019
43235
|
};
|
|
43020
43236
|
}) : [];
|
|
43021
43237
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -43060,28 +43276,31 @@ var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTria
|
|
|
43060
43276
|
case 5:
|
|
43061
43277
|
data = _context12.sent;
|
|
43062
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 (_) {
|
|
43063
|
-
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;
|
|
43064
43280
|
|
|
43065
43281
|
return {
|
|
43066
|
-
img:
|
|
43067
|
-
|
|
43068
|
-
|
|
43069
|
-
|
|
43070
|
-
|
|
43071
|
-
|
|
43072
|
-
|
|
43073
|
-
|
|
43074
|
-
|
|
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") : "",
|
|
43075
43293
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
43076
|
-
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) {
|
|
43077
43295
|
var _spl$coding9, _spl$coding9$;
|
|
43078
43296
|
|
|
43079
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;
|
|
43080
43298
|
}).join(", "),
|
|
43081
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) || "",
|
|
43082
43300
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status9 = _.status) === null || _$status9 === void 0 ? void 0 : _$status9.display,
|
|
43083
|
-
"View Patient": true,
|
|
43084
|
-
Attend: true
|
|
43301
|
+
// "View Patient": true,
|
|
43302
|
+
// Attend: true,
|
|
43303
|
+
action: true
|
|
43085
43304
|
};
|
|
43086
43305
|
}) : [];
|
|
43087
43306
|
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|