primarycare-binder 1.1.18 → 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 +677 -338
- 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) || [];
|
|
@@ -11022,6 +11047,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11022
11047
|
};
|
|
11023
11048
|
healthCareId = (data === null || data === void 0 ? void 0 : data.HealthCareServiceID) || [];
|
|
11024
11049
|
info = {
|
|
11050
|
+
locationId: "",
|
|
11025
11051
|
clinicId: 0,
|
|
11026
11052
|
id: 0,
|
|
11027
11053
|
subtext: "",
|
|
@@ -11056,6 +11082,7 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11056
11082
|
|
|
11057
11083
|
if (Array.isArray(practData)) {
|
|
11058
11084
|
if (isClinic) {
|
|
11085
|
+
info["locationId"] = id[0];
|
|
11059
11086
|
info["name"] = ((_practData$2 = practData[0]) === null || _practData$2 === void 0 ? void 0 : _practData$2.shortdesc) || "";
|
|
11060
11087
|
info["hospitalName"] = ((_practData$3 = practData[0]) === null || _practData$3 === void 0 ? void 0 : (_practData$3$Organiza = _practData$3.Organization) === null || _practData$3$Organiza === void 0 ? void 0 : (_practData$3$Organiza2 = _practData$3$Organiza[0]) === null || _practData$3$Organiza2 === void 0 ? void 0 : _practData$3$Organiza2.name) || "";
|
|
11061
11088
|
info["hospitalLocation"] = ((_practData$4 = practData[0]) === null || _practData$4 === void 0 ? void 0 : (_practData$4$Organiza = _practData$4.Organization) === null || _practData$4$Organiza === void 0 ? void 0 : (_practData$4$Organiza2 = _practData$4$Organiza.address) === null || _practData$4$Organiza2 === void 0 ? void 0 : (_practData$4$Organiza3 = _practData$4$Organiza2[0]) === null || _practData$4$Organiza3 === void 0 ? void 0 : _practData$4$Organiza3.line) || "";
|
|
@@ -11124,19 +11151,19 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11124
11151
|
data: [info]
|
|
11125
11152
|
}));
|
|
11126
11153
|
|
|
11127
|
-
case
|
|
11128
|
-
_context4.prev =
|
|
11154
|
+
case 30:
|
|
11155
|
+
_context4.prev = 30;
|
|
11129
11156
|
_context4.t0 = _context4["catch"](2);
|
|
11130
11157
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
11131
11158
|
message: _context4.t0.message
|
|
11132
11159
|
})));
|
|
11133
11160
|
|
|
11134
|
-
case
|
|
11161
|
+
case 33:
|
|
11135
11162
|
case "end":
|
|
11136
11163
|
return _context4.stop();
|
|
11137
11164
|
}
|
|
11138
11165
|
}
|
|
11139
|
-
}, _callee4, null, [[2,
|
|
11166
|
+
}, _callee4, null, [[2, 30]]);
|
|
11140
11167
|
}))); // end
|
|
11141
11168
|
// APPOINTMENT_READ
|
|
11142
11169
|
|
|
@@ -11241,14 +11268,14 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11241
11268
|
currentVisist: []
|
|
11242
11269
|
};
|
|
11243
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) {
|
|
11244
|
-
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")) {
|
|
11245
11272
|
returnData.currentVisist.push(v);
|
|
11246
11273
|
} else {
|
|
11247
11274
|
returnData.pastAppointment.push(v);
|
|
11248
11275
|
}
|
|
11249
11276
|
});
|
|
11250
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) {
|
|
11251
|
-
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")) {
|
|
11252
11279
|
returnData.currentVisist.push(v);
|
|
11253
11280
|
} else {
|
|
11254
11281
|
returnData.upcomingAppointment.push(v);
|
|
@@ -11703,11 +11730,15 @@ var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppo
|
|
|
11703
11730
|
_context13.prev = 2;
|
|
11704
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;
|
|
11705
11732
|
date = start.map(function (d) {
|
|
11706
|
-
var startDate =
|
|
11707
|
-
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);
|
|
11708
11739
|
return {
|
|
11709
|
-
start: startDate,
|
|
11710
|
-
end: endDate
|
|
11740
|
+
start: getUtcTime(startDate),
|
|
11741
|
+
end: getUtcTime(endDate)
|
|
11711
11742
|
};
|
|
11712
11743
|
});
|
|
11713
11744
|
input = {
|
|
@@ -11864,8 +11895,8 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
|
|
|
11864
11895
|
statushistory.push({
|
|
11865
11896
|
status: encounterStatus,
|
|
11866
11897
|
period: [{
|
|
11867
|
-
start:
|
|
11868
|
-
end:
|
|
11898
|
+
start: getUtcTime(),
|
|
11899
|
+
end: getUtcTime(),
|
|
11869
11900
|
id: 0
|
|
11870
11901
|
}]
|
|
11871
11902
|
});
|
|
@@ -13707,9 +13738,10 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13707
13738
|
var payload,
|
|
13708
13739
|
_ref3,
|
|
13709
13740
|
rejectWithValue,
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13741
|
+
Sdate,
|
|
13742
|
+
Edate,
|
|
13743
|
+
startDate,
|
|
13744
|
+
endDate,
|
|
13713
13745
|
hospital,
|
|
13714
13746
|
specialities,
|
|
13715
13747
|
latitude,
|
|
@@ -13735,24 +13767,30 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13735
13767
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
13736
13768
|
_ref3 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref3.rejectWithValue;
|
|
13737
13769
|
_context2.prev = 2;
|
|
13738
|
-
|
|
13770
|
+
Sdate = new Date();
|
|
13771
|
+
Edate = new Date();
|
|
13739
13772
|
|
|
13740
13773
|
if (payload.date) {
|
|
13741
|
-
|
|
13742
|
-
|
|
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);
|
|
13743
13778
|
|
|
13744
|
-
|
|
13745
|
-
|
|
13779
|
+
|
|
13780
|
+
startDate = Sdate;
|
|
13781
|
+
endDate = Edate;
|
|
13782
|
+
startDate.setHours(0, 0, 0, 0);
|
|
13783
|
+
endDate.setHours(23, 59, 59, 999);
|
|
13746
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;
|
|
13747
13785
|
body = {
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13786
|
+
db_name: dbName,
|
|
13787
|
+
queryid: query_ids.doctorListing,
|
|
13788
|
+
filter: {
|
|
13789
|
+
org_id: hospital,
|
|
13752
13790
|
// "Organization": hospital + "/10000",
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
|
|
13791
|
+
speciality: specialities,
|
|
13792
|
+
startdate: getUtcTime(startDate),
|
|
13793
|
+
enddate: getUtcTime(endDate) // "latitude": latitude,
|
|
13756
13794
|
// "longtitude": longtitude,
|
|
13757
13795
|
// "startdate": 1614836455,
|
|
13758
13796
|
// "enddate" : 1622785255
|
|
@@ -13767,8 +13805,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13767
13805
|
"filter": {
|
|
13768
13806
|
"org_id": hospital,
|
|
13769
13807
|
"practionerId": doctorId,
|
|
13770
|
-
"startdate":
|
|
13771
|
-
"enddate":
|
|
13808
|
+
"startdate": getUtcTime(startTime),
|
|
13809
|
+
"enddate": getUtcTime(endTime)
|
|
13772
13810
|
}
|
|
13773
13811
|
};
|
|
13774
13812
|
} // body = {
|
|
@@ -13785,12 +13823,12 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13785
13823
|
// }
|
|
13786
13824
|
|
|
13787
13825
|
|
|
13788
|
-
_context2.next =
|
|
13826
|
+
_context2.next = 15;
|
|
13789
13827
|
return fetchData$3({
|
|
13790
13828
|
body: JSON.stringify(body)
|
|
13791
13829
|
});
|
|
13792
13830
|
|
|
13793
|
-
case
|
|
13831
|
+
case 15:
|
|
13794
13832
|
data = _context2.sent;
|
|
13795
13833
|
returnData = [];
|
|
13796
13834
|
allLangs = new Set();
|
|
@@ -13864,6 +13902,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13864
13902
|
clinicId: (restData === null || restData === void 0 ? void 0 : (_restData$locationID = restData.locationID) === null || _restData$locationID === void 0 ? void 0 : _restData$locationID.id) || 0,
|
|
13865
13903
|
id: id,
|
|
13866
13904
|
subtext: "",
|
|
13905
|
+
locationId: "",
|
|
13867
13906
|
name: "",
|
|
13868
13907
|
title: "",
|
|
13869
13908
|
price: "",
|
|
@@ -13896,7 +13935,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13896
13935
|
};
|
|
13897
13936
|
|
|
13898
13937
|
if (isClinic) {
|
|
13899
|
-
var _restData$clinics5, _restData$clinics5$, _s$Type, _restData$locationID2, _restData$address2, _restData$address2$, _restData$address3, _restData$address3$, _restData$Practitione, _restData$address4, _restData$address4$, _restData$
|
|
13938
|
+
var _restData$clinics5, _restData$clinics5$, _s$Type, _restData$locationID2, _restData$locationID3, _restData$address2, _restData$address2$, _restData$address3, _restData$address3$, _restData$Practitione, _restData$address4, _restData$address4$, _restData$locationID4, _restData$locationID5, _restData$locationID6;
|
|
13900
13939
|
|
|
13901
13940
|
var s = restData === null || restData === void 0 ? void 0 : (_restData$clinics5 = restData.clinics) === null || _restData$clinics5 === void 0 ? void 0 : (_restData$clinics5$ = _restData$clinics5[0]) === null || _restData$clinics5$ === void 0 ? void 0 : _restData$clinics5$.Specialties;
|
|
13902
13941
|
|
|
@@ -13915,7 +13954,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13915
13954
|
});
|
|
13916
13955
|
}
|
|
13917
13956
|
|
|
13918
|
-
info["
|
|
13957
|
+
info["locationId"] = restData === null || restData === void 0 ? void 0 : (_restData$locationID2 = restData.locationID) === null || _restData$locationID2 === void 0 ? void 0 : _restData$locationID2._id;
|
|
13958
|
+
info["name"] = (restData === null || restData === void 0 ? void 0 : (_restData$locationID3 = restData.locationID) === null || _restData$locationID3 === void 0 ? void 0 : _restData$locationID3.shortdesc) || "";
|
|
13919
13959
|
info["hospitalName"] = (restData === null || restData === void 0 ? void 0 : restData.name) || "";
|
|
13920
13960
|
info["hospitalLocation"] = (restData === null || restData === void 0 ? void 0 : (_restData$address2 = restData.address) === null || _restData$address2 === void 0 ? void 0 : (_restData$address2$ = _restData$address2[0]) === null || _restData$address2$ === void 0 ? void 0 : _restData$address2$.line) || "";
|
|
13921
13961
|
info["title"] = (restData === null || restData === void 0 ? void 0 : (_restData$address3 = restData.address) === null || _restData$address3 === void 0 ? void 0 : (_restData$address3$ = _restData$address3[0]) === null || _restData$address3$ === void 0 ? void 0 : _restData$address3$.line) || "";
|
|
@@ -13932,7 +13972,7 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13932
13972
|
});
|
|
13933
13973
|
info["kms"] = (restData === null || restData === void 0 ? void 0 : (_restData$address4 = restData.address) === null || _restData$address4 === void 0 ? void 0 : (_restData$address4$ = _restData$address4[0]) === null || _restData$address4$ === void 0 ? void 0 : _restData$address4$.distance) ? "".concat(restData.address[0].distance) : "0";
|
|
13934
13974
|
info["key"] = restData === null || restData === void 0 ? void 0 : restData._key;
|
|
13935
|
-
info["img"] = getImgUrl(restData === null || restData === void 0 ? void 0 : (_restData$
|
|
13975
|
+
info["img"] = getImgUrl(restData === null || restData === void 0 ? void 0 : (_restData$locationID4 = restData.locationID) === null || _restData$locationID4 === void 0 ? void 0 : (_restData$locationID5 = _restData$locationID4.photo) === null || _restData$locationID5 === void 0 ? void 0 : (_restData$locationID6 = _restData$locationID5[0]) === null || _restData$locationID6 === void 0 ? void 0 : _restData$locationID6.fileid);
|
|
13936
13976
|
} else {
|
|
13937
13977
|
var _restData$gender, _restData$gender$codi, _restData$gender$codi2, _restData$Specialties, _restData$communicati, _restData$hospital6, _restData$qualificati, _restData$qualificati2, _restData$qualificati3, _restData$hospital7, _restData$address5, _restData$address5$, _restData$name, _restData$photo, _restData$photo$, _restData$address6, _restData$address6$;
|
|
13938
13978
|
|
|
@@ -13994,17 +14034,17 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13994
14034
|
});
|
|
13995
14035
|
}
|
|
13996
14036
|
|
|
13997
|
-
_context2.next =
|
|
14037
|
+
_context2.next = 22;
|
|
13998
14038
|
return getCurrentPosition();
|
|
13999
14039
|
|
|
14000
|
-
case
|
|
14040
|
+
case 22:
|
|
14001
14041
|
_yield$getCurrentPosi = _context2.sent;
|
|
14002
14042
|
myLat = _yield$getCurrentPosi.lat;
|
|
14003
14043
|
myLong = _yield$getCurrentPosi["long"];
|
|
14004
14044
|
locationInfo = {};
|
|
14005
14045
|
|
|
14006
14046
|
if (!(myLat && myLong)) {
|
|
14007
|
-
_context2.next =
|
|
14047
|
+
_context2.next = 31;
|
|
14008
14048
|
break;
|
|
14009
14049
|
}
|
|
14010
14050
|
|
|
@@ -14016,34 +14056,34 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
14016
14056
|
"long": myLong
|
|
14017
14057
|
}, city, locationInfo);
|
|
14018
14058
|
});
|
|
14019
|
-
_context2.next =
|
|
14059
|
+
_context2.next = 30;
|
|
14020
14060
|
return es6Promise.Promise.all(promArr);
|
|
14021
14061
|
|
|
14022
|
-
case
|
|
14062
|
+
case 30:
|
|
14023
14063
|
returnData.forEach(function (d) {
|
|
14024
14064
|
d.kms = locationInfo[d.city] || "0 Kms";
|
|
14025
14065
|
});
|
|
14026
14066
|
|
|
14027
|
-
case
|
|
14067
|
+
case 31:
|
|
14028
14068
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
14029
14069
|
data: returnData,
|
|
14030
14070
|
allLangs: _toConsumableArray(allLangs)
|
|
14031
14071
|
}));
|
|
14032
14072
|
|
|
14033
|
-
case
|
|
14034
|
-
_context2.prev =
|
|
14073
|
+
case 34:
|
|
14074
|
+
_context2.prev = 34;
|
|
14035
14075
|
_context2.t0 = _context2["catch"](2);
|
|
14036
14076
|
console.log(_context2.t0);
|
|
14037
14077
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14038
14078
|
message: _context2.t0.message
|
|
14039
14079
|
})));
|
|
14040
14080
|
|
|
14041
|
-
case
|
|
14081
|
+
case 38:
|
|
14042
14082
|
case "end":
|
|
14043
14083
|
return _context2.stop();
|
|
14044
14084
|
}
|
|
14045
14085
|
}
|
|
14046
|
-
}, _callee2, null, [[2,
|
|
14086
|
+
}, _callee2, null, [[2, 34]]);
|
|
14047
14087
|
}))); // end
|
|
14048
14088
|
// FUZZY SEARCH CREATE INITIALSTATE
|
|
14049
14089
|
|
|
@@ -14346,7 +14386,7 @@ var GET_HOSPITALS_LOCALITY = createAsyncThunk("searhcApiSlice/getHospitals", /*#
|
|
|
14346
14386
|
db_name: dbName,
|
|
14347
14387
|
queryid: query_ids["searhcApiSlice/getHospitals"],
|
|
14348
14388
|
filter: {
|
|
14349
|
-
city: city // location,
|
|
14389
|
+
city: (location === null || location === void 0 ? void 0 : location.locality) || city // location,
|
|
14350
14390
|
// "city": "Mumbai",
|
|
14351
14391
|
// "location": "Bandra West"
|
|
14352
14392
|
|
|
@@ -14607,12 +14647,10 @@ var GET_ALL_SPECIALITY = createAsyncThunk("searhcApiSlice/getAllSpeciality", /*#
|
|
|
14607
14647
|
}
|
|
14608
14648
|
}, _callee7, null, [[2, 12]]);
|
|
14609
14649
|
})));
|
|
14610
|
-
var
|
|
14650
|
+
var GET_ALL_SPECIALITY_2 = createAsyncThunk("searhcApiSlice/getAllSpeciality_2", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
14611
14651
|
var payload,
|
|
14612
14652
|
_ref16,
|
|
14613
14653
|
rejectWithValue,
|
|
14614
|
-
_payload$type,
|
|
14615
|
-
type,
|
|
14616
14654
|
body,
|
|
14617
14655
|
data,
|
|
14618
14656
|
returnData,
|
|
@@ -14625,30 +14663,32 @@ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*
|
|
|
14625
14663
|
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
14626
14664
|
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
14627
14665
|
_context8.prev = 2;
|
|
14628
|
-
_payload$type = payload.type, type = _payload$type === void 0 ? [] : _payload$type;
|
|
14629
14666
|
body = {
|
|
14630
14667
|
db_name: dbName,
|
|
14631
|
-
queryid: query_ids["searhcApiSlice/
|
|
14632
|
-
filter: {
|
|
14633
|
-
type: type
|
|
14634
|
-
}
|
|
14668
|
+
queryid: query_ids["searhcApiSlice/getAllSpeciality"]
|
|
14635
14669
|
};
|
|
14636
|
-
_context8.next =
|
|
14670
|
+
_context8.next = 6;
|
|
14637
14671
|
return fetchData$3({
|
|
14638
14672
|
body: JSON.stringify(body)
|
|
14639
14673
|
});
|
|
14640
14674
|
|
|
14641
|
-
case
|
|
14675
|
+
case 6:
|
|
14642
14676
|
data = _context8.sent;
|
|
14643
|
-
returnData =
|
|
14677
|
+
returnData = [];
|
|
14644
14678
|
|
|
14645
14679
|
if (Array.isArray(data)) {
|
|
14646
14680
|
data.forEach(function (spec) {
|
|
14647
|
-
|
|
14648
|
-
returnData[spec.Type] = [];
|
|
14649
|
-
}
|
|
14681
|
+
var _spec$coding5, _spec$coding5$;
|
|
14650
14682
|
|
|
14651
|
-
|
|
14683
|
+
if (spec === null || spec === void 0 ? void 0 : (_spec$coding5 = spec.coding) === null || _spec$coding5 === void 0 ? void 0 : (_spec$coding5$ = _spec$coding5[0]) === null || _spec$coding5$ === void 0 ? void 0 : _spec$coding5$.display) {
|
|
14684
|
+
var _spec$coding6, _spec$coding6$;
|
|
14685
|
+
|
|
14686
|
+
returnData.push({
|
|
14687
|
+
value: spec.id,
|
|
14688
|
+
label: spec === null || spec === void 0 ? void 0 : (_spec$coding6 = spec.coding) === null || _spec$coding6 === void 0 ? void 0 : (_spec$coding6$ = _spec$coding6[0]) === null || _spec$coding6$ === void 0 ? void 0 : _spec$coding6$.display,
|
|
14689
|
+
type: 'Speciality'
|
|
14690
|
+
});
|
|
14691
|
+
}
|
|
14652
14692
|
});
|
|
14653
14693
|
}
|
|
14654
14694
|
|
|
@@ -14656,27 +14696,38 @@ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*
|
|
|
14656
14696
|
data: returnData
|
|
14657
14697
|
}));
|
|
14658
14698
|
|
|
14659
|
-
case
|
|
14660
|
-
_context8.prev =
|
|
14699
|
+
case 12:
|
|
14700
|
+
_context8.prev = 12;
|
|
14661
14701
|
_context8.t0 = _context8["catch"](2);
|
|
14662
14702
|
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14663
14703
|
message: _context8.t0.message
|
|
14664
14704
|
})));
|
|
14665
14705
|
|
|
14666
|
-
case
|
|
14706
|
+
case 15:
|
|
14667
14707
|
case "end":
|
|
14668
14708
|
return _context8.stop();
|
|
14669
14709
|
}
|
|
14670
14710
|
}
|
|
14671
|
-
}, _callee8, null, [[2,
|
|
14711
|
+
}, _callee8, null, [[2, 12]]);
|
|
14672
14712
|
})));
|
|
14673
|
-
var
|
|
14713
|
+
var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
14674
14714
|
var payload,
|
|
14675
14715
|
_ref18,
|
|
14676
14716
|
rejectWithValue,
|
|
14717
|
+
_payload$type,
|
|
14718
|
+
type,
|
|
14719
|
+
newType,
|
|
14720
|
+
fetchEncounter,
|
|
14677
14721
|
body,
|
|
14722
|
+
encounterQuery,
|
|
14723
|
+
promArr,
|
|
14724
|
+
_yield$Promise$all,
|
|
14725
|
+
_yield$Promise$all2,
|
|
14678
14726
|
data,
|
|
14727
|
+
_yield$Promise$all2$,
|
|
14728
|
+
encounterData,
|
|
14679
14729
|
returnData,
|
|
14730
|
+
encounterRes,
|
|
14680
14731
|
_args9 = arguments;
|
|
14681
14732
|
|
|
14682
14733
|
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -14686,52 +14737,96 @@ var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PUR
|
|
|
14686
14737
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
14687
14738
|
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
14688
14739
|
_context9.prev = 2;
|
|
14740
|
+
_payload$type = payload.type, type = _payload$type === void 0 ? [] : _payload$type;
|
|
14741
|
+
newType = type;
|
|
14742
|
+
fetchEncounter = false;
|
|
14743
|
+
|
|
14744
|
+
if (type.includes('ENCOUNTERTYPE')) {
|
|
14745
|
+
newType = newType.filter(function (item) {
|
|
14746
|
+
return item !== 'ENCOUNTERTYPE';
|
|
14747
|
+
});
|
|
14748
|
+
fetchEncounter = true;
|
|
14749
|
+
}
|
|
14750
|
+
|
|
14689
14751
|
body = {
|
|
14690
14752
|
db_name: dbName,
|
|
14691
14753
|
queryid: query_ids["searhcApiSlice/masterSearch"],
|
|
14692
14754
|
filter: {
|
|
14693
|
-
type:
|
|
14755
|
+
type: newType
|
|
14694
14756
|
}
|
|
14695
14757
|
};
|
|
14696
|
-
|
|
14697
|
-
|
|
14758
|
+
encounterQuery = {
|
|
14759
|
+
db_name: dbName,
|
|
14760
|
+
entity: "AMPatientClass",
|
|
14761
|
+
filter: "AMPatientClass.activestatus==true and AMPatientClass.status==true",
|
|
14762
|
+
return_fields: "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
|
|
14763
|
+
sort: "document(AMPatientClass.encTypeDesc).display"
|
|
14764
|
+
};
|
|
14765
|
+
promArr = [fetchData$3({
|
|
14698
14766
|
body: JSON.stringify(body)
|
|
14699
|
-
});
|
|
14767
|
+
})];
|
|
14700
14768
|
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14769
|
+
if (fetchEncounter) {
|
|
14770
|
+
promArr.push(fetchData$3({
|
|
14771
|
+
body: JSON.stringify(encounterQuery)
|
|
14772
|
+
}, __readDocumentUrl__));
|
|
14773
|
+
}
|
|
14774
|
+
|
|
14775
|
+
_context9.next = 13;
|
|
14776
|
+
return es6Promise.Promise.all(promArr);
|
|
14777
|
+
|
|
14778
|
+
case 13:
|
|
14779
|
+
_yield$Promise$all = _context9.sent;
|
|
14780
|
+
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
14781
|
+
data = _yield$Promise$all2[0];
|
|
14782
|
+
_yield$Promise$all2$ = _yield$Promise$all2[1];
|
|
14783
|
+
encounterData = _yield$Promise$all2$ === void 0 ? {
|
|
14784
|
+
result: []
|
|
14785
|
+
} : _yield$Promise$all2$;
|
|
14786
|
+
returnData = {};
|
|
14704
14787
|
|
|
14705
14788
|
if (Array.isArray(data)) {
|
|
14706
14789
|
data.forEach(function (spec) {
|
|
14707
|
-
|
|
14790
|
+
if (!(spec.Type in returnData)) {
|
|
14791
|
+
returnData[spec.Type] = [];
|
|
14792
|
+
}
|
|
14708
14793
|
|
|
14709
|
-
returnData.push(
|
|
14710
|
-
|
|
14711
|
-
|
|
14712
|
-
|
|
14794
|
+
returnData[spec.Type].push(spec);
|
|
14795
|
+
});
|
|
14796
|
+
}
|
|
14797
|
+
|
|
14798
|
+
if (fetchEncounter) {
|
|
14799
|
+
encounterRes = encounterData.result.map(function (enc) {
|
|
14800
|
+
return {
|
|
14801
|
+
data: enc,
|
|
14802
|
+
coding: {
|
|
14803
|
+
_id: enc._id,
|
|
14804
|
+
display: enc.encClsDesc
|
|
14805
|
+
}
|
|
14806
|
+
};
|
|
14713
14807
|
});
|
|
14808
|
+
returnData['ENCOUNTERTYPE'] = encounterRes;
|
|
14714
14809
|
}
|
|
14715
14810
|
|
|
14716
14811
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
14717
14812
|
data: returnData
|
|
14718
14813
|
}));
|
|
14719
14814
|
|
|
14720
|
-
case
|
|
14721
|
-
_context9.prev =
|
|
14815
|
+
case 24:
|
|
14816
|
+
_context9.prev = 24;
|
|
14722
14817
|
_context9.t0 = _context9["catch"](2);
|
|
14723
14818
|
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14724
14819
|
message: _context9.t0.message
|
|
14725
14820
|
})));
|
|
14726
14821
|
|
|
14727
|
-
case
|
|
14822
|
+
case 27:
|
|
14728
14823
|
case "end":
|
|
14729
14824
|
return _context9.stop();
|
|
14730
14825
|
}
|
|
14731
14826
|
}
|
|
14732
|
-
}, _callee9, null, [[2,
|
|
14827
|
+
}, _callee9, null, [[2, 24]]);
|
|
14733
14828
|
})));
|
|
14734
|
-
var
|
|
14829
|
+
var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
14735
14830
|
var payload,
|
|
14736
14831
|
_ref20,
|
|
14737
14832
|
rejectWithValue,
|
|
@@ -14747,18 +14842,79 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
|
|
|
14747
14842
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
14748
14843
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
14749
14844
|
_context10.prev = 2;
|
|
14845
|
+
body = {
|
|
14846
|
+
db_name: dbName,
|
|
14847
|
+
queryid: query_ids["searhcApiSlice/masterSearch"],
|
|
14848
|
+
filter: {
|
|
14849
|
+
type: ["Relation"]
|
|
14850
|
+
}
|
|
14851
|
+
};
|
|
14852
|
+
_context10.next = 6;
|
|
14853
|
+
return fetchData$3({
|
|
14854
|
+
body: JSON.stringify(body)
|
|
14855
|
+
});
|
|
14856
|
+
|
|
14857
|
+
case 6:
|
|
14858
|
+
data = _context10.sent;
|
|
14859
|
+
returnData = [];
|
|
14860
|
+
|
|
14861
|
+
if (Array.isArray(data)) {
|
|
14862
|
+
data.forEach(function (spec) {
|
|
14863
|
+
var _spec$coding7;
|
|
14864
|
+
|
|
14865
|
+
returnData.push({
|
|
14866
|
+
label: (_spec$coding7 = spec.coding) === null || _spec$coding7 === void 0 ? void 0 : _spec$coding7.display,
|
|
14867
|
+
value: spec._id
|
|
14868
|
+
});
|
|
14869
|
+
});
|
|
14870
|
+
}
|
|
14871
|
+
|
|
14872
|
+
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
14873
|
+
data: returnData
|
|
14874
|
+
}));
|
|
14875
|
+
|
|
14876
|
+
case 12:
|
|
14877
|
+
_context10.prev = 12;
|
|
14878
|
+
_context10.t0 = _context10["catch"](2);
|
|
14879
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14880
|
+
message: _context10.t0.message
|
|
14881
|
+
})));
|
|
14882
|
+
|
|
14883
|
+
case 15:
|
|
14884
|
+
case "end":
|
|
14885
|
+
return _context10.stop();
|
|
14886
|
+
}
|
|
14887
|
+
}
|
|
14888
|
+
}, _callee10, null, [[2, 12]]);
|
|
14889
|
+
})));
|
|
14890
|
+
var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialityAgainstPractitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
14891
|
+
var payload,
|
|
14892
|
+
_ref22,
|
|
14893
|
+
rejectWithValue,
|
|
14894
|
+
body,
|
|
14895
|
+
data,
|
|
14896
|
+
returnData,
|
|
14897
|
+
_args11 = arguments;
|
|
14898
|
+
|
|
14899
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
14900
|
+
while (1) {
|
|
14901
|
+
switch (_context11.prev = _context11.next) {
|
|
14902
|
+
case 0:
|
|
14903
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
14904
|
+
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
14905
|
+
_context11.prev = 2;
|
|
14750
14906
|
body = {
|
|
14751
14907
|
db_name: dbName,
|
|
14752
14908
|
entity: "Practitioner",
|
|
14753
14909
|
return_fields: "MERGE(Practitioner,{name:(FOR cod IN TO_ARRAY(Practitioner.name) RETURN DOCUMENT(cod)),SPECIALTY:(FOR spec IN TO_ARRAY(Practitioner.practitioner_role) FOR speccod IN TO_ARRAY( DOCUMENT(spec).SpecialtyID) RETURN MERGE(DOCUMENT(speccod),{coding:(FOR cod IN DOCUMENT(speccod).coding RETURN DOCUMENT(cod))})) })"
|
|
14754
14910
|
};
|
|
14755
|
-
|
|
14911
|
+
_context11.next = 6;
|
|
14756
14912
|
return fetchData$3({
|
|
14757
14913
|
body: JSON.stringify(body)
|
|
14758
14914
|
}, __readDocumentUrl__);
|
|
14759
14915
|
|
|
14760
14916
|
case 6:
|
|
14761
|
-
data =
|
|
14917
|
+
data = _context11.sent;
|
|
14762
14918
|
returnData = [];
|
|
14763
14919
|
|
|
14764
14920
|
if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
|
|
@@ -14774,70 +14930,70 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
|
|
|
14774
14930
|
});
|
|
14775
14931
|
}
|
|
14776
14932
|
|
|
14777
|
-
return
|
|
14933
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
14778
14934
|
data: returnData
|
|
14779
14935
|
}));
|
|
14780
14936
|
|
|
14781
14937
|
case 12:
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
return
|
|
14785
|
-
message:
|
|
14938
|
+
_context11.prev = 12;
|
|
14939
|
+
_context11.t0 = _context11["catch"](2);
|
|
14940
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14941
|
+
message: _context11.t0.message
|
|
14786
14942
|
})));
|
|
14787
14943
|
|
|
14788
14944
|
case 15:
|
|
14789
14945
|
case "end":
|
|
14790
|
-
return
|
|
14946
|
+
return _context11.stop();
|
|
14791
14947
|
}
|
|
14792
14948
|
}
|
|
14793
|
-
},
|
|
14949
|
+
}, _callee11, null, [[2, 12]]);
|
|
14794
14950
|
})));
|
|
14795
14951
|
|
|
14796
14952
|
var getLocationInfo = /*#__PURE__*/function () {
|
|
14797
|
-
var
|
|
14953
|
+
var _ref23 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
14798
14954
|
var _hospInfo$address3, _hospInfo$address3$, _hospInfo$address3$$c;
|
|
14799
14955
|
|
|
14800
14956
|
var hospInfo,
|
|
14801
14957
|
obj,
|
|
14802
14958
|
city,
|
|
14803
14959
|
info,
|
|
14804
|
-
|
|
14805
|
-
return regeneratorRuntime.wrap(function
|
|
14960
|
+
_args12 = arguments;
|
|
14961
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
14806
14962
|
while (1) {
|
|
14807
|
-
switch (
|
|
14963
|
+
switch (_context12.prev = _context12.next) {
|
|
14808
14964
|
case 0:
|
|
14809
|
-
hospInfo =
|
|
14810
|
-
obj =
|
|
14965
|
+
hospInfo = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
14966
|
+
obj = _args12.length > 1 && _args12[1] !== undefined ? _args12[1] : {};
|
|
14811
14967
|
city = hospInfo === null || hospInfo === void 0 ? void 0 : (_hospInfo$address3 = hospInfo.address) === null || _hospInfo$address3 === void 0 ? void 0 : (_hospInfo$address3$ = _hospInfo$address3[0]) === null || _hospInfo$address3$ === void 0 ? void 0 : (_hospInfo$address3$$c = _hospInfo$address3$.city) === null || _hospInfo$address3$$c === void 0 ? void 0 : _hospInfo$address3$$c.geogLevelName;
|
|
14812
14968
|
|
|
14813
14969
|
if (obj[city]) {
|
|
14814
|
-
|
|
14970
|
+
_context12.next = 8;
|
|
14815
14971
|
break;
|
|
14816
14972
|
}
|
|
14817
14973
|
|
|
14818
|
-
|
|
14974
|
+
_context12.next = 6;
|
|
14819
14975
|
return getLatLong(city);
|
|
14820
14976
|
|
|
14821
14977
|
case 6:
|
|
14822
|
-
info =
|
|
14978
|
+
info = _context12.sent;
|
|
14823
14979
|
obj[city] = info;
|
|
14824
14980
|
|
|
14825
14981
|
case 8:
|
|
14826
14982
|
case "end":
|
|
14827
|
-
return
|
|
14983
|
+
return _context12.stop();
|
|
14828
14984
|
}
|
|
14829
14985
|
}
|
|
14830
|
-
},
|
|
14986
|
+
}, _callee12);
|
|
14831
14987
|
}));
|
|
14832
14988
|
|
|
14833
14989
|
return function getLocationInfo() {
|
|
14834
|
-
return
|
|
14990
|
+
return _ref23.apply(this, arguments);
|
|
14835
14991
|
};
|
|
14836
14992
|
}();
|
|
14837
14993
|
|
|
14838
|
-
var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practitionerAgainstOrganization", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
14994
|
+
var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practitionerAgainstOrganization", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
14839
14995
|
var payload,
|
|
14840
|
-
|
|
14996
|
+
_ref25,
|
|
14841
14997
|
rejectWithValue,
|
|
14842
14998
|
_payload$practitioner,
|
|
14843
14999
|
practitionerId,
|
|
@@ -14851,21 +15007,21 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14851
15007
|
_data$result2,
|
|
14852
15008
|
cityMap,
|
|
14853
15009
|
promArr,
|
|
14854
|
-
|
|
15010
|
+
_args13 = arguments;
|
|
14855
15011
|
|
|
14856
|
-
return regeneratorRuntime.wrap(function
|
|
15012
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
14857
15013
|
while (1) {
|
|
14858
|
-
switch (
|
|
15014
|
+
switch (_context13.prev = _context13.next) {
|
|
14859
15015
|
case 0:
|
|
14860
|
-
payload =
|
|
14861
|
-
|
|
14862
|
-
|
|
15016
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
15017
|
+
_ref25 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
15018
|
+
_context13.prev = 2;
|
|
14863
15019
|
_payload$practitioner = payload.practitionerId, practitionerId = _payload$practitioner === void 0 ? "" : _payload$practitioner;
|
|
14864
|
-
|
|
15020
|
+
_context13.next = 6;
|
|
14865
15021
|
return getCurrentPosition();
|
|
14866
15022
|
|
|
14867
15023
|
case 6:
|
|
14868
|
-
_yield$getCurrentPosi2 =
|
|
15024
|
+
_yield$getCurrentPosi2 = _context13.sent;
|
|
14869
15025
|
myLat = _yield$getCurrentPosi2.lat;
|
|
14870
15026
|
myLong = _yield$getCurrentPosi2["long"];
|
|
14871
15027
|
body = {
|
|
@@ -14877,17 +15033,17 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14877
15033
|
},
|
|
14878
15034
|
return_fields: "{address: (let add = Document(Organization.address[0]) return merge(add, { city: Document(add.city) })), OrganizationName:Organization.name, OrgID:Organization.id}"
|
|
14879
15035
|
};
|
|
14880
|
-
|
|
15036
|
+
_context13.next = 12;
|
|
14881
15037
|
return fetchData$3({
|
|
14882
15038
|
body: JSON.stringify(body)
|
|
14883
15039
|
}, __readDocumentUrl__);
|
|
14884
15040
|
|
|
14885
15041
|
case 12:
|
|
14886
|
-
data =
|
|
15042
|
+
data = _context13.sent;
|
|
14887
15043
|
returnData = [];
|
|
14888
15044
|
|
|
14889
15045
|
if (!Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
|
|
14890
|
-
|
|
15046
|
+
_context13.next = 20;
|
|
14891
15047
|
break;
|
|
14892
15048
|
}
|
|
14893
15049
|
|
|
@@ -14895,7 +15051,7 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14895
15051
|
promArr = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (hospInfo) {
|
|
14896
15052
|
return getLocationInfo(hospInfo, cityMap);
|
|
14897
15053
|
});
|
|
14898
|
-
|
|
15054
|
+
_context13.next = 19;
|
|
14899
15055
|
return es6Promise.Promise.all(promArr);
|
|
14900
15056
|
|
|
14901
15057
|
case 19:
|
|
@@ -14904,9 +15060,9 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14904
15060
|
|
|
14905
15061
|
var city = hospInfo === null || hospInfo === void 0 ? void 0 : (_hospInfo$address4 = hospInfo.address) === null || _hospInfo$address4 === void 0 ? void 0 : (_hospInfo$address4$ = _hospInfo$address4[0]) === null || _hospInfo$address4$ === void 0 ? void 0 : (_hospInfo$address4$$c = _hospInfo$address4$.city) === null || _hospInfo$address4$$c === void 0 ? void 0 : _hospInfo$address4$$c.geogLevelName;
|
|
14906
15062
|
|
|
14907
|
-
var
|
|
14908
|
-
lat =
|
|
14909
|
-
_long2 =
|
|
15063
|
+
var _ref26 = cityMap[city] || {},
|
|
15064
|
+
lat = _ref26.lat,
|
|
15065
|
+
_long2 = _ref26["long"];
|
|
14910
15066
|
|
|
14911
15067
|
var distance = "";
|
|
14912
15068
|
|
|
@@ -14924,23 +15080,23 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14924
15080
|
});
|
|
14925
15081
|
|
|
14926
15082
|
case 20:
|
|
14927
|
-
return
|
|
15083
|
+
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
14928
15084
|
data: returnData
|
|
14929
15085
|
}));
|
|
14930
15086
|
|
|
14931
15087
|
case 23:
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
return
|
|
14935
|
-
message:
|
|
15088
|
+
_context13.prev = 23;
|
|
15089
|
+
_context13.t0 = _context13["catch"](2);
|
|
15090
|
+
return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
15091
|
+
message: _context13.t0.message
|
|
14936
15092
|
})));
|
|
14937
15093
|
|
|
14938
15094
|
case 26:
|
|
14939
15095
|
case "end":
|
|
14940
|
-
return
|
|
15096
|
+
return _context13.stop();
|
|
14941
15097
|
}
|
|
14942
15098
|
}
|
|
14943
|
-
},
|
|
15099
|
+
}, _callee13, null, [[2, 23]]);
|
|
14944
15100
|
})));
|
|
14945
15101
|
var searhcApiSlice = createSlice({
|
|
14946
15102
|
name: "searhcApiSlice",
|
|
@@ -14950,6 +15106,7 @@ var searhcApiSlice = createSlice({
|
|
|
14950
15106
|
hospitals: _objectSpread2({}, defaultState.List),
|
|
14951
15107
|
symptoms: _objectSpread2({}, defaultState.List),
|
|
14952
15108
|
speciality: _objectSpread2({}, defaultState.List),
|
|
15109
|
+
allSpeciality: _objectSpread2({}, defaultState.List),
|
|
14953
15110
|
masterSearch: _objectSpread2({}, defaultState.Info),
|
|
14954
15111
|
getRelationships: _objectSpread2({}, defaultState.Info),
|
|
14955
15112
|
getSpecialityAgainstPractitioner: _objectSpread2({}, defaultState.Info),
|
|
@@ -15015,56 +15172,66 @@ var searhcApiSlice = createSlice({
|
|
|
15015
15172
|
var _action$payload12;
|
|
15016
15173
|
|
|
15017
15174
|
state.speciality = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
15018
|
-
}), _defineProperty(_extraReducers$w,
|
|
15175
|
+
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.fulfilled, function (state, action) {
|
|
15019
15176
|
var _action$payload13;
|
|
15020
15177
|
|
|
15021
|
-
state.
|
|
15178
|
+
state.allSpeciality = (_action$payload13 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload13 !== void 0 ? _action$payload13 : {};
|
|
15179
|
+
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.pending, function (state, action) {
|
|
15180
|
+
state.allSpeciality.loading = true;
|
|
15181
|
+
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.rejected, function (state, action) {
|
|
15182
|
+
var _action$payload14;
|
|
15183
|
+
|
|
15184
|
+
state.allSpeciality = (_action$payload14 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload14 !== void 0 ? _action$payload14 : {};
|
|
15185
|
+
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.fulfilled, function (state, action) {
|
|
15186
|
+
var _action$payload15;
|
|
15187
|
+
|
|
15188
|
+
state.speciality = (_action$payload15 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload15 !== void 0 ? _action$payload15 : {};
|
|
15022
15189
|
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.pending, function (state, action) {
|
|
15023
15190
|
state.speciality.loading = true;
|
|
15024
15191
|
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.rejected, function (state, action) {
|
|
15025
|
-
var _action$
|
|
15192
|
+
var _action$payload16;
|
|
15026
15193
|
|
|
15027
|
-
state.speciality = (_action$
|
|
15194
|
+
state.speciality = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
15028
15195
|
}), _defineProperty(_extraReducers$w, MASTER_SEARCH.fulfilled, function (state, action) {
|
|
15029
|
-
var _action$
|
|
15196
|
+
var _action$payload17;
|
|
15030
15197
|
|
|
15031
|
-
state.masterSearch = (_action$
|
|
15198
|
+
state.masterSearch = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
15032
15199
|
}), _defineProperty(_extraReducers$w, MASTER_SEARCH.pending, function (state, action) {
|
|
15033
15200
|
state.masterSearch.loading = true;
|
|
15034
15201
|
}), _defineProperty(_extraReducers$w, MASTER_SEARCH.rejected, function (state, action) {
|
|
15035
|
-
var _action$
|
|
15202
|
+
var _action$payload18;
|
|
15036
15203
|
|
|
15037
|
-
state.masterSearch = (_action$
|
|
15204
|
+
state.masterSearch = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
15038
15205
|
}), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.fulfilled, function (state, action) {
|
|
15039
|
-
var _action$
|
|
15206
|
+
var _action$payload19;
|
|
15040
15207
|
|
|
15041
|
-
state.getRelationships = (_action$
|
|
15208
|
+
state.getRelationships = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : [];
|
|
15042
15209
|
}), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.pending, function (state, action) {
|
|
15043
15210
|
state.getRelationships.loading = true;
|
|
15044
15211
|
}), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.rejected, function (state, action) {
|
|
15045
|
-
var _action$
|
|
15212
|
+
var _action$payload20;
|
|
15046
15213
|
|
|
15047
|
-
state.getRelationships = (_action$
|
|
15214
|
+
state.getRelationships = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : [];
|
|
15048
15215
|
}), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.fulfilled, function (state, action) {
|
|
15049
|
-
var _action$
|
|
15216
|
+
var _action$payload21;
|
|
15050
15217
|
|
|
15051
|
-
state.getSpecialityAgainstPractitioner = (_action$
|
|
15218
|
+
state.getSpecialityAgainstPractitioner = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : [];
|
|
15052
15219
|
}), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.pending, function (state, action) {
|
|
15053
15220
|
state.getSpecialityAgainstPractitioner.loading = true;
|
|
15054
15221
|
}), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.rejected, function (state, action) {
|
|
15055
|
-
var _action$
|
|
15222
|
+
var _action$payload22;
|
|
15056
15223
|
|
|
15057
|
-
state.getSpecialityAgainstPractitioner = (_action$
|
|
15224
|
+
state.getSpecialityAgainstPractitioner = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : [];
|
|
15058
15225
|
}), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.fulfilled, function (state, action) {
|
|
15059
|
-
var _action$
|
|
15226
|
+
var _action$payload23;
|
|
15060
15227
|
|
|
15061
|
-
state.getPractitionerAgainstOrganization = (_action$
|
|
15228
|
+
state.getPractitionerAgainstOrganization = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : [];
|
|
15062
15229
|
}), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.pending, function (state, action) {
|
|
15063
15230
|
state.getPractitionerAgainstOrganization.loading = true;
|
|
15064
15231
|
}), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.rejected, function (state, action) {
|
|
15065
|
-
var _action$
|
|
15232
|
+
var _action$payload24;
|
|
15066
15233
|
|
|
15067
|
-
state.getPractitionerAgainstOrganization = (_action$
|
|
15234
|
+
state.getPractitionerAgainstOrganization = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : [];
|
|
15068
15235
|
}), _extraReducers$w)
|
|
15069
15236
|
});
|
|
15070
15237
|
var searchApiActions = {
|
|
@@ -15078,7 +15245,8 @@ var searchApiActions = {
|
|
|
15078
15245
|
MASTER_SEARCH: MASTER_SEARCH,
|
|
15079
15246
|
GET_RELATIONSHIPS: GET_RELATIONSHIPS,
|
|
15080
15247
|
SPECIALITY_AGAINST_PRACTITIONER: SPECIALITY_AGAINST_PRACTITIONER,
|
|
15081
|
-
PRACTITIONER_AGAINST_ORGANIZATION: PRACTITIONER_AGAINST_ORGANIZATION
|
|
15248
|
+
PRACTITIONER_AGAINST_ORGANIZATION: PRACTITIONER_AGAINST_ORGANIZATION,
|
|
15249
|
+
GET_ALL_SPECIALITY_2: GET_ALL_SPECIALITY_2
|
|
15082
15250
|
};
|
|
15083
15251
|
var searhcApiSlice$1 = searhcApiSlice.reducer;
|
|
15084
15252
|
|
|
@@ -18726,7 +18894,7 @@ var dashboardQuery = {
|
|
|
18726
18894
|
followupUOM: data === null || data === void 0 ? void 0 : data.followupUOM,
|
|
18727
18895
|
reasonCode: data === null || data === void 0 ? void 0 : data.reasonCode,
|
|
18728
18896
|
followupReqd: data === null || data === void 0 ? void 0 : data.followupReqd,
|
|
18729
|
-
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,
|
|
18730
18898
|
status: status,
|
|
18731
18899
|
statushistory: [{
|
|
18732
18900
|
status: status,
|
|
@@ -19694,8 +19862,8 @@ var FOLLOW_UP_COUNT = createAsyncThunk("dashboardApiSlice/followUpCount", /*#__P
|
|
|
19694
19862
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
19695
19863
|
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
19696
19864
|
_context15.prev = 2;
|
|
19697
|
-
startDate = moment().startOf("day")
|
|
19698
|
-
endDate = moment().endOf("day")
|
|
19865
|
+
startDate = getUtcTime(moment().startOf("day"));
|
|
19866
|
+
endDate = getUtcTime(moment().endOf("day"));
|
|
19699
19867
|
_context15.next = 7;
|
|
19700
19868
|
return fetchData$3({
|
|
19701
19869
|
body: JSON.stringify({
|
|
@@ -20064,9 +20232,9 @@ var generateReadJSON = function generateReadJSON(data) {
|
|
|
20064
20232
|
|
|
20065
20233
|
var json = {
|
|
20066
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 : "",
|
|
20067
|
-
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") : "",
|
|
20068
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 : "",
|
|
20069
|
-
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") : "",
|
|
20070
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 : "",
|
|
20071
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(",") : "",
|
|
20072
20240
|
//PATIENT DEATAIL
|
|
@@ -20133,7 +20301,7 @@ var ASSIGN_LIST = createAsyncThunk("dashboardApiSlice/assignList", /*#__PURE__*/
|
|
|
20133
20301
|
case 12:
|
|
20134
20302
|
_context22.prev = 12;
|
|
20135
20303
|
_context22.t0 = _context22["catch"](2);
|
|
20136
|
-
|
|
20304
|
+
debugger;
|
|
20137
20305
|
return _context22.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20138
20306
|
message: _context22.t0.message
|
|
20139
20307
|
})));
|
|
@@ -20151,9 +20319,9 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
20151
20319
|
|
|
20152
20320
|
var json = {
|
|
20153
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 : "",
|
|
20154
|
-
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") : "",
|
|
20155
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 : "",
|
|
20156
|
-
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") : "",
|
|
20157
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 : "",
|
|
20158
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(",") : "",
|
|
20159
20327
|
//PATIENT DEATAIL
|
|
@@ -20184,9 +20352,9 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
20184
20352
|
|
|
20185
20353
|
var json = {
|
|
20186
20354
|
visitType: (_data$visit_type = data === null || data === void 0 ? void 0 : data.visit_type) !== null && _data$visit_type !== void 0 ? _data$visit_type : "",
|
|
20187
|
-
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") : "",
|
|
20188
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 : "",
|
|
20189
|
-
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") : "",
|
|
20190
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 : "",
|
|
20191
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(",") : "",
|
|
20192
20360
|
//PATIENT DEATAIL
|
|
@@ -20303,12 +20471,11 @@ var REASSIGN_LIST = createAsyncThunk("dashboardApiSlice/reassignList", /*#__PURE
|
|
|
20303
20471
|
case 11:
|
|
20304
20472
|
_context23.prev = 11;
|
|
20305
20473
|
_context23.t0 = _context23["catch"](2);
|
|
20306
|
-
alert("error");
|
|
20307
20474
|
return _context23.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20308
20475
|
message: _context23.t0.message
|
|
20309
20476
|
})));
|
|
20310
20477
|
|
|
20311
|
-
case
|
|
20478
|
+
case 14:
|
|
20312
20479
|
case "end":
|
|
20313
20480
|
return _context23.stop();
|
|
20314
20481
|
}
|
|
@@ -21312,7 +21479,7 @@ var queries$9 = {
|
|
|
21312
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})) })"
|
|
21313
21480
|
// }`,
|
|
21314
21481
|
encounterDetails: function encounterDetails(encounterId) {
|
|
21315
|
-
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 }");
|
|
21316
21483
|
}
|
|
21317
21484
|
};
|
|
21318
21485
|
|
|
@@ -21389,7 +21556,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21389
21556
|
var _val$Person$0$name$te, _val$Person, _val$Person$, _val$Person$$name;
|
|
21390
21557
|
|
|
21391
21558
|
return _objectSpread2(_objectSpread2({}, val), {}, {
|
|
21392
|
-
createdAt:
|
|
21559
|
+
createdAt: getUtcTime(val.period[0].start ? val.period[0].start : new Date()),
|
|
21393
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 : ""
|
|
21394
21561
|
});
|
|
21395
21562
|
});
|
|
@@ -21418,7 +21585,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21418
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,
|
|
21419
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
|
|
21420
21587
|
} : {},
|
|
21421
|
-
"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") : "",
|
|
21422
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,
|
|
21423
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
|
|
21424
21591
|
},
|
|
@@ -21428,7 +21595,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21428
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,
|
|
21429
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
|
|
21430
21597
|
} : {},
|
|
21431
|
-
"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") : "",
|
|
21432
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,
|
|
21433
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
|
|
21434
21601
|
},
|
|
@@ -21442,7 +21609,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21442
21609
|
"notes": val.note,
|
|
21443
21610
|
"remarks": [],
|
|
21444
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 : "",
|
|
21445
|
-
"createdAt":
|
|
21612
|
+
"createdAt": utcTOLocal$1(val.recordeddate, "DD MMM, YYYY"),
|
|
21446
21613
|
"statusType": "Inactive",
|
|
21447
21614
|
"headerShow": false,
|
|
21448
21615
|
"editData": val
|
|
@@ -21450,11 +21617,6 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21450
21617
|
});
|
|
21451
21618
|
return list;
|
|
21452
21619
|
};
|
|
21453
|
-
var getData$2 = function getData(date, time) {
|
|
21454
|
-
var da = date ? new Date(date) : new Date();
|
|
21455
|
-
var d = new Date(da).toDateString().split(" ");
|
|
21456
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format('LT') : "");
|
|
21457
|
-
};
|
|
21458
21620
|
|
|
21459
21621
|
var _extraReducers$l;
|
|
21460
21622
|
var RELATIONSHIP_MASTERS = createAsyncThunk("chiefCompilenceMastersSlice/relationship", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -22016,7 +22178,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
22016
22178
|
data = _context12.sent;
|
|
22017
22179
|
arr = [];
|
|
22018
22180
|
data.result.map(function (val) {
|
|
22019
|
-
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;
|
|
22020
22182
|
|
|
22021
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) {
|
|
22022
22184
|
return val.display;
|
|
@@ -22037,6 +22199,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
22037
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,
|
|
22038
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 : "",
|
|
22039
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),
|
|
22040
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 : ""
|
|
22041
22204
|
});
|
|
22042
22205
|
});
|
|
@@ -22277,7 +22440,7 @@ var generateResJson$5 = function generateResJson(dataList, state) {
|
|
|
22277
22440
|
label: val === null || val === void 0 ? void 0 : (_val$OnSet3 = val.OnSet) === null || _val$OnSet3 === void 0 ? void 0 : _val$OnSet3.split(" ")[1],
|
|
22278
22441
|
value: val === null || val === void 0 ? void 0 : (_val$OnSet4 = val.OnSet) === null || _val$OnSet4 === void 0 ? void 0 : _val$OnSet4.split(" ")[1]
|
|
22279
22442
|
};
|
|
22280
|
-
var createddate =
|
|
22443
|
+
var createddate = utcTOLocal$1(val.createddate, "DD MMM, YYYY");
|
|
22281
22444
|
var abateday = val === null || val === void 0 ? void 0 : val.Abatement.split(" ")[0];
|
|
22282
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];
|
|
22283
22446
|
var abatefreqValue = {
|
|
@@ -24299,13 +24462,13 @@ var getCA_PresWorkflowStatusTrx = function getCA_PresWorkflowStatusTrx(data, sta
|
|
|
24299
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 : "",
|
|
24300
24463
|
"order_Id": data.editData,
|
|
24301
24464
|
"trxSeqnum": 0,
|
|
24302
|
-
"TrxDateTime":
|
|
24465
|
+
"TrxDateTime": utcTOLocal$1(),
|
|
24303
24466
|
"frStatus": "",
|
|
24304
24467
|
"toStatus": status.value,
|
|
24305
24468
|
"frApprLevel": "0",
|
|
24306
24469
|
"toApprLevel": "0",
|
|
24307
24470
|
"actionedPractId": personId,
|
|
24308
|
-
"actionDateTime":
|
|
24471
|
+
"actionDateTime": utcTOLocal$1(),
|
|
24309
24472
|
"statusAction": "",
|
|
24310
24473
|
"actionedRemarks": "",
|
|
24311
24474
|
"actionReasonCode": ""
|
|
@@ -25013,8 +25176,8 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25013
25176
|
"new_status": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25014
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 : "",
|
|
25015
25178
|
"period": [{
|
|
25016
|
-
"start":
|
|
25017
|
-
"end": moment().endOf('day')
|
|
25179
|
+
"start": getUtcTime(),
|
|
25180
|
+
"end": getUtcTime(moment().endOf('day'))
|
|
25018
25181
|
}]
|
|
25019
25182
|
});
|
|
25020
25183
|
}
|
|
@@ -25042,14 +25205,14 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25042
25205
|
"relatedperson_id": data === null || data === void 0 ? void 0 : data.relatedperson_id,
|
|
25043
25206
|
// "asserted_by": data?.asserted,
|
|
25044
25207
|
"onset": [{
|
|
25045
|
-
"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,
|
|
25046
25209
|
"onsetperiod": (data === null || data === void 0 ? void 0 : data.onset.day) ? data.onset.freq.value : "",
|
|
25047
25210
|
"onsetage": (_data$onsetAge = data === null || data === void 0 ? void 0 : data.onsetAge) !== null && _data$onsetAge !== void 0 ? _data$onsetAge : "",
|
|
25048
25211
|
"onsetrange": (_data$onsetrange = data === null || data === void 0 ? void 0 : data.onsetrange) !== null && _data$onsetrange !== void 0 ? _data$onsetrange : "",
|
|
25049
25212
|
"onsetstring": (_data$onsetstring = data === null || data === void 0 ? void 0 : data.onsetstring) !== null && _data$onsetstring !== void 0 ? _data$onsetstring : ""
|
|
25050
25213
|
}],
|
|
25051
25214
|
"lastoccurrence": [{
|
|
25052
|
-
"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,
|
|
25053
25216
|
"lastoccurrenceperiod": (data === null || data === void 0 ? void 0 : data.lastOccurance.day) ? data.lastOccurance.freq.value : "",
|
|
25054
25217
|
"lastoccurrenceage": (_data$lastoccurrencea = data === null || data === void 0 ? void 0 : data.lastoccurrenceage) !== null && _data$lastoccurrencea !== void 0 ? _data$lastoccurrencea : "",
|
|
25055
25218
|
"lastoccurrencerange": (_data$lastoccurrencer = data === null || data === void 0 ? void 0 : data.lastoccurrencerange) !== null && _data$lastoccurrencer !== void 0 ? _data$lastoccurrencer : "",
|
|
@@ -25097,14 +25260,14 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25097
25260
|
"reaction": _reactionsList,
|
|
25098
25261
|
"clinicalstatus": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25099
25262
|
"onset": [{
|
|
25100
|
-
"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,
|
|
25101
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 : "",
|
|
25102
25265
|
"onsetage": (_data$onsetAge2 = data === null || data === void 0 ? void 0 : data.onsetAge) !== null && _data$onsetAge2 !== void 0 ? _data$onsetAge2 : "",
|
|
25103
25266
|
"onsetrange": (_data$onsetrange2 = data === null || data === void 0 ? void 0 : data.onsetrange) !== null && _data$onsetrange2 !== void 0 ? _data$onsetrange2 : "",
|
|
25104
25267
|
"onsetstring": (_data$onsetstring2 = data === null || data === void 0 ? void 0 : data.onsetstring) !== null && _data$onsetstring2 !== void 0 ? _data$onsetstring2 : ""
|
|
25105
25268
|
}],
|
|
25106
25269
|
"lastoccurrence": [{
|
|
25107
|
-
"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,
|
|
25108
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 : "",
|
|
25109
25272
|
"lastoccurrenceage": (_data$lastoccurrencea2 = data === null || data === void 0 ? void 0 : data.lastoccurrenceage) !== null && _data$lastoccurrencea2 !== void 0 ? _data$lastoccurrencea2 : "",
|
|
25110
25273
|
"lastoccurrencerange": (_data$lastoccurrencer2 = data === null || data === void 0 ? void 0 : data.lastoccurrencerange) !== null && _data$lastoccurrencer2 !== void 0 ? _data$lastoccurrencer2 : "",
|
|
@@ -25116,8 +25279,8 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25116
25279
|
"new_status": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25117
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 : "",
|
|
25118
25281
|
"period": [{
|
|
25119
|
-
"start":
|
|
25120
|
-
"end": moment().endOf('day')
|
|
25282
|
+
"start": getUtcTime(),
|
|
25283
|
+
"end": getUtcTime(moment().endOf('day'))
|
|
25121
25284
|
}]
|
|
25122
25285
|
}],
|
|
25123
25286
|
"nodrugAllergy": (_data$nodrugAllergy2 = data === null || data === void 0 ? void 0 : data.nodrugAllergy) !== null && _data$nodrugAllergy2 !== void 0 ? _data$nodrugAllergy2 : false,
|
|
@@ -25154,7 +25317,7 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25154
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,
|
|
25155
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
|
|
25156
25319
|
} : {},
|
|
25157
|
-
"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") : "",
|
|
25158
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,
|
|
25159
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
|
|
25160
25323
|
},
|
|
@@ -25166,7 +25329,7 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25166
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,
|
|
25167
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
|
|
25168
25331
|
} : {},
|
|
25169
|
-
"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") : "",
|
|
25170
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,
|
|
25171
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
|
|
25172
25335
|
},
|
|
@@ -25187,11 +25350,6 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25187
25350
|
});
|
|
25188
25351
|
return list;
|
|
25189
25352
|
};
|
|
25190
|
-
var getData$1 = function getData(date, time) {
|
|
25191
|
-
var da = date ? new Date(date) : new Date();
|
|
25192
|
-
var d = new Date(da).toDateString().split(" ");
|
|
25193
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format('LT') : "");
|
|
25194
|
-
};
|
|
25195
25353
|
|
|
25196
25354
|
var _extraReducers$i;
|
|
25197
25355
|
var ALLERGY_MASTER = createAsyncThunk("allergyMastersSlice/allergymaster", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -26404,7 +26562,7 @@ var queries$6 = {
|
|
|
26404
26562
|
|
|
26405
26563
|
var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
26406
26564
|
var list = dataList.map(function (val) {
|
|
26407
|
-
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;
|
|
26408
26566
|
|
|
26409
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) {
|
|
26410
26568
|
return {
|
|
@@ -26449,8 +26607,8 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26449
26607
|
nature: {
|
|
26450
26608
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
26451
26609
|
},
|
|
26452
|
-
dateTime: (
|
|
26453
|
-
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 : "" : "",
|
|
26454
26612
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$2(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
26455
26613
|
recurrent: false,
|
|
26456
26614
|
headerShow: true,
|
|
@@ -26463,11 +26621,11 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26463
26621
|
}
|
|
26464
26622
|
},
|
|
26465
26623
|
startsOn: {
|
|
26466
|
-
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 : ""
|
|
26467
26625
|
},
|
|
26468
26626
|
endsAfter: {
|
|
26469
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 : "",
|
|
26470
|
-
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 : "" : ""
|
|
26471
26629
|
}
|
|
26472
26630
|
},
|
|
26473
26631
|
orderType: {
|
|
@@ -26476,7 +26634,7 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26476
26634
|
mode: {
|
|
26477
26635
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
26478
26636
|
},
|
|
26479
|
-
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 : "",
|
|
26480
26638
|
orderCatalog: {
|
|
26481
26639
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
26482
26640
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -26580,7 +26738,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26580
26738
|
return el != null;
|
|
26581
26739
|
});
|
|
26582
26740
|
var list = dataList.map(function (val) {
|
|
26583
|
-
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;
|
|
26584
26742
|
|
|
26585
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) {
|
|
26586
26744
|
return {
|
|
@@ -26625,8 +26783,8 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26625
26783
|
nature: {
|
|
26626
26784
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
26627
26785
|
},
|
|
26628
|
-
dateTime: (
|
|
26629
|
-
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") : "",
|
|
26630
26788
|
recurrent: false,
|
|
26631
26789
|
headerShow: true,
|
|
26632
26790
|
recurrentData: {
|
|
@@ -26638,11 +26796,11 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26638
26796
|
}
|
|
26639
26797
|
},
|
|
26640
26798
|
startsOn: {
|
|
26641
|
-
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 : ""
|
|
26642
26800
|
},
|
|
26643
26801
|
endsAfter: {
|
|
26644
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 : "",
|
|
26645
|
-
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 : "" : ""
|
|
26646
26804
|
}
|
|
26647
26805
|
},
|
|
26648
26806
|
orderType: {
|
|
@@ -26651,7 +26809,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26651
26809
|
mode: {
|
|
26652
26810
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
26653
26811
|
},
|
|
26654
|
-
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 : "",
|
|
26655
26813
|
orderCatalog: {
|
|
26656
26814
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
26657
26815
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31703,7 +31861,7 @@ var generateJSON$1 = function generateJSON(dataList) {
|
|
|
31703
31861
|
|
|
31704
31862
|
var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
31705
31863
|
var list = dataList.map(function (val) {
|
|
31706
|
-
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;
|
|
31707
31865
|
|
|
31708
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) {
|
|
31709
31867
|
return {
|
|
@@ -31752,8 +31910,8 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31752
31910
|
nature: {
|
|
31753
31911
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
31754
31912
|
},
|
|
31755
|
-
dateTime: (
|
|
31756
|
-
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 : "" : "",
|
|
31757
31915
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$1(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
31758
31916
|
recurrent: false,
|
|
31759
31917
|
headerShow: true,
|
|
@@ -31766,11 +31924,11 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31766
31924
|
}
|
|
31767
31925
|
},
|
|
31768
31926
|
startsOn: {
|
|
31769
|
-
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 : ""
|
|
31770
31928
|
},
|
|
31771
31929
|
endsAfter: {
|
|
31772
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 : "",
|
|
31773
|
-
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 : "" : ""
|
|
31774
31932
|
}
|
|
31775
31933
|
},
|
|
31776
31934
|
orderType: {
|
|
@@ -31779,7 +31937,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31779
31937
|
mode: {
|
|
31780
31938
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
31781
31939
|
},
|
|
31782
|
-
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 : "",
|
|
31783
31941
|
orderCatalog: {
|
|
31784
31942
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
31785
31943
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31834,7 +31992,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31834
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,
|
|
31835
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 : ""
|
|
31836
31994
|
},
|
|
31837
|
-
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 : "",
|
|
31838
31996
|
// createdAt: getData(),
|
|
31839
31997
|
editData: val._id,
|
|
31840
31998
|
statusData: {
|
|
@@ -31847,7 +32005,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31847
32005
|
},
|
|
31848
32006
|
statushistory: (_val$statushistory = val === null || val === void 0 ? void 0 : val.statushistory) !== null && _val$statushistory !== void 0 ? _val$statushistory : [],
|
|
31849
32007
|
statusType: (_val$statusreason = val === null || val === void 0 ? void 0 : val.statusreason) !== null && _val$statusreason !== void 0 ? _val$statusreason : "",
|
|
31850
|
-
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 : ""
|
|
31851
32009
|
};
|
|
31852
32010
|
});
|
|
31853
32011
|
return list;
|
|
@@ -31857,7 +32015,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31857
32015
|
return el != null;
|
|
31858
32016
|
});
|
|
31859
32017
|
var list = dataList.map(function (val) {
|
|
31860
|
-
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;
|
|
31861
32019
|
|
|
31862
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) {
|
|
31863
32021
|
return {
|
|
@@ -31902,8 +32060,8 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31902
32060
|
nature: {
|
|
31903
32061
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
31904
32062
|
},
|
|
31905
|
-
dateTime: (
|
|
31906
|
-
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") : "",
|
|
31907
32065
|
recurrent: false,
|
|
31908
32066
|
headerShow: true,
|
|
31909
32067
|
recurrentData: {
|
|
@@ -31915,11 +32073,11 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31915
32073
|
}
|
|
31916
32074
|
},
|
|
31917
32075
|
startsOn: {
|
|
31918
|
-
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 : ""
|
|
31919
32077
|
},
|
|
31920
32078
|
endsAfter: {
|
|
31921
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 : "",
|
|
31922
|
-
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 : "" : ""
|
|
31923
32081
|
}
|
|
31924
32082
|
},
|
|
31925
32083
|
orderType: {
|
|
@@ -31928,7 +32086,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31928
32086
|
mode: {
|
|
31929
32087
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
31930
32088
|
},
|
|
31931
|
-
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 : "",
|
|
31932
32090
|
orderCatalog: {
|
|
31933
32091
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
31934
32092
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31983,7 +32141,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31983
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,
|
|
31984
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 : ""
|
|
31985
32143
|
},
|
|
31986
|
-
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 : "",
|
|
31987
32145
|
// createdAt: getData(),
|
|
31988
32146
|
editData: val._id,
|
|
31989
32147
|
statusData: {
|
|
@@ -31999,7 +32157,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31999
32157
|
status: val === null || val === void 0 ? void 0 : val.status,
|
|
32000
32158
|
parentOrderId: val === null || val === void 0 ? void 0 : val.parentOrderId,
|
|
32001
32159
|
apptDate: val === null || val === void 0 ? void 0 : val.apptDate,
|
|
32002
|
-
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 : ""
|
|
32003
32161
|
};
|
|
32004
32162
|
});
|
|
32005
32163
|
return list;
|
|
@@ -33620,7 +33778,7 @@ var generateJSON = function generateJSON(dataList) {
|
|
|
33620
33778
|
|
|
33621
33779
|
var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
33622
33780
|
var list = dataList.map(function (val) {
|
|
33623
|
-
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;
|
|
33624
33782
|
|
|
33625
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) {
|
|
33626
33784
|
return {
|
|
@@ -33669,8 +33827,8 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33669
33827
|
nature: {
|
|
33670
33828
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
33671
33829
|
},
|
|
33672
|
-
dateTime: (
|
|
33673
|
-
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 : "" : "",
|
|
33674
33832
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
33675
33833
|
recurrent: false,
|
|
33676
33834
|
headerShow: true,
|
|
@@ -33683,11 +33841,11 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33683
33841
|
}
|
|
33684
33842
|
},
|
|
33685
33843
|
startsOn: {
|
|
33686
|
-
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 : ""
|
|
33687
33845
|
},
|
|
33688
33846
|
endsAfter: {
|
|
33689
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 : "",
|
|
33690
|
-
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 : "" : ""
|
|
33691
33849
|
}
|
|
33692
33850
|
},
|
|
33693
33851
|
orderType: {
|
|
@@ -33696,7 +33854,7 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33696
33854
|
mode: {
|
|
33697
33855
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
33698
33856
|
},
|
|
33699
|
-
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 : "",
|
|
33700
33858
|
orderCatalog: {
|
|
33701
33859
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
33702
33860
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -33774,7 +33932,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33774
33932
|
return el != null;
|
|
33775
33933
|
});
|
|
33776
33934
|
var list = dataList.map(function (val) {
|
|
33777
|
-
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;
|
|
33778
33936
|
|
|
33779
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) {
|
|
33780
33938
|
return {
|
|
@@ -33823,8 +33981,8 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33823
33981
|
nature: {
|
|
33824
33982
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
33825
33983
|
},
|
|
33826
|
-
dateTime: (
|
|
33827
|
-
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") : "",
|
|
33828
33986
|
recurrent: false,
|
|
33829
33987
|
headerShow: true,
|
|
33830
33988
|
recurrentData: {
|
|
@@ -33836,11 +33994,11 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33836
33994
|
}
|
|
33837
33995
|
},
|
|
33838
33996
|
startsOn: {
|
|
33839
|
-
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 : ""
|
|
33840
33998
|
},
|
|
33841
33999
|
endsAfter: {
|
|
33842
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 : "",
|
|
33843
|
-
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 : "" : ""
|
|
33844
34002
|
}
|
|
33845
34003
|
},
|
|
33846
34004
|
orderType: {
|
|
@@ -33849,7 +34007,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33849
34007
|
mode: {
|
|
33850
34008
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
33851
34009
|
},
|
|
33852
|
-
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 : "",
|
|
33853
34011
|
orderCatalog: {
|
|
33854
34012
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
33855
34013
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -36113,7 +36271,7 @@ var genereateSaveJson = function genereateSaveJson(data) {
|
|
|
36113
36271
|
}],
|
|
36114
36272
|
encountertype: (_patient$type = patient === null || patient === void 0 ? void 0 : patient.type) !== null && _patient$type !== void 0 ? _patient$type : "",
|
|
36115
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,
|
|
36116
|
-
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(),
|
|
36117
36275
|
documents: [{
|
|
36118
36276
|
_id: "",
|
|
36119
36277
|
date: "",
|
|
@@ -36171,7 +36329,7 @@ var generatesingleRead = function generatesingleRead(val, state) {
|
|
|
36171
36329
|
_id: val === null || val === void 0 ? void 0 : (_val$doctype4 = val.doctype) === null || _val$doctype4 === void 0 ? void 0 : _val$doctype4._id
|
|
36172
36330
|
} : null,
|
|
36173
36331
|
formID: val === null || val === void 0 ? void 0 : val.docformid,
|
|
36174
|
-
createdOn:
|
|
36332
|
+
createdOn: utcTOLocal$1(val.createddate, "DD MMM YYYY"),
|
|
36175
36333
|
editId: val._id,
|
|
36176
36334
|
formData: val.formdata,
|
|
36177
36335
|
saveMode: val.status === true ? "Final" : "Draft"
|
|
@@ -36192,15 +36350,15 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36192
36350
|
var category = element === null || element === void 0 ? void 0 : (_element$doccategory4 = element.doccategory) === null || _element$doccategory4 === void 0 ? void 0 : _element$doccategory4.display;
|
|
36193
36351
|
|
|
36194
36352
|
if (category in obj) {
|
|
36195
|
-
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;
|
|
36196
36354
|
|
|
36197
36355
|
obj[category].count = obj[category].count + 1;
|
|
36198
36356
|
|
|
36199
36357
|
var userObj = _objectSpread2({
|
|
36200
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 : "",
|
|
36201
36359
|
//title: "Role",
|
|
36202
|
-
date:
|
|
36203
|
-
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"
|
|
36204
36362
|
}, element);
|
|
36205
36363
|
|
|
36206
36364
|
var childObj = {
|
|
@@ -36217,7 +36375,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36217
36375
|
obj[category].child.push(childObj);
|
|
36218
36376
|
}
|
|
36219
36377
|
} else {
|
|
36220
|
-
var _element$
|
|
36378
|
+
var _element$practitioner7, _element$practitioner8, _element$practitioner9, _element$practitioner10, _element$practitioner11, _element$practitioner12;
|
|
36221
36379
|
|
|
36222
36380
|
obj[category] = {
|
|
36223
36381
|
title: category,
|
|
@@ -36226,9 +36384,9 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36226
36384
|
};
|
|
36227
36385
|
|
|
36228
36386
|
var _userObj = _objectSpread2({
|
|
36229
|
-
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$
|
|
36230
|
-
date:
|
|
36231
|
-
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"
|
|
36232
36390
|
}, element);
|
|
36233
36391
|
|
|
36234
36392
|
var childObj = {
|
|
@@ -36248,23 +36406,18 @@ var generatePractitoner = function generatePractitoner(data) {
|
|
|
36248
36406
|
});
|
|
36249
36407
|
var arr = [];
|
|
36250
36408
|
orderedData.forEach(function (element) {
|
|
36251
|
-
var _element$
|
|
36409
|
+
var _element$practitioner13, _element$practitioner14, _element$practitioner15, _element$practitioner16, _element$practitioner17;
|
|
36252
36410
|
|
|
36253
36411
|
var userObj = _objectSpread2({
|
|
36254
|
-
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$
|
|
36255
|
-
date:
|
|
36256
|
-
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"
|
|
36257
36415
|
}, element);
|
|
36258
36416
|
|
|
36259
36417
|
arr.push(userObj);
|
|
36260
36418
|
});
|
|
36261
36419
|
return arr;
|
|
36262
36420
|
};
|
|
36263
|
-
var getData = function getData(date, time) {
|
|
36264
|
-
var da = date ? new Date(date) : new Date();
|
|
36265
|
-
var d = new Date(da).toDateString().split(" ");
|
|
36266
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format("LT") : "");
|
|
36267
|
-
};
|
|
36268
36421
|
|
|
36269
36422
|
var _extraReducers$9;
|
|
36270
36423
|
var DOCC_SAVE_SERVICE = createAsyncThunk("DoccSlice/docc_save", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -37067,7 +37220,7 @@ var clinicQuery = {
|
|
|
37067
37220
|
return {
|
|
37068
37221
|
db_name: dbName,
|
|
37069
37222
|
entity: "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
37070
|
-
filter: "LocationMaster.activestatus==true && LocationMaster.
|
|
37223
|
+
filter: "LocationMaster.activestatus==true && LocationMaster._id=='".concat(key, "'"),
|
|
37071
37224
|
isTraversal: "true",
|
|
37072
37225
|
return_fields: "{vertices:v,orginatedata:LocationMaster}"
|
|
37073
37226
|
};
|
|
@@ -37352,7 +37505,7 @@ var config$1 = [{
|
|
|
37352
37505
|
}];
|
|
37353
37506
|
return {
|
|
37354
37507
|
labels: (_payload$date = payload.date) === null || _payload$date === void 0 ? void 0 : _payload$date.map(function (v) {
|
|
37355
|
-
return
|
|
37508
|
+
return utcTOLocal$1(v.start, "hh A");
|
|
37356
37509
|
}),
|
|
37357
37510
|
datasets: datasets
|
|
37358
37511
|
};
|
|
@@ -37690,7 +37843,7 @@ var query$4 = {
|
|
|
37690
37843
|
entity: "Appointment,Encounter",
|
|
37691
37844
|
filter: {
|
|
37692
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, "'"),
|
|
37693
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37846
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37694
37847
|
},
|
|
37695
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))}))})}"
|
|
37696
37849
|
};
|
|
@@ -37758,7 +37911,7 @@ var query$4 = {
|
|
|
37758
37911
|
filter: {
|
|
37759
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, "'"),
|
|
37760
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"),
|
|
37761
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37914
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37762
37915
|
},
|
|
37763
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)}))})"
|
|
37764
37917
|
};
|
|
@@ -37829,7 +37982,7 @@ var query$4 = {
|
|
|
37829
37982
|
entity: "Appointment,Encounter",
|
|
37830
37983
|
filter: {
|
|
37831
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, "'"),
|
|
37832
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37985
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37833
37986
|
},
|
|
37834
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)}))}))})"
|
|
37835
37988
|
};
|
|
@@ -37923,8 +38076,8 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
37923
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",
|
|
37924
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]) || {}),
|
|
37925
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,
|
|
37926
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment3 = _.Appointment) === null || _$Appointment3 === void 0 ? void 0 : _$Appointment3.start) ?
|
|
37927
|
-
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") : "",
|
|
37928
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) {
|
|
37929
38082
|
var _spl$coding, _spl$coding$;
|
|
37930
38083
|
|
|
@@ -37989,8 +38142,8 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
37989
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",
|
|
37990
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]) || {}),
|
|
37991
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,
|
|
37992
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : _$Appointment11.start) ?
|
|
37993
|
-
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") : "",
|
|
37994
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) {
|
|
37995
38148
|
var _spl$coding2, _spl$coding2$;
|
|
37996
38149
|
|
|
@@ -38055,8 +38208,8 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38055
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",
|
|
38056
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]) || {}),
|
|
38057
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,
|
|
38058
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment19 = _.Appointment) === null || _$Appointment19 === void 0 ? void 0 : _$Appointment19.start) ?
|
|
38059
|
-
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") : "",
|
|
38060
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) {
|
|
38061
38214
|
var _spl$coding3, _spl$coding3$;
|
|
38062
38215
|
|
|
@@ -38121,8 +38274,8 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38121
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",
|
|
38122
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]) || {}),
|
|
38123
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,
|
|
38124
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : _$Appointment27.start) ?
|
|
38125
|
-
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") : "",
|
|
38126
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) {
|
|
38127
38280
|
var _spl$coding4, _spl$coding4$;
|
|
38128
38281
|
|
|
@@ -38187,8 +38340,8 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38187
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",
|
|
38188
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]) || {}),
|
|
38189
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,
|
|
38190
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : _$Appointment35.start) ?
|
|
38191
|
-
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") : "",
|
|
38192
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) {
|
|
38193
38346
|
var _spl$coding5, _spl$coding5$;
|
|
38194
38347
|
|
|
@@ -38253,8 +38406,8 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38253
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",
|
|
38254
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]) || {}),
|
|
38255
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,
|
|
38256
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : _$Appointment43.start) ?
|
|
38257
|
-
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") : "",
|
|
38258
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) {
|
|
38259
38412
|
var _spl$coding6, _spl$coding6$;
|
|
38260
38413
|
|
|
@@ -38322,8 +38475,8 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38322
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) || "",
|
|
38323
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,
|
|
38324
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) || "",
|
|
38325
|
-
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) ?
|
|
38326
|
-
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") : "",
|
|
38327
38480
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
38328
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) {
|
|
38329
38482
|
var _spl$coding7, _spl$coding7$;
|
|
@@ -38386,8 +38539,8 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38386
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) || "",
|
|
38387
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,
|
|
38388
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) || "",
|
|
38389
|
-
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) ?
|
|
38390
|
-
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") : "",
|
|
38391
38544
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
38392
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) {
|
|
38393
38546
|
var _spl$coding8, _spl$coding8$;
|
|
@@ -38450,8 +38603,8 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
38450
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) || "",
|
|
38451
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,
|
|
38452
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) || "",
|
|
38453
|
-
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) ?
|
|
38454
|
-
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") : "",
|
|
38455
38608
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
38456
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) {
|
|
38457
38610
|
var _spl$coding9, _spl$coding9$;
|
|
@@ -38514,8 +38667,8 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
38514
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) || "",
|
|
38515
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,
|
|
38516
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) || "",
|
|
38517
|
-
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) ?
|
|
38518
|
-
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") : "",
|
|
38519
38672
|
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
38520
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) {
|
|
38521
38674
|
var _spl$coding10, _spl$coding10$;
|
|
@@ -38577,8 +38730,8 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
38577
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]) || {}),
|
|
38578
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,
|
|
38579
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,
|
|
38580
|
-
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) ?
|
|
38581
|
-
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") : "",
|
|
38582
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) {
|
|
38583
38736
|
var _spl$coding11, _spl$coding11$;
|
|
38584
38737
|
|
|
@@ -38641,8 +38794,8 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
38641
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) || "",
|
|
38642
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,
|
|
38643
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) || "",
|
|
38644
|
-
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) ?
|
|
38645
|
-
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") : "",
|
|
38646
38799
|
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
38647
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) {
|
|
38648
38801
|
var _spl$coding12, _spl$coding12$;
|
|
@@ -38705,8 +38858,8 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
38705
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]) || {}),
|
|
38706
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) || "",
|
|
38707
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) || "",
|
|
38708
|
-
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) ?
|
|
38709
|
-
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") : "",
|
|
38710
38863
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
38711
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) {
|
|
38712
38865
|
var _spl$coding13, _spl$coding13$;
|
|
@@ -38768,8 +38921,8 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
38768
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]) || {}),
|
|
38769
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) || "",
|
|
38770
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) || "",
|
|
38771
|
-
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) ?
|
|
38772
|
-
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") : "",
|
|
38773
38926
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
38774
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) {
|
|
38775
38928
|
var _spl$coding14, _spl$coding14$;
|
|
@@ -38831,8 +38984,8 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
38831
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]) || {}),
|
|
38832
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) || "",
|
|
38833
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) || "",
|
|
38834
|
-
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) ?
|
|
38835
|
-
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") : "",
|
|
38836
38989
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
38837
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) {
|
|
38838
38991
|
var _spl$coding15, _spl$coding15$;
|
|
@@ -38894,8 +39047,8 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
38894
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]) || {}),
|
|
38895
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) || "",
|
|
38896
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) || "",
|
|
38897
|
-
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) ?
|
|
38898
|
-
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") : "",
|
|
38899
39052
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
38900
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) {
|
|
38901
39054
|
var _spl$coding16, _spl$coding16$;
|
|
@@ -38957,8 +39110,8 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
38957
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]) || {}),
|
|
38958
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) || "",
|
|
38959
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) || "",
|
|
38960
|
-
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) ?
|
|
38961
|
-
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") : "",
|
|
38962
39115
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
38963
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) {
|
|
38964
39117
|
var _spl$coding17, _spl$coding17$;
|
|
@@ -39020,8 +39173,8 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39020
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]) || {}),
|
|
39021
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) || "",
|
|
39022
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) || "",
|
|
39023
|
-
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) ?
|
|
39024
|
-
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") : "",
|
|
39025
39178
|
visitType: (_$visit_type11 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type11 !== void 0 ? _$visit_type11 : "",
|
|
39026
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) {
|
|
39027
39180
|
var _spl$coding18, _spl$coding18$;
|
|
@@ -40086,7 +40239,33 @@ var query$3 = {
|
|
|
40086
40239
|
// }`
|
|
40087
40240
|
// }
|
|
40088
40241
|
avc_login: function avc_login(id) {
|
|
40089
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment._key == '").concat(id, "' && Appointment.activestatus==true\",\n \"return_fields\": \"merge(Appointment,{orgid:document(Appointment.orgid)},{resourcecode:(for pt in Practitioner filter pt._id == Appointment.resourcecode return merge(pt,{name:document(pt.name)}))},{practitionerID:(for pract in Practitioner filter pract.id in Appointment.practitionerID return merge(pract,{name:(for hm in HumanNameMaster filter hm._id in pract.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))},{practitioner_role:(for prid in PractitionerRole filter prid._id in pract.practitioner_role return merge(prid,{role:(for rol in CodeableConceptMaster filter rol._id == prid.role return merge(rol,{coding:document(rol.coding)}))}))},{practitioner_type:(for typ in CodeableConceptMaster filter typ._id == pract.practitioner_type return merge(typ,{coding:document(typ.coding)}))},{photo:document(pract.photo)},{gender:document(pract.gender)}))},{PersonID:(for
|
|
40242
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment\",\n \"filter\": \"Appointment._key == '").concat(id, "' && Appointment.activestatus==true\",\n \"return_fields\": \"merge(Appointment,{orgid:document(Appointment.orgid)},{resourcecode:(for pt in Practitioner filter pt._id == Appointment.resourcecode return merge(pt,{name:document(pt.name)}))},{practitionerID:(for pract in Practitioner filter pract.id in Appointment.practitionerID return merge(pract,{name:(for hm in HumanNameMaster filter hm._id in pract.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))},{practitioner_role:(for prid in PractitionerRole filter prid._id in pract.practitioner_role return merge(prid,{role:(for rol in CodeableConceptMaster filter rol._id == prid.role return merge(rol,{coding:document(rol.coding)}))}))},{practitioner_type:(for typ in CodeableConceptMaster filter typ._id == pract.practitioner_type return merge(typ,{coding:document(typ.coding)}))},{photo:document(pract.photo)},{gender:document(pract.gender)}))},{PersonID:(for pid in Person filter pid.Id in Appointment.PersonID return merge(pid,{name:(for hm in HumanNameMaster filter hm._id in pid.name return merge(hm,{use:document(hm.use),prefix:document(hm.prefix),suffix:document(hm.suffix)})),photo:document(pid.photo),age_type:document(pid.age_type)},{telecom:document(pid.telecom)},{gender:document(pid.gender)},{personID:(for psid in Person filter psid.Id == pid.personID return merge(psid,{name:document(psid.name)}))}))},{PatientID:(for pat in Patient filter pat.personID in Appointment.PersonID return merge(pat,{name:(for hm in HumanNameMaster filter hm._id in pat.name return merge(hm,{use:document(hm.use),prefix:document(hm.prefix),suffix:document(hm.suffix)})),photo:document(pat.photo),age_type:document(pat.age_type)},{telecom:document(pat.telecom)},{gender:document(pat.gender)},{personID:(for psid in Person filter psid.Id == pat.personID return merge(psid,{name:document(psid.name)}))}))})\"\n }");
|
|
40243
|
+
},
|
|
40244
|
+
avc_participant_joined_qu: function avc_participant_joined_qu(id) {
|
|
40245
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n }");
|
|
40246
|
+
}
|
|
40247
|
+
};
|
|
40248
|
+
|
|
40249
|
+
var generateJson = {
|
|
40250
|
+
insert_json: function insert_json(data, appInfo) {
|
|
40251
|
+
var _appInfo$dataJson, _appInfo$dataJson$Per, _appInfo$dataJson2, _appInfo$dataJson2$re;
|
|
40252
|
+
|
|
40253
|
+
debugger;
|
|
40254
|
+
return [{
|
|
40255
|
+
db_name: dbName,
|
|
40256
|
+
entity: "ConsentTrx",
|
|
40257
|
+
is_metadata: true,
|
|
40258
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
40259
|
+
doc: {
|
|
40260
|
+
id: 0,
|
|
40261
|
+
formid: data === null || data === void 0 ? void 0 : data.formId,
|
|
40262
|
+
patientid: appInfo === null || appInfo === void 0 ? void 0 : (_appInfo$dataJson = appInfo.dataJson) === null || _appInfo$dataJson === void 0 ? void 0 : (_appInfo$dataJson$Per = _appInfo$dataJson.PersonID[0]) === null || _appInfo$dataJson$Per === void 0 ? void 0 : _appInfo$dataJson$Per._id,
|
|
40263
|
+
practitionerid: appInfo === null || appInfo === void 0 ? void 0 : (_appInfo$dataJson2 = appInfo.dataJson) === null || _appInfo$dataJson2 === void 0 ? void 0 : (_appInfo$dataJson2$re = _appInfo$dataJson2.resourcecode[0]) === null || _appInfo$dataJson2$re === void 0 ? void 0 : _appInfo$dataJson2$re.practitioner_id,
|
|
40264
|
+
terms: true,
|
|
40265
|
+
sysinfo: data === null || data === void 0 ? void 0 : data.answer,
|
|
40266
|
+
appnum: appInfo === null || appInfo === void 0 ? void 0 : appInfo.app_id
|
|
40267
|
+
}
|
|
40268
|
+
}];
|
|
40090
40269
|
}
|
|
40091
40270
|
};
|
|
40092
40271
|
|
|
@@ -40117,6 +40296,41 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40117
40296
|
_data$resourcerole,
|
|
40118
40297
|
_data$orgid$name,
|
|
40119
40298
|
_data$orgid,
|
|
40299
|
+
_data$PatientID,
|
|
40300
|
+
_data$PatientID$,
|
|
40301
|
+
_data$PatientID$$name,
|
|
40302
|
+
_data$PatientID$$name2,
|
|
40303
|
+
_data$PatientID2,
|
|
40304
|
+
_data$PatientID2$,
|
|
40305
|
+
_data$PatientID2$$nam,
|
|
40306
|
+
_data$PatientID2$$nam2,
|
|
40307
|
+
_data$PatientID3,
|
|
40308
|
+
_data$PatientID3$,
|
|
40309
|
+
_data$PatientID3$$nam,
|
|
40310
|
+
_data$PatientID3$$nam2,
|
|
40311
|
+
_data$PatientID4,
|
|
40312
|
+
_data$PatientID4$,
|
|
40313
|
+
_data$PatientID4$$nam,
|
|
40314
|
+
_data$PatientID4$$nam2,
|
|
40315
|
+
_data$PatientID5,
|
|
40316
|
+
_data$PatientID5$,
|
|
40317
|
+
_data$PatientID6,
|
|
40318
|
+
_data$PatientID6$,
|
|
40319
|
+
_data$PatientID7,
|
|
40320
|
+
_data$PatientID7$,
|
|
40321
|
+
_data$PatientID7$$age,
|
|
40322
|
+
_data$PatientID$0$gen,
|
|
40323
|
+
_data$PatientID8,
|
|
40324
|
+
_data$PatientID8$,
|
|
40325
|
+
_data$PatientID8$$gen,
|
|
40326
|
+
_data$PatientID$0$ali,
|
|
40327
|
+
_data$PatientID9,
|
|
40328
|
+
_data$PatientID9$,
|
|
40329
|
+
_data$PatientID$0$tel,
|
|
40330
|
+
_data$PatientID10,
|
|
40331
|
+
_data$PatientID10$,
|
|
40332
|
+
_data$PatientID10$$te,
|
|
40333
|
+
_data$PatientID10$$te2,
|
|
40120
40334
|
_data$PersonID,
|
|
40121
40335
|
_data$PersonID$,
|
|
40122
40336
|
_data$PersonID$$name,
|
|
@@ -40175,6 +40389,7 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40175
40389
|
case 6:
|
|
40176
40390
|
resp = _context.sent;
|
|
40177
40391
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || [];
|
|
40392
|
+
debugger;
|
|
40178
40393
|
res_data = {
|
|
40179
40394
|
date: (_data$start = data === null || data === void 0 ? void 0 : data.start) !== null && _data$start !== void 0 ? _data$start : "",
|
|
40180
40395
|
app_id: (_data$appno = data === null || data === void 0 ? void 0 : data.appno) !== null && _data$appno !== void 0 ? _data$appno : "",
|
|
@@ -40189,6 +40404,13 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40189
40404
|
org_name: (_data$orgid$name = data === null || data === void 0 ? void 0 : (_data$orgid = data.orgid) === null || _data$orgid === void 0 ? void 0 : _data$orgid.name) !== null && _data$orgid$name !== void 0 ? _data$orgid$name : ""
|
|
40190
40405
|
},
|
|
40191
40406
|
patient: {
|
|
40407
|
+
name: (data === null || data === void 0 ? void 0 : (_data$PatientID = data.PatientID) === null || _data$PatientID === void 0 ? void 0 : (_data$PatientID$ = _data$PatientID[0]) === null || _data$PatientID$ === void 0 ? void 0 : (_data$PatientID$$name = _data$PatientID$.name) === null || _data$PatientID$$name === void 0 ? void 0 : (_data$PatientID$$name2 = _data$PatientID$$name[0]) === null || _data$PatientID$$name2 === void 0 ? void 0 : _data$PatientID$$name2.text) ? (data === null || data === void 0 ? void 0 : (_data$PatientID2 = data.PatientID) === null || _data$PatientID2 === void 0 ? void 0 : (_data$PatientID2$ = _data$PatientID2[0]) === null || _data$PatientID2$ === void 0 ? void 0 : (_data$PatientID2$$nam = _data$PatientID2$.name) === null || _data$PatientID2$$nam === void 0 ? void 0 : (_data$PatientID2$$nam2 = _data$PatientID2$$nam[0]) === null || _data$PatientID2$$nam2 === void 0 ? void 0 : _data$PatientID2$$nam2.text) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID3 = data.PatientID) === null || _data$PatientID3 === void 0 ? void 0 : (_data$PatientID3$ = _data$PatientID3[0]) === null || _data$PatientID3$ === void 0 ? void 0 : (_data$PatientID3$$nam = _data$PatientID3$.name) === null || _data$PatientID3$$nam === void 0 ? void 0 : (_data$PatientID3$$nam2 = _data$PatientID3$$nam[0]) === null || _data$PatientID3$$nam2 === void 0 ? void 0 : _data$PatientID3$$nam2.given) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID4 = data.PatientID) === null || _data$PatientID4 === void 0 ? void 0 : (_data$PatientID4$ = _data$PatientID4[0]) === null || _data$PatientID4$ === void 0 ? void 0 : (_data$PatientID4$$nam = _data$PatientID4$.name) === null || _data$PatientID4$$nam === void 0 ? void 0 : (_data$PatientID4$$nam2 = _data$PatientID4$$nam[0]) === null || _data$PatientID4$$nam2 === void 0 ? void 0 : _data$PatientID4$$nam2.family) : "",
|
|
40408
|
+
age: (data === null || data === void 0 ? void 0 : (_data$PatientID5 = data.PatientID) === null || _data$PatientID5 === void 0 ? void 0 : (_data$PatientID5$ = _data$PatientID5[0]) === null || _data$PatientID5$ === void 0 ? void 0 : _data$PatientID5$.age) ? (data === null || data === void 0 ? void 0 : (_data$PatientID6 = data.PatientID) === null || _data$PatientID6 === void 0 ? void 0 : (_data$PatientID6$ = _data$PatientID6[0]) === null || _data$PatientID6$ === void 0 ? void 0 : _data$PatientID6$.age) + " " + (data === null || data === void 0 ? void 0 : (_data$PatientID7 = data.PatientID) === null || _data$PatientID7 === void 0 ? void 0 : (_data$PatientID7$ = _data$PatientID7[0]) === null || _data$PatientID7$ === void 0 ? void 0 : (_data$PatientID7$$age = _data$PatientID7$.age_type) === null || _data$PatientID7$$age === void 0 ? void 0 : _data$PatientID7$$age.code) : "",
|
|
40409
|
+
gander: (_data$PatientID$0$gen = data === null || data === void 0 ? void 0 : (_data$PatientID8 = data.PatientID) === null || _data$PatientID8 === void 0 ? void 0 : (_data$PatientID8$ = _data$PatientID8[0]) === null || _data$PatientID8$ === void 0 ? void 0 : (_data$PatientID8$$gen = _data$PatientID8$.gender) === null || _data$PatientID8$$gen === void 0 ? void 0 : _data$PatientID8$$gen.display) !== null && _data$PatientID$0$gen !== void 0 ? _data$PatientID$0$gen : "",
|
|
40410
|
+
id: (_data$PatientID$0$ali = data === null || data === void 0 ? void 0 : (_data$PatientID9 = data.PatientID) === null || _data$PatientID9 === void 0 ? void 0 : (_data$PatientID9$ = _data$PatientID9[0]) === null || _data$PatientID9$ === void 0 ? void 0 : _data$PatientID9$.alias) !== null && _data$PatientID$0$ali !== void 0 ? _data$PatientID$0$ali : "",
|
|
40411
|
+
mobile: (_data$PatientID$0$tel = data === null || data === void 0 ? void 0 : (_data$PatientID10 = data.PatientID) === null || _data$PatientID10 === void 0 ? void 0 : (_data$PatientID10$ = _data$PatientID10[0]) === null || _data$PatientID10$ === void 0 ? void 0 : (_data$PatientID10$$te = _data$PatientID10$.telecom) === null || _data$PatientID10$$te === void 0 ? void 0 : (_data$PatientID10$$te2 = _data$PatientID10$$te[0]) === null || _data$PatientID10$$te2 === void 0 ? void 0 : _data$PatientID10$$te2.value) !== null && _data$PatientID$0$tel !== void 0 ? _data$PatientID$0$tel : ""
|
|
40412
|
+
},
|
|
40413
|
+
personID: {
|
|
40192
40414
|
name: (data === null || data === void 0 ? void 0 : (_data$PersonID = data.PersonID) === null || _data$PersonID === void 0 ? void 0 : (_data$PersonID$ = _data$PersonID[0]) === null || _data$PersonID$ === void 0 ? void 0 : (_data$PersonID$$name = _data$PersonID$.name) === null || _data$PersonID$$name === void 0 ? void 0 : (_data$PersonID$$name$ = _data$PersonID$$name[0]) === null || _data$PersonID$$name$ === void 0 ? void 0 : _data$PersonID$$name$.text) ? (data === null || data === void 0 ? void 0 : (_data$PersonID2 = data.PersonID) === null || _data$PersonID2 === void 0 ? void 0 : (_data$PersonID2$ = _data$PersonID2[0]) === null || _data$PersonID2$ === void 0 ? void 0 : (_data$PersonID2$$name = _data$PersonID2$.name) === null || _data$PersonID2$$name === void 0 ? void 0 : (_data$PersonID2$$name2 = _data$PersonID2$$name[0]) === null || _data$PersonID2$$name2 === void 0 ? void 0 : _data$PersonID2$$name2.text) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID3 = data.PersonID) === null || _data$PersonID3 === void 0 ? void 0 : (_data$PersonID3$ = _data$PersonID3[0]) === null || _data$PersonID3$ === void 0 ? void 0 : (_data$PersonID3$$name = _data$PersonID3$.name) === null || _data$PersonID3$$name === void 0 ? void 0 : (_data$PersonID3$$name2 = _data$PersonID3$$name[0]) === null || _data$PersonID3$$name2 === void 0 ? void 0 : _data$PersonID3$$name2.given) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID4 = data.PersonID) === null || _data$PersonID4 === void 0 ? void 0 : (_data$PersonID4$ = _data$PersonID4[0]) === null || _data$PersonID4$ === void 0 ? void 0 : (_data$PersonID4$$name = _data$PersonID4$.name) === null || _data$PersonID4$$name === void 0 ? void 0 : (_data$PersonID4$$name2 = _data$PersonID4$$name[0]) === null || _data$PersonID4$$name2 === void 0 ? void 0 : _data$PersonID4$$name2.family) : "-",
|
|
40193
40415
|
age: (data === null || data === void 0 ? void 0 : (_data$PersonID5 = data.PersonID) === null || _data$PersonID5 === void 0 ? void 0 : (_data$PersonID5$ = _data$PersonID5[0]) === null || _data$PersonID5$ === void 0 ? void 0 : _data$PersonID5$.age) ? (data === null || data === void 0 ? void 0 : (_data$PersonID6 = data.PersonID) === null || _data$PersonID6 === void 0 ? void 0 : (_data$PersonID6$ = _data$PersonID6[0]) === null || _data$PersonID6$ === void 0 ? void 0 : _data$PersonID6$.age) + " " + (data === null || data === void 0 ? void 0 : (_data$PersonID7 = data.PersonID) === null || _data$PersonID7 === void 0 ? void 0 : (_data$PersonID7$ = _data$PersonID7[0]) === null || _data$PersonID7$ === void 0 ? void 0 : (_data$PersonID7$$age_ = _data$PersonID7$.age_type) === null || _data$PersonID7$$age_ === void 0 ? void 0 : _data$PersonID7$$age_.code) : "",
|
|
40194
40416
|
gander: (_data$PersonID$0$gend = data === null || data === void 0 ? void 0 : (_data$PersonID8 = data.PersonID) === null || _data$PersonID8 === void 0 ? void 0 : (_data$PersonID8$ = _data$PersonID8[0]) === null || _data$PersonID8$ === void 0 ? void 0 : (_data$PersonID8$$gend = _data$PersonID8$.gender) === null || _data$PersonID8$$gend === void 0 ? void 0 : _data$PersonID8$$gend.display) !== null && _data$PersonID$0$gend !== void 0 ? _data$PersonID$0$gend : "",
|
|
@@ -40201,24 +40423,119 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40201
40423
|
data: res_data
|
|
40202
40424
|
}));
|
|
40203
40425
|
|
|
40204
|
-
case
|
|
40205
|
-
_context.prev =
|
|
40426
|
+
case 13:
|
|
40427
|
+
_context.prev = 13;
|
|
40206
40428
|
_context.t0 = _context["catch"](2);
|
|
40207
40429
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40208
40430
|
message: _context.t0.message
|
|
40209
40431
|
})));
|
|
40210
40432
|
|
|
40211
|
-
case
|
|
40433
|
+
case 16:
|
|
40212
40434
|
case "end":
|
|
40213
40435
|
return _context.stop();
|
|
40214
40436
|
}
|
|
40215
40437
|
}
|
|
40216
|
-
}, _callee, null, [[2,
|
|
40438
|
+
}, _callee, null, [[2, 13]]);
|
|
40439
|
+
})));
|
|
40440
|
+
var AVC_FORM_INSERT = createAsyncThunk("avcMeetApiSlice/avc_form", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
40441
|
+
var payload,
|
|
40442
|
+
_ref4,
|
|
40443
|
+
rejectWithValue,
|
|
40444
|
+
data,
|
|
40445
|
+
appInfo,
|
|
40446
|
+
queriesjson,
|
|
40447
|
+
dataResult,
|
|
40448
|
+
result,
|
|
40449
|
+
_args2 = arguments;
|
|
40450
|
+
|
|
40451
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
40452
|
+
while (1) {
|
|
40453
|
+
switch (_context2.prev = _context2.next) {
|
|
40454
|
+
case 0:
|
|
40455
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
40456
|
+
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
40457
|
+
_context2.prev = 2;
|
|
40458
|
+
data = payload.data, appInfo = payload.appInfo;
|
|
40459
|
+
queriesjson = generateJson.insert_json(data, appInfo);
|
|
40460
|
+
_context2.next = 7;
|
|
40461
|
+
return fetchData$3({
|
|
40462
|
+
body: JSON.stringify(queriesjson)
|
|
40463
|
+
}, __uspsertUrl__);
|
|
40464
|
+
|
|
40465
|
+
case 7:
|
|
40466
|
+
dataResult = _context2.sent;
|
|
40467
|
+
result = [];
|
|
40468
|
+
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40469
|
+
data: result
|
|
40470
|
+
}));
|
|
40471
|
+
|
|
40472
|
+
case 12:
|
|
40473
|
+
_context2.prev = 12;
|
|
40474
|
+
_context2.t0 = _context2["catch"](2);
|
|
40475
|
+
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40476
|
+
message: _context2.t0.message
|
|
40477
|
+
})));
|
|
40478
|
+
|
|
40479
|
+
case 15:
|
|
40480
|
+
case "end":
|
|
40481
|
+
return _context2.stop();
|
|
40482
|
+
}
|
|
40483
|
+
}
|
|
40484
|
+
}, _callee2, null, [[2, 12]]);
|
|
40485
|
+
})));
|
|
40486
|
+
var AVC_PARTICIPANT_JOINED = createAsyncThunk("avcMeetApiSlice/avc_participant_joined", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
40487
|
+
var payload,
|
|
40488
|
+
_ref6,
|
|
40489
|
+
rejectWithValue,
|
|
40490
|
+
_resp$result2,
|
|
40491
|
+
_payload$id2,
|
|
40492
|
+
id,
|
|
40493
|
+
resp,
|
|
40494
|
+
data,
|
|
40495
|
+
res_data,
|
|
40496
|
+
_args3 = arguments;
|
|
40497
|
+
|
|
40498
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
40499
|
+
while (1) {
|
|
40500
|
+
switch (_context3.prev = _context3.next) {
|
|
40501
|
+
case 0:
|
|
40502
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
40503
|
+
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
40504
|
+
_context3.prev = 2;
|
|
40505
|
+
_payload$id2 = payload.id, id = _payload$id2 === void 0 ? "" : _payload$id2;
|
|
40506
|
+
_context3.next = 6;
|
|
40507
|
+
return fetchData$3({
|
|
40508
|
+
body: query$3.avc_participant_joined_qu(id)
|
|
40509
|
+
}, __readDocumentUrl__);
|
|
40510
|
+
|
|
40511
|
+
case 6:
|
|
40512
|
+
resp = _context3.sent;
|
|
40513
|
+
data = (resp === null || resp === void 0 ? void 0 : (_resp$result2 = resp.result) === null || _resp$result2 === void 0 ? void 0 : _resp$result2[0]) || [];
|
|
40514
|
+
res_data = {};
|
|
40515
|
+
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
40516
|
+
data: res_data
|
|
40517
|
+
}));
|
|
40518
|
+
|
|
40519
|
+
case 12:
|
|
40520
|
+
_context3.prev = 12;
|
|
40521
|
+
_context3.t0 = _context3["catch"](2);
|
|
40522
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40523
|
+
message: _context3.t0.message
|
|
40524
|
+
})));
|
|
40525
|
+
|
|
40526
|
+
case 15:
|
|
40527
|
+
case "end":
|
|
40528
|
+
return _context3.stop();
|
|
40529
|
+
}
|
|
40530
|
+
}
|
|
40531
|
+
}, _callee3, null, [[2, 12]]);
|
|
40217
40532
|
})));
|
|
40218
40533
|
var avcMeetApiSlice = createSlice({
|
|
40219
40534
|
name: "avcMeetApiSlice",
|
|
40220
40535
|
initialState: {
|
|
40221
|
-
avc_info: _objectSpread2({}, defaultState.Info)
|
|
40536
|
+
avc_info: _objectSpread2({}, defaultState.Info),
|
|
40537
|
+
avc_form: _objectSpread2({}, defaultState.Info),
|
|
40538
|
+
avc_participant_joined: _objectSpread2({}, defaultState.Info)
|
|
40222
40539
|
},
|
|
40223
40540
|
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, AVC_LOGIN.fulfilled, function (state, action) {
|
|
40224
40541
|
var _action$payload;
|
|
@@ -40230,10 +40547,32 @@ var avcMeetApiSlice = createSlice({
|
|
|
40230
40547
|
var _action$payload2;
|
|
40231
40548
|
|
|
40232
40549
|
state.avc_info = (_action$payload2 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : [];
|
|
40550
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.fulfilled, function (state, action) {
|
|
40551
|
+
var _action$payload3;
|
|
40552
|
+
|
|
40553
|
+
state.avc_form = (_action$payload3 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload3 !== void 0 ? _action$payload3 : [];
|
|
40554
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.pending, function (state, action) {
|
|
40555
|
+
state.avc_form.loading = true;
|
|
40556
|
+
}), _defineProperty(_extraReducers$3, AVC_FORM_INSERT.rejected, function (state, action) {
|
|
40557
|
+
var _action$payload4;
|
|
40558
|
+
|
|
40559
|
+
state.avc_form = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : [];
|
|
40560
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.fulfilled, function (state, action) {
|
|
40561
|
+
var _action$payload5;
|
|
40562
|
+
|
|
40563
|
+
state.avc_participant_joined = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : [];
|
|
40564
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.pending, function (state, action) {
|
|
40565
|
+
state.avc_participant_joined.loading = true;
|
|
40566
|
+
}), _defineProperty(_extraReducers$3, AVC_PARTICIPANT_JOINED.rejected, function (state, action) {
|
|
40567
|
+
var _action$payload6;
|
|
40568
|
+
|
|
40569
|
+
state.avc_participant_joined = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : [];
|
|
40233
40570
|
}), _extraReducers$3)
|
|
40234
40571
|
});
|
|
40235
40572
|
var avcMeetApiActions = {
|
|
40236
|
-
AVC_LOGIN: AVC_LOGIN
|
|
40573
|
+
AVC_LOGIN: AVC_LOGIN,
|
|
40574
|
+
AVC_FORM_INSERT: AVC_FORM_INSERT,
|
|
40575
|
+
AVC_PARTICIPANT_JOINED: AVC_PARTICIPANT_JOINED
|
|
40237
40576
|
};
|
|
40238
40577
|
var avcMeetApiSlice$1 = avcMeetApiSlice.reducer;
|
|
40239
40578
|
|
|
@@ -40428,8 +40767,8 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
40428
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",
|
|
40429
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]) || {}),
|
|
40430
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,
|
|
40431
|
-
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) ?
|
|
40432
|
-
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") : "",
|
|
40433
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) {
|
|
40434
40773
|
var _spl$coding, _spl$coding$;
|
|
40435
40774
|
|
|
@@ -40491,8 +40830,8 @@ var GET_TRAIGE_DONE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDone"
|
|
|
40491
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",
|
|
40492
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]) || {}),
|
|
40493
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,
|
|
40494
|
-
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) ?
|
|
40495
|
-
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") : "",
|
|
40496
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) {
|
|
40497
40836
|
var _spl$coding2, _spl$coding2$;
|
|
40498
40837
|
|
|
@@ -40554,8 +40893,8 @@ var GET_VISIT_COMPLETED = createAsyncThunk("currentVisitStatsApiSlice/getVisitCo
|
|
|
40554
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",
|
|
40555
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]) || {}),
|
|
40556
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,
|
|
40557
|
-
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) ?
|
|
40558
|
-
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") : "",
|
|
40559
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) {
|
|
40560
40899
|
var _spl$coding3, _spl$coding3$;
|
|
40561
40900
|
|
|
@@ -40617,8 +40956,8 @@ var GET_PATIENTS_NO_SHOWS = createAsyncThunk("currentVisitStatsApiSlice/getPatie
|
|
|
40617
40956
|
img: "https://www.fillmurray.com/640/360",
|
|
40618
40957
|
name: "Louis Barrett",
|
|
40619
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 : "",
|
|
40620
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40621
|
-
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") : "",
|
|
40622
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 : "",
|
|
40623
40962
|
ward: "Ward 1",
|
|
40624
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 : "",
|
|
@@ -40681,8 +41020,8 @@ var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/
|
|
|
40681
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,
|
|
40682
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),
|
|
40683
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,
|
|
40684
|
-
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) ?
|
|
40685
|
-
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") : "",
|
|
40686
41025
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
40687
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) {
|
|
40688
41027
|
var _spl$coding4, _spl$coding4$;
|
|
@@ -40747,8 +41086,8 @@ var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getV
|
|
|
40747
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,
|
|
40748
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),
|
|
40749
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,
|
|
40750
|
-
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) ?
|
|
40751
|
-
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") : "",
|
|
40752
41091
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
40753
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) {
|
|
40754
41093
|
var _spl$coding5, _spl$coding5$;
|
|
@@ -40813,8 +41152,8 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
40813
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,
|
|
40814
41153
|
contact: "Contact",
|
|
40815
41154
|
refNo: "Ref No",
|
|
40816
|
-
date: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40817
|
-
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") : "",
|
|
40818
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,
|
|
40819
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,
|
|
40820
41159
|
clinic: "Clinic",
|
|
@@ -40875,8 +41214,8 @@ var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriag
|
|
|
40875
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,
|
|
40876
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),
|
|
40877
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,
|
|
40878
|
-
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) ?
|
|
40879
|
-
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") : "",
|
|
40880
41219
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
40881
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) {
|
|
40882
41221
|
var _spl$coding6, _spl$coding6$;
|
|
@@ -40942,8 +41281,8 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
40942
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,
|
|
40943
41282
|
contact: "Contact",
|
|
40944
41283
|
refNo: "Ref No",
|
|
40945
|
-
date: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40946
|
-
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") : "",
|
|
40947
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,
|
|
40948
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,
|
|
40949
41288
|
clinic: "Clinic",
|
|
@@ -41004,8 +41343,8 @@ var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice
|
|
|
41004
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,
|
|
41005
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),
|
|
41006
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,
|
|
41007
|
-
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) ?
|
|
41008
|
-
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") : "",
|
|
41009
41348
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41010
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) {
|
|
41011
41350
|
var _spl$coding7, _spl$coding7$;
|
|
@@ -41070,8 +41409,8 @@ var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/get
|
|
|
41070
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,
|
|
41071
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),
|
|
41072
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,
|
|
41073
|
-
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) ?
|
|
41074
|
-
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") : "",
|
|
41075
41414
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41076
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) {
|
|
41077
41416
|
var _spl$coding8, _spl$coding8$;
|
|
@@ -41136,8 +41475,8 @@ var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTria
|
|
|
41136
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,
|
|
41137
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),
|
|
41138
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,
|
|
41139
|
-
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) ?
|
|
41140
|
-
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") : "",
|
|
41141
41480
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41142
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) {
|
|
41143
41482
|
var _spl$coding9, _spl$coding9$;
|
|
@@ -41367,8 +41706,8 @@ var FOLLOWUP_APPOINTMENTS = createAsyncThunk("pendingTasksApiSlice/getFollowUpAp
|
|
|
41367
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],
|
|
41368
41707
|
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : _$patient_id.alias,
|
|
41369
41708
|
"refNo": 'Ref No',
|
|
41370
|
-
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41371
|
-
"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') : '',
|
|
41372
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,
|
|
41373
41712
|
"clinic": 'Clinic',
|
|
41374
41713
|
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid2 = _.patientid) === null || _$patientid2 === void 0 ? void 0 : _$patientid2.birthDate,
|
|
@@ -41427,8 +41766,8 @@ var APPOINTMENT_REFERRALS = createAsyncThunk("pendingTasksApiSlice/getAppointmen
|
|
|
41427
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],
|
|
41428
41767
|
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : _$patient_id2.alias,
|
|
41429
41768
|
"refNo": 'Ref No',
|
|
41430
|
-
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41431
|
-
"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') : '',
|
|
41432
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,
|
|
41433
41772
|
"clinic": 'Clinic',
|
|
41434
41773
|
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid4 = _.patientid) === null || _$patientid4 === void 0 ? void 0 : _$patientid4.birthDate,
|
|
@@ -41541,7 +41880,7 @@ var GET_ASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getAssignP
|
|
|
41541
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,
|
|
41542
41881
|
apptRefNo: _ === null || _ === void 0 ? void 0 : (_$Appointment = _.Appointment) === null || _$Appointment === void 0 ? void 0 : _$Appointment.appno,
|
|
41543
41882
|
// "apptDate&Time":_.Appointment.start,
|
|
41544
|
-
"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") : "",
|
|
41545
41884
|
encounterNo: _ === null || _ === void 0 ? void 0 : (_$Encounter5 = _.Encounter) === null || _$Encounter5 === void 0 ? void 0 : _$Encounter5.encounter_no,
|
|
41546
41885
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter6 = _.Encounter) === null || _$Encounter6 === void 0 ? void 0 : _$Encounter6.visit_type,
|
|
41547
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,
|
|
@@ -41601,7 +41940,7 @@ var GET_REASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getReAss
|
|
|
41601
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,
|
|
41602
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,
|
|
41603
41942
|
apptRefNo: _ === null || _ === void 0 ? void 0 : (_$Appointment4 = _.Appointment) === null || _$Appointment4 === void 0 ? void 0 : _$Appointment4.appno,
|
|
41604
|
-
"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") : "",
|
|
41605
41944
|
encounterNo: _ === null || _ === void 0 ? void 0 : (_$Encounter13 = _.Encounter) === null || _$Encounter13 === void 0 ? void 0 : _$Encounter13.encounter_no,
|
|
41606
41945
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter14 = _.Encounter) === null || _$Encounter14 === void 0 ? void 0 : _$Encounter14.visit_type,
|
|
41607
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,
|
|
@@ -41661,7 +42000,7 @@ var GET_CLOSE_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getClosePra
|
|
|
41661
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 : "",
|
|
41662
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 : "",
|
|
41663
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 : "",
|
|
41664
|
-
"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") : "",
|
|
41665
42004
|
encounterNo: (_$encounter_no = _ === null || _ === void 0 ? void 0 : _.encounter_no) !== null && _$encounter_no !== void 0 ? _$encounter_no : "",
|
|
41666
42005
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
41667
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 : "",
|