primarycare-binder 1.1.21 → 1.1.22
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 +245 -224
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8016,7 +8016,7 @@ var query_ids = {
|
|
|
8016
8016
|
"db_name": dbName,
|
|
8017
8017
|
"entity": "Schedule",
|
|
8018
8018
|
"filter": "Schedule.start >= ".concat(start, " AND Schedule.end <= ").concat(end, " AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ").concat(id),
|
|
8019
|
-
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.status!='blocked' AND slt.start >= ".concat(moment().unix(), " AND slt.activestatus==true sort slt._id asc RETURN merge(slt, {DayType: Document(slt.DayType)}))})")
|
|
8019
|
+
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.status!='blocked' AND slt.start >= ".concat(moment.utc().unix(), " AND slt.activestatus==true sort slt._id asc RETURN merge(slt, {DayType: Document(slt.DayType)}))})")
|
|
8020
8020
|
};
|
|
8021
8021
|
} // query: ({ start, end, id }) => ({
|
|
8022
8022
|
// "db_name": dbName,
|
|
@@ -9534,6 +9534,27 @@ var getImgUrl = function getImgUrl(fileId) {
|
|
|
9534
9534
|
return fileId ? "".concat(__imgdownloadBaseUrl__).concat(fileId) : "";
|
|
9535
9535
|
};
|
|
9536
9536
|
|
|
9537
|
+
var getUtcTime = function getUtcTime(date) {
|
|
9538
|
+
if (date) {
|
|
9539
|
+
return moment.utc(date).unix();
|
|
9540
|
+
} else {
|
|
9541
|
+
return moment.utc().unix();
|
|
9542
|
+
}
|
|
9543
|
+
};
|
|
9544
|
+
|
|
9545
|
+
var utcTOLocal$1 = function utcTOLocal(date, format) {
|
|
9546
|
+
var Ndate = new Date();
|
|
9547
|
+
|
|
9548
|
+
if (typeof date === "number") {
|
|
9549
|
+
Ndate = moment.unix(date);
|
|
9550
|
+
} else {
|
|
9551
|
+
Ndate = moment(date);
|
|
9552
|
+
}
|
|
9553
|
+
|
|
9554
|
+
var fmt = format ? format : "DD-MM-YYYY";
|
|
9555
|
+
return moment.utc(Ndate).local().format(fmt);
|
|
9556
|
+
};
|
|
9557
|
+
|
|
9537
9558
|
var deg2rad = function deg2rad(deg) {
|
|
9538
9559
|
return deg * (Math.PI / 180);
|
|
9539
9560
|
};
|
|
@@ -10447,7 +10468,7 @@ var UPSERT_CANCEL_APP_PATIENT = createAsyncThunk("patientReducer/cancelAapp", /*
|
|
|
10447
10468
|
_payload$personId = payload.personId, personId = _payload$personId === void 0 ? 0 : _payload$personId;
|
|
10448
10469
|
body = {
|
|
10449
10470
|
personId: personId,
|
|
10450
|
-
startDateTime:
|
|
10471
|
+
startDateTime: utcTOLocal$1()
|
|
10451
10472
|
};
|
|
10452
10473
|
_context9.next = 7;
|
|
10453
10474
|
return fetchData$3({
|
|
@@ -10872,7 +10893,8 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10872
10893
|
_payload$type,
|
|
10873
10894
|
type,
|
|
10874
10895
|
slotID,
|
|
10875
|
-
|
|
10896
|
+
Sdate,
|
|
10897
|
+
Edate,
|
|
10876
10898
|
startdate,
|
|
10877
10899
|
enddate,
|
|
10878
10900
|
isClinic,
|
|
@@ -10969,9 +10991,12 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10969
10991
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
10970
10992
|
_context4.prev = 2;
|
|
10971
10993
|
_payload$start = payload.start, start = _payload$start === void 0 ? 0 : _payload$start, _payload$id = payload.id, id = _payload$id === void 0 ? [0] : _payload$id, _payload$HealthcareSe = payload.HealthcareServiceID, HealthcareServiceID = _payload$HealthcareSe === void 0 ? [] : _payload$HealthcareSe, _payload$type = payload.type, type = _payload$type === void 0 ? "" : _payload$type, slotID = payload.slotID;
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10994
|
+
Sdate = new Date(start * 1000);
|
|
10995
|
+
Edate = new Date(start * 1000);
|
|
10996
|
+
startdate = Sdate;
|
|
10997
|
+
enddate = Edate;
|
|
10998
|
+
startdate.setHours(0, 0, 0, 0);
|
|
10999
|
+
enddate.setHours(23, 59, 59, 999);
|
|
10975
11000
|
isClinic = false;
|
|
10976
11001
|
|
|
10977
11002
|
if (type === "clinicid") {
|
|
@@ -10994,24 +11019,24 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10994
11019
|
delete inputData["filter"]["healthCareId"];
|
|
10995
11020
|
}
|
|
10996
11021
|
|
|
10997
|
-
_context4.next =
|
|
11022
|
+
_context4.next = 16;
|
|
10998
11023
|
return fetchData$3({
|
|
10999
11024
|
body: JSON.stringify(inputData)
|
|
11000
11025
|
});
|
|
11001
11026
|
|
|
11002
|
-
case
|
|
11027
|
+
case 16:
|
|
11003
11028
|
practData = _context4.sent;
|
|
11004
11029
|
body = query_ids["slotApiSlice/readSlot"]["query"]({
|
|
11005
|
-
start: startdate,
|
|
11006
|
-
end: enddate,
|
|
11030
|
+
start: getUtcTime(startdate),
|
|
11031
|
+
end: getUtcTime(enddate),
|
|
11007
11032
|
id: (_practData$ = practData[0]) === null || _practData$ === void 0 ? void 0 : _practData$.id
|
|
11008
11033
|
});
|
|
11009
|
-
_context4.next =
|
|
11034
|
+
_context4.next = 20;
|
|
11010
11035
|
return fetchData$3({
|
|
11011
11036
|
body: JSON.stringify(body)
|
|
11012
11037
|
}, __readDocumentUrl__);
|
|
11013
11038
|
|
|
11014
|
-
case
|
|
11039
|
+
case 20:
|
|
11015
11040
|
resp = _context4.sent;
|
|
11016
11041
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || {};
|
|
11017
11042
|
slots = (data === null || data === void 0 ? void 0 : data.slots) || [];
|
|
@@ -11126,19 +11151,19 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11126
11151
|
data: [info]
|
|
11127
11152
|
}));
|
|
11128
11153
|
|
|
11129
|
-
case
|
|
11130
|
-
_context4.prev =
|
|
11154
|
+
case 30:
|
|
11155
|
+
_context4.prev = 30;
|
|
11131
11156
|
_context4.t0 = _context4["catch"](2);
|
|
11132
11157
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
11133
11158
|
message: _context4.t0.message
|
|
11134
11159
|
})));
|
|
11135
11160
|
|
|
11136
|
-
case
|
|
11161
|
+
case 33:
|
|
11137
11162
|
case "end":
|
|
11138
11163
|
return _context4.stop();
|
|
11139
11164
|
}
|
|
11140
11165
|
}
|
|
11141
|
-
}, _callee4, null, [[2,
|
|
11166
|
+
}, _callee4, null, [[2, 30]]);
|
|
11142
11167
|
}))); // end
|
|
11143
11168
|
// APPOINTMENT_READ
|
|
11144
11169
|
|
|
@@ -11243,14 +11268,14 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11243
11268
|
currentVisist: []
|
|
11244
11269
|
};
|
|
11245
11270
|
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$past_appointm = _data$2.past_appointment) === null || _data$2$past_appointm === void 0 ? void 0 : (_data$2$past_appointm2 = _data$2$past_appointm.forEach) === null || _data$2$past_appointm2 === void 0 ? void 0 : _data$2$past_appointm2.call(_data$2$past_appointm, function (v) {
|
|
11246
|
-
if (assemble && moment((v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11271
|
+
if (assemble && moment(utcTOLocal$1(v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11247
11272
|
returnData.currentVisist.push(v);
|
|
11248
11273
|
} else {
|
|
11249
11274
|
returnData.pastAppointment.push(v);
|
|
11250
11275
|
}
|
|
11251
11276
|
});
|
|
11252
11277
|
(_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$upcoming_appo = _data$3.upcoming_appointment) === null || _data$3$upcoming_appo === void 0 ? void 0 : (_data$3$upcoming_appo2 = _data$3$upcoming_appo.forEach) === null || _data$3$upcoming_appo2 === void 0 ? void 0 : _data$3$upcoming_appo2.call(_data$3$upcoming_appo, function (v) {
|
|
11253
|
-
if (assemble && moment((v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11278
|
+
if (assemble && moment(utcTOLocal$1(v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11254
11279
|
returnData.currentVisist.push(v);
|
|
11255
11280
|
} else {
|
|
11256
11281
|
returnData.upcomingAppointment.push(v);
|
|
@@ -11705,11 +11730,15 @@ var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppo
|
|
|
11705
11730
|
_context13.prev = 2;
|
|
11706
11731
|
_payload$start3 = payload.start, start = _payload$start3 === void 0 ? [] : _payload$start3, _payload$practionerid = payload.practionerid, practionerid = _payload$practionerid === void 0 ? 0 : _payload$practionerid, _payload$clinicid = payload.clinicid, clinicid = _payload$clinicid === void 0 ? 0 : _payload$clinicid;
|
|
11707
11732
|
date = start.map(function (d) {
|
|
11708
|
-
var startDate =
|
|
11709
|
-
var endDate =
|
|
11733
|
+
var startDate = new Date();
|
|
11734
|
+
var endDate = new Date();
|
|
11735
|
+
startDate = new Date(d * 1000);
|
|
11736
|
+
debugger;
|
|
11737
|
+
endDate = new Date(d * 1000);
|
|
11738
|
+
endDate.setHours(23, 59, 59, 999);
|
|
11710
11739
|
return {
|
|
11711
|
-
start: startDate,
|
|
11712
|
-
end: endDate
|
|
11740
|
+
start: getUtcTime(startDate),
|
|
11741
|
+
end: getUtcTime(endDate)
|
|
11713
11742
|
};
|
|
11714
11743
|
});
|
|
11715
11744
|
input = {
|
|
@@ -11866,8 +11895,8 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
|
|
|
11866
11895
|
statushistory.push({
|
|
11867
11896
|
status: encounterStatus,
|
|
11868
11897
|
period: [{
|
|
11869
|
-
start:
|
|
11870
|
-
end:
|
|
11898
|
+
start: getUtcTime(),
|
|
11899
|
+
end: getUtcTime(),
|
|
11871
11900
|
id: 0
|
|
11872
11901
|
}]
|
|
11873
11902
|
});
|
|
@@ -13709,9 +13738,10 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13709
13738
|
var payload,
|
|
13710
13739
|
_ref3,
|
|
13711
13740
|
rejectWithValue,
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
13741
|
+
Sdate,
|
|
13742
|
+
Edate,
|
|
13743
|
+
startDate,
|
|
13744
|
+
endDate,
|
|
13715
13745
|
hospital,
|
|
13716
13746
|
specialities,
|
|
13717
13747
|
latitude,
|
|
@@ -13737,24 +13767,30 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13737
13767
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
13738
13768
|
_ref3 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref3.rejectWithValue;
|
|
13739
13769
|
_context2.prev = 2;
|
|
13740
|
-
|
|
13770
|
+
Sdate = new Date();
|
|
13771
|
+
Edate = new Date();
|
|
13741
13772
|
|
|
13742
13773
|
if (payload.date) {
|
|
13743
|
-
|
|
13744
|
-
|
|
13774
|
+
Sdate = new Date(payload.date);
|
|
13775
|
+
Edate = new Date(payload.date);
|
|
13776
|
+
} // let startTime = Sdate.setHours(0, 0, 0, 0);
|
|
13777
|
+
// let endTime = Sdate.setHours(23, 59, 59, 999);
|
|
13745
13778
|
|
|
13746
|
-
|
|
13747
|
-
|
|
13779
|
+
|
|
13780
|
+
startDate = Sdate;
|
|
13781
|
+
endDate = Edate;
|
|
13782
|
+
startDate.setHours(0, 0, 0, 0);
|
|
13783
|
+
endDate.setHours(23, 59, 59, 999);
|
|
13748
13784
|
hospital = payload.hospital, specialities = payload.specialities, latitude = payload.latitude, longtitude = payload.longtitude, _payload$doctorId = payload.doctorId, doctorId = _payload$doctorId === void 0 ? 0 : _payload$doctorId;
|
|
13749
13785
|
body = {
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13786
|
+
db_name: dbName,
|
|
13787
|
+
queryid: query_ids.doctorListing,
|
|
13788
|
+
filter: {
|
|
13789
|
+
org_id: hospital,
|
|
13754
13790
|
// "Organization": hospital + "/10000",
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13791
|
+
speciality: specialities,
|
|
13792
|
+
startdate: getUtcTime(startDate),
|
|
13793
|
+
enddate: getUtcTime(endDate) // "latitude": latitude,
|
|
13758
13794
|
// "longtitude": longtitude,
|
|
13759
13795
|
// "startdate": 1614836455,
|
|
13760
13796
|
// "enddate" : 1622785255
|
|
@@ -13769,8 +13805,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13769
13805
|
"filter": {
|
|
13770
13806
|
"org_id": hospital,
|
|
13771
13807
|
"practionerId": doctorId,
|
|
13772
|
-
"startdate":
|
|
13773
|
-
"enddate":
|
|
13808
|
+
"startdate": getUtcTime(startTime),
|
|
13809
|
+
"enddate": getUtcTime(endTime)
|
|
13774
13810
|
}
|
|
13775
13811
|
};
|
|
13776
13812
|
} // body = {
|
|
@@ -13787,12 +13823,12 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13787
13823
|
// }
|
|
13788
13824
|
|
|
13789
13825
|
|
|
13790
|
-
_context2.next =
|
|
13826
|
+
_context2.next = 15;
|
|
13791
13827
|
return fetchData$3({
|
|
13792
13828
|
body: JSON.stringify(body)
|
|
13793
13829
|
});
|
|
13794
13830
|
|
|
13795
|
-
case
|
|
13831
|
+
case 15:
|
|
13796
13832
|
data = _context2.sent;
|
|
13797
13833
|
returnData = [];
|
|
13798
13834
|
allLangs = new Set();
|
|
@@ -13998,17 +14034,17 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13998
14034
|
});
|
|
13999
14035
|
}
|
|
14000
14036
|
|
|
14001
|
-
_context2.next =
|
|
14037
|
+
_context2.next = 22;
|
|
14002
14038
|
return getCurrentPosition();
|
|
14003
14039
|
|
|
14004
|
-
case
|
|
14040
|
+
case 22:
|
|
14005
14041
|
_yield$getCurrentPosi = _context2.sent;
|
|
14006
14042
|
myLat = _yield$getCurrentPosi.lat;
|
|
14007
14043
|
myLong = _yield$getCurrentPosi["long"];
|
|
14008
14044
|
locationInfo = {};
|
|
14009
14045
|
|
|
14010
14046
|
if (!(myLat && myLong)) {
|
|
14011
|
-
_context2.next =
|
|
14047
|
+
_context2.next = 31;
|
|
14012
14048
|
break;
|
|
14013
14049
|
}
|
|
14014
14050
|
|
|
@@ -14020,34 +14056,34 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
14020
14056
|
"long": myLong
|
|
14021
14057
|
}, city, locationInfo);
|
|
14022
14058
|
});
|
|
14023
|
-
_context2.next =
|
|
14059
|
+
_context2.next = 30;
|
|
14024
14060
|
return es6Promise.Promise.all(promArr);
|
|
14025
14061
|
|
|
14026
|
-
case
|
|
14062
|
+
case 30:
|
|
14027
14063
|
returnData.forEach(function (d) {
|
|
14028
14064
|
d.kms = locationInfo[d.city] || "0 Kms";
|
|
14029
14065
|
});
|
|
14030
14066
|
|
|
14031
|
-
case
|
|
14067
|
+
case 31:
|
|
14032
14068
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
14033
14069
|
data: returnData,
|
|
14034
14070
|
allLangs: _toConsumableArray(allLangs)
|
|
14035
14071
|
}));
|
|
14036
14072
|
|
|
14037
|
-
case
|
|
14038
|
-
_context2.prev =
|
|
14073
|
+
case 34:
|
|
14074
|
+
_context2.prev = 34;
|
|
14039
14075
|
_context2.t0 = _context2["catch"](2);
|
|
14040
14076
|
console.log(_context2.t0);
|
|
14041
14077
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14042
14078
|
message: _context2.t0.message
|
|
14043
14079
|
})));
|
|
14044
14080
|
|
|
14045
|
-
case
|
|
14081
|
+
case 38:
|
|
14046
14082
|
case "end":
|
|
14047
14083
|
return _context2.stop();
|
|
14048
14084
|
}
|
|
14049
14085
|
}
|
|
14050
|
-
}, _callee2, null, [[2,
|
|
14086
|
+
}, _callee2, null, [[2, 34]]);
|
|
14051
14087
|
}))); // end
|
|
14052
14088
|
// FUZZY SEARCH CREATE INITIALSTATE
|
|
14053
14089
|
|
|
@@ -14350,7 +14386,7 @@ var GET_HOSPITALS_LOCALITY = createAsyncThunk("searhcApiSlice/getHospitals", /*#
|
|
|
14350
14386
|
db_name: dbName,
|
|
14351
14387
|
queryid: query_ids["searhcApiSlice/getHospitals"],
|
|
14352
14388
|
filter: {
|
|
14353
|
-
city: city // location,
|
|
14389
|
+
city: (location === null || location === void 0 ? void 0 : location.locality) || city // location,
|
|
14354
14390
|
// "city": "Mumbai",
|
|
14355
14391
|
// "location": "Bandra West"
|
|
14356
14392
|
|
|
@@ -18858,7 +18894,7 @@ var dashboardQuery = {
|
|
|
18858
18894
|
followupUOM: data === null || data === void 0 ? void 0 : data.followupUOM,
|
|
18859
18895
|
reasonCode: data === null || data === void 0 ? void 0 : data.reasonCode,
|
|
18860
18896
|
followupReqd: data === null || data === void 0 ? void 0 : data.followupReqd,
|
|
18861
|
-
encounterenddate: (data === null || data === void 0 ? void 0 : data.encounterenddate) ?
|
|
18897
|
+
encounterenddate: (data === null || data === void 0 ? void 0 : data.encounterenddate) ? getUtcTime(data === null || data === void 0 ? void 0 : data.encounterenddate) : null,
|
|
18862
18898
|
status: status,
|
|
18863
18899
|
statushistory: [{
|
|
18864
18900
|
status: status,
|
|
@@ -19826,8 +19862,8 @@ var FOLLOW_UP_COUNT = createAsyncThunk("dashboardApiSlice/followUpCount", /*#__P
|
|
|
19826
19862
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
19827
19863
|
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
19828
19864
|
_context15.prev = 2;
|
|
19829
|
-
startDate = moment().startOf("day")
|
|
19830
|
-
endDate = moment().endOf("day")
|
|
19865
|
+
startDate = getUtcTime(moment().startOf("day"));
|
|
19866
|
+
endDate = getUtcTime(moment().endOf("day"));
|
|
19831
19867
|
_context15.next = 7;
|
|
19832
19868
|
return fetchData$3({
|
|
19833
19869
|
body: JSON.stringify({
|
|
@@ -20196,9 +20232,9 @@ var generateReadJSON = function generateReadJSON(data) {
|
|
|
20196
20232
|
|
|
20197
20233
|
var json = {
|
|
20198
20234
|
visitType: (_data$Encounter$visit = data === null || data === void 0 ? void 0 : (_data$Encounter = data.Encounter) === null || _data$Encounter === void 0 ? void 0 : _data$Encounter.visit_type) !== null && _data$Encounter$visit !== void 0 ? _data$Encounter$visit : "",
|
|
20199
|
-
encounterDate: (data === null || data === void 0 ? void 0 : (_data$Encounter2 = data.Encounter) === null || _data$Encounter2 === void 0 ? void 0 : _data$Encounter2.encounterdate) ?
|
|
20235
|
+
encounterDate: (data === null || data === void 0 ? void 0 : (_data$Encounter2 = data.Encounter) === null || _data$Encounter2 === void 0 ? void 0 : _data$Encounter2.encounterdate) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$Encounter3 = data.Encounter) === null || _data$Encounter3 === void 0 ? void 0 : _data$Encounter3.encounterdate, "DD MMM,YYYY hh:mm A") : "",
|
|
20200
20236
|
reasonCode: (_data$Encounter$reaso = data === null || data === void 0 ? void 0 : (_data$Encounter4 = data.Encounter) === null || _data$Encounter4 === void 0 ? void 0 : (_data$Encounter4$reas = _data$Encounter4.reasonReference) === null || _data$Encounter4$reas === void 0 ? void 0 : _data$Encounter4$reas.display) !== null && _data$Encounter$reaso !== void 0 ? _data$Encounter$reaso : "",
|
|
20201
|
-
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$Appointment = data.Appointment) === null || _data$Appointment === void 0 ? void 0 : _data$Appointment.start) ?
|
|
20237
|
+
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$Appointment = data.Appointment) === null || _data$Appointment === void 0 ? void 0 : _data$Appointment.start) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$Appointment2 = data.Appointment) === null || _data$Appointment2 === void 0 ? void 0 : _data$Appointment2.start, "DD MMM,YYYY hh:mm A") : "",
|
|
20202
20238
|
consultationMode: (_data$Appointment$con = data === null || data === void 0 ? void 0 : (_data$Appointment3 = data.Appointment) === null || _data$Appointment3 === void 0 ? void 0 : _data$Appointment3.consultationMode) !== null && _data$Appointment$con !== void 0 ? _data$Appointment$con : "",
|
|
20203
20239
|
appointmentReason: (data === null || data === void 0 ? void 0 : (_data$Appointment4 = data.Appointment) === null || _data$Appointment4 === void 0 ? void 0 : _data$Appointment4.appointmentReason) && Array.isArray(data === null || data === void 0 ? void 0 : (_data$Appointment5 = data.Appointment) === null || _data$Appointment5 === void 0 ? void 0 : _data$Appointment5.appointmentReason) ? data === null || data === void 0 ? void 0 : (_data$Appointment6 = data.Appointment) === null || _data$Appointment6 === void 0 ? void 0 : (_data$Appointment6$ap = _data$Appointment6.appointmentReason) === null || _data$Appointment6$ap === void 0 ? void 0 : _data$Appointment6$ap.join(",") : "",
|
|
20204
20240
|
//PATIENT DEATAIL
|
|
@@ -20265,7 +20301,7 @@ var ASSIGN_LIST = createAsyncThunk("dashboardApiSlice/assignList", /*#__PURE__*/
|
|
|
20265
20301
|
case 12:
|
|
20266
20302
|
_context22.prev = 12;
|
|
20267
20303
|
_context22.t0 = _context22["catch"](2);
|
|
20268
|
-
|
|
20304
|
+
debugger;
|
|
20269
20305
|
return _context22.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20270
20306
|
message: _context22.t0.message
|
|
20271
20307
|
})));
|
|
@@ -20283,9 +20319,9 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
20283
20319
|
|
|
20284
20320
|
var json = {
|
|
20285
20321
|
visitType: (_data$Encounter$visit2 = data === null || data === void 0 ? void 0 : (_data$Encounter23 = data.Encounter) === null || _data$Encounter23 === void 0 ? void 0 : _data$Encounter23.visit_type) !== null && _data$Encounter$visit2 !== void 0 ? _data$Encounter$visit2 : "",
|
|
20286
|
-
encounterDate: (data === null || data === void 0 ? void 0 : (_data$Encounter24 = data.Encounter) === null || _data$Encounter24 === void 0 ? void 0 : _data$Encounter24.encounterdate) ?
|
|
20322
|
+
encounterDate: (data === null || data === void 0 ? void 0 : (_data$Encounter24 = data.Encounter) === null || _data$Encounter24 === void 0 ? void 0 : _data$Encounter24.encounterdate) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$Encounter25 = data.Encounter) === null || _data$Encounter25 === void 0 ? void 0 : _data$Encounter25.encounterdate, "DD MMM,YYYY hh:mm A") : "",
|
|
20287
20323
|
reasonCode: (_data$Encounter$reaso2 = data === null || data === void 0 ? void 0 : (_data$Encounter26 = data.Encounter) === null || _data$Encounter26 === void 0 ? void 0 : (_data$Encounter26$rea = _data$Encounter26.reasonReference) === null || _data$Encounter26$rea === void 0 ? void 0 : _data$Encounter26$rea.display) !== null && _data$Encounter$reaso2 !== void 0 ? _data$Encounter$reaso2 : "",
|
|
20288
|
-
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$Appointment7 = data.Appointment) === null || _data$Appointment7 === void 0 ? void 0 : _data$Appointment7.start) ?
|
|
20324
|
+
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$Appointment7 = data.Appointment) === null || _data$Appointment7 === void 0 ? void 0 : _data$Appointment7.start) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$Appointment8 = data.Appointment) === null || _data$Appointment8 === void 0 ? void 0 : _data$Appointment8.start, "DD MMM,YYYY hh:mm A") : "",
|
|
20289
20325
|
consultationMode: (_data$Appointment$con2 = data === null || data === void 0 ? void 0 : (_data$Appointment9 = data.Appointment) === null || _data$Appointment9 === void 0 ? void 0 : _data$Appointment9.consultationMode) !== null && _data$Appointment$con2 !== void 0 ? _data$Appointment$con2 : "",
|
|
20290
20326
|
appointmentReason: (data === null || data === void 0 ? void 0 : (_data$Appointment10 = data.Appointment) === null || _data$Appointment10 === void 0 ? void 0 : _data$Appointment10.appointmentReason) && Array.isArray(data === null || data === void 0 ? void 0 : (_data$Appointment11 = data.Appointment) === null || _data$Appointment11 === void 0 ? void 0 : _data$Appointment11.appointmentReason) ? data === null || data === void 0 ? void 0 : (_data$Appointment12 = data.Appointment) === null || _data$Appointment12 === void 0 ? void 0 : (_data$Appointment12$a = _data$Appointment12.appointmentReason) === null || _data$Appointment12$a === void 0 ? void 0 : _data$Appointment12$a.join(",") : "",
|
|
20291
20327
|
//PATIENT DEATAIL
|
|
@@ -20316,9 +20352,9 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
20316
20352
|
|
|
20317
20353
|
var json = {
|
|
20318
20354
|
visitType: (_data$visit_type = data === null || data === void 0 ? void 0 : data.visit_type) !== null && _data$visit_type !== void 0 ? _data$visit_type : "",
|
|
20319
|
-
encounterDate: (data === null || data === void 0 ? void 0 : data.encounterdate) ?
|
|
20355
|
+
encounterDate: (data === null || data === void 0 ? void 0 : data.encounterdate) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : data.encounterdate, "DD MMM,YYYY hh:mm A") : "",
|
|
20320
20356
|
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 : "",
|
|
20321
|
-
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$appointmentId = data.appointmentId) === null || _data$appointmentId === void 0 ? void 0 : _data$appointmentId.start) ?
|
|
20357
|
+
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") : "",
|
|
20322
20358
|
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 : "",
|
|
20323
20359
|
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$.join(",") : "",
|
|
20324
20360
|
//PATIENT DEATAIL
|
|
@@ -20435,12 +20471,11 @@ var REASSIGN_LIST = createAsyncThunk("dashboardApiSlice/reassignList", /*#__PURE
|
|
|
20435
20471
|
case 11:
|
|
20436
20472
|
_context23.prev = 11;
|
|
20437
20473
|
_context23.t0 = _context23["catch"](2);
|
|
20438
|
-
alert("error");
|
|
20439
20474
|
return _context23.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20440
20475
|
message: _context23.t0.message
|
|
20441
20476
|
})));
|
|
20442
20477
|
|
|
20443
|
-
case
|
|
20478
|
+
case 14:
|
|
20444
20479
|
case "end":
|
|
20445
20480
|
return _context23.stop();
|
|
20446
20481
|
}
|
|
@@ -21444,7 +21479,7 @@ var queries$9 = {
|
|
|
21444
21479
|
// "return_fields": "MERGE(Encounter, {practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:MERGE(DOCUMENT(practdet.speciality),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(practdet.speciality).coding) RETURN DOCUMENT(cod))})})),Patient: (for p in Patient filter p.id == Encounter.patient_id let hname = (FOR hn IN HumanNameMaster filter hn._id in p.name RETURN merge(hn,{prefix:document(hn.prefix)},{suffix:document(hn.suffix)},{use:document(hn.use)})) let gender = document(p.gender) let pidentifier = (FOR hn IN p.identifier RETURN DOCUMENT(hn)) return MERGE(p, {name: hname, pidentifier,gender})) })"
|
|
21445
21480
|
// }`,
|
|
21446
21481
|
encounterDetails: function encounterDetails(encounterId) {
|
|
21447
|
-
return "{\n \"db_name\": \"primarycare\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.id == ".concat(encounterId, "\",\n \"return_fields\": \"MERGE(Encounter, {practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:MERGE(DOCUMENT(practdet.speciality),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(practdet.speciality).coding) RETURN DOCUMENT(cod))})})),Patient: (for p in Patient filter p.id == Encounter.patient_id let hname = (FOR hn IN HumanNameMaster filter hn._id in p.name RETURN merge(hn,{prefix:document(hn.prefix)},{suffix:document(hn.suffix)},{use:document(hn.use)})) let gender = document(p.gender) let pidentifier = (FOR hn IN p.identifier RETURN DOCUMENT(hn)) return MERGE(p, {name: hname, pidentifier,gender,communicationLanguage:document(p.communicationLanguage)})) })\"\n }");
|
|
21482
|
+
return "{\n \"db_name\": \"primarycare\",\n \"entity\": \"Encounter\",\n \"filter\": \"Encounter.id == ".concat(encounterId, "\",\n \"return_fields\": \"MERGE(Encounter, {practitioner_details:(FOR practdet IN TO_ARRAY(Encounter.practitioner_details) RETURN MERGE(practdet,{speciality:MERGE(DOCUMENT(practdet.speciality),{coding:(FOR cod IN TO_ARRAY(DOCUMENT(practdet.speciality).coding) RETURN DOCUMENT(cod))})})),Patient: (for p in Patient filter p.id == Encounter.patient_id let hname = (FOR hn IN HumanNameMaster filter hn._id in p.name RETURN merge(hn,{prefix:document(hn.prefix)},{suffix:document(hn.suffix)},{use:document(hn.use)})) let gender = document(p.gender) let pidentifier = (FOR hn IN p.identifier RETURN DOCUMENT(hn)) let person = (for ps in Person filter ps.Id == p.personID return MERGE(ps, { photo: Document(ps.photo)})) return MERGE(p, {name: hname, pidentifier,gender,photo: Document(p.photo), personInfo: person,communicationLanguage:document(p.communicationLanguage)})) })\"\n }");
|
|
21448
21483
|
}
|
|
21449
21484
|
};
|
|
21450
21485
|
|
|
@@ -21521,7 +21556,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21521
21556
|
var _val$Person$0$name$te, _val$Person, _val$Person$, _val$Person$$name;
|
|
21522
21557
|
|
|
21523
21558
|
return _objectSpread2(_objectSpread2({}, val), {}, {
|
|
21524
|
-
createdAt:
|
|
21559
|
+
createdAt: getUtcTime(val.period[0].start ? val.period[0].start : new Date()),
|
|
21525
21560
|
personName: (_val$Person$0$name$te = val === null || val === void 0 ? void 0 : (_val$Person = val.Person) === null || _val$Person === void 0 ? void 0 : (_val$Person$ = _val$Person[0]) === null || _val$Person$ === void 0 ? void 0 : (_val$Person$$name = _val$Person$.name) === null || _val$Person$$name === void 0 ? void 0 : _val$Person$$name.text) !== null && _val$Person$0$name$te !== void 0 ? _val$Person$0$name$te : ""
|
|
21526
21561
|
});
|
|
21527
21562
|
});
|
|
@@ -21550,7 +21585,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21550
21585
|
label: val === null || val === void 0 ? void 0 : (_val$onset4 = val.onset) === null || _val$onset4 === void 0 ? void 0 : (_val$onset4$ = _val$onset4[0]) === null || _val$onset4$ === void 0 ? void 0 : _val$onset4$.onsetperiod,
|
|
21551
21586
|
value: val === null || val === void 0 ? void 0 : (_val$onset5 = val.onset) === null || _val$onset5 === void 0 ? void 0 : (_val$onset5$ = _val$onset5[0]) === null || _val$onset5$ === void 0 ? void 0 : _val$onset5$.onsetperiod
|
|
21552
21587
|
} : {},
|
|
21553
|
-
"currentDate": (val === null || val === void 0 ? void 0 : (_val$onset6 = val.onset) === null || _val$onset6 === void 0 ? void 0 : (_val$onset6$ = _val$onset6[0]) === null || _val$onset6$ === void 0 ? void 0 : _val$onset6$.onsetdatetime) && !(val === null || val === void 0 ? void 0 : (_val$onset7 = val.onset) === null || _val$onset7 === void 0 ? void 0 : (_val$onset7$ = _val$onset7[0]) === null || _val$onset7$ === void 0 ? void 0 : _val$onset7$.onsetperiod) ?
|
|
21588
|
+
"currentDate": (val === null || val === void 0 ? void 0 : (_val$onset6 = val.onset) === null || _val$onset6 === void 0 ? void 0 : (_val$onset6$ = _val$onset6[0]) === null || _val$onset6$ === void 0 ? void 0 : _val$onset6$.onsetdatetime) && !(val === null || val === void 0 ? void 0 : (_val$onset7 = val.onset) === null || _val$onset7 === void 0 ? void 0 : (_val$onset7$ = _val$onset7[0]) === null || _val$onset7$ === void 0 ? void 0 : _val$onset7$.onsetperiod) ? utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$onset8 = val.onset) === null || _val$onset8 === void 0 ? void 0 : (_val$onset8$ = _val$onset8[0]) === null || _val$onset8$ === void 0 ? void 0 : _val$onset8$.onsetdatetime, "DD MMM, YYYY") : "",
|
|
21554
21589
|
"isCalenderEnabled": (val === null || val === void 0 ? void 0 : (_val$onset9 = val.onset) === null || _val$onset9 === void 0 ? void 0 : (_val$onset9$ = _val$onset9[0]) === null || _val$onset9$ === void 0 ? void 0 : _val$onset9$.onsetperiod) ? false : (val === null || val === void 0 ? void 0 : (_val$onset10 = val.onset) === null || _val$onset10 === void 0 ? void 0 : (_val$onset10$ = _val$onset10[0]) === null || _val$onset10$ === void 0 ? void 0 : _val$onset10$.onsetdatetime) ? true : false,
|
|
21555
21590
|
"calenderIconEnabled": (val === null || val === void 0 ? void 0 : (_val$onset11 = val.onset) === null || _val$onset11 === void 0 ? void 0 : (_val$onset11$ = _val$onset11[0]) === null || _val$onset11$ === void 0 ? void 0 : _val$onset11$.onsetperiod) ? false : true
|
|
21556
21591
|
},
|
|
@@ -21560,7 +21595,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21560
21595
|
label: val === null || val === void 0 ? void 0 : (_val$abatement4 = val.abatement) === null || _val$abatement4 === void 0 ? void 0 : (_val$abatement4$ = _val$abatement4[0]) === null || _val$abatement4$ === void 0 ? void 0 : _val$abatement4$.abatementperiod,
|
|
21561
21596
|
value: val === null || val === void 0 ? void 0 : (_val$abatement5 = val.abatement) === null || _val$abatement5 === void 0 ? void 0 : (_val$abatement5$ = _val$abatement5[0]) === null || _val$abatement5$ === void 0 ? void 0 : _val$abatement5$.abatementperiod
|
|
21562
21597
|
} : {},
|
|
21563
|
-
"currentDate": !(val === null || val === void 0 ? void 0 : (_val$abatement6 = val.abatement) === null || _val$abatement6 === void 0 ? void 0 : (_val$abatement6$ = _val$abatement6[0]) === null || _val$abatement6$ === void 0 ? void 0 : _val$abatement6$.abatementperiod) && (val === null || val === void 0 ? void 0 : (_val$abatement7 = val.abatement) === null || _val$abatement7 === void 0 ? void 0 : (_val$abatement7$ = _val$abatement7[0]) === null || _val$abatement7$ === void 0 ? void 0 : _val$abatement7$.abatementdatetime) ?
|
|
21598
|
+
"currentDate": !(val === null || val === void 0 ? void 0 : (_val$abatement6 = val.abatement) === null || _val$abatement6 === void 0 ? void 0 : (_val$abatement6$ = _val$abatement6[0]) === null || _val$abatement6$ === void 0 ? void 0 : _val$abatement6$.abatementperiod) && (val === null || val === void 0 ? void 0 : (_val$abatement7 = val.abatement) === null || _val$abatement7 === void 0 ? void 0 : (_val$abatement7$ = _val$abatement7[0]) === null || _val$abatement7$ === void 0 ? void 0 : _val$abatement7$.abatementdatetime) ? utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$abatement8 = val.abatement) === null || _val$abatement8 === void 0 ? void 0 : (_val$abatement8$ = _val$abatement8[0]) === null || _val$abatement8$ === void 0 ? void 0 : _val$abatement8$.abatementdatetime, "DD MMM, YYYY") : "",
|
|
21564
21599
|
"isCalenderEnabled": !(val === null || val === void 0 ? void 0 : (_val$abatement9 = val.abatement) === null || _val$abatement9 === void 0 ? void 0 : (_val$abatement9$ = _val$abatement9[0]) === null || _val$abatement9$ === void 0 ? void 0 : _val$abatement9$.abatementperiod) && (val === null || val === void 0 ? void 0 : (_val$abatement10 = val.abatement) === null || _val$abatement10 === void 0 ? void 0 : (_val$abatement10$ = _val$abatement10[0]) === null || _val$abatement10$ === void 0 ? void 0 : _val$abatement10$.abatementdatetime) ? true : false,
|
|
21565
21600
|
"calenderIconEnabled": !(val === null || val === void 0 ? void 0 : (_val$abatement11 = val.abatement) === null || _val$abatement11 === void 0 ? void 0 : (_val$abatement11$ = _val$abatement11[0]) === null || _val$abatement11$ === void 0 ? void 0 : _val$abatement11$.abatementperiod) ? true : false
|
|
21566
21601
|
},
|
|
@@ -21574,7 +21609,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21574
21609
|
"notes": val.note,
|
|
21575
21610
|
"remarks": [],
|
|
21576
21611
|
"createdName": (_val$practitioner$0$n = val === null || val === void 0 ? void 0 : (_val$practitioner = val.practitioner) === null || _val$practitioner === void 0 ? void 0 : (_val$practitioner$ = _val$practitioner[0]) === null || _val$practitioner$ === void 0 ? void 0 : (_val$practitioner$$na = _val$practitioner$.name) === null || _val$practitioner$$na === void 0 ? void 0 : _val$practitioner$$na[0]) !== null && _val$practitioner$0$n !== void 0 ? _val$practitioner$0$n : "",
|
|
21577
|
-
"createdAt":
|
|
21612
|
+
"createdAt": utcTOLocal$1(val.recordeddate, "DD MMM, YYYY"),
|
|
21578
21613
|
"statusType": "Inactive",
|
|
21579
21614
|
"headerShow": false,
|
|
21580
21615
|
"editData": val
|
|
@@ -21582,11 +21617,6 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21582
21617
|
});
|
|
21583
21618
|
return list;
|
|
21584
21619
|
};
|
|
21585
|
-
var getData$2 = function getData(date, time) {
|
|
21586
|
-
var da = date ? new Date(date) : new Date();
|
|
21587
|
-
var d = new Date(da).toDateString().split(" ");
|
|
21588
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format('LT') : "");
|
|
21589
|
-
};
|
|
21590
21620
|
|
|
21591
21621
|
var _extraReducers$l;
|
|
21592
21622
|
var RELATIONSHIP_MASTERS = createAsyncThunk("chiefCompilenceMastersSlice/relationship", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -22148,7 +22178,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
22148
22178
|
data = _context12.sent;
|
|
22149
22179
|
arr = [];
|
|
22150
22180
|
data.result.map(function (val) {
|
|
22151
|
-
var _val$Patient, _val$Patient$, _val$Patient$$communi, _val$_id, _val$_id$split, _val$practitioner_det, _val$practitioner_det2, _val$practitioner_det3, _val$practitioner_det4, _val$practitioner_det5, _ref25, _val$Patient2, _val$Patient2$, _val$Patient2$$name, _val$Patient2$$name$, _val$Patient2$$name$$, _val$Patient3, _val$Patient3$, _val$Patient3$$name, _val$Patient3$$name$, _val$Patient4, _val$Patient4$, _val$Patient4$$name, _val$Patient4$$name$, _val$Patient5, _val$Patient5$, _val$Patient5$$name, _val$Patient5$$name$, _val$Patient5$$name$$, _val$Patient6, _val$Patient6$, _val$Patient7, _val$Patient7$, _val$Patient8, _val$Patient8$, _val$Patient8$$gender, _val$Patient9, _val$Patient9$, _val$Patient$0$pident, _val$Patient10, _val$Patient10$, _val$Patient10$$piden, _val$Patient10$$piden2, _lang, _val$practitioner_det6, _val$practitioner_det7, _val$practitioner_det8;
|
|
22181
|
+
var _val$Patient, _val$Patient$, _val$Patient$$communi, _val$_id, _val$_id$split, _val$practitioner_det, _val$practitioner_det2, _val$practitioner_det3, _val$practitioner_det4, _val$practitioner_det5, _ref25, _val$Patient2, _val$Patient2$, _val$Patient2$$name, _val$Patient2$$name$, _val$Patient2$$name$$, _val$Patient3, _val$Patient3$, _val$Patient3$$name, _val$Patient3$$name$, _val$Patient4, _val$Patient4$, _val$Patient4$$name, _val$Patient4$$name$, _val$Patient5, _val$Patient5$, _val$Patient5$$name, _val$Patient5$$name$, _val$Patient5$$name$$, _val$Patient6, _val$Patient6$, _val$Patient7, _val$Patient7$, _val$Patient8, _val$Patient8$, _val$Patient8$$gender, _val$Patient9, _val$Patient9$, _val$Patient$0$pident, _val$Patient10, _val$Patient10$, _val$Patient10$$piden, _val$Patient10$$piden2, _lang, _val$Patient11, _val$Patient11$, _val$Patient11$$perso, _val$Patient11$$perso2, _val$Patient11$$perso3, _val$Patient11$$perso4, _val$Patient12, _val$Patient12$, _val$Patient12$$photo, _val$Patient12$$photo2, _val$practitioner_det6, _val$practitioner_det7, _val$practitioner_det8;
|
|
22152
22182
|
|
|
22153
22183
|
var lang = val === null || val === void 0 ? void 0 : (_val$Patient = val.Patient) === null || _val$Patient === void 0 ? void 0 : (_val$Patient$ = _val$Patient[0]) === null || _val$Patient$ === void 0 ? void 0 : (_val$Patient$$communi = _val$Patient$.communicationLanguage) === null || _val$Patient$$communi === void 0 ? void 0 : _val$Patient$$communi.map(function (val) {
|
|
22154
22184
|
return val.display;
|
|
@@ -22169,6 +22199,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
22169
22199
|
dob: val === null || val === void 0 ? void 0 : (_val$Patient9 = val.Patient) === null || _val$Patient9 === void 0 ? void 0 : (_val$Patient9$ = _val$Patient9[0]) === null || _val$Patient9$ === void 0 ? void 0 : _val$Patient9$.birthDate,
|
|
22170
22200
|
pidentifier: (_val$Patient$0$pident = val === null || val === void 0 ? void 0 : (_val$Patient10 = val.Patient) === null || _val$Patient10 === void 0 ? void 0 : (_val$Patient10$ = _val$Patient10[0]) === null || _val$Patient10$ === void 0 ? void 0 : (_val$Patient10$$piden = _val$Patient10$.pidentifier) === null || _val$Patient10$$piden === void 0 ? void 0 : (_val$Patient10$$piden2 = _val$Patient10$$piden[0]) === null || _val$Patient10$$piden2 === void 0 ? void 0 : _val$Patient10$$piden2.value) !== null && _val$Patient$0$pident !== void 0 ? _val$Patient$0$pident : "",
|
|
22171
22201
|
lang: (_lang = lang) === null || _lang === void 0 ? void 0 : _lang.join(", "),
|
|
22202
|
+
img: getImgUrl(val === null || val === void 0 ? void 0 : (_val$Patient11 = val.Patient) === null || _val$Patient11 === void 0 ? void 0 : (_val$Patient11$ = _val$Patient11[0]) === null || _val$Patient11$ === void 0 ? void 0 : (_val$Patient11$$perso = _val$Patient11$.personInfo) === null || _val$Patient11$$perso === void 0 ? void 0 : (_val$Patient11$$perso2 = _val$Patient11$$perso[0]) === null || _val$Patient11$$perso2 === void 0 ? void 0 : (_val$Patient11$$perso3 = _val$Patient11$$perso2.photo) === null || _val$Patient11$$perso3 === void 0 ? void 0 : (_val$Patient11$$perso4 = _val$Patient11$$perso3[0]) === null || _val$Patient11$$perso4 === void 0 ? void 0 : _val$Patient11$$perso4.fileid) || getImgUrl(val === null || val === void 0 ? void 0 : (_val$Patient12 = val.Patient) === null || _val$Patient12 === void 0 ? void 0 : (_val$Patient12$ = _val$Patient12[0]) === null || _val$Patient12$ === void 0 ? void 0 : (_val$Patient12$$photo = _val$Patient12$.photo) === null || _val$Patient12$$photo === void 0 ? void 0 : (_val$Patient12$$photo2 = _val$Patient12$$photo[0]) === null || _val$Patient12$$photo2 === void 0 ? void 0 : _val$Patient12$$photo2.fileid),
|
|
22172
22203
|
facilityName: (_val$practitioner_det6 = (_val$practitioner_det7 = val.practitioner_details) === null || _val$practitioner_det7 === void 0 ? void 0 : (_val$practitioner_det8 = _val$practitioner_det7[0]) === null || _val$practitioner_det8 === void 0 ? void 0 : _val$practitioner_det8.clinic) !== null && _val$practitioner_det6 !== void 0 ? _val$practitioner_det6 : ""
|
|
22173
22204
|
});
|
|
22174
22205
|
});
|
|
@@ -22409,7 +22440,7 @@ var generateResJson$5 = function generateResJson(dataList, state) {
|
|
|
22409
22440
|
label: val === null || val === void 0 ? void 0 : (_val$OnSet3 = val.OnSet) === null || _val$OnSet3 === void 0 ? void 0 : _val$OnSet3.split(" ")[1],
|
|
22410
22441
|
value: val === null || val === void 0 ? void 0 : (_val$OnSet4 = val.OnSet) === null || _val$OnSet4 === void 0 ? void 0 : _val$OnSet4.split(" ")[1]
|
|
22411
22442
|
};
|
|
22412
|
-
var createddate =
|
|
22443
|
+
var createddate = utcTOLocal$1(val.createddate, "DD MMM, YYYY");
|
|
22413
22444
|
var abateday = val === null || val === void 0 ? void 0 : val.Abatement.split(" ")[0];
|
|
22414
22445
|
var abatecurrdate = val === null || val === void 0 ? void 0 : (_val$Abatement = val.Abatement) === null || _val$Abatement === void 0 ? void 0 : _val$Abatement.split(" ")[2];
|
|
22415
22446
|
var abatefreqValue = {
|
|
@@ -24431,13 +24462,13 @@ var getCA_PresWorkflowStatusTrx = function getCA_PresWorkflowStatusTrx(data, sta
|
|
|
24431
24462
|
"orgCode": (_data$org_Id$_id = data === null || data === void 0 ? void 0 : (_data$org_Id = data.org_Id) === null || _data$org_Id === void 0 ? void 0 : _data$org_Id._id) !== null && _data$org_Id$_id !== void 0 ? _data$org_Id$_id : "",
|
|
24432
24463
|
"order_Id": data.editData,
|
|
24433
24464
|
"trxSeqnum": 0,
|
|
24434
|
-
"TrxDateTime":
|
|
24465
|
+
"TrxDateTime": utcTOLocal$1(),
|
|
24435
24466
|
"frStatus": "",
|
|
24436
24467
|
"toStatus": status.value,
|
|
24437
24468
|
"frApprLevel": "0",
|
|
24438
24469
|
"toApprLevel": "0",
|
|
24439
24470
|
"actionedPractId": personId,
|
|
24440
|
-
"actionDateTime":
|
|
24471
|
+
"actionDateTime": utcTOLocal$1(),
|
|
24441
24472
|
"statusAction": "",
|
|
24442
24473
|
"actionedRemarks": "",
|
|
24443
24474
|
"actionReasonCode": ""
|
|
@@ -25145,8 +25176,8 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25145
25176
|
"new_status": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25146
25177
|
"old_status": (_statushistory$new_st = (_statushistory2 = statushistory[statushistory.length - 1]) === null || _statushistory2 === void 0 ? void 0 : _statushistory2.new_status) !== null && _statushistory$new_st !== void 0 ? _statushistory$new_st : "",
|
|
25147
25178
|
"period": [{
|
|
25148
|
-
"start":
|
|
25149
|
-
"end": moment().endOf('day')
|
|
25179
|
+
"start": getUtcTime(),
|
|
25180
|
+
"end": getUtcTime(moment().endOf('day'))
|
|
25150
25181
|
}]
|
|
25151
25182
|
});
|
|
25152
25183
|
}
|
|
@@ -25174,14 +25205,14 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25174
25205
|
"relatedperson_id": data === null || data === void 0 ? void 0 : data.relatedperson_id,
|
|
25175
25206
|
// "asserted_by": data?.asserted,
|
|
25176
25207
|
"onset": [{
|
|
25177
|
-
"onsetdatetime": (data === null || data === void 0 ? void 0 : data.onset.day) ? parseInt(data.onset.day) : data.onset.currentDate ?
|
|
25208
|
+
"onsetdatetime": (data === null || data === void 0 ? void 0 : data.onset.day) ? parseInt(data.onset.day) : data.onset.currentDate ? getUtcTime(data.onset.currentDate) : 0,
|
|
25178
25209
|
"onsetperiod": (data === null || data === void 0 ? void 0 : data.onset.day) ? data.onset.freq.value : "",
|
|
25179
25210
|
"onsetage": (_data$onsetAge = data === null || data === void 0 ? void 0 : data.onsetAge) !== null && _data$onsetAge !== void 0 ? _data$onsetAge : "",
|
|
25180
25211
|
"onsetrange": (_data$onsetrange = data === null || data === void 0 ? void 0 : data.onsetrange) !== null && _data$onsetrange !== void 0 ? _data$onsetrange : "",
|
|
25181
25212
|
"onsetstring": (_data$onsetstring = data === null || data === void 0 ? void 0 : data.onsetstring) !== null && _data$onsetstring !== void 0 ? _data$onsetstring : ""
|
|
25182
25213
|
}],
|
|
25183
25214
|
"lastoccurrence": [{
|
|
25184
|
-
"lastoccurrencedatetime": (data === null || data === void 0 ? void 0 : data.lastOccurance.day) ? parseInt(data.lastOccurance.day) : data.lastOccurance.currentDate ?
|
|
25215
|
+
"lastoccurrencedatetime": (data === null || data === void 0 ? void 0 : data.lastOccurance.day) ? parseInt(data.lastOccurance.day) : data.lastOccurance.currentDate ? getUtcTime(data.lastOccurance.currentDate) : 0,
|
|
25185
25216
|
"lastoccurrenceperiod": (data === null || data === void 0 ? void 0 : data.lastOccurance.day) ? data.lastOccurance.freq.value : "",
|
|
25186
25217
|
"lastoccurrenceage": (_data$lastoccurrencea = data === null || data === void 0 ? void 0 : data.lastoccurrenceage) !== null && _data$lastoccurrencea !== void 0 ? _data$lastoccurrencea : "",
|
|
25187
25218
|
"lastoccurrencerange": (_data$lastoccurrencer = data === null || data === void 0 ? void 0 : data.lastoccurrencerange) !== null && _data$lastoccurrencer !== void 0 ? _data$lastoccurrencer : "",
|
|
@@ -25229,14 +25260,14 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25229
25260
|
"reaction": _reactionsList,
|
|
25230
25261
|
"clinicalstatus": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25231
25262
|
"onset": [{
|
|
25232
|
-
"onsetdatetime": (data === null || data === void 0 ? void 0 : (_data$onset = data.onset) === null || _data$onset === void 0 ? void 0 : _data$onset.day) ? parseInt(data === null || data === void 0 ? void 0 : (_data$onset2 = data.onset) === null || _data$onset2 === void 0 ? void 0 : _data$onset2.day) : (data === null || data === void 0 ? void 0 : (_data$onset3 = data.onset) === null || _data$onset3 === void 0 ? void 0 : _data$onset3.currentDate) ?
|
|
25263
|
+
"onsetdatetime": (data === null || data === void 0 ? void 0 : (_data$onset = data.onset) === null || _data$onset === void 0 ? void 0 : _data$onset.day) ? parseInt(data === null || data === void 0 ? void 0 : (_data$onset2 = data.onset) === null || _data$onset2 === void 0 ? void 0 : _data$onset2.day) : (data === null || data === void 0 ? void 0 : (_data$onset3 = data.onset) === null || _data$onset3 === void 0 ? void 0 : _data$onset3.currentDate) ? getUtcTime(data === null || data === void 0 ? void 0 : (_data$onset4 = data.onset) === null || _data$onset4 === void 0 ? void 0 : _data$onset4.currentDate) : 0,
|
|
25233
25264
|
"onsetperiod": (data === null || data === void 0 ? void 0 : (_data$onset5 = data.onset) === null || _data$onset5 === void 0 ? void 0 : _data$onset5.day) ? data === null || data === void 0 ? void 0 : (_data$onset6 = data.onset) === null || _data$onset6 === void 0 ? void 0 : (_data$onset6$freq = _data$onset6.freq) === null || _data$onset6$freq === void 0 ? void 0 : _data$onset6$freq.value : "",
|
|
25234
25265
|
"onsetage": (_data$onsetAge2 = data === null || data === void 0 ? void 0 : data.onsetAge) !== null && _data$onsetAge2 !== void 0 ? _data$onsetAge2 : "",
|
|
25235
25266
|
"onsetrange": (_data$onsetrange2 = data === null || data === void 0 ? void 0 : data.onsetrange) !== null && _data$onsetrange2 !== void 0 ? _data$onsetrange2 : "",
|
|
25236
25267
|
"onsetstring": (_data$onsetstring2 = data === null || data === void 0 ? void 0 : data.onsetstring) !== null && _data$onsetstring2 !== void 0 ? _data$onsetstring2 : ""
|
|
25237
25268
|
}],
|
|
25238
25269
|
"lastoccurrence": [{
|
|
25239
|
-
"lastoccurrencedatetime": (data === null || data === void 0 ? void 0 : (_data$lastOccurance = data.lastOccurance) === null || _data$lastOccurance === void 0 ? void 0 : _data$lastOccurance.day) ? parseInt(data === null || data === void 0 ? void 0 : (_data$lastOccurance2 = data.lastOccurance) === null || _data$lastOccurance2 === void 0 ? void 0 : _data$lastOccurance2.day) : (data === null || data === void 0 ? void 0 : (_data$lastOccurance3 = data.lastOccurance) === null || _data$lastOccurance3 === void 0 ? void 0 : _data$lastOccurance3.currentDate) ?
|
|
25270
|
+
"lastoccurrencedatetime": (data === null || data === void 0 ? void 0 : (_data$lastOccurance = data.lastOccurance) === null || _data$lastOccurance === void 0 ? void 0 : _data$lastOccurance.day) ? parseInt(data === null || data === void 0 ? void 0 : (_data$lastOccurance2 = data.lastOccurance) === null || _data$lastOccurance2 === void 0 ? void 0 : _data$lastOccurance2.day) : (data === null || data === void 0 ? void 0 : (_data$lastOccurance3 = data.lastOccurance) === null || _data$lastOccurance3 === void 0 ? void 0 : _data$lastOccurance3.currentDate) ? getUtcTime(data === null || data === void 0 ? void 0 : (_data$lastOccurance4 = data.lastOccurance) === null || _data$lastOccurance4 === void 0 ? void 0 : _data$lastOccurance4.currentDate) : 0,
|
|
25240
25271
|
"lastoccurrenceperiod": (data === null || data === void 0 ? void 0 : (_data$lastOccurance5 = data.lastOccurance) === null || _data$lastOccurance5 === void 0 ? void 0 : _data$lastOccurance5.day) ? data === null || data === void 0 ? void 0 : (_data$lastOccurance6 = data.lastOccurance) === null || _data$lastOccurance6 === void 0 ? void 0 : (_data$lastOccurance6$ = _data$lastOccurance6.freq) === null || _data$lastOccurance6$ === void 0 ? void 0 : _data$lastOccurance6$.value : "",
|
|
25241
25272
|
"lastoccurrenceage": (_data$lastoccurrencea2 = data === null || data === void 0 ? void 0 : data.lastoccurrenceage) !== null && _data$lastoccurrencea2 !== void 0 ? _data$lastoccurrencea2 : "",
|
|
25242
25273
|
"lastoccurrencerange": (_data$lastoccurrencer2 = data === null || data === void 0 ? void 0 : data.lastoccurrencerange) !== null && _data$lastoccurrencer2 !== void 0 ? _data$lastoccurrencer2 : "",
|
|
@@ -25248,8 +25279,8 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25248
25279
|
"new_status": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25249
25280
|
"old_status": (_data$statushistory$n = data === null || data === void 0 ? void 0 : (_data$statushistory = data.statushistory) === null || _data$statushistory === void 0 ? void 0 : (_data$statushistory2 = _data$statushistory[(data === null || data === void 0 ? void 0 : (_data$statushistory3 = data.statushistory) === null || _data$statushistory3 === void 0 ? void 0 : _data$statushistory3.length) - 1]) === null || _data$statushistory2 === void 0 ? void 0 : _data$statushistory2.new_status) !== null && _data$statushistory$n !== void 0 ? _data$statushistory$n : "",
|
|
25250
25281
|
"period": [{
|
|
25251
|
-
"start":
|
|
25252
|
-
"end": moment().endOf('day')
|
|
25282
|
+
"start": getUtcTime(),
|
|
25283
|
+
"end": getUtcTime(moment().endOf('day'))
|
|
25253
25284
|
}]
|
|
25254
25285
|
}],
|
|
25255
25286
|
"nodrugAllergy": (_data$nodrugAllergy2 = data === null || data === void 0 ? void 0 : data.nodrugAllergy) !== null && _data$nodrugAllergy2 !== void 0 ? _data$nodrugAllergy2 : false,
|
|
@@ -25286,7 +25317,7 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25286
25317
|
label: data === null || data === void 0 ? void 0 : (_data$lastoccurrence6 = data.lastoccurrence) === null || _data$lastoccurrence6 === void 0 ? void 0 : (_data$lastoccurrence7 = _data$lastoccurrence6[0]) === null || _data$lastoccurrence7 === void 0 ? void 0 : _data$lastoccurrence7.lastoccurrenceperiod,
|
|
25287
25318
|
value: data === null || data === void 0 ? void 0 : (_data$lastoccurrence8 = data.lastoccurrence) === null || _data$lastoccurrence8 === void 0 ? void 0 : (_data$lastoccurrence9 = _data$lastoccurrence8[0]) === null || _data$lastoccurrence9 === void 0 ? void 0 : _data$lastoccurrence9.lastoccurrenceperiod
|
|
25288
25319
|
} : {},
|
|
25289
|
-
"currentDate": (data === null || data === void 0 ? void 0 : (_data$lastoccurrence10 = data.lastoccurrence) === null || _data$lastoccurrence10 === void 0 ? void 0 : (_data$lastoccurrence11 = _data$lastoccurrence10[0]) === null || _data$lastoccurrence11 === void 0 ? void 0 : _data$lastoccurrence11.lastoccurrencedatetime) && !(data === null || data === void 0 ? void 0 : (_data$lastoccurrence12 = data.lastoccurrence) === null || _data$lastoccurrence12 === void 0 ? void 0 : (_data$lastoccurrence13 = _data$lastoccurrence12[0]) === null || _data$lastoccurrence13 === void 0 ? void 0 : _data$lastoccurrence13.lastoccurrenceperiod) ?
|
|
25320
|
+
"currentDate": (data === null || data === void 0 ? void 0 : (_data$lastoccurrence10 = data.lastoccurrence) === null || _data$lastoccurrence10 === void 0 ? void 0 : (_data$lastoccurrence11 = _data$lastoccurrence10[0]) === null || _data$lastoccurrence11 === void 0 ? void 0 : _data$lastoccurrence11.lastoccurrencedatetime) && !(data === null || data === void 0 ? void 0 : (_data$lastoccurrence12 = data.lastoccurrence) === null || _data$lastoccurrence12 === void 0 ? void 0 : (_data$lastoccurrence13 = _data$lastoccurrence12[0]) === null || _data$lastoccurrence13 === void 0 ? void 0 : _data$lastoccurrence13.lastoccurrenceperiod) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$lastoccurrence14 = data.lastoccurrence) === null || _data$lastoccurrence14 === void 0 ? void 0 : (_data$lastoccurrence15 = _data$lastoccurrence14[0]) === null || _data$lastoccurrence15 === void 0 ? void 0 : _data$lastoccurrence15.lastoccurrencedatetime, "DD MMM, YYYY") : "",
|
|
25290
25321
|
"isCalenderEnabled": (data === null || data === void 0 ? void 0 : (_data$lastoccurrence16 = data.lastoccurrence) === null || _data$lastoccurrence16 === void 0 ? void 0 : (_data$lastoccurrence17 = _data$lastoccurrence16[0]) === null || _data$lastoccurrence17 === void 0 ? void 0 : _data$lastoccurrence17.lastoccurrenceperiod) ? false : (data === null || data === void 0 ? void 0 : (_data$lastoccurrence18 = data.lastoccurrence) === null || _data$lastoccurrence18 === void 0 ? void 0 : (_data$lastoccurrence19 = _data$lastoccurrence18[0]) === null || _data$lastoccurrence19 === void 0 ? void 0 : _data$lastoccurrence19.lastoccurrencedatetime) ? true : false,
|
|
25291
25322
|
"calenderIconEnabled": (data === null || data === void 0 ? void 0 : (_data$lastoccurrence20 = data.lastoccurrence) === null || _data$lastoccurrence20 === void 0 ? void 0 : (_data$lastoccurrence21 = _data$lastoccurrence20[0]) === null || _data$lastoccurrence21 === void 0 ? void 0 : _data$lastoccurrence21.lastoccurrenceperiod) ? false : true
|
|
25292
25323
|
},
|
|
@@ -25298,7 +25329,7 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25298
25329
|
label: data === null || data === void 0 ? void 0 : (_data$onset4 = data.onset) === null || _data$onset4 === void 0 ? void 0 : (_data$onset4$ = _data$onset4[0]) === null || _data$onset4$ === void 0 ? void 0 : _data$onset4$.onsetperiod,
|
|
25299
25330
|
value: data === null || data === void 0 ? void 0 : (_data$onset5 = data.onset) === null || _data$onset5 === void 0 ? void 0 : (_data$onset5$ = _data$onset5[0]) === null || _data$onset5$ === void 0 ? void 0 : _data$onset5$.onsetperiod
|
|
25300
25331
|
} : {},
|
|
25301
|
-
"currentDate": (data === null || data === void 0 ? void 0 : (_data$onset6 = data.onset) === null || _data$onset6 === void 0 ? void 0 : (_data$onset6$ = _data$onset6[0]) === null || _data$onset6$ === void 0 ? void 0 : _data$onset6$.onsetdatetime) && !(data === null || data === void 0 ? void 0 : (_data$onset7 = data.onset) === null || _data$onset7 === void 0 ? void 0 : (_data$onset7$ = _data$onset7[0]) === null || _data$onset7$ === void 0 ? void 0 : _data$onset7$.onsetperiod) ?
|
|
25332
|
+
"currentDate": (data === null || data === void 0 ? void 0 : (_data$onset6 = data.onset) === null || _data$onset6 === void 0 ? void 0 : (_data$onset6$ = _data$onset6[0]) === null || _data$onset6$ === void 0 ? void 0 : _data$onset6$.onsetdatetime) && !(data === null || data === void 0 ? void 0 : (_data$onset7 = data.onset) === null || _data$onset7 === void 0 ? void 0 : (_data$onset7$ = _data$onset7[0]) === null || _data$onset7$ === void 0 ? void 0 : _data$onset7$.onsetperiod) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$onset8 = data.onset) === null || _data$onset8 === void 0 ? void 0 : (_data$onset8$ = _data$onset8[0]) === null || _data$onset8$ === void 0 ? void 0 : _data$onset8$.onsetdatetime, "DD MMM, YYYY") : "",
|
|
25302
25333
|
"isCalenderEnabled": (data === null || data === void 0 ? void 0 : (_data$onset9 = data.onset) === null || _data$onset9 === void 0 ? void 0 : (_data$onset9$ = _data$onset9[0]) === null || _data$onset9$ === void 0 ? void 0 : _data$onset9$.onsetperiod) ? false : (data === null || data === void 0 ? void 0 : (_data$onset10 = data.onset) === null || _data$onset10 === void 0 ? void 0 : (_data$onset10$ = _data$onset10[0]) === null || _data$onset10$ === void 0 ? void 0 : _data$onset10$.onsetdatetime) ? true : false,
|
|
25303
25334
|
"calenderIconEnabled": (data === null || data === void 0 ? void 0 : (_data$onset11 = data.onset) === null || _data$onset11 === void 0 ? void 0 : (_data$onset11$ = _data$onset11[0]) === null || _data$onset11$ === void 0 ? void 0 : _data$onset11$.onsetperiod) ? false : true
|
|
25304
25335
|
},
|
|
@@ -25319,11 +25350,6 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25319
25350
|
});
|
|
25320
25351
|
return list;
|
|
25321
25352
|
};
|
|
25322
|
-
var getData$1 = function getData(date, time) {
|
|
25323
|
-
var da = date ? new Date(date) : new Date();
|
|
25324
|
-
var d = new Date(da).toDateString().split(" ");
|
|
25325
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format('LT') : "");
|
|
25326
|
-
};
|
|
25327
25353
|
|
|
25328
25354
|
var _extraReducers$i;
|
|
25329
25355
|
var ALLERGY_MASTER = createAsyncThunk("allergyMastersSlice/allergymaster", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -26536,7 +26562,7 @@ var queries$6 = {
|
|
|
26536
26562
|
|
|
26537
26563
|
var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
26538
26564
|
var list = dataList.map(function (val) {
|
|
26539
|
-
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature,
|
|
26565
|
+
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$specimenRelated$, _val$specimenRelated$2, _val$specimenRelated$3, _val$specimenRelated$4, _val$specimenRelated$5, _val$specimenRelated$6, _val$specimenRelated$7, _val$specimenRelated$8, _val$specimenRelated$9, _val$specimenRelated$10, _val$specimenRelated$11, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
|
|
26540
26566
|
|
|
26541
26567
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis = val.diagnosis) === null || _val$diagnosis === void 0 ? void 0 : _val$diagnosis.map(function (v) {
|
|
26542
26568
|
return {
|
|
@@ -26581,8 +26607,8 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26581
26607
|
nature: {
|
|
26582
26608
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
26583
26609
|
},
|
|
26584
|
-
dateTime: (
|
|
26585
|
-
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (
|
|
26610
|
+
dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
|
|
26611
|
+
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
|
|
26586
26612
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$2(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
26587
26613
|
recurrent: false,
|
|
26588
26614
|
headerShow: true,
|
|
@@ -26595,11 +26621,11 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26595
26621
|
}
|
|
26596
26622
|
},
|
|
26597
26623
|
startsOn: {
|
|
26598
|
-
dateTime: (
|
|
26624
|
+
dateTime: (_utcTOLocal3 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent7 = val.recurrent) === null || _val$recurrent7 === void 0 ? void 0 : (_val$recurrent7$ = _val$recurrent7[0]) === null || _val$recurrent7$ === void 0 ? void 0 : _val$recurrent7$.starts_on, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal3 !== void 0 ? _utcTOLocal3 : ""
|
|
26599
26625
|
},
|
|
26600
26626
|
endsAfter: {
|
|
26601
26627
|
endsAfter: (_JSON$stringify2 = JSON.stringify(val === null || val === void 0 ? void 0 : (_val$recurrent8 = val.recurrent) === null || _val$recurrent8 === void 0 ? void 0 : (_val$recurrent8$ = _val$recurrent8[0]) === null || _val$recurrent8$ === void 0 ? void 0 : _val$recurrent8$.startes_on_occurance)) !== null && _JSON$stringify2 !== void 0 ? _JSON$stringify2 : "",
|
|
26602
|
-
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent9 = val.recurrent) === null || _val$recurrent9 === void 0 ? void 0 : (_val$recurrent9$ = _val$recurrent9[0]) === null || _val$recurrent9$ === void 0 ? void 0 : _val$recurrent9$.startes_on_occurance_date) ? (
|
|
26628
|
+
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent9 = val.recurrent) === null || _val$recurrent9 === void 0 ? void 0 : (_val$recurrent9$ = _val$recurrent9[0]) === null || _val$recurrent9$ === void 0 ? void 0 : _val$recurrent9$.startes_on_occurance_date) ? (_utcTOLocal4 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent10 = val.recurrent) === null || _val$recurrent10 === void 0 ? void 0 : (_val$recurrent10$ = _val$recurrent10[0]) === null || _val$recurrent10$ === void 0 ? void 0 : _val$recurrent10$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal4 !== void 0 ? _utcTOLocal4 : "" : ""
|
|
26603
26629
|
}
|
|
26604
26630
|
},
|
|
26605
26631
|
orderType: {
|
|
@@ -26608,7 +26634,7 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26608
26634
|
mode: {
|
|
26609
26635
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
26610
26636
|
},
|
|
26611
|
-
startDate: (
|
|
26637
|
+
startDate: (_utcTOLocal5 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal5 !== void 0 ? _utcTOLocal5 : "",
|
|
26612
26638
|
orderCatalog: {
|
|
26613
26639
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
26614
26640
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -26712,7 +26738,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26712
26738
|
return el != null;
|
|
26713
26739
|
});
|
|
26714
26740
|
var list = dataList.map(function (val) {
|
|
26715
|
-
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2,
|
|
26741
|
+
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$prac3, _val$Requestor15, _val$Requestor15$, _val$Requestor15$$pra, _val$Requestor$0$prac4, _val$Requestor16, _val$Requestor16$, _val$Requestor16$$pra, _val$Requestor17, _val$Requestor17$, _val$Requestor17$$pra, _val$Requestor18, _val$Requestor18$, _val$Requestor18$$pra, _val$Requestor19, _val$Requestor19$, _val$Requestor19$$pra, _val$Requestor19$$pra2, _val$Requestor19$$pra3, _val$Requestor20, _val$Requestor20$, _val$Requestor20$$pra, _val$Requestor20$$pra2, _val$Requestor21, _val$Requestor21$, _val$Requestor21$$pra, _val$Requestor21$$pra2, _val$Requestor22, _val$Requestor22$, _val$Requestor22$$pra, _val$Requestor22$$pra2, _val$Requestor22$$pra3, _val$specimenRelated, _val$specimenRelated$12, _val$specimenRelated2, _val$specimenRelated3, _val$specimenRelated4, _val$specimenRelated5, _val$specimenRelated6, _val$specimenRelated7, _val$specimenRelated8, _val$specimenRelated9, _val$specimenRelated10, _val$specimenRelated11, _val$specimenRelated12, _val$specimenRelated13, _val$specimenRelated14, _val$specimenRelated15, _val$specimenRelated16, _val$specimenRelated17, _val$specimenRelated18, _val$specimenRelated19, _val$specimenRelated20, _val$specimenRelated21, _val$specimenRelated22, _val$patientInstructi9, _val$patientInstructi10, _val$patientInstructi11, _val$patientInstructi12, _val$patientInstructi13, _val$patientInstructi14, _val$patientInstructi15, _val$patientInstructi16, _val$preparatoryInstr9, _val$preparatoryInstr10, _val$preparatoryInstr11, _val$preparatoryInstr12, _val$preparatoryInstr13, _val$preparatoryInstr14, _val$preparatoryInstr15, _val$preparatoryInstr16, _val$departmentalInst9, _val$departmentalInst10, _val$departmentalInst11, _val$departmentalInst12, _val$departmentalInst13, _val$departmentalInst14, _val$departmentalInst15, _val$departmentalInst16, _val$attribute5, _val$attribute5$, _val$attribute6, _val$attribute6$, _val$attribute$0$bedS2, _val$attribute7, _val$attribute7$, _val$attribute$0$cont2, _val$attribute8, _val$attribute8$, _val$createddate2, _val$changeStatus4, _val$changeStatus5, _val$changeStatus6, _val$statushistory2, _val$statusreason2, _val$accessionNum2;
|
|
26716
26742
|
|
|
26717
26743
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis2 = val.diagnosis) === null || _val$diagnosis2 === void 0 ? void 0 : _val$diagnosis2.map(function (v) {
|
|
26718
26744
|
return {
|
|
@@ -26757,8 +26783,8 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26757
26783
|
nature: {
|
|
26758
26784
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
26759
26785
|
},
|
|
26760
|
-
dateTime: (
|
|
26761
|
-
endDate: (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ?
|
|
26786
|
+
dateTime: (_utcTOLocal6 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal6 !== void 0 ? _utcTOLocal6 : "",
|
|
26787
|
+
endDate: (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
|
|
26762
26788
|
recurrent: false,
|
|
26763
26789
|
headerShow: true,
|
|
26764
26790
|
recurrentData: {
|
|
@@ -26770,11 +26796,11 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26770
26796
|
}
|
|
26771
26797
|
},
|
|
26772
26798
|
startsOn: {
|
|
26773
|
-
dateTime: (
|
|
26799
|
+
dateTime: (_utcTOLocal7 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent15 = val.recurrent) === null || _val$recurrent15 === void 0 ? void 0 : (_val$recurrent15$ = _val$recurrent15[0]) === null || _val$recurrent15$ === void 0 ? void 0 : _val$recurrent15$.starts_on, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal7 !== void 0 ? _utcTOLocal7 : ""
|
|
26774
26800
|
},
|
|
26775
26801
|
endsAfter: {
|
|
26776
26802
|
endsAfter: (_JSON$stringify4 = JSON.stringify(val === null || val === void 0 ? void 0 : (_val$recurrent16 = val.recurrent) === null || _val$recurrent16 === void 0 ? void 0 : (_val$recurrent16$ = _val$recurrent16[0]) === null || _val$recurrent16$ === void 0 ? void 0 : _val$recurrent16$.startes_on_occurance)) !== null && _JSON$stringify4 !== void 0 ? _JSON$stringify4 : "",
|
|
26777
|
-
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent17 = val.recurrent) === null || _val$recurrent17 === void 0 ? void 0 : (_val$recurrent17$ = _val$recurrent17[0]) === null || _val$recurrent17$ === void 0 ? void 0 : _val$recurrent17$.startes_on_occurance_date) ? (
|
|
26803
|
+
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent17 = val.recurrent) === null || _val$recurrent17 === void 0 ? void 0 : (_val$recurrent17$ = _val$recurrent17[0]) === null || _val$recurrent17$ === void 0 ? void 0 : _val$recurrent17$.startes_on_occurance_date) ? (_utcTOLocal8 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent18 = val.recurrent) === null || _val$recurrent18 === void 0 ? void 0 : (_val$recurrent18$ = _val$recurrent18[0]) === null || _val$recurrent18$ === void 0 ? void 0 : _val$recurrent18$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal8 !== void 0 ? _utcTOLocal8 : "" : ""
|
|
26778
26804
|
}
|
|
26779
26805
|
},
|
|
26780
26806
|
orderType: {
|
|
@@ -26783,7 +26809,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26783
26809
|
mode: {
|
|
26784
26810
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
26785
26811
|
},
|
|
26786
|
-
startDate: (
|
|
26812
|
+
startDate: (_utcTOLocal9 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceStartDate, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal9 !== void 0 ? _utcTOLocal9 : "",
|
|
26787
26813
|
orderCatalog: {
|
|
26788
26814
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
26789
26815
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31835,7 +31861,7 @@ var generateJSON$1 = function generateJSON(dataList) {
|
|
|
31835
31861
|
|
|
31836
31862
|
var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
31837
31863
|
var list = dataList.map(function (val) {
|
|
31838
|
-
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature,
|
|
31864
|
+
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
|
|
31839
31865
|
|
|
31840
31866
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis = val.diagnosis) === null || _val$diagnosis === void 0 ? void 0 : _val$diagnosis.map(function (v) {
|
|
31841
31867
|
return {
|
|
@@ -31884,8 +31910,8 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31884
31910
|
nature: {
|
|
31885
31911
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
31886
31912
|
},
|
|
31887
|
-
dateTime: (
|
|
31888
|
-
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (
|
|
31913
|
+
dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
|
|
31914
|
+
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
|
|
31889
31915
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$1(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
31890
31916
|
recurrent: false,
|
|
31891
31917
|
headerShow: true,
|
|
@@ -31898,11 +31924,11 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31898
31924
|
}
|
|
31899
31925
|
},
|
|
31900
31926
|
startsOn: {
|
|
31901
|
-
dateTime: (
|
|
31927
|
+
dateTime: (_utcTOLocal3 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent7 = val.recurrent) === null || _val$recurrent7 === void 0 ? void 0 : (_val$recurrent7$ = _val$recurrent7[0]) === null || _val$recurrent7$ === void 0 ? void 0 : _val$recurrent7$.starts_on, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal3 !== void 0 ? _utcTOLocal3 : ""
|
|
31902
31928
|
},
|
|
31903
31929
|
endsAfter: {
|
|
31904
31930
|
endsAfter: (_JSON$stringify2 = JSON.stringify(val === null || val === void 0 ? void 0 : (_val$recurrent8 = val.recurrent) === null || _val$recurrent8 === void 0 ? void 0 : (_val$recurrent8$ = _val$recurrent8[0]) === null || _val$recurrent8$ === void 0 ? void 0 : _val$recurrent8$.startes_on_occurance)) !== null && _JSON$stringify2 !== void 0 ? _JSON$stringify2 : "",
|
|
31905
|
-
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent9 = val.recurrent) === null || _val$recurrent9 === void 0 ? void 0 : (_val$recurrent9$ = _val$recurrent9[0]) === null || _val$recurrent9$ === void 0 ? void 0 : _val$recurrent9$.startes_on_occurance_date) ? (
|
|
31931
|
+
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent9 = val.recurrent) === null || _val$recurrent9 === void 0 ? void 0 : (_val$recurrent9$ = _val$recurrent9[0]) === null || _val$recurrent9$ === void 0 ? void 0 : _val$recurrent9$.startes_on_occurance_date) ? (_utcTOLocal4 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent10 = val.recurrent) === null || _val$recurrent10 === void 0 ? void 0 : (_val$recurrent10$ = _val$recurrent10[0]) === null || _val$recurrent10$ === void 0 ? void 0 : _val$recurrent10$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal4 !== void 0 ? _utcTOLocal4 : "" : ""
|
|
31906
31932
|
}
|
|
31907
31933
|
},
|
|
31908
31934
|
orderType: {
|
|
@@ -31911,7 +31937,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31911
31937
|
mode: {
|
|
31912
31938
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
31913
31939
|
},
|
|
31914
|
-
startDate: (
|
|
31940
|
+
startDate: (_utcTOLocal5 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal5 !== void 0 ? _utcTOLocal5 : "",
|
|
31915
31941
|
orderCatalog: {
|
|
31916
31942
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
31917
31943
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31966,7 +31992,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31966
31992
|
bedSide: (_val$attribute$0$bedS = (_val$attribute3 = val.attribute) === null || _val$attribute3 === void 0 ? void 0 : (_val$attribute3$ = _val$attribute3[0]) === null || _val$attribute3$ === void 0 ? void 0 : _val$attribute3$.bedSide) !== null && _val$attribute$0$bedS !== void 0 ? _val$attribute$0$bedS : false,
|
|
31967
31993
|
contrast: (_val$attribute$0$cont = (_val$attribute4 = val.attribute) === null || _val$attribute4 === void 0 ? void 0 : (_val$attribute4$ = _val$attribute4[0]) === null || _val$attribute4$ === void 0 ? void 0 : _val$attribute4$.contrast) !== null && _val$attribute$0$cont !== void 0 ? _val$attribute$0$cont : ""
|
|
31968
31994
|
},
|
|
31969
|
-
createdAt: (_val$createddate = val === null || val === void 0 ? void 0 : val.createddate) !== null && _val$createddate !== void 0 ? _val$createddate :
|
|
31995
|
+
createdAt: (_val$createddate = val === null || val === void 0 ? void 0 : val.createddate) !== null && _val$createddate !== void 0 ? _val$createddate : "",
|
|
31970
31996
|
// createdAt: getData(),
|
|
31971
31997
|
editData: val._id,
|
|
31972
31998
|
statusData: {
|
|
@@ -31979,7 +32005,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31979
32005
|
},
|
|
31980
32006
|
statushistory: (_val$statushistory = val === null || val === void 0 ? void 0 : val.statushistory) !== null && _val$statushistory !== void 0 ? _val$statushistory : [],
|
|
31981
32007
|
statusType: (_val$statusreason = val === null || val === void 0 ? void 0 : val.statusreason) !== null && _val$statusreason !== void 0 ? _val$statusreason : "",
|
|
31982
|
-
userName: (_val$accessionNum = val === null || val === void 0 ? void 0 : val.accessionNum) !== null && _val$accessionNum !== void 0 ? _val$accessionNum :
|
|
32008
|
+
userName: (_val$accessionNum = val === null || val === void 0 ? void 0 : val.accessionNum) !== null && _val$accessionNum !== void 0 ? _val$accessionNum : ""
|
|
31983
32009
|
};
|
|
31984
32010
|
});
|
|
31985
32011
|
return list;
|
|
@@ -31989,7 +32015,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31989
32015
|
return el != null;
|
|
31990
32016
|
});
|
|
31991
32017
|
var list = dataList.map(function (val) {
|
|
31992
|
-
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2,
|
|
32018
|
+
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$prac3, _val$Requestor15, _val$Requestor15$, _val$Requestor15$$pra, _val$Requestor$0$prac4, _val$Requestor16, _val$Requestor16$, _val$Requestor16$$pra, _val$Requestor17, _val$Requestor17$, _val$Requestor17$$pra, _val$Requestor18, _val$Requestor18$, _val$Requestor18$$pra, _val$Requestor19, _val$Requestor19$, _val$Requestor19$$pra, _val$Requestor19$$pra2, _val$Requestor19$$pra3, _val$Requestor20, _val$Requestor20$, _val$Requestor20$$pra, _val$Requestor20$$pra2, _val$Requestor21, _val$Requestor21$, _val$Requestor21$$pra, _val$Requestor21$$pra2, _val$Requestor22, _val$Requestor22$, _val$Requestor22$$pra, _val$Requestor22$$pra2, _val$Requestor22$$pra3, _val$patientInstructi9, _val$patientInstructi10, _val$patientInstructi11, _val$patientInstructi12, _val$patientInstructi13, _val$patientInstructi14, _val$patientInstructi15, _val$patientInstructi16, _val$preparatoryInstr9, _val$preparatoryInstr10, _val$preparatoryInstr11, _val$preparatoryInstr12, _val$preparatoryInstr13, _val$preparatoryInstr14, _val$preparatoryInstr15, _val$preparatoryInstr16, _val$departmentalInst9, _val$departmentalInst10, _val$departmentalInst11, _val$departmentalInst12, _val$departmentalInst13, _val$departmentalInst14, _val$departmentalInst15, _val$departmentalInst16, _val$attribute5, _val$attribute5$, _val$attribute6, _val$attribute6$, _val$attribute$0$bedS2, _val$attribute7, _val$attribute7$, _val$attribute$0$cont2, _val$attribute8, _val$attribute8$, _val$createddate2, _val$changeStatus4, _val$changeStatus5, _val$changeStatus6, _val$statushistory2, _val$statusreason2, _val$accessionNum2;
|
|
31993
32019
|
|
|
31994
32020
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis2 = val.diagnosis) === null || _val$diagnosis2 === void 0 ? void 0 : _val$diagnosis2.map(function (v) {
|
|
31995
32021
|
return {
|
|
@@ -32034,8 +32060,8 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
32034
32060
|
nature: {
|
|
32035
32061
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
32036
32062
|
},
|
|
32037
|
-
dateTime: (
|
|
32038
|
-
endDate: (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ?
|
|
32063
|
+
dateTime: (_utcTOLocal6 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal6 !== void 0 ? _utcTOLocal6 : "",
|
|
32064
|
+
endDate: (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
|
|
32039
32065
|
recurrent: false,
|
|
32040
32066
|
headerShow: true,
|
|
32041
32067
|
recurrentData: {
|
|
@@ -32047,11 +32073,11 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
32047
32073
|
}
|
|
32048
32074
|
},
|
|
32049
32075
|
startsOn: {
|
|
32050
|
-
dateTime: (
|
|
32076
|
+
dateTime: (_utcTOLocal7 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent15 = val.recurrent) === null || _val$recurrent15 === void 0 ? void 0 : (_val$recurrent15$ = _val$recurrent15[0]) === null || _val$recurrent15$ === void 0 ? void 0 : _val$recurrent15$.starts_on, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal7 !== void 0 ? _utcTOLocal7 : ""
|
|
32051
32077
|
},
|
|
32052
32078
|
endsAfter: {
|
|
32053
32079
|
endsAfter: (_JSON$stringify4 = JSON.stringify(val === null || val === void 0 ? void 0 : (_val$recurrent16 = val.recurrent) === null || _val$recurrent16 === void 0 ? void 0 : (_val$recurrent16$ = _val$recurrent16[0]) === null || _val$recurrent16$ === void 0 ? void 0 : _val$recurrent16$.startes_on_occurance)) !== null && _JSON$stringify4 !== void 0 ? _JSON$stringify4 : "",
|
|
32054
|
-
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent17 = val.recurrent) === null || _val$recurrent17 === void 0 ? void 0 : (_val$recurrent17$ = _val$recurrent17[0]) === null || _val$recurrent17$ === void 0 ? void 0 : _val$recurrent17$.startes_on_occurance_date) ? (
|
|
32080
|
+
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent17 = val.recurrent) === null || _val$recurrent17 === void 0 ? void 0 : (_val$recurrent17$ = _val$recurrent17[0]) === null || _val$recurrent17$ === void 0 ? void 0 : _val$recurrent17$.startes_on_occurance_date) ? (_utcTOLocal8 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent18 = val.recurrent) === null || _val$recurrent18 === void 0 ? void 0 : (_val$recurrent18$ = _val$recurrent18[0]) === null || _val$recurrent18$ === void 0 ? void 0 : _val$recurrent18$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal8 !== void 0 ? _utcTOLocal8 : "" : ""
|
|
32055
32081
|
}
|
|
32056
32082
|
},
|
|
32057
32083
|
orderType: {
|
|
@@ -32060,7 +32086,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
32060
32086
|
mode: {
|
|
32061
32087
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
32062
32088
|
},
|
|
32063
|
-
startDate: (
|
|
32089
|
+
startDate: (_utcTOLocal9 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceStartDate, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal9 !== void 0 ? _utcTOLocal9 : "",
|
|
32064
32090
|
orderCatalog: {
|
|
32065
32091
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
32066
32092
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -32115,7 +32141,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
32115
32141
|
bedSide: (_val$attribute$0$bedS2 = (_val$attribute7 = val.attribute) === null || _val$attribute7 === void 0 ? void 0 : (_val$attribute7$ = _val$attribute7[0]) === null || _val$attribute7$ === void 0 ? void 0 : _val$attribute7$.bedSide) !== null && _val$attribute$0$bedS2 !== void 0 ? _val$attribute$0$bedS2 : false,
|
|
32116
32142
|
contrast: (_val$attribute$0$cont2 = (_val$attribute8 = val.attribute) === null || _val$attribute8 === void 0 ? void 0 : (_val$attribute8$ = _val$attribute8[0]) === null || _val$attribute8$ === void 0 ? void 0 : _val$attribute8$.contrast) !== null && _val$attribute$0$cont2 !== void 0 ? _val$attribute$0$cont2 : ""
|
|
32117
32143
|
},
|
|
32118
|
-
createdAt: (_val$createddate2 = val === null || val === void 0 ? void 0 : val.createddate) !== null && _val$createddate2 !== void 0 ? _val$createddate2 :
|
|
32144
|
+
createdAt: (_val$createddate2 = val === null || val === void 0 ? void 0 : val.createddate) !== null && _val$createddate2 !== void 0 ? _val$createddate2 : "",
|
|
32119
32145
|
// createdAt: getData(),
|
|
32120
32146
|
editData: val._id,
|
|
32121
32147
|
statusData: {
|
|
@@ -32131,7 +32157,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
32131
32157
|
status: val === null || val === void 0 ? void 0 : val.status,
|
|
32132
32158
|
parentOrderId: val === null || val === void 0 ? void 0 : val.parentOrderId,
|
|
32133
32159
|
apptDate: val === null || val === void 0 ? void 0 : val.apptDate,
|
|
32134
|
-
userName: (_val$accessionNum2 = val === null || val === void 0 ? void 0 : val.accessionNum) !== null && _val$accessionNum2 !== void 0 ? _val$accessionNum2 :
|
|
32160
|
+
userName: (_val$accessionNum2 = val === null || val === void 0 ? void 0 : val.accessionNum) !== null && _val$accessionNum2 !== void 0 ? _val$accessionNum2 : ""
|
|
32135
32161
|
};
|
|
32136
32162
|
});
|
|
32137
32163
|
return list;
|
|
@@ -33752,7 +33778,7 @@ var generateJSON = function generateJSON(dataList) {
|
|
|
33752
33778
|
|
|
33753
33779
|
var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
33754
33780
|
var list = dataList.map(function (val) {
|
|
33755
|
-
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature,
|
|
33781
|
+
var _val$diagnosis, _val$performer, _val$recurrent, _val$recurrent$, _val$priority, _val$OrderNature, _utcTOLocal, _val$recurrent2, _val$recurrent2$, _utcTOLocal2, _val$recurrent3, _val$recurrent3$, _JSON$stringify, _val$recurrent4, _val$recurrent4$, _val$recurrent$0$ever, _val$recurrent5, _val$recurrent5$, _val$recurrent$0$ever2, _val$recurrent6, _val$recurrent6$, _utcTOLocal3, _val$recurrent7, _val$recurrent7$, _JSON$stringify2, _val$recurrent8, _val$recurrent8$, _val$recurrent9, _val$recurrent9$, _utcTOLocal4, _val$recurrent10, _val$recurrent10$, _utcTOLocal5, _val$Requestor, _val$Requestor$, _val$Requestor$$organ, _val$Requestor2, _val$Requestor2$, _val$Requestor2$$orga, _val$Requestor3, _val$Requestor3$, _val$Requestor3$$orga, _val$Requestor$0$prac, _val$Requestor4, _val$Requestor4$, _val$Requestor4$$prac, _val$Requestor$0$prac2, _val$Requestor5, _val$Requestor5$, _val$Requestor5$$prac, _val$Requestor6, _val$Requestor6$, _val$Requestor6$$prac, _val$Requestor7, _val$Requestor7$, _val$Requestor7$$prac, _val$Requestor8, _val$Requestor8$, _val$Requestor8$$prac, _val$Requestor8$$prac2, _val$Requestor8$$prac3, _val$Requestor9, _val$Requestor9$, _val$Requestor9$$prac, _val$Requestor9$$prac2, _val$Requestor10, _val$Requestor10$, _val$Requestor10$$pra, _val$Requestor10$$pra2, _val$Requestor11, _val$Requestor11$, _val$Requestor11$$pra, _val$Requestor11$$pra2, _val$Requestor11$$pra3, _val$patientInstructi, _val$patientInstructi2, _val$patientInstructi3, _val$patientInstructi4, _val$patientInstructi5, _val$patientInstructi6, _val$patientInstructi7, _val$patientInstructi8, _val$preparatoryInstr, _val$preparatoryInstr2, _val$preparatoryInstr3, _val$preparatoryInstr4, _val$preparatoryInstr5, _val$preparatoryInstr6, _val$preparatoryInstr7, _val$preparatoryInstr8, _val$departmentalInst, _val$departmentalInst2, _val$departmentalInst3, _val$departmentalInst4, _val$departmentalInst5, _val$departmentalInst6, _val$departmentalInst7, _val$departmentalInst8, _val$attribute, _val$attribute$, _val$attribute2, _val$attribute2$, _val$attribute$0$bedS, _val$attribute3, _val$attribute3$, _val$attribute$0$cont, _val$attribute4, _val$attribute4$, _val$createddate, _val$changeStatus, _val$changeStatus2, _val$changeStatus3, _val$statushistory, _val$statusreason, _val$accessionNum;
|
|
33756
33782
|
|
|
33757
33783
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis = val.diagnosis) === null || _val$diagnosis === void 0 ? void 0 : _val$diagnosis.map(function (v) {
|
|
33758
33784
|
return {
|
|
@@ -33801,8 +33827,8 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33801
33827
|
nature: {
|
|
33802
33828
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
33803
33829
|
},
|
|
33804
|
-
dateTime: (
|
|
33805
|
-
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (
|
|
33830
|
+
dateTime: (_utcTOLocal = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal !== void 0 ? _utcTOLocal : "",
|
|
33831
|
+
endDate: (val === null || val === void 0 ? void 0 : (_val$recurrent2 = val.recurrent) === null || _val$recurrent2 === void 0 ? void 0 : (_val$recurrent2$ = _val$recurrent2[0]) === null || _val$recurrent2$ === void 0 ? void 0 : _val$recurrent2$.startes_on_occurance_date) ? (_utcTOLocal2 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent3 = val.recurrent) === null || _val$recurrent3 === void 0 ? void 0 : (_val$recurrent3$ = _val$recurrent3[0]) === null || _val$recurrent3$ === void 0 ? void 0 : _val$recurrent3$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal2 !== void 0 ? _utcTOLocal2 : "" : "",
|
|
33806
33832
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
33807
33833
|
recurrent: false,
|
|
33808
33834
|
headerShow: true,
|
|
@@ -33815,11 +33841,11 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33815
33841
|
}
|
|
33816
33842
|
},
|
|
33817
33843
|
startsOn: {
|
|
33818
|
-
dateTime: (
|
|
33844
|
+
dateTime: (_utcTOLocal3 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent7 = val.recurrent) === null || _val$recurrent7 === void 0 ? void 0 : (_val$recurrent7$ = _val$recurrent7[0]) === null || _val$recurrent7$ === void 0 ? void 0 : _val$recurrent7$.starts_on, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal3 !== void 0 ? _utcTOLocal3 : ""
|
|
33819
33845
|
},
|
|
33820
33846
|
endsAfter: {
|
|
33821
33847
|
endsAfter: (_JSON$stringify2 = JSON.stringify(val === null || val === void 0 ? void 0 : (_val$recurrent8 = val.recurrent) === null || _val$recurrent8 === void 0 ? void 0 : (_val$recurrent8$ = _val$recurrent8[0]) === null || _val$recurrent8$ === void 0 ? void 0 : _val$recurrent8$.startes_on_occurance)) !== null && _JSON$stringify2 !== void 0 ? _JSON$stringify2 : "",
|
|
33822
|
-
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent9 = val.recurrent) === null || _val$recurrent9 === void 0 ? void 0 : (_val$recurrent9$ = _val$recurrent9[0]) === null || _val$recurrent9$ === void 0 ? void 0 : _val$recurrent9$.startes_on_occurance_date) ? (
|
|
33848
|
+
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent9 = val.recurrent) === null || _val$recurrent9 === void 0 ? void 0 : (_val$recurrent9$ = _val$recurrent9[0]) === null || _val$recurrent9$ === void 0 ? void 0 : _val$recurrent9$.startes_on_occurance_date) ? (_utcTOLocal4 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent10 = val.recurrent) === null || _val$recurrent10 === void 0 ? void 0 : (_val$recurrent10$ = _val$recurrent10[0]) === null || _val$recurrent10$ === void 0 ? void 0 : _val$recurrent10$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal4 !== void 0 ? _utcTOLocal4 : "" : ""
|
|
33823
33849
|
}
|
|
33824
33850
|
},
|
|
33825
33851
|
orderType: {
|
|
@@ -33828,7 +33854,7 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33828
33854
|
mode: {
|
|
33829
33855
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
33830
33856
|
},
|
|
33831
|
-
startDate: (
|
|
33857
|
+
startDate: (_utcTOLocal5 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal5 !== void 0 ? _utcTOLocal5 : "",
|
|
33832
33858
|
orderCatalog: {
|
|
33833
33859
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
33834
33860
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -33906,7 +33932,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33906
33932
|
return el != null;
|
|
33907
33933
|
});
|
|
33908
33934
|
var list = dataList.map(function (val) {
|
|
33909
|
-
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2,
|
|
33935
|
+
var _val$diagnosis2, _val$performer2, _val$recurrent11, _val$recurrent11$, _val$priority2, _val$OrderNature2, _utcTOLocal6, _JSON$stringify3, _val$recurrent12, _val$recurrent12$, _val$recurrent$0$ever3, _val$recurrent13, _val$recurrent13$, _val$recurrent$0$ever4, _val$recurrent14, _val$recurrent14$, _utcTOLocal7, _val$recurrent15, _val$recurrent15$, _JSON$stringify4, _val$recurrent16, _val$recurrent16$, _val$recurrent17, _val$recurrent17$, _utcTOLocal8, _val$recurrent18, _val$recurrent18$, _utcTOLocal9, _val$Requestor12, _val$Requestor12$, _val$Requestor12$$org, _val$Requestor13, _val$Requestor13$, _val$Requestor13$$org, _val$Requestor14, _val$Requestor14$, _val$Requestor14$$org, _val$Requestor$0$prac3, _val$Requestor15, _val$Requestor15$, _val$Requestor15$$pra, _val$Requestor$0$prac4, _val$Requestor16, _val$Requestor16$, _val$Requestor16$$pra, _val$Requestor17, _val$Requestor17$, _val$Requestor17$$pra, _val$Requestor18, _val$Requestor18$, _val$Requestor18$$pra, _val$Requestor19, _val$Requestor19$, _val$Requestor19$$pra, _val$Requestor19$$pra2, _val$Requestor19$$pra3, _val$Requestor20, _val$Requestor20$, _val$Requestor20$$pra, _val$Requestor20$$pra2, _val$Requestor21, _val$Requestor21$, _val$Requestor21$$pra, _val$Requestor21$$pra2, _val$Requestor22, _val$Requestor22$, _val$Requestor22$$pra, _val$Requestor22$$pra2, _val$Requestor22$$pra3, _val$patientInstructi9, _val$patientInstructi10, _val$patientInstructi11, _val$patientInstructi12, _val$patientInstructi13, _val$patientInstructi14, _val$patientInstructi15, _val$patientInstructi16, _val$preparatoryInstr9, _val$preparatoryInstr10, _val$preparatoryInstr11, _val$preparatoryInstr12, _val$preparatoryInstr13, _val$preparatoryInstr14, _val$preparatoryInstr15, _val$preparatoryInstr16, _val$departmentalInst9, _val$departmentalInst10, _val$departmentalInst11, _val$departmentalInst12, _val$departmentalInst13, _val$departmentalInst14, _val$departmentalInst15, _val$departmentalInst16, _val$attribute5, _val$attribute5$, _val$attribute6, _val$attribute6$, _val$attribute$0$bedS2, _val$attribute7, _val$attribute7$, _val$attribute$0$cont2, _val$attribute8, _val$attribute8$, _val$createddate2, _val$changeStatus4, _val$changeStatus5, _val$changeStatus6, _val$statushistory2, _val$statusreason2, _val$accessionNum2;
|
|
33910
33936
|
|
|
33911
33937
|
var diagnosisData = val === null || val === void 0 ? void 0 : (_val$diagnosis2 = val.diagnosis) === null || _val$diagnosis2 === void 0 ? void 0 : _val$diagnosis2.map(function (v) {
|
|
33912
33938
|
return {
|
|
@@ -33955,8 +33981,8 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33955
33981
|
nature: {
|
|
33956
33982
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
33957
33983
|
},
|
|
33958
|
-
dateTime: (
|
|
33959
|
-
endDate: (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ?
|
|
33984
|
+
dateTime: (_utcTOLocal6 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.orderDateTime, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal6 !== void 0 ? _utcTOLocal6 : "",
|
|
33985
|
+
endDate: (val === null || val === void 0 ? void 0 : val.occuranceEndDate) > 0 ? utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceEndDate, "YYYY-MM-DD,hh:mm A") : "",
|
|
33960
33986
|
recurrent: false,
|
|
33961
33987
|
headerShow: true,
|
|
33962
33988
|
recurrentData: {
|
|
@@ -33968,11 +33994,11 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33968
33994
|
}
|
|
33969
33995
|
},
|
|
33970
33996
|
startsOn: {
|
|
33971
|
-
dateTime: (
|
|
33997
|
+
dateTime: (_utcTOLocal7 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent15 = val.recurrent) === null || _val$recurrent15 === void 0 ? void 0 : (_val$recurrent15$ = _val$recurrent15[0]) === null || _val$recurrent15$ === void 0 ? void 0 : _val$recurrent15$.starts_on, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal7 !== void 0 ? _utcTOLocal7 : ""
|
|
33972
33998
|
},
|
|
33973
33999
|
endsAfter: {
|
|
33974
34000
|
endsAfter: (_JSON$stringify4 = JSON.stringify(val === null || val === void 0 ? void 0 : (_val$recurrent16 = val.recurrent) === null || _val$recurrent16 === void 0 ? void 0 : (_val$recurrent16$ = _val$recurrent16[0]) === null || _val$recurrent16$ === void 0 ? void 0 : _val$recurrent16$.startes_on_occurance)) !== null && _JSON$stringify4 !== void 0 ? _JSON$stringify4 : "",
|
|
33975
|
-
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent17 = val.recurrent) === null || _val$recurrent17 === void 0 ? void 0 : (_val$recurrent17$ = _val$recurrent17[0]) === null || _val$recurrent17$ === void 0 ? void 0 : _val$recurrent17$.startes_on_occurance_date) ? (
|
|
34001
|
+
endsBy: (val === null || val === void 0 ? void 0 : (_val$recurrent17 = val.recurrent) === null || _val$recurrent17 === void 0 ? void 0 : (_val$recurrent17$ = _val$recurrent17[0]) === null || _val$recurrent17$ === void 0 ? void 0 : _val$recurrent17$.startes_on_occurance_date) ? (_utcTOLocal8 = utcTOLocal$1(val === null || val === void 0 ? void 0 : (_val$recurrent18 = val.recurrent) === null || _val$recurrent18 === void 0 ? void 0 : (_val$recurrent18$ = _val$recurrent18[0]) === null || _val$recurrent18$ === void 0 ? void 0 : _val$recurrent18$.startes_on_occurance_date, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal8 !== void 0 ? _utcTOLocal8 : "" : ""
|
|
33976
34002
|
}
|
|
33977
34003
|
},
|
|
33978
34004
|
orderType: {
|
|
@@ -33981,7 +34007,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33981
34007
|
mode: {
|
|
33982
34008
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
33983
34009
|
},
|
|
33984
|
-
startDate: (
|
|
34010
|
+
startDate: (_utcTOLocal9 = utcTOLocal$1(val === null || val === void 0 ? void 0 : val.occuranceStartDate, "YYYY-MM-DD,hh:mm A")) !== null && _utcTOLocal9 !== void 0 ? _utcTOLocal9 : "",
|
|
33985
34011
|
orderCatalog: {
|
|
33986
34012
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
33987
34013
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -36245,7 +36271,7 @@ var genereateSaveJson = function genereateSaveJson(data) {
|
|
|
36245
36271
|
}],
|
|
36246
36272
|
encountertype: (_patient$type = patient === null || patient === void 0 ? void 0 : patient.type) !== null && _patient$type !== void 0 ? _patient$type : "",
|
|
36247
36273
|
doctype: details.editId ? details === null || details === void 0 ? void 0 : details.OldselectDoccument._id : details === null || details === void 0 ? void 0 : (_details$selectDoccum = details.selectDoccument) === null || _details$selectDoccum === void 0 ? void 0 : _details$selectDoccum._id,
|
|
36248
|
-
docdate: details.editId ? data === null || data === void 0 ? void 0 : data.docdate :
|
|
36274
|
+
docdate: details.editId ? data === null || data === void 0 ? void 0 : data.docdate : getUtcTime(),
|
|
36249
36275
|
documents: [{
|
|
36250
36276
|
_id: "",
|
|
36251
36277
|
date: "",
|
|
@@ -36303,7 +36329,7 @@ var generatesingleRead = function generatesingleRead(val, state) {
|
|
|
36303
36329
|
_id: val === null || val === void 0 ? void 0 : (_val$doctype4 = val.doctype) === null || _val$doctype4 === void 0 ? void 0 : _val$doctype4._id
|
|
36304
36330
|
} : null,
|
|
36305
36331
|
formID: val === null || val === void 0 ? void 0 : val.docformid,
|
|
36306
|
-
createdOn:
|
|
36332
|
+
createdOn: utcTOLocal$1(val.createddate, "DD MMM YYYY"),
|
|
36307
36333
|
editId: val._id,
|
|
36308
36334
|
formData: val.formdata,
|
|
36309
36335
|
saveMode: val.status === true ? "Final" : "Draft"
|
|
@@ -36324,15 +36350,15 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36324
36350
|
var category = element === null || element === void 0 ? void 0 : (_element$doccategory4 = element.doccategory) === null || _element$doccategory4 === void 0 ? void 0 : _element$doccategory4.display;
|
|
36325
36351
|
|
|
36326
36352
|
if (category in obj) {
|
|
36327
|
-
var _element$practitioner, _element$practitioner2, _element$practitioner3, _element$practitioner4, _element$practitioner5, _element$practitioner6
|
|
36353
|
+
var _element$practitioner, _element$practitioner2, _element$practitioner3, _element$practitioner4, _element$practitioner5, _element$practitioner6;
|
|
36328
36354
|
|
|
36329
36355
|
obj[category].count = obj[category].count + 1;
|
|
36330
36356
|
|
|
36331
36357
|
var userObj = _objectSpread2({
|
|
36332
36358
|
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner = element.practitionerid[0]) === null || _element$practitioner === void 0 ? void 0 : (_element$practitioner2 = _element$practitioner.practitioner_role) === null || _element$practitioner2 === void 0 ? void 0 : (_element$practitioner3 = _element$practitioner2[0]) === null || _element$practitioner3 === void 0 ? void 0 : (_element$practitioner4 = _element$practitioner3.role) === null || _element$practitioner4 === void 0 ? void 0 : (_element$practitioner5 = _element$practitioner4.coding[0]) === null || _element$practitioner5 === void 0 ? void 0 : _element$practitioner5.display : "",
|
|
36333
36359
|
//title: "Role",
|
|
36334
|
-
date:
|
|
36335
|
-
name: element.practitionerid.length > 0 ? ((_element$practitioner6 = element.practitionerid[0]) === null || _element$practitioner6 === void 0 ? void 0 :
|
|
36360
|
+
date: utcTOLocal$1(element.createddate, "MMMM Do h:mm a"),
|
|
36361
|
+
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner6 = element.practitionerid[0]) === null || _element$practitioner6 === void 0 ? void 0 : _element$practitioner6.name[0]) || {}) : "Dummy"
|
|
36336
36362
|
}, element);
|
|
36337
36363
|
|
|
36338
36364
|
var childObj = {
|
|
@@ -36349,7 +36375,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36349
36375
|
obj[category].child.push(childObj);
|
|
36350
36376
|
}
|
|
36351
36377
|
} else {
|
|
36352
|
-
var _element$
|
|
36378
|
+
var _element$practitioner7, _element$practitioner8, _element$practitioner9, _element$practitioner10, _element$practitioner11, _element$practitioner12;
|
|
36353
36379
|
|
|
36354
36380
|
obj[category] = {
|
|
36355
36381
|
title: category,
|
|
@@ -36358,9 +36384,9 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36358
36384
|
};
|
|
36359
36385
|
|
|
36360
36386
|
var _userObj = _objectSpread2({
|
|
36361
|
-
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$
|
|
36362
|
-
date:
|
|
36363
|
-
name: element.practitionerid.length > 0 ? ((
|
|
36387
|
+
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner7 = element.practitionerid[0]) === null || _element$practitioner7 === void 0 ? void 0 : (_element$practitioner8 = _element$practitioner7.practitioner_role) === null || _element$practitioner8 === void 0 ? void 0 : (_element$practitioner9 = _element$practitioner8[0]) === null || _element$practitioner9 === void 0 ? void 0 : (_element$practitioner10 = _element$practitioner9.role) === null || _element$practitioner10 === void 0 ? void 0 : (_element$practitioner11 = _element$practitioner10.coding[0]) === null || _element$practitioner11 === void 0 ? void 0 : _element$practitioner11.display : "",
|
|
36388
|
+
date: utcTOLocal$1(element.createddate, "MMMM Do h:mm:ss a"),
|
|
36389
|
+
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner12 = element.practitionerid[0]) === null || _element$practitioner12 === void 0 ? void 0 : _element$practitioner12.name[0]) || {}) : "Dummy"
|
|
36364
36390
|
}, element);
|
|
36365
36391
|
|
|
36366
36392
|
var childObj = {
|
|
@@ -36380,23 +36406,18 @@ var generatePractitoner = function generatePractitoner(data) {
|
|
|
36380
36406
|
});
|
|
36381
36407
|
var arr = [];
|
|
36382
36408
|
orderedData.forEach(function (element) {
|
|
36383
|
-
var _element$
|
|
36409
|
+
var _element$practitioner13, _element$practitioner14, _element$practitioner15, _element$practitioner16, _element$practitioner17;
|
|
36384
36410
|
|
|
36385
36411
|
var userObj = _objectSpread2({
|
|
36386
|
-
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$
|
|
36387
|
-
date:
|
|
36388
|
-
name: element.practitionerid.length > 0 ?
|
|
36412
|
+
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$practitioner13 = element.practitionerid[0]) === null || _element$practitioner13 === void 0 ? void 0 : (_element$practitioner14 = _element$practitioner13.practitioner_role[0]) === null || _element$practitioner14 === void 0 ? void 0 : (_element$practitioner15 = _element$practitioner14.role) === null || _element$practitioner15 === void 0 ? void 0 : (_element$practitioner16 = _element$practitioner15.coding[0]) === null || _element$practitioner16 === void 0 ? void 0 : _element$practitioner16.display : "",
|
|
36413
|
+
date: utcTOLocal$1(element.createddate, "MMMM Do h:mm a"),
|
|
36414
|
+
name: element.practitionerid.length > 0 ? makeName(((_element$practitioner17 = element.practitionerid[0]) === null || _element$practitioner17 === void 0 ? void 0 : _element$practitioner17.name[0]) || {}) : "Dummy"
|
|
36389
36415
|
}, element);
|
|
36390
36416
|
|
|
36391
36417
|
arr.push(userObj);
|
|
36392
36418
|
});
|
|
36393
36419
|
return arr;
|
|
36394
36420
|
};
|
|
36395
|
-
var getData = function getData(date, time) {
|
|
36396
|
-
var da = date ? new Date(date) : new Date();
|
|
36397
|
-
var d = new Date(da).toDateString().split(" ");
|
|
36398
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format("LT") : "");
|
|
36399
|
-
};
|
|
36400
36421
|
|
|
36401
36422
|
var _extraReducers$9;
|
|
36402
36423
|
var DOCC_SAVE_SERVICE = createAsyncThunk("DoccSlice/docc_save", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -37484,7 +37505,7 @@ var config$1 = [{
|
|
|
37484
37505
|
}];
|
|
37485
37506
|
return {
|
|
37486
37507
|
labels: (_payload$date = payload.date) === null || _payload$date === void 0 ? void 0 : _payload$date.map(function (v) {
|
|
37487
|
-
return
|
|
37508
|
+
return utcTOLocal$1(v.start, "hh A");
|
|
37488
37509
|
}),
|
|
37489
37510
|
datasets: datasets
|
|
37490
37511
|
};
|
|
@@ -37822,7 +37843,7 @@ var query$4 = {
|
|
|
37822
37843
|
entity: "Appointment,Encounter",
|
|
37823
37844
|
filter: {
|
|
37824
37845
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)!='cancelled' && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
37825
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37846
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37826
37847
|
},
|
|
37827
37848
|
return_fields: "{Appointment: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)}))}),Encounter: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))}))})}"
|
|
37828
37849
|
};
|
|
@@ -37890,7 +37911,7 @@ var query$4 = {
|
|
|
37890
37911
|
filter: {
|
|
37891
37912
|
Practitioner: "Practitioner.activestatus==true && DOCUMENT(DOCUMENT(DOCUMENT(Practitioner.practitioner_role[*])[*].role)[0].coding)[*].code ANY =='PR023' && Practitioner.id==".concat(data === null || data === void 0 ? void 0 : data.practionerID, " && DOCUMENT(Practitioner.practitioner_role[*])[*].OrgID ANY =='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
37892
37913
|
Appointment: "Appointment.activestatus==true && Appointment.orgid=='".concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)!='cancelled' && document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].id ANY IN Appointment.SpecialtyID"),
|
|
37893
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37914
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37894
37915
|
},
|
|
37895
37916
|
return_fields: "merge(Encounter,{status:document(Encounter.status),appointmentId:(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:document(document(Appointment.resourcecode).name)}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})),patient_id:(for pati in Patient filter pati.id == Encounter.patient_id return merge(pati,{name:document(pati.name)}))})"
|
|
37896
37917
|
};
|
|
@@ -37961,7 +37982,7 @@ var query$4 = {
|
|
|
37961
37982
|
entity: "Appointment,Encounter",
|
|
37962
37983
|
filter: {
|
|
37963
37984
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)!='cancelled' && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
37964
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37985
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37965
37986
|
},
|
|
37966
37987
|
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:(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)}))}))})"
|
|
37967
37988
|
};
|
|
@@ -38055,8 +38076,8 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
38055
38076
|
img: (_ === null || _ === void 0 ? void 0 : (_$Appointment = _.Appointment) === null || _$Appointment === void 0 ? void 0 : (_$Appointment$PersonI = _$Appointment.PersonID) === null || _$Appointment$PersonI === void 0 ? void 0 : (_$Appointment$PersonI2 = _$Appointment$PersonI[0]) === null || _$Appointment$PersonI2 === void 0 ? void 0 : (_$Appointment$PersonI3 = _$Appointment$PersonI2.photo) === null || _$Appointment$PersonI3 === void 0 ? void 0 : (_$Appointment$PersonI4 = _$Appointment$PersonI3[0]) === null || _$Appointment$PersonI4 === void 0 ? void 0 : _$Appointment$PersonI4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment2 = _.Appointment) === null || _$Appointment2 === void 0 ? void 0 : (_$Appointment2$Person = _$Appointment2.PersonID) === null || _$Appointment2$Person === void 0 ? void 0 : (_$Appointment2$Person2 = _$Appointment2$Person[0]) === null || _$Appointment2$Person2 === void 0 ? void 0 : (_$Appointment2$Person3 = _$Appointment2$Person2.photo) === null || _$Appointment2$Person3 === void 0 ? void 0 : (_$Appointment2$Person4 = _$Appointment2$Person3[0]) === null || _$Appointment2$Person4 === void 0 ? void 0 : _$Appointment2$Person4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38056
38077
|
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]) || {}),
|
|
38057
38078
|
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,
|
|
38058
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment3 = _.Appointment) === null || _$Appointment3 === void 0 ? void 0 : _$Appointment3.start) ?
|
|
38059
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment5 = _.Appointment) === null || _$Appointment5 === void 0 ? void 0 : _$Appointment5.start) ?
|
|
38079
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment3 = _.Appointment) === null || _$Appointment3 === void 0 ? void 0 : _$Appointment3.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment4 = _.Appointment) === null || _$Appointment4 === void 0 ? void 0 : _$Appointment4.start, "DD MMM,YYYY") : "",
|
|
38080
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment5 = _.Appointment) === null || _$Appointment5 === void 0 ? void 0 : _$Appointment5.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment6 = _.Appointment) === null || _$Appointment6 === void 0 ? void 0 : _$Appointment6.start, "hh:mm A") : "",
|
|
38060
38081
|
speciality: _ === null || _ === void 0 ? void 0 : (_$Appointment7 = _.Appointment) === null || _$Appointment7 === void 0 ? void 0 : (_$Appointment7$Specia = _$Appointment7.SpecialtyID) === null || _$Appointment7$Specia === void 0 ? void 0 : _$Appointment7$Specia.map(function (spl) {
|
|
38061
38082
|
var _spl$coding, _spl$coding$;
|
|
38062
38083
|
|
|
@@ -38121,8 +38142,8 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
38121
38142
|
img: (_ === 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.photo) === null || _$Appointment9$Person3 === void 0 ? void 0 : (_$Appointment9$Person4 = _$Appointment9$Person3[0]) === null || _$Appointment9$Person4 === void 0 ? void 0 : _$Appointment9$Person4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment10 = _.Appointment) === null || _$Appointment10 === void 0 ? void 0 : (_$Appointment10$Perso = _$Appointment10.PersonID) === null || _$Appointment10$Perso === void 0 ? void 0 : (_$Appointment10$Perso2 = _$Appointment10$Perso[0]) === null || _$Appointment10$Perso2 === void 0 ? void 0 : (_$Appointment10$Perso3 = _$Appointment10$Perso2.photo) === null || _$Appointment10$Perso3 === void 0 ? void 0 : (_$Appointment10$Perso4 = _$Appointment10$Perso3[0]) === null || _$Appointment10$Perso4 === void 0 ? void 0 : _$Appointment10$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38122
38143
|
name: makeName((_ === 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.name) === null || _$Encounter7$patient_3 === void 0 ? void 0 : _$Encounter7$patient_3[0]) || {}),
|
|
38123
38144
|
mrn: _ === 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.MRN,
|
|
38124
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : _$Appointment11.start) ?
|
|
38125
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment13 = _.Appointment) === null || _$Appointment13 === void 0 ? void 0 : _$Appointment13.start) ?
|
|
38145
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : _$Appointment11.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment12 = _.Appointment) === null || _$Appointment12 === void 0 ? void 0 : _$Appointment12.start, "DD MMM,YYYY") : "",
|
|
38146
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment13 = _.Appointment) === null || _$Appointment13 === void 0 ? void 0 : _$Appointment13.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment14 = _.Appointment) === null || _$Appointment14 === void 0 ? void 0 : _$Appointment14.start, "hh:mm A") : "",
|
|
38126
38147
|
speciality: _ === null || _ === void 0 ? void 0 : (_$Appointment15 = _.Appointment) === null || _$Appointment15 === void 0 ? void 0 : (_$Appointment15$Speci = _$Appointment15.SpecialtyID) === null || _$Appointment15$Speci === void 0 ? void 0 : _$Appointment15$Speci.map(function (spl) {
|
|
38127
38148
|
var _spl$coding2, _spl$coding2$;
|
|
38128
38149
|
|
|
@@ -38187,8 +38208,8 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38187
38208
|
img: (_ === null || _ === void 0 ? void 0 : (_$Appointment17 = _.Appointment) === null || _$Appointment17 === void 0 ? void 0 : (_$Appointment17$Perso = _$Appointment17.PersonID) === null || _$Appointment17$Perso === void 0 ? void 0 : (_$Appointment17$Perso2 = _$Appointment17$Perso[0]) === null || _$Appointment17$Perso2 === void 0 ? void 0 : (_$Appointment17$Perso3 = _$Appointment17$Perso2.photo) === null || _$Appointment17$Perso3 === void 0 ? void 0 : (_$Appointment17$Perso4 = _$Appointment17$Perso3[0]) === null || _$Appointment17$Perso4 === void 0 ? void 0 : _$Appointment17$Perso4.fileid) ? getImgUrl(_ === 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$Perso3 = _$Appointment18$Perso2.photo) === null || _$Appointment18$Perso3 === void 0 ? void 0 : (_$Appointment18$Perso4 = _$Appointment18$Perso3[0]) === null || _$Appointment18$Perso4 === void 0 ? void 0 : _$Appointment18$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38188
38209
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter13 = _.Encounter) === null || _$Encounter13 === void 0 ? void 0 : (_$Encounter13$patient = _$Encounter13.patient_id) === null || _$Encounter13$patient === void 0 ? void 0 : (_$Encounter13$patient2 = _$Encounter13$patient[0]) === null || _$Encounter13$patient2 === void 0 ? void 0 : (_$Encounter13$patient3 = _$Encounter13$patient2.name) === null || _$Encounter13$patient3 === void 0 ? void 0 : _$Encounter13$patient3[0]) || {}),
|
|
38189
38210
|
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter14 = _.Encounter) === null || _$Encounter14 === void 0 ? void 0 : (_$Encounter14$patient = _$Encounter14.patient_id) === null || _$Encounter14$patient === void 0 ? void 0 : (_$Encounter14$patient2 = _$Encounter14$patient[0]) === null || _$Encounter14$patient2 === void 0 ? void 0 : _$Encounter14$patient2.MRN,
|
|
38190
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment19 = _.Appointment) === null || _$Appointment19 === void 0 ? void 0 : _$Appointment19.start) ?
|
|
38191
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment21 = _.Appointment) === null || _$Appointment21 === void 0 ? void 0 : _$Appointment21.start) ?
|
|
38211
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment19 = _.Appointment) === null || _$Appointment19 === void 0 ? void 0 : _$Appointment19.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment20 = _.Appointment) === null || _$Appointment20 === void 0 ? void 0 : _$Appointment20.start, "DD MMM,YYYY") : "",
|
|
38212
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment21 = _.Appointment) === null || _$Appointment21 === void 0 ? void 0 : _$Appointment21.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment22 = _.Appointment) === null || _$Appointment22 === void 0 ? void 0 : _$Appointment22.start, "hh:mm A") : "",
|
|
38192
38213
|
speciality: _ === null || _ === void 0 ? void 0 : (_$Appointment23 = _.Appointment) === null || _$Appointment23 === void 0 ? void 0 : (_$Appointment23$Speci = _$Appointment23.SpecialtyID) === null || _$Appointment23$Speci === void 0 ? void 0 : _$Appointment23$Speci.map(function (spl) {
|
|
38193
38214
|
var _spl$coding3, _spl$coding3$;
|
|
38194
38215
|
|
|
@@ -38253,8 +38274,8 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38253
38274
|
img: (_ === 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$Perso3 = _$Appointment25$Perso2.photo) === null || _$Appointment25$Perso3 === void 0 ? void 0 : (_$Appointment25$Perso4 = _$Appointment25$Perso3[0]) === null || _$Appointment25$Perso4 === void 0 ? void 0 : _$Appointment25$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment26 = _.Appointment) === null || _$Appointment26 === void 0 ? void 0 : (_$Appointment26$Perso = _$Appointment26.PersonID) === null || _$Appointment26$Perso === void 0 ? void 0 : (_$Appointment26$Perso2 = _$Appointment26$Perso[0]) === null || _$Appointment26$Perso2 === void 0 ? void 0 : (_$Appointment26$Perso3 = _$Appointment26$Perso2.photo) === null || _$Appointment26$Perso3 === void 0 ? void 0 : (_$Appointment26$Perso4 = _$Appointment26$Perso3[0]) === null || _$Appointment26$Perso4 === void 0 ? void 0 : _$Appointment26$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38254
38275
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter19 = _.Encounter) === null || _$Encounter19 === void 0 ? void 0 : (_$Encounter19$patient = _$Encounter19.patient_id) === null || _$Encounter19$patient === void 0 ? void 0 : (_$Encounter19$patient2 = _$Encounter19$patient[0]) === null || _$Encounter19$patient2 === void 0 ? void 0 : (_$Encounter19$patient3 = _$Encounter19$patient2.name) === null || _$Encounter19$patient3 === void 0 ? void 0 : _$Encounter19$patient3[0]) || {}),
|
|
38255
38276
|
mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter20 = _.Encounter) === null || _$Encounter20 === void 0 ? void 0 : (_$Encounter20$patient = _$Encounter20.patient_id) === null || _$Encounter20$patient === void 0 ? void 0 : (_$Encounter20$patient2 = _$Encounter20$patient[0]) === null || _$Encounter20$patient2 === void 0 ? void 0 : _$Encounter20$patient2.MRN,
|
|
38256
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : _$Appointment27.start) ?
|
|
38257
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : _$Appointment29.start) ?
|
|
38277
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : _$Appointment27.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : _$Appointment28.start, "DD MMM,YYYY") : "",
|
|
38278
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : _$Appointment29.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment30 = _.Appointment) === null || _$Appointment30 === void 0 ? void 0 : _$Appointment30.start, "hh:mm A") : "",
|
|
38258
38279
|
speciality: _ === null || _ === void 0 ? void 0 : (_$Appointment31 = _.Appointment) === null || _$Appointment31 === void 0 ? void 0 : (_$Appointment31$Speci = _$Appointment31.SpecialtyID) === null || _$Appointment31$Speci === void 0 ? void 0 : _$Appointment31$Speci.map(function (spl) {
|
|
38259
38280
|
var _spl$coding4, _spl$coding4$;
|
|
38260
38281
|
|
|
@@ -38319,8 +38340,8 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38319
38340
|
img: (_ === null || _ === void 0 ? void 0 : (_$Appointment33 = _.Appointment) === null || _$Appointment33 === void 0 ? void 0 : (_$Appointment33$Perso = _$Appointment33.PersonID) === null || _$Appointment33$Perso === void 0 ? void 0 : (_$Appointment33$Perso2 = _$Appointment33$Perso[0]) === null || _$Appointment33$Perso2 === void 0 ? void 0 : (_$Appointment33$Perso3 = _$Appointment33$Perso2.photo) === null || _$Appointment33$Perso3 === void 0 ? void 0 : (_$Appointment33$Perso4 = _$Appointment33$Perso3[0]) === null || _$Appointment33$Perso4 === void 0 ? void 0 : _$Appointment33$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment34 = _.Appointment) === null || _$Appointment34 === void 0 ? void 0 : (_$Appointment34$Perso = _$Appointment34.PersonID) === null || _$Appointment34$Perso === void 0 ? void 0 : (_$Appointment34$Perso2 = _$Appointment34$Perso[0]) === null || _$Appointment34$Perso2 === void 0 ? void 0 : (_$Appointment34$Perso3 = _$Appointment34$Perso2.photo) === null || _$Appointment34$Perso3 === void 0 ? void 0 : (_$Appointment34$Perso4 = _$Appointment34$Perso3[0]) === null || _$Appointment34$Perso4 === void 0 ? void 0 : _$Appointment34$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38320
38341
|
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]) || {}),
|
|
38321
38342
|
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,
|
|
38322
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : _$Appointment35.start) ?
|
|
38323
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment37 = _.Appointment) === null || _$Appointment37 === void 0 ? void 0 : _$Appointment37.start) ?
|
|
38343
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : _$Appointment35.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment36 = _.Appointment) === null || _$Appointment36 === void 0 ? void 0 : _$Appointment36.start, "DD MMM,YYYY") : "",
|
|
38344
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment37 = _.Appointment) === null || _$Appointment37 === void 0 ? void 0 : _$Appointment37.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment38 = _.Appointment) === null || _$Appointment38 === void 0 ? void 0 : _$Appointment38.start, "hh:mm A") : "",
|
|
38324
38345
|
speciality: _ === null || _ === void 0 ? void 0 : (_$Appointment39 = _.Appointment) === null || _$Appointment39 === void 0 ? void 0 : (_$Appointment39$Speci = _$Appointment39.SpecialtyID) === null || _$Appointment39$Speci === void 0 ? void 0 : _$Appointment39$Speci.map(function (spl) {
|
|
38325
38346
|
var _spl$coding5, _spl$coding5$;
|
|
38326
38347
|
|
|
@@ -38385,8 +38406,8 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38385
38406
|
img: (_ === null || _ === void 0 ? void 0 : (_$Appointment41 = _.Appointment) === null || _$Appointment41 === void 0 ? void 0 : (_$Appointment41$Perso = _$Appointment41.PersonID) === null || _$Appointment41$Perso === void 0 ? void 0 : (_$Appointment41$Perso2 = _$Appointment41$Perso[0]) === null || _$Appointment41$Perso2 === void 0 ? void 0 : (_$Appointment41$Perso3 = _$Appointment41$Perso2.photo) === null || _$Appointment41$Perso3 === void 0 ? void 0 : (_$Appointment41$Perso4 = _$Appointment41$Perso3[0]) === null || _$Appointment41$Perso4 === void 0 ? void 0 : _$Appointment41$Perso4.fileid) ? getImgUrl(_ === 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$Perso3 = _$Appointment42$Perso2.photo) === null || _$Appointment42$Perso3 === void 0 ? void 0 : (_$Appointment42$Perso4 = _$Appointment42$Perso3[0]) === null || _$Appointment42$Perso4 === void 0 ? void 0 : _$Appointment42$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38386
38407
|
name: makeName((_ === 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.name) === null || _$Encounter31$patient3 === void 0 ? void 0 : _$Encounter31$patient3[0]) || {}),
|
|
38387
38408
|
mrn: _ === 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.MRN,
|
|
38388
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : _$Appointment43.start) ?
|
|
38389
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : _$Appointment45.start) ?
|
|
38409
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : _$Appointment43.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : _$Appointment44.start, "DD MMM,YYYY") : "",
|
|
38410
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : _$Appointment45.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment46 = _.Appointment) === null || _$Appointment46 === void 0 ? void 0 : _$Appointment46.start, "hh:mm A") : "",
|
|
38390
38411
|
speciality: _ === null || _ === void 0 ? void 0 : (_$Appointment47 = _.Appointment) === null || _$Appointment47 === void 0 ? void 0 : (_$Appointment47$Speci = _$Appointment47.SpecialtyID) === null || _$Appointment47$Speci === void 0 ? void 0 : _$Appointment47$Speci.map(function (spl) {
|
|
38391
38412
|
var _spl$coding6, _spl$coding6$;
|
|
38392
38413
|
|
|
@@ -38454,8 +38475,8 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38454
38475
|
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) || "",
|
|
38455
38476
|
age: _ === 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$.age,
|
|
38456
38477
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : (_$appointmentId3$ = _$appointmentId3[0]) === null || _$appointmentId3$ === void 0 ? void 0 : _$appointmentId3$.appno) || "",
|
|
38457
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : (_$appointmentId4$ = _$appointmentId4[0]) === null || _$appointmentId4$ === void 0 ? void 0 : _$appointmentId4$.start) ?
|
|
38458
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId6 = _.appointmentId) === null || _$appointmentId6 === void 0 ? void 0 : (_$appointmentId6$ = _$appointmentId6[0]) === null || _$appointmentId6$ === void 0 ? void 0 : _$appointmentId6$.start) ?
|
|
38478
|
+
date: (_ === 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, "DD MMM,YYYY") : "",
|
|
38479
|
+
time: (_ === 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, "hh:mm A") : "",
|
|
38459
38480
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
38460
38481
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId8 = _.appointmentId) === null || _$appointmentId8 === void 0 ? void 0 : (_$appointmentId8$ = _$appointmentId8[0]) === null || _$appointmentId8$ === void 0 ? void 0 : (_$appointmentId8$$Spe = _$appointmentId8$.SpecialtyID) === null || _$appointmentId8$$Spe === void 0 ? void 0 : _$appointmentId8$$Spe.map(function (spl) {
|
|
38461
38482
|
var _spl$coding7, _spl$coding7$;
|
|
@@ -38518,8 +38539,8 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38518
38539
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id5 = _.patient_id) === null || _$patient_id5 === void 0 ? void 0 : (_$patient_id5$ = _$patient_id5[0]) === null || _$patient_id5$ === void 0 ? void 0 : _$patient_id5$.alias) || "",
|
|
38519
38540
|
age: _ === 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$.age,
|
|
38520
38541
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId11 = _.appointmentId) === null || _$appointmentId11 === void 0 ? void 0 : (_$appointmentId11$ = _$appointmentId11[0]) === null || _$appointmentId11$ === void 0 ? void 0 : _$appointmentId11$.appno) || "",
|
|
38521
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : _$appointmentId12$.start) ?
|
|
38522
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId14 = _.appointmentId) === null || _$appointmentId14 === void 0 ? void 0 : (_$appointmentId14$ = _$appointmentId14[0]) === null || _$appointmentId14$ === void 0 ? void 0 : _$appointmentId14$.start) ?
|
|
38542
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : _$appointmentId12$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId13 = _.appointmentId) === null || _$appointmentId13 === void 0 ? void 0 : (_$appointmentId13$ = _$appointmentId13[0]) === null || _$appointmentId13$ === void 0 ? void 0 : _$appointmentId13$.start, "DD MMM,YYYY") : "",
|
|
38543
|
+
time: (_ === 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, "hh:mm A") : "",
|
|
38523
38544
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
38524
38545
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : (_$appointmentId16$$Sp = _$appointmentId16$.SpecialtyID) === null || _$appointmentId16$$Sp === void 0 ? void 0 : _$appointmentId16$$Sp.map(function (spl) {
|
|
38525
38546
|
var _spl$coding8, _spl$coding8$;
|
|
@@ -38582,8 +38603,8 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
38582
38603
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id8 = _.patient_id) === null || _$patient_id8 === void 0 ? void 0 : (_$patient_id8$ = _$patient_id8[0]) === null || _$patient_id8$ === void 0 ? void 0 : _$patient_id8$.alias) || "",
|
|
38583
38604
|
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,
|
|
38584
38605
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : _$appointmentId19$.appno) || "",
|
|
38585
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId20 = _.appointmentId) === null || _$appointmentId20 === void 0 ? void 0 : (_$appointmentId20$ = _$appointmentId20[0]) === null || _$appointmentId20$ === void 0 ? void 0 : _$appointmentId20$.start) ?
|
|
38586
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId22 = _.appointmentId) === null || _$appointmentId22 === void 0 ? void 0 : (_$appointmentId22$ = _$appointmentId22[0]) === null || _$appointmentId22$ === void 0 ? void 0 : _$appointmentId22$.start) ?
|
|
38606
|
+
date: (_ === 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") : "",
|
|
38607
|
+
time: (_ === 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") : "",
|
|
38587
38608
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
38588
38609
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId24 = _.appointmentId) === null || _$appointmentId24 === void 0 ? void 0 : (_$appointmentId24$ = _$appointmentId24[0]) === null || _$appointmentId24$ === void 0 ? void 0 : (_$appointmentId24$$Sp = _$appointmentId24$.SpecialtyID) === null || _$appointmentId24$$Sp === void 0 ? void 0 : _$appointmentId24$$Sp.map(function (spl) {
|
|
38589
38610
|
var _spl$coding9, _spl$coding9$;
|
|
@@ -38646,8 +38667,8 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
38646
38667
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id11 = _.patient_id) === null || _$patient_id11 === void 0 ? void 0 : (_$patient_id11$ = _$patient_id11[0]) === null || _$patient_id11$ === void 0 ? void 0 : _$patient_id11$.alias) || "",
|
|
38647
38668
|
age: _ === 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$.age,
|
|
38648
38669
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : _$appointmentId27$.appno) || "",
|
|
38649
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId28 = _.appointmentId) === null || _$appointmentId28 === void 0 ? void 0 : (_$appointmentId28$ = _$appointmentId28[0]) === null || _$appointmentId28$ === void 0 ? void 0 : _$appointmentId28$.start) ?
|
|
38650
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId30 = _.appointmentId) === null || _$appointmentId30 === void 0 ? void 0 : (_$appointmentId30$ = _$appointmentId30[0]) === null || _$appointmentId30$ === void 0 ? void 0 : _$appointmentId30$.start) ?
|
|
38670
|
+
date: (_ === 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, "DD MMM,YYYY") : "",
|
|
38671
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId30 = _.appointmentId) === null || _$appointmentId30 === void 0 ? void 0 : (_$appointmentId30$ = _$appointmentId30[0]) === null || _$appointmentId30$ === void 0 ? void 0 : _$appointmentId30$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId31 = _.appointmentId) === null || _$appointmentId31 === void 0 ? void 0 : (_$appointmentId31$ = _$appointmentId31[0]) === null || _$appointmentId31$ === void 0 ? void 0 : _$appointmentId31$.start, "hh:mm A") : "",
|
|
38651
38672
|
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
38652
38673
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId32 = _.appointmentId) === null || _$appointmentId32 === void 0 ? void 0 : (_$appointmentId32$ = _$appointmentId32[0]) === null || _$appointmentId32$ === void 0 ? void 0 : (_$appointmentId32$$Sp = _$appointmentId32$.SpecialtyID) === null || _$appointmentId32$$Sp === void 0 ? void 0 : _$appointmentId32$$Sp.map(function (spl) {
|
|
38653
38674
|
var _spl$coding10, _spl$coding10$;
|
|
@@ -38709,8 +38730,8 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
38709
38730
|
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]) || {}),
|
|
38710
38731
|
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,
|
|
38711
38732
|
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,
|
|
38712
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId35 = _.appointmentId) === null || _$appointmentId35 === void 0 ? void 0 : (_$appointmentId35$ = _$appointmentId35[0]) === null || _$appointmentId35$ === void 0 ? void 0 : _$appointmentId35$.start) ?
|
|
38713
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : _$appointmentId37$.start) ?
|
|
38733
|
+
orderDate: (_ === 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") : "",
|
|
38734
|
+
orderTime: (_ === 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") : "",
|
|
38714
38735
|
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) {
|
|
38715
38736
|
var _spl$coding11, _spl$coding11$;
|
|
38716
38737
|
|
|
@@ -38773,8 +38794,8 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
38773
38794
|
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$.alias) || "",
|
|
38774
38795
|
age: _ === 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$.age,
|
|
38775
38796
|
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) || "",
|
|
38776
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId43 = _.appointmentId) === null || _$appointmentId43 === void 0 ? void 0 : (_$appointmentId43$ = _$appointmentId43[0]) === null || _$appointmentId43$ === void 0 ? void 0 : _$appointmentId43$.start) ?
|
|
38777
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId45 = _.appointmentId) === null || _$appointmentId45 === void 0 ? void 0 : (_$appointmentId45$ = _$appointmentId45[0]) === null || _$appointmentId45$ === void 0 ? void 0 : _$appointmentId45$.start) ?
|
|
38797
|
+
date: (_ === 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, "DD MMM,YYYY") : "",
|
|
38798
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId45 = _.appointmentId) === null || _$appointmentId45 === void 0 ? void 0 : (_$appointmentId45$ = _$appointmentId45[0]) === null || _$appointmentId45$ === void 0 ? void 0 : _$appointmentId45$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId46 = _.appointmentId) === null || _$appointmentId46 === void 0 ? void 0 : (_$appointmentId46$ = _$appointmentId46[0]) === null || _$appointmentId46$ === void 0 ? void 0 : _$appointmentId46$.start, "hh:mm A") : "",
|
|
38778
38799
|
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
38779
38800
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId47 = _.appointmentId) === null || _$appointmentId47 === void 0 ? void 0 : (_$appointmentId47$ = _$appointmentId47[0]) === null || _$appointmentId47$ === void 0 ? void 0 : (_$appointmentId47$$Sp = _$appointmentId47$.SpecialtyID) === null || _$appointmentId47$$Sp === void 0 ? void 0 : _$appointmentId47$$Sp.map(function (spl) {
|
|
38780
38801
|
var _spl$coding12, _spl$coding12$;
|
|
@@ -38837,8 +38858,8 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
38837
38858
|
name: makeName((_ === 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$$name = _$patient_id20$.name) === null || _$patient_id20$$name === void 0 ? void 0 : _$patient_id20$$name[0]) || {}),
|
|
38838
38859
|
mrn: (_ === 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$.MRN) || "",
|
|
38839
38860
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId50 = _.appointmentId) === null || _$appointmentId50 === void 0 ? void 0 : (_$appointmentId50$ = _$appointmentId50[0]) === null || _$appointmentId50$ === void 0 ? void 0 : _$appointmentId50$.appno) || "",
|
|
38840
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : _$appointmentId51$.start) ?
|
|
38841
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId53 = _.appointmentId) === null || _$appointmentId53 === void 0 ? void 0 : (_$appointmentId53$ = _$appointmentId53[0]) === null || _$appointmentId53$ === void 0 ? void 0 : _$appointmentId53$.start) ?
|
|
38861
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : _$appointmentId51$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId52 = _.appointmentId) === null || _$appointmentId52 === void 0 ? void 0 : (_$appointmentId52$ = _$appointmentId52[0]) === null || _$appointmentId52$ === void 0 ? void 0 : _$appointmentId52$.start, "DD MMM,YYYY") : "",
|
|
38862
|
+
time: (_ === 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, "hh:mm A") : "",
|
|
38842
38863
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
38843
38864
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId55 = _.appointmentId) === null || _$appointmentId55 === void 0 ? void 0 : (_$appointmentId55$ = _$appointmentId55[0]) === null || _$appointmentId55$ === void 0 ? void 0 : (_$appointmentId55$$Sp = _$appointmentId55$.SpecialtyID) === null || _$appointmentId55$$Sp === void 0 ? void 0 : _$appointmentId55$$Sp.map(function (spl) {
|
|
38844
38865
|
var _spl$coding13, _spl$coding13$;
|
|
@@ -38900,8 +38921,8 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
38900
38921
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id22 = _.patient_id) === null || _$patient_id22 === void 0 ? void 0 : (_$patient_id22$ = _$patient_id22[0]) === null || _$patient_id22$ === void 0 ? void 0 : (_$patient_id22$$name = _$patient_id22$.name) === null || _$patient_id22$$name === void 0 ? void 0 : _$patient_id22$$name[0]) || {}),
|
|
38901
38922
|
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id23 = _.patient_id) === null || _$patient_id23 === void 0 ? void 0 : (_$patient_id23$ = _$patient_id23[0]) === null || _$patient_id23$ === void 0 ? void 0 : _$patient_id23$.MRN) || "",
|
|
38902
38923
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId58 = _.appointmentId) === null || _$appointmentId58 === void 0 ? void 0 : (_$appointmentId58$ = _$appointmentId58[0]) === null || _$appointmentId58$ === void 0 ? void 0 : _$appointmentId58$.appno) || "",
|
|
38903
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start) ?
|
|
38904
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId61 = _.appointmentId) === null || _$appointmentId61 === void 0 ? void 0 : (_$appointmentId61$ = _$appointmentId61[0]) === null || _$appointmentId61$ === void 0 ? void 0 : _$appointmentId61$.start) ?
|
|
38924
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId60 = _.appointmentId) === null || _$appointmentId60 === void 0 ? void 0 : (_$appointmentId60$ = _$appointmentId60[0]) === null || _$appointmentId60$ === void 0 ? void 0 : _$appointmentId60$.start, "DD MMM,YYYY") : "",
|
|
38925
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId61 = _.appointmentId) === null || _$appointmentId61 === void 0 ? void 0 : (_$appointmentId61$ = _$appointmentId61[0]) === null || _$appointmentId61$ === void 0 ? void 0 : _$appointmentId61$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId62 = _.appointmentId) === null || _$appointmentId62 === void 0 ? void 0 : (_$appointmentId62$ = _$appointmentId62[0]) === null || _$appointmentId62$ === void 0 ? void 0 : _$appointmentId62$.start, "hh:mm A") : "",
|
|
38905
38926
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
38906
38927
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId63 = _.appointmentId) === null || _$appointmentId63 === void 0 ? void 0 : (_$appointmentId63$ = _$appointmentId63[0]) === null || _$appointmentId63$ === void 0 ? void 0 : (_$appointmentId63$$Sp = _$appointmentId63$.SpecialtyID) === null || _$appointmentId63$$Sp === void 0 ? void 0 : _$appointmentId63$$Sp.map(function (spl) {
|
|
38907
38928
|
var _spl$coding14, _spl$coding14$;
|
|
@@ -38963,8 +38984,8 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
38963
38984
|
name: makeName((_ === 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$$name = _$patient_id24$.name) === null || _$patient_id24$$name === void 0 ? void 0 : _$patient_id24$$name[0]) || {}),
|
|
38964
38985
|
mrn: (_ === 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$.MRN) || "",
|
|
38965
38986
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId66 = _.appointmentId) === null || _$appointmentId66 === void 0 ? void 0 : (_$appointmentId66$ = _$appointmentId66[0]) === null || _$appointmentId66$ === void 0 ? void 0 : _$appointmentId66$.appno) || "",
|
|
38966
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId67 = _.appointmentId) === null || _$appointmentId67 === void 0 ? void 0 : (_$appointmentId67$ = _$appointmentId67[0]) === null || _$appointmentId67$ === void 0 ? void 0 : _$appointmentId67$.start) ?
|
|
38967
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId69 = _.appointmentId) === null || _$appointmentId69 === void 0 ? void 0 : (_$appointmentId69$ = _$appointmentId69[0]) === null || _$appointmentId69$ === void 0 ? void 0 : _$appointmentId69$.start) ?
|
|
38987
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId67 = _.appointmentId) === null || _$appointmentId67 === void 0 ? void 0 : (_$appointmentId67$ = _$appointmentId67[0]) === null || _$appointmentId67$ === void 0 ? void 0 : _$appointmentId67$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId68 = _.appointmentId) === null || _$appointmentId68 === void 0 ? void 0 : (_$appointmentId68$ = _$appointmentId68[0]) === null || _$appointmentId68$ === void 0 ? void 0 : _$appointmentId68$.start, "DD MMM,YYYY") : "",
|
|
38988
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId69 = _.appointmentId) === null || _$appointmentId69 === void 0 ? void 0 : (_$appointmentId69$ = _$appointmentId69[0]) === null || _$appointmentId69$ === void 0 ? void 0 : _$appointmentId69$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId70 = _.appointmentId) === null || _$appointmentId70 === void 0 ? void 0 : (_$appointmentId70$ = _$appointmentId70[0]) === null || _$appointmentId70$ === void 0 ? void 0 : _$appointmentId70$.start, "hh:mm A") : "",
|
|
38968
38989
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
38969
38990
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId71 = _.appointmentId) === null || _$appointmentId71 === void 0 ? void 0 : (_$appointmentId71$ = _$appointmentId71[0]) === null || _$appointmentId71$ === void 0 ? void 0 : (_$appointmentId71$$Sp = _$appointmentId71$.SpecialtyID) === null || _$appointmentId71$$Sp === void 0 ? void 0 : _$appointmentId71$$Sp.map(function (spl) {
|
|
38970
38991
|
var _spl$coding15, _spl$coding15$;
|
|
@@ -39026,8 +39047,8 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39026
39047
|
name: makeName((_ === 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$$name = _$patient_id26$.name) === null || _$patient_id26$$name === void 0 ? void 0 : _$patient_id26$$name[0]) || {}),
|
|
39027
39048
|
mrn: (_ === 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$.MRN) || "",
|
|
39028
39049
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId74 = _.appointmentId) === null || _$appointmentId74 === void 0 ? void 0 : (_$appointmentId74$ = _$appointmentId74[0]) === null || _$appointmentId74$ === void 0 ? void 0 : _$appointmentId74$.appno) || "",
|
|
39029
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId75 = _.appointmentId) === null || _$appointmentId75 === void 0 ? void 0 : (_$appointmentId75$ = _$appointmentId75[0]) === null || _$appointmentId75$ === void 0 ? void 0 : _$appointmentId75$.start) ?
|
|
39030
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId77 = _.appointmentId) === null || _$appointmentId77 === void 0 ? void 0 : (_$appointmentId77$ = _$appointmentId77[0]) === null || _$appointmentId77$ === void 0 ? void 0 : _$appointmentId77$.start) ?
|
|
39050
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId75 = _.appointmentId) === null || _$appointmentId75 === void 0 ? void 0 : (_$appointmentId75$ = _$appointmentId75[0]) === null || _$appointmentId75$ === void 0 ? void 0 : _$appointmentId75$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId76 = _.appointmentId) === null || _$appointmentId76 === void 0 ? void 0 : (_$appointmentId76$ = _$appointmentId76[0]) === null || _$appointmentId76$ === void 0 ? void 0 : _$appointmentId76$.start, "DD MMM,YYYY") : "",
|
|
39051
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId77 = _.appointmentId) === null || _$appointmentId77 === void 0 ? void 0 : (_$appointmentId77$ = _$appointmentId77[0]) === null || _$appointmentId77$ === void 0 ? void 0 : _$appointmentId77$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId78 = _.appointmentId) === null || _$appointmentId78 === void 0 ? void 0 : (_$appointmentId78$ = _$appointmentId78[0]) === null || _$appointmentId78$ === void 0 ? void 0 : _$appointmentId78$.start, "hh:mm A") : "",
|
|
39031
39052
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
39032
39053
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId79 = _.appointmentId) === null || _$appointmentId79 === void 0 ? void 0 : (_$appointmentId79$ = _$appointmentId79[0]) === null || _$appointmentId79$ === void 0 ? void 0 : (_$appointmentId79$$Sp = _$appointmentId79$.SpecialtyID) === null || _$appointmentId79$$Sp === void 0 ? void 0 : _$appointmentId79$$Sp.map(function (spl) {
|
|
39033
39054
|
var _spl$coding16, _spl$coding16$;
|
|
@@ -39089,8 +39110,8 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39089
39110
|
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]) || {}),
|
|
39090
39111
|
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) || "",
|
|
39091
39112
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId82 = _.appointmentId) === null || _$appointmentId82 === void 0 ? void 0 : (_$appointmentId82$ = _$appointmentId82[0]) === null || _$appointmentId82$ === void 0 ? void 0 : _$appointmentId82$.appno) || "",
|
|
39092
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId83 = _.appointmentId) === null || _$appointmentId83 === void 0 ? void 0 : (_$appointmentId83$ = _$appointmentId83[0]) === null || _$appointmentId83$ === void 0 ? void 0 : _$appointmentId83$.start) ?
|
|
39093
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId85 = _.appointmentId) === null || _$appointmentId85 === void 0 ? void 0 : (_$appointmentId85$ = _$appointmentId85[0]) === null || _$appointmentId85$ === void 0 ? void 0 : _$appointmentId85$.start) ?
|
|
39113
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId83 = _.appointmentId) === null || _$appointmentId83 === void 0 ? void 0 : (_$appointmentId83$ = _$appointmentId83[0]) === null || _$appointmentId83$ === void 0 ? void 0 : _$appointmentId83$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId84 = _.appointmentId) === null || _$appointmentId84 === void 0 ? void 0 : (_$appointmentId84$ = _$appointmentId84[0]) === null || _$appointmentId84$ === void 0 ? void 0 : _$appointmentId84$.start, "DD MMM,YYYY") : "",
|
|
39114
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId85 = _.appointmentId) === null || _$appointmentId85 === void 0 ? void 0 : (_$appointmentId85$ = _$appointmentId85[0]) === null || _$appointmentId85$ === void 0 ? void 0 : _$appointmentId85$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId86 = _.appointmentId) === null || _$appointmentId86 === void 0 ? void 0 : (_$appointmentId86$ = _$appointmentId86[0]) === null || _$appointmentId86$ === void 0 ? void 0 : _$appointmentId86$.start, "hh:mm A") : "",
|
|
39094
39115
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
39095
39116
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId87 = _.appointmentId) === null || _$appointmentId87 === void 0 ? void 0 : (_$appointmentId87$ = _$appointmentId87[0]) === null || _$appointmentId87$ === void 0 ? void 0 : (_$appointmentId87$$Sp = _$appointmentId87$.SpecialtyID) === null || _$appointmentId87$$Sp === void 0 ? void 0 : _$appointmentId87$$Sp.map(function (spl) {
|
|
39096
39117
|
var _spl$coding17, _spl$coding17$;
|
|
@@ -39152,8 +39173,8 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39152
39173
|
name: makeName((_ === 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$$name = _$patient_id30$.name) === null || _$patient_id30$$name === void 0 ? void 0 : _$patient_id30$$name[0]) || {}),
|
|
39153
39174
|
mrn: (_ === 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$.MRN) || "",
|
|
39154
39175
|
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId90 = _.appointmentId) === null || _$appointmentId90 === void 0 ? void 0 : (_$appointmentId90$ = _$appointmentId90[0]) === null || _$appointmentId90$ === void 0 ? void 0 : _$appointmentId90$.appno) || "",
|
|
39155
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId91 = _.appointmentId) === null || _$appointmentId91 === void 0 ? void 0 : (_$appointmentId91$ = _$appointmentId91[0]) === null || _$appointmentId91$ === void 0 ? void 0 : _$appointmentId91$.start) ?
|
|
39156
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId93 = _.appointmentId) === null || _$appointmentId93 === void 0 ? void 0 : (_$appointmentId93$ = _$appointmentId93[0]) === null || _$appointmentId93$ === void 0 ? void 0 : _$appointmentId93$.start) ?
|
|
39176
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId91 = _.appointmentId) === null || _$appointmentId91 === void 0 ? void 0 : (_$appointmentId91$ = _$appointmentId91[0]) === null || _$appointmentId91$ === void 0 ? void 0 : _$appointmentId91$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId92 = _.appointmentId) === null || _$appointmentId92 === void 0 ? void 0 : (_$appointmentId92$ = _$appointmentId92[0]) === null || _$appointmentId92$ === void 0 ? void 0 : _$appointmentId92$.start, "DD MMM,YYYY") : "",
|
|
39177
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId93 = _.appointmentId) === null || _$appointmentId93 === void 0 ? void 0 : (_$appointmentId93$ = _$appointmentId93[0]) === null || _$appointmentId93$ === void 0 ? void 0 : _$appointmentId93$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId94 = _.appointmentId) === null || _$appointmentId94 === void 0 ? void 0 : (_$appointmentId94$ = _$appointmentId94[0]) === null || _$appointmentId94$ === void 0 ? void 0 : _$appointmentId94$.start, "hh:mm A") : "",
|
|
39157
39178
|
visitType: (_$visit_type11 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type11 !== void 0 ? _$visit_type11 : "",
|
|
39158
39179
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId95 = _.appointmentId) === null || _$appointmentId95 === void 0 ? void 0 : (_$appointmentId95$ = _$appointmentId95[0]) === null || _$appointmentId95$ === void 0 ? void 0 : (_$appointmentId95$$Sp = _$appointmentId95$.SpecialtyID) === null || _$appointmentId95$$Sp === void 0 ? void 0 : _$appointmentId95$$Sp.map(function (spl) {
|
|
39159
39180
|
var _spl$coding18, _spl$coding18$;
|
|
@@ -40746,8 +40767,8 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
40746
40767
|
img: (_ === 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$$Pers3 = _$appointmentId$$Pers2.photo[0]) === null || _$appointmentId$$Pers3 === void 0 ? void 0 : _$appointmentId$$Pers3.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : (_$appointmentId2$ = _$appointmentId2[0]) === null || _$appointmentId2$ === void 0 ? void 0 : (_$appointmentId2$$Per = _$appointmentId2$.PersonID) === null || _$appointmentId2$$Per === void 0 ? void 0 : (_$appointmentId2$$Per2 = _$appointmentId2$$Per[0]) === null || _$appointmentId2$$Per2 === void 0 ? void 0 : (_$appointmentId2$$Per3 = _$appointmentId2$$Per2.photo[0]) === null || _$appointmentId2$$Per3 === void 0 ? void 0 : _$appointmentId2$$Per3.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40747
40768
|
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]) || {}),
|
|
40748
40769
|
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,
|
|
40749
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : (_$appointmentId3$ = _$appointmentId3[0]) === null || _$appointmentId3$ === void 0 ? void 0 : _$appointmentId3$.start) ?
|
|
40750
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId5 = _.appointmentId) === null || _$appointmentId5 === void 0 ? void 0 : (_$appointmentId5$ = _$appointmentId5[0]) === null || _$appointmentId5$ === void 0 ? void 0 : _$appointmentId5$.start) ?
|
|
40770
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : (_$appointmentId3$ = _$appointmentId3[0]) === null || _$appointmentId3$ === void 0 ? void 0 : _$appointmentId3$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : (_$appointmentId4$ = _$appointmentId4[0]) === null || _$appointmentId4$ === void 0 ? void 0 : _$appointmentId4$.start, "DD MMM,YYYY") : "",
|
|
40771
|
+
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId5 = _.appointmentId) === null || _$appointmentId5 === void 0 ? void 0 : (_$appointmentId5$ = _$appointmentId5[0]) === null || _$appointmentId5$ === void 0 ? void 0 : _$appointmentId5$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId6 = _.appointmentId) === null || _$appointmentId6 === void 0 ? void 0 : (_$appointmentId6$ = _$appointmentId6[0]) === null || _$appointmentId6$ === void 0 ? void 0 : _$appointmentId6$.start, "hh:mm A") : "",
|
|
40751
40772
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId7 = _.appointmentId) === null || _$appointmentId7 === void 0 ? void 0 : (_$appointmentId7$ = _$appointmentId7[0]) === null || _$appointmentId7$ === void 0 ? void 0 : (_$appointmentId7$$Spe = _$appointmentId7$.SpecialtyID) === null || _$appointmentId7$$Spe === void 0 ? void 0 : _$appointmentId7$$Spe.map(function (spl) {
|
|
40752
40773
|
var _spl$coding, _spl$coding$;
|
|
40753
40774
|
|
|
@@ -40809,8 +40830,8 @@ var GET_TRAIGE_DONE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDone"
|
|
|
40809
40830
|
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId8 = _.appointmentId) === null || _$appointmentId8 === void 0 ? void 0 : (_$appointmentId8$ = _$appointmentId8[0]) === null || _$appointmentId8$ === void 0 ? void 0 : (_$appointmentId8$$Per = _$appointmentId8$.PersonID) === null || _$appointmentId8$$Per === void 0 ? void 0 : (_$appointmentId8$$Per2 = _$appointmentId8$$Per[0]) === null || _$appointmentId8$$Per2 === void 0 ? void 0 : (_$appointmentId8$$Per3 = _$appointmentId8$$Per2.photo[0]) === null || _$appointmentId8$$Per3 === void 0 ? void 0 : _$appointmentId8$$Per3.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId9 = _.appointmentId) === null || _$appointmentId9 === void 0 ? void 0 : (_$appointmentId9$ = _$appointmentId9[0]) === null || _$appointmentId9$ === void 0 ? void 0 : (_$appointmentId9$$Per = _$appointmentId9$.PersonID) === null || _$appointmentId9$$Per === void 0 ? void 0 : (_$appointmentId9$$Per2 = _$appointmentId9$$Per[0]) === null || _$appointmentId9$$Per2 === void 0 ? void 0 : (_$appointmentId9$$Per3 = _$appointmentId9$$Per2.photo[0]) === null || _$appointmentId9$$Per3 === void 0 ? void 0 : _$appointmentId9$$Per3.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40810
40831
|
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]) || {}),
|
|
40811
40832
|
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$.MRN,
|
|
40812
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId10 = _.appointmentId) === null || _$appointmentId10 === void 0 ? void 0 : (_$appointmentId10$ = _$appointmentId10[0]) === null || _$appointmentId10$ === void 0 ? void 0 : _$appointmentId10$.start) ?
|
|
40813
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : _$appointmentId12$.start) ?
|
|
40833
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId10 = _.appointmentId) === null || _$appointmentId10 === void 0 ? void 0 : (_$appointmentId10$ = _$appointmentId10[0]) === null || _$appointmentId10$ === void 0 ? void 0 : _$appointmentId10$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId11 = _.appointmentId) === null || _$appointmentId11 === void 0 ? void 0 : (_$appointmentId11$ = _$appointmentId11[0]) === null || _$appointmentId11$ === void 0 ? void 0 : _$appointmentId11$.start, "DD MMM,YYYY") : "",
|
|
40834
|
+
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : _$appointmentId12$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId13 = _.appointmentId) === null || _$appointmentId13 === void 0 ? void 0 : (_$appointmentId13$ = _$appointmentId13[0]) === null || _$appointmentId13$ === void 0 ? void 0 : _$appointmentId13$.start, "hh:mm A") : "",
|
|
40814
40835
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId14 = _.appointmentId) === null || _$appointmentId14 === void 0 ? void 0 : (_$appointmentId14$ = _$appointmentId14[0]) === null || _$appointmentId14$ === void 0 ? void 0 : (_$appointmentId14$$Sp = _$appointmentId14$.SpecialtyID) === null || _$appointmentId14$$Sp === void 0 ? void 0 : _$appointmentId14$$Sp.map(function (spl) {
|
|
40815
40836
|
var _spl$coding2, _spl$coding2$;
|
|
40816
40837
|
|
|
@@ -40872,8 +40893,8 @@ var GET_VISIT_COMPLETED = createAsyncThunk("currentVisitStatsApiSlice/getVisitCo
|
|
|
40872
40893
|
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : (_$appointmentId15$$Pe = _$appointmentId15$.PersonID) === null || _$appointmentId15$$Pe === void 0 ? void 0 : (_$appointmentId15$$Pe2 = _$appointmentId15$$Pe[0]) === null || _$appointmentId15$$Pe2 === void 0 ? void 0 : (_$appointmentId15$$Pe3 = _$appointmentId15$$Pe2.photo[0]) === null || _$appointmentId15$$Pe3 === void 0 ? void 0 : _$appointmentId15$$Pe3.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : (_$appointmentId16$$Pe = _$appointmentId16$.PersonID) === null || _$appointmentId16$$Pe === void 0 ? void 0 : (_$appointmentId16$$Pe2 = _$appointmentId16$$Pe[0]) === null || _$appointmentId16$$Pe2 === void 0 ? void 0 : (_$appointmentId16$$Pe3 = _$appointmentId16$$Pe2.photo[0]) === null || _$appointmentId16$$Pe3 === void 0 ? void 0 : _$appointmentId16$$Pe3.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40873
40894
|
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]) || {}),
|
|
40874
40895
|
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$.MRN,
|
|
40875
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId17 = _.appointmentId) === null || _$appointmentId17 === void 0 ? void 0 : (_$appointmentId17$ = _$appointmentId17[0]) === null || _$appointmentId17$ === void 0 ? void 0 : _$appointmentId17$.start) ?
|
|
40876
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : _$appointmentId19$.start) ?
|
|
40896
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId17 = _.appointmentId) === null || _$appointmentId17 === void 0 ? void 0 : (_$appointmentId17$ = _$appointmentId17[0]) === null || _$appointmentId17$ === void 0 ? void 0 : _$appointmentId17$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId18 = _.appointmentId) === null || _$appointmentId18 === void 0 ? void 0 : (_$appointmentId18$ = _$appointmentId18[0]) === null || _$appointmentId18$ === void 0 ? void 0 : _$appointmentId18$.start, "DD MMM,YYYY") : "",
|
|
40897
|
+
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : _$appointmentId19$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId20 = _.appointmentId) === null || _$appointmentId20 === void 0 ? void 0 : (_$appointmentId20$ = _$appointmentId20[0]) === null || _$appointmentId20$ === void 0 ? void 0 : _$appointmentId20$.start, "hh:mm A") : "",
|
|
40877
40898
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId21 = _.appointmentId) === null || _$appointmentId21 === void 0 ? void 0 : (_$appointmentId21$ = _$appointmentId21[0]) === null || _$appointmentId21$ === void 0 ? void 0 : (_$appointmentId21$$Sp = _$appointmentId21$.SpecialtyID) === null || _$appointmentId21$$Sp === void 0 ? void 0 : _$appointmentId21$$Sp.map(function (spl) {
|
|
40878
40899
|
var _spl$coding3, _spl$coding3$;
|
|
40879
40900
|
|
|
@@ -40935,8 +40956,8 @@ var GET_PATIENTS_NO_SHOWS = createAsyncThunk("currentVisitStatsApiSlice/getPatie
|
|
|
40935
40956
|
img: "https://www.fillmurray.com/640/360",
|
|
40936
40957
|
name: "Louis Barrett",
|
|
40937
40958
|
mrn: (_$patient_id$0$alias = _ === 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$.alias) !== null && _$patient_id$0$alias !== void 0 ? _$patient_id$0$alias : "",
|
|
40938
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40939
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40959
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
40960
|
+
orderTime: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
40940
40961
|
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 : "",
|
|
40941
40962
|
ward: "Ward 1",
|
|
40942
40963
|
dob: (_$patient_id$0$birthD = _ === 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$.birthDate) !== null && _$patient_id$0$birthD !== void 0 ? _$patient_id$0$birthD : "",
|
|
@@ -40999,8 +41020,8 @@ var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/
|
|
|
40999
41020
|
gender: _ === 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$$gende = _$patient_id18$.gender) === null || _$patient_id18$$gende === void 0 ? void 0 : _$patient_id18$$gende.display,
|
|
41000
41021
|
contact: JSON.stringify(_ === 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$$telec = _$patient_id19$.telecom) === null || _$patient_id19$$telec === void 0 ? void 0 : (_$patient_id19$$telec2 = _$patient_id19$$telec[0]) === null || _$patient_id19$$telec2 === void 0 ? void 0 : _$patient_id19$$telec2.value),
|
|
41001
41022
|
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,
|
|
41002
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId25 = _.appointmentId) === null || _$appointmentId25 === void 0 ? void 0 : (_$appointmentId25$ = _$appointmentId25[0]) === null || _$appointmentId25$ === void 0 ? void 0 : _$appointmentId25$.start) ?
|
|
41003
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : _$appointmentId27$.start) ?
|
|
41023
|
+
date: (_ === 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, "DD MMM,YYYY") : "",
|
|
41024
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : _$appointmentId27$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId28 = _.appointmentId) === null || _$appointmentId28 === void 0 ? void 0 : (_$appointmentId28$ = _$appointmentId28[0]) === null || _$appointmentId28$ === void 0 ? void 0 : _$appointmentId28$.start, "hh:mm A") : "",
|
|
41004
41025
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41005
41026
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId29 = _.appointmentId) === null || _$appointmentId29 === void 0 ? void 0 : (_$appointmentId29$ = _$appointmentId29[0]) === null || _$appointmentId29$ === void 0 ? void 0 : (_$appointmentId29$$Sp = _$appointmentId29$.SpecialtyID) === null || _$appointmentId29$$Sp === void 0 ? void 0 : _$appointmentId29$$Sp.map(function (spl) {
|
|
41006
41027
|
var _spl$coding4, _spl$coding4$;
|
|
@@ -41065,8 +41086,8 @@ var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getV
|
|
|
41065
41086
|
gender: _ === 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$$gende = _$patient_id23$.gender) === null || _$patient_id23$$gende === void 0 ? void 0 : _$patient_id23$$gende.display,
|
|
41066
41087
|
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id24 = _.patient_id) === null || _$patient_id24 === void 0 ? void 0 : (_$patient_id24$ = _$patient_id24[0]) === null || _$patient_id24$ === void 0 ? void 0 : (_$patient_id24$$telec = _$patient_id24$.telecom) === null || _$patient_id24$$telec === void 0 ? void 0 : (_$patient_id24$$telec2 = _$patient_id24$$telec[0]) === null || _$patient_id24$$telec2 === void 0 ? void 0 : _$patient_id24$$telec2.value),
|
|
41067
41088
|
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId32 = _.appointmentId) === null || _$appointmentId32 === void 0 ? void 0 : (_$appointmentId32$ = _$appointmentId32[0]) === null || _$appointmentId32$ === void 0 ? void 0 : _$appointmentId32$.appno,
|
|
41068
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId33 = _.appointmentId) === null || _$appointmentId33 === void 0 ? void 0 : (_$appointmentId33$ = _$appointmentId33[0]) === null || _$appointmentId33$ === void 0 ? void 0 : _$appointmentId33$.start) ?
|
|
41069
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId35 = _.appointmentId) === null || _$appointmentId35 === void 0 ? void 0 : (_$appointmentId35$ = _$appointmentId35[0]) === null || _$appointmentId35$ === void 0 ? void 0 : _$appointmentId35$.start) ?
|
|
41089
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId33 = _.appointmentId) === null || _$appointmentId33 === void 0 ? void 0 : (_$appointmentId33$ = _$appointmentId33[0]) === null || _$appointmentId33$ === void 0 ? void 0 : _$appointmentId33$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId34 = _.appointmentId) === null || _$appointmentId34 === void 0 ? void 0 : (_$appointmentId34$ = _$appointmentId34[0]) === null || _$appointmentId34$ === void 0 ? void 0 : _$appointmentId34$.start, "DD MMM,YYYY") : "",
|
|
41090
|
+
time: (_ === 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, "hh:mm A") : "",
|
|
41070
41091
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41071
41092
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : (_$appointmentId37$$Sp = _$appointmentId37$.SpecialtyID) === null || _$appointmentId37$$Sp === void 0 ? void 0 : _$appointmentId37$$Sp.map(function (spl) {
|
|
41072
41093
|
var _spl$coding5, _spl$coding5$;
|
|
@@ -41131,8 +41152,8 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
41131
41152
|
gender: _ === null || _ === void 0 ? void 0 : (_$PersonID2 = _.PersonID) === null || _$PersonID2 === void 0 ? void 0 : (_$PersonID2$ = _$PersonID2[0]) === null || _$PersonID2$ === void 0 ? void 0 : _$PersonID2$.gender,
|
|
41132
41153
|
contact: "Contact",
|
|
41133
41154
|
refNo: "Ref No",
|
|
41134
|
-
date: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41135
|
-
time: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41155
|
+
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
41156
|
+
time: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
41136
41157
|
visittype: _ === null || _ === void 0 ? void 0 : (_$type2 = _.type) === null || _$type2 === void 0 ? void 0 : (_$type2$ = _$type2[0]) === null || _$type2$ === void 0 ? void 0 : _$type2$.display,
|
|
41137
41158
|
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,
|
|
41138
41159
|
clinic: "Clinic",
|
|
@@ -41193,8 +41214,8 @@ var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriag
|
|
|
41193
41214
|
gender: _ === 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$$gende = _$patient_id28$.gender) === null || _$patient_id28$$gende === void 0 ? void 0 : _$patient_id28$$gende.display,
|
|
41194
41215
|
contact: JSON.stringify(_ === 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$$telec = _$patient_id29$.telecom) === null || _$patient_id29$$telec === void 0 ? void 0 : (_$patient_id29$$telec2 = _$patient_id29$$telec[0]) === null || _$patient_id29$$telec2 === void 0 ? void 0 : _$patient_id29$$telec2.value),
|
|
41195
41216
|
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,
|
|
41196
|
-
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) ?
|
|
41197
|
-
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) ?
|
|
41217
|
+
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") : "",
|
|
41218
|
+
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") : "",
|
|
41198
41219
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41199
41220
|
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) {
|
|
41200
41221
|
var _spl$coding6, _spl$coding6$;
|
|
@@ -41260,8 +41281,8 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
41260
41281
|
gender: _ === null || _ === void 0 ? void 0 : (_$PersonID4 = _.PersonID) === null || _$PersonID4 === void 0 ? void 0 : (_$PersonID4$ = _$PersonID4[0]) === null || _$PersonID4$ === void 0 ? void 0 : _$PersonID4$.gender,
|
|
41261
41282
|
contact: "Contact",
|
|
41262
41283
|
refNo: "Ref No",
|
|
41263
|
-
date: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41264
|
-
time: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41284
|
+
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
41285
|
+
time: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
41265
41286
|
visittype: _ === null || _ === void 0 ? void 0 : (_$type3 = _.type) === null || _$type3 === void 0 ? void 0 : (_$type3$ = _$type3[0]) === null || _$type3$ === void 0 ? void 0 : _$type3$.display,
|
|
41266
41287
|
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,
|
|
41267
41288
|
clinic: "Clinic",
|
|
@@ -41322,8 +41343,8 @@ var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice
|
|
|
41322
41343
|
gender: _ === 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$$gende = _$patient_id33$.gender) === null || _$patient_id33$$gende === void 0 ? void 0 : _$patient_id33$$gende.display,
|
|
41323
41344
|
contact: JSON.stringify(_ === 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$$telec = _$patient_id34$.telecom) === null || _$patient_id34$$telec === void 0 ? void 0 : (_$patient_id34$$telec2 = _$patient_id34$$telec[0]) === null || _$patient_id34$$telec2 === void 0 ? void 0 : _$patient_id34$$telec2.value),
|
|
41324
41345
|
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,
|
|
41325
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : _$appointmentId49$.start) ?
|
|
41326
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : _$appointmentId51$.start) ?
|
|
41346
|
+
date: (_ === 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, "DD MMM,YYYY") : "",
|
|
41347
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : _$appointmentId51$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId52 = _.appointmentId) === null || _$appointmentId52 === void 0 ? void 0 : (_$appointmentId52$ = _$appointmentId52[0]) === null || _$appointmentId52$ === void 0 ? void 0 : _$appointmentId52$.start, "hh:mm A") : "",
|
|
41327
41348
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41328
41349
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId53 = _.appointmentId) === null || _$appointmentId53 === void 0 ? void 0 : (_$appointmentId53$ = _$appointmentId53[0]) === null || _$appointmentId53$ === void 0 ? void 0 : (_$appointmentId53$$Sp = _$appointmentId53$.SpecialtyID) === null || _$appointmentId53$$Sp === void 0 ? void 0 : _$appointmentId53$$Sp.map(function (spl) {
|
|
41329
41350
|
var _spl$coding7, _spl$coding7$;
|
|
@@ -41388,8 +41409,8 @@ var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/get
|
|
|
41388
41409
|
gender: _ === 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$$gende = _$patient_id38$.gender) === null || _$patient_id38$$gende === void 0 ? void 0 : _$patient_id38$$gende.display,
|
|
41389
41410
|
contact: JSON.stringify(_ === 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$$telec = _$patient_id39$.telecom) === null || _$patient_id39$$telec === void 0 ? void 0 : (_$patient_id39$$telec2 = _$patient_id39$$telec[0]) === null || _$patient_id39$$telec2 === void 0 ? void 0 : _$patient_id39$$telec2.value),
|
|
41390
41411
|
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId56 = _.appointmentId) === null || _$appointmentId56 === void 0 ? void 0 : (_$appointmentId56$ = _$appointmentId56[0]) === null || _$appointmentId56$ === void 0 ? void 0 : _$appointmentId56$.appno,
|
|
41391
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId57 = _.appointmentId) === null || _$appointmentId57 === void 0 ? void 0 : (_$appointmentId57$ = _$appointmentId57[0]) === null || _$appointmentId57$ === void 0 ? void 0 : _$appointmentId57$.start) ?
|
|
41392
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start) ?
|
|
41412
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId57 = _.appointmentId) === null || _$appointmentId57 === void 0 ? void 0 : (_$appointmentId57$ = _$appointmentId57[0]) === null || _$appointmentId57$ === void 0 ? void 0 : _$appointmentId57$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId58 = _.appointmentId) === null || _$appointmentId58 === void 0 ? void 0 : (_$appointmentId58$ = _$appointmentId58[0]) === null || _$appointmentId58$ === void 0 ? void 0 : _$appointmentId58$.start, "DD MMM,YYYY") : "",
|
|
41413
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId60 = _.appointmentId) === null || _$appointmentId60 === void 0 ? void 0 : (_$appointmentId60$ = _$appointmentId60[0]) === null || _$appointmentId60$ === void 0 ? void 0 : _$appointmentId60$.start, "hh:mm A") : "",
|
|
41393
41414
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41394
41415
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId61 = _.appointmentId) === null || _$appointmentId61 === void 0 ? void 0 : (_$appointmentId61$ = _$appointmentId61[0]) === null || _$appointmentId61$ === void 0 ? void 0 : (_$appointmentId61$$Sp = _$appointmentId61$.SpecialtyID) === null || _$appointmentId61$$Sp === void 0 ? void 0 : _$appointmentId61$$Sp.map(function (spl) {
|
|
41395
41416
|
var _spl$coding8, _spl$coding8$;
|
|
@@ -41454,8 +41475,8 @@ var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTria
|
|
|
41454
41475
|
gender: _ === 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$$gende = _$patient_id43$.gender) === null || _$patient_id43$$gende === void 0 ? void 0 : _$patient_id43$$gende.display,
|
|
41455
41476
|
contact: JSON.stringify(_ === 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$$telec = _$patient_id44$.telecom) === null || _$patient_id44$$telec === void 0 ? void 0 : (_$patient_id44$$telec2 = _$patient_id44$$telec[0]) === null || _$patient_id44$$telec2 === void 0 ? void 0 : _$patient_id44$$telec2.value),
|
|
41456
41477
|
refNo: _ === null || _ === void 0 ? void 0 : (_$appointmentId64 = _.appointmentId) === null || _$appointmentId64 === void 0 ? void 0 : (_$appointmentId64$ = _$appointmentId64[0]) === null || _$appointmentId64$ === void 0 ? void 0 : _$appointmentId64$.appno,
|
|
41457
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId65 = _.appointmentId) === null || _$appointmentId65 === void 0 ? void 0 : (_$appointmentId65$ = _$appointmentId65[0]) === null || _$appointmentId65$ === void 0 ? void 0 : _$appointmentId65$.start) ?
|
|
41458
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId67 = _.appointmentId) === null || _$appointmentId67 === void 0 ? void 0 : (_$appointmentId67$ = _$appointmentId67[0]) === null || _$appointmentId67$ === void 0 ? void 0 : _$appointmentId67$.start) ?
|
|
41478
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId65 = _.appointmentId) === null || _$appointmentId65 === void 0 ? void 0 : (_$appointmentId65$ = _$appointmentId65[0]) === null || _$appointmentId65$ === void 0 ? void 0 : _$appointmentId65$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId66 = _.appointmentId) === null || _$appointmentId66 === void 0 ? void 0 : (_$appointmentId66$ = _$appointmentId66[0]) === null || _$appointmentId66$ === void 0 ? void 0 : _$appointmentId66$.start, "DD MMM,YYYY") : "",
|
|
41479
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId67 = _.appointmentId) === null || _$appointmentId67 === void 0 ? void 0 : (_$appointmentId67$ = _$appointmentId67[0]) === null || _$appointmentId67$ === void 0 ? void 0 : _$appointmentId67$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId68 = _.appointmentId) === null || _$appointmentId68 === void 0 ? void 0 : (_$appointmentId68$ = _$appointmentId68[0]) === null || _$appointmentId68$ === void 0 ? void 0 : _$appointmentId68$.start, "hh:mm A") : "",
|
|
41459
41480
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41460
41481
|
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId69 = _.appointmentId) === null || _$appointmentId69 === void 0 ? void 0 : (_$appointmentId69$ = _$appointmentId69[0]) === null || _$appointmentId69$ === void 0 ? void 0 : (_$appointmentId69$$Sp = _$appointmentId69$.SpecialtyID) === null || _$appointmentId69$$Sp === void 0 ? void 0 : _$appointmentId69$$Sp.map(function (spl) {
|
|
41461
41482
|
var _spl$coding9, _spl$coding9$;
|
|
@@ -41685,8 +41706,8 @@ var FOLLOWUP_APPOINTMENTS = createAsyncThunk("pendingTasksApiSlice/getFollowUpAp
|
|
|
41685
41706
|
"name": _ === null || _ === void 0 ? void 0 : (_$patientid = _.patientid) === null || _$patientid === void 0 ? void 0 : (_$patientid$name = _$patientid.name) === null || _$patientid$name === void 0 ? void 0 : _$patientid$name[0],
|
|
41686
41707
|
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : _$patient_id.alias,
|
|
41687
41708
|
"refNo": 'Ref No',
|
|
41688
|
-
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41689
|
-
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41709
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'DD MMM,YYYY') : '',
|
|
41710
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'hh:mm A') : '',
|
|
41690
41711
|
"speciality": _ === null || _ === void 0 ? void 0 : (_$practitioner_detail = _.practitioner_details) === null || _$practitioner_detail === void 0 ? void 0 : (_$practitioner_detail2 = _$practitioner_detail[0]) === null || _$practitioner_detail2 === void 0 ? void 0 : _$practitioner_detail2.speciality,
|
|
41691
41712
|
"clinic": 'Clinic',
|
|
41692
41713
|
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid2 = _.patientid) === null || _$patientid2 === void 0 ? void 0 : _$patientid2.birthDate,
|
|
@@ -41745,8 +41766,8 @@ var APPOINTMENT_REFERRALS = createAsyncThunk("pendingTasksApiSlice/getAppointmen
|
|
|
41745
41766
|
"name": _ === null || _ === void 0 ? void 0 : (_$patientid3 = _.patientid) === null || _$patientid3 === void 0 ? void 0 : (_$patientid3$name = _$patientid3.name) === null || _$patientid3$name === void 0 ? void 0 : _$patientid3$name[0],
|
|
41746
41767
|
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : _$patient_id2.alias,
|
|
41747
41768
|
"refNo": 'Ref No',
|
|
41748
|
-
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41749
|
-
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41769
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'DD MMM,YYYY') : '',
|
|
41770
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'hh:mm A') : '',
|
|
41750
41771
|
"speciality": _ === 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.speciality,
|
|
41751
41772
|
"clinic": 'Clinic',
|
|
41752
41773
|
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid4 = _.patientid) === null || _$patientid4 === void 0 ? void 0 : _$patientid4.birthDate,
|
|
@@ -41859,7 +41880,7 @@ var GET_ASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getAssignP
|
|
|
41859
41880
|
mobileNo: _ === null || _ === void 0 ? void 0 : (_$Encounter4 = _.Encounter) === null || _$Encounter4 === void 0 ? void 0 : (_$Encounter4$patient_ = _$Encounter4.patient_id) === null || _$Encounter4$patient_ === void 0 ? void 0 : (_$Encounter4$patient_2 = _$Encounter4$patient_[0]) === null || _$Encounter4$patient_2 === void 0 ? void 0 : (_$Encounter4$patient_3 = _$Encounter4$patient_2.telecom) === null || _$Encounter4$patient_3 === void 0 ? void 0 : (_$Encounter4$patient_4 = _$Encounter4$patient_3[0]) === null || _$Encounter4$patient_4 === void 0 ? void 0 : _$Encounter4$patient_4.value,
|
|
41860
41881
|
apptRefNo: _ === null || _ === void 0 ? void 0 : (_$Appointment = _.Appointment) === null || _$Appointment === void 0 ? void 0 : _$Appointment.appno,
|
|
41861
41882
|
// "apptDate&Time":_.Appointment.start,
|
|
41862
|
-
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$Appointment2 = _.Appointment) === null || _$Appointment2 === void 0 ? void 0 : _$Appointment2.start) ?
|
|
41883
|
+
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$Appointment2 = _.Appointment) === null || _$Appointment2 === void 0 ? void 0 : _$Appointment2.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment3 = _.Appointment) === null || _$Appointment3 === void 0 ? void 0 : _$Appointment3.start, "DD MMM,YYYY hh:mm A") : "",
|
|
41863
41884
|
encounterNo: _ === null || _ === void 0 ? void 0 : (_$Encounter5 = _.Encounter) === null || _$Encounter5 === void 0 ? void 0 : _$Encounter5.encounter_no,
|
|
41864
41885
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter6 = _.Encounter) === null || _$Encounter6 === void 0 ? void 0 : _$Encounter6.visit_type,
|
|
41865
41886
|
status: _ === null || _ === void 0 ? void 0 : (_$Encounter7 = _.Encounter) === null || _$Encounter7 === void 0 ? void 0 : (_$Encounter7$status = _$Encounter7.status) === null || _$Encounter7$status === void 0 ? void 0 : _$Encounter7$status.display,
|
|
@@ -41919,7 +41940,7 @@ var GET_REASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getReAss
|
|
|
41919
41940
|
age: _ === null || _ === void 0 ? void 0 : (_$Encounter11 = _.Encounter) === null || _$Encounter11 === void 0 ? void 0 : (_$Encounter11$patient = _$Encounter11.patient_id) === null || _$Encounter11$patient === void 0 ? void 0 : (_$Encounter11$patient2 = _$Encounter11$patient[0]) === null || _$Encounter11$patient2 === void 0 ? void 0 : _$Encounter11$patient2.age,
|
|
41920
41941
|
mobileNo: _ === null || _ === void 0 ? void 0 : (_$Encounter12 = _.Encounter) === null || _$Encounter12 === void 0 ? void 0 : (_$Encounter12$patient = _$Encounter12.patient_id) === null || _$Encounter12$patient === void 0 ? void 0 : (_$Encounter12$patient2 = _$Encounter12$patient[0]) === null || _$Encounter12$patient2 === void 0 ? void 0 : (_$Encounter12$patient3 = _$Encounter12$patient2.telecom) === null || _$Encounter12$patient3 === void 0 ? void 0 : (_$Encounter12$patient4 = _$Encounter12$patient3[0]) === null || _$Encounter12$patient4 === void 0 ? void 0 : _$Encounter12$patient4.value,
|
|
41921
41942
|
apptRefNo: _ === null || _ === void 0 ? void 0 : (_$Appointment4 = _.Appointment) === null || _$Appointment4 === void 0 ? void 0 : _$Appointment4.appno,
|
|
41922
|
-
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$Appointment5 = _.Appointment) === null || _$Appointment5 === void 0 ? void 0 : _$Appointment5.start) ?
|
|
41943
|
+
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$Appointment5 = _.Appointment) === null || _$Appointment5 === void 0 ? void 0 : _$Appointment5.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment6 = _.Appointment) === null || _$Appointment6 === void 0 ? void 0 : _$Appointment6.start, "DD MMM,YYYY hh:mm A") : "",
|
|
41923
41944
|
encounterNo: _ === null || _ === void 0 ? void 0 : (_$Encounter13 = _.Encounter) === null || _$Encounter13 === void 0 ? void 0 : _$Encounter13.encounter_no,
|
|
41924
41945
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter14 = _.Encounter) === null || _$Encounter14 === void 0 ? void 0 : _$Encounter14.visit_type,
|
|
41925
41946
|
status: _ === null || _ === void 0 ? void 0 : (_$Encounter15 = _.Encounter) === null || _$Encounter15 === void 0 ? void 0 : (_$Encounter15$status = _$Encounter15.status) === null || _$Encounter15$status === void 0 ? void 0 : _$Encounter15$status.display,
|
|
@@ -41979,7 +42000,7 @@ var GET_CLOSE_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getClosePra
|
|
|
41979
42000
|
age: (_$patient_id$0$age = _ === 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$.age) !== null && _$patient_id$0$age !== void 0 ? _$patient_id$0$age : "",
|
|
41980
42001
|
mobileNo: (_$patient_id$0$teleco = _ === 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) !== null && _$patient_id$0$teleco !== void 0 ? _$patient_id$0$teleco : "",
|
|
41981
42002
|
apptRefNo: (_$appointmentId$appno = _ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : _$appointmentId2.appno) !== null && _$appointmentId$appno !== void 0 ? _$appointmentId$appno : "",
|
|
41982
|
-
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : _$appointmentId3.start) ?
|
|
42003
|
+
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : _$appointmentId3.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId4 = _.appointmentId) === null || _$appointmentId4 === void 0 ? void 0 : _$appointmentId4.start, "DD MMM,YYYY hh:mm A") : "",
|
|
41983
42004
|
encounterNo: (_$encounter_no = _ === null || _ === void 0 ? void 0 : _.encounter_no) !== null && _$encounter_no !== void 0 ? _$encounter_no : "",
|
|
41984
42005
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
41985
42006
|
status: (_$status$display = _ === null || _ === void 0 ? void 0 : (_$status = _.status) === null || _$status === void 0 ? void 0 : _$status.display) !== null && _$status$display !== void 0 ? _$status$display : "",
|