primarycare-binder 1.1.20 → 1.1.24
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 +492 -351
- 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,
|
|
@@ -8104,9 +8104,9 @@ var queries$a = {
|
|
|
8104
8104
|
},
|
|
8105
8105
|
getPatientByMRN: {
|
|
8106
8106
|
query: function query(id) {
|
|
8107
|
-
return "Patient.alias=='".concat(id, "' && Person.Id==Patient.personID LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period})) LET telecom=(FOR tel IN Person.telecom LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN Person.photo RETURN DOCUMENT(pht))");
|
|
8107
|
+
return "Patient.alias=='".concat(id, "' && Person.Id==Patient.personID LET name=(FOR nam IN Person.name LET period=(FOR per IN TO_ARRAY(DOCUMENT(nam).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(nam),{period:period},{use:document(TO_ARRAY(DOCUMENT(nam).use))},{suffix:document(TO_ARRAY(DOCUMENT(nam).suffix))},{prefix:document(TO_ARRAY(DOCUMENT(nam).prefix))})) LET telecom=(FOR tel IN Person.telecom LET period=(FOR per IN TO_ARRAY(DOCUMENT(tel).period) RETURN DOCUMENT(per)) RETURN MERGE(DOCUMENT(tel),{period:period})) LET photo=(FOR pht IN Person.photo RETURN DOCUMENT(pht))");
|
|
8108
8108
|
},
|
|
8109
|
-
returnFields: "MERGE(Person,{name:name,telecom:telecom,photo:photo})"
|
|
8109
|
+
returnFields: "MERGE(Person,{name:name,telecom:telecom,photo:photo,Patient:merge(Patient,{name:(for na in document(Patient.name) return merge(na,{use:document(na.use)},{prefix:document(na.prefix)},{suffix:document(na.suffix)}))},{photo:document(Patient.photo)})})"
|
|
8110
8110
|
},
|
|
8111
8111
|
codablemasterType: {
|
|
8112
8112
|
query: function query(type) {
|
|
@@ -8163,13 +8163,13 @@ var queries$a = {
|
|
|
8163
8163
|
query: function query(appointmentId) {
|
|
8164
8164
|
return "Person.Id in Appointment.PersonID && Appointment.appno like '%".concat(appointmentId, "%'");
|
|
8165
8165
|
},
|
|
8166
|
-
returnFields: "{AppointmentID:Appointment.id,_id:Appointment._id,status:Appointment.status,avc:Appointment.avc,appnumber:Appointment.appno,end:Appointment.end,start:Appointment.start,createddate:Appointment.createddate,updatedate:Appointment.updatedate, personId:Appointment.PersonID, patient:(FOR adqolcPatient IN Patient FILTER adqolcPatient.personID IN Appointment.PersonID RETURN merge(adqolcPatient,{identifier:document(adqolcPatient.identifier)},{martialStatus:document(adqolcPatient.martialStatus)},{name:document(adqolcPatient.name)},{telecom:document(adqolcPatient.telecom)},{photo:document(adqolcPatient.photo)},{personID:(for pid in Person filter pid.Id == adqolcPatient.personID return pid)},{address:document(adqolcPatient.address)},{activereason:(DOCUMENT(adqolcPatient.activereason)),deceasedreason:(DOCUMENT(adqolcPatient.deceasedreason))},{isdeceased:(for doc in CodeableConceptMaster filter doc._id==adqolcPatient.isdeceased return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod)}))})) ,Person:MERGE(Person,{name:(FOR hn IN TO_ARRAY(Person.name) RETURN DOCUMENT(hn)),telecom:(FOR tel IN TO_ARRAY(Person.telecom) RETURN DOCUMENT(tel) )})}"
|
|
8166
|
+
returnFields: "{AppointmentID:Appointment.id,_id:Appointment._id,status:Appointment.status,avc:Appointment.avc,appnumber:Appointment.appno,end:Appointment.end,start:Appointment.start,createddate:Appointment.createddate,updatedate:Appointment.updatedate, personId:Appointment.PersonID, patient:(FOR adqolcPatient IN Patient FILTER adqolcPatient.personID IN Appointment.PersonID RETURN merge(adqolcPatient,{identifier:document(adqolcPatient.identifier)},{martialStatus:document(adqolcPatient.martialStatus)},{name:document(adqolcPatient.name)},{telecom:document(adqolcPatient.telecom)},{photo:document(adqolcPatient.photo)},{personID:(for pid in Person filter pid.Id == adqolcPatient.personID return pid)},{address:document(adqolcPatient.address)},{activereason:(DOCUMENT(adqolcPatient.activereason)),deceasedreason:(DOCUMENT(adqolcPatient.deceasedreason))},{isdeceased:(for doc in CodeableConceptMaster filter doc._id==adqolcPatient.isdeceased return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod)}))})) ,Person:MERGE(Person,{name:(FOR hn IN TO_ARRAY(Person.name) RETURN DOCUMENT(hn)),telecom:(FOR tel IN TO_ARRAY(Person.telecom) RETURN DOCUMENT(tel) ),photo:document(Person.photo)})}"
|
|
8167
8167
|
},
|
|
8168
8168
|
codablemasterGetPatientname: {
|
|
8169
8169
|
query: function query(patientName) {
|
|
8170
8170
|
return "UPPER(DOCUMENT(Person.name)[*].text) LIKE '%".concat(patientName, "%'");
|
|
8171
8171
|
},
|
|
8172
|
-
returnFields: "{prefix: DOCUMENT(Person.name)[*].prefix,gender: Person.gender,birthDate: Person.birthDay,suffix: DOCUMENT(Person.name)[*].suffix, name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))})),telecom: Document(Person.telecom)}"
|
|
8172
|
+
returnFields: "{prefix: DOCUMENT(Person.name)[*].prefix,gender: Person.gender,birthDate: Person.birthDay,suffix: DOCUMENT(Person.name)[*].suffix, name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{photo:document(pat.photo)})),telecom: Document(Person.telecom),photo:document(Person.photo)}"
|
|
8173
8173
|
},
|
|
8174
8174
|
specialityAgainstPractitioner: {
|
|
8175
8175
|
query: function query() {
|
|
@@ -9534,6 +9534,27 @@ var getImgUrl = function getImgUrl(fileId) {
|
|
|
9534
9534
|
return fileId ? "".concat(__imgdownloadBaseUrl__).concat(fileId) : "";
|
|
9535
9535
|
};
|
|
9536
9536
|
|
|
9537
|
+
var getUtcTime = function getUtcTime(date) {
|
|
9538
|
+
if (date) {
|
|
9539
|
+
return moment.utc(date).unix();
|
|
9540
|
+
} else {
|
|
9541
|
+
return moment.utc().unix();
|
|
9542
|
+
}
|
|
9543
|
+
};
|
|
9544
|
+
|
|
9545
|
+
var utcTOLocal$1 = function utcTOLocal(date, format) {
|
|
9546
|
+
var Ndate = new Date();
|
|
9547
|
+
|
|
9548
|
+
if (typeof date === "number") {
|
|
9549
|
+
Ndate = moment.unix(date);
|
|
9550
|
+
} else {
|
|
9551
|
+
Ndate = moment(date);
|
|
9552
|
+
}
|
|
9553
|
+
|
|
9554
|
+
var fmt = format ? format : "DD-MM-YYYY";
|
|
9555
|
+
return moment.utc(Ndate).local().format(fmt);
|
|
9556
|
+
};
|
|
9557
|
+
|
|
9537
9558
|
var deg2rad = function deg2rad(deg) {
|
|
9538
9559
|
return deg * (Math.PI / 180);
|
|
9539
9560
|
};
|
|
@@ -10447,7 +10468,7 @@ var UPSERT_CANCEL_APP_PATIENT = createAsyncThunk("patientReducer/cancelAapp", /*
|
|
|
10447
10468
|
_payload$personId = payload.personId, personId = _payload$personId === void 0 ? 0 : _payload$personId;
|
|
10448
10469
|
body = {
|
|
10449
10470
|
personId: personId,
|
|
10450
|
-
startDateTime:
|
|
10471
|
+
startDateTime: utcTOLocal$1()
|
|
10451
10472
|
};
|
|
10452
10473
|
_context9.next = 7;
|
|
10453
10474
|
return fetchData$3({
|
|
@@ -10872,7 +10893,8 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10872
10893
|
_payload$type,
|
|
10873
10894
|
type,
|
|
10874
10895
|
slotID,
|
|
10875
|
-
|
|
10896
|
+
Sdate,
|
|
10897
|
+
Edate,
|
|
10876
10898
|
startdate,
|
|
10877
10899
|
enddate,
|
|
10878
10900
|
isClinic,
|
|
@@ -10969,9 +10991,12 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10969
10991
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
10970
10992
|
_context4.prev = 2;
|
|
10971
10993
|
_payload$start = payload.start, start = _payload$start === void 0 ? 0 : _payload$start, _payload$id = payload.id, id = _payload$id === void 0 ? [0] : _payload$id, _payload$HealthcareSe = payload.HealthcareServiceID, HealthcareServiceID = _payload$HealthcareSe === void 0 ? [] : _payload$HealthcareSe, _payload$type = payload.type, type = _payload$type === void 0 ? "" : _payload$type, slotID = payload.slotID;
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10994
|
+
Sdate = new Date(start * 1000);
|
|
10995
|
+
Edate = new Date(start * 1000);
|
|
10996
|
+
startdate = Sdate;
|
|
10997
|
+
enddate = Edate;
|
|
10998
|
+
startdate.setHours(0, 0, 0, 0);
|
|
10999
|
+
enddate.setHours(23, 59, 59, 999);
|
|
10975
11000
|
isClinic = false;
|
|
10976
11001
|
|
|
10977
11002
|
if (type === "clinicid") {
|
|
@@ -10994,24 +11019,24 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
10994
11019
|
delete inputData["filter"]["healthCareId"];
|
|
10995
11020
|
}
|
|
10996
11021
|
|
|
10997
|
-
_context4.next =
|
|
11022
|
+
_context4.next = 16;
|
|
10998
11023
|
return fetchData$3({
|
|
10999
11024
|
body: JSON.stringify(inputData)
|
|
11000
11025
|
});
|
|
11001
11026
|
|
|
11002
|
-
case
|
|
11027
|
+
case 16:
|
|
11003
11028
|
practData = _context4.sent;
|
|
11004
11029
|
body = query_ids["slotApiSlice/readSlot"]["query"]({
|
|
11005
|
-
start: startdate,
|
|
11006
|
-
end: enddate,
|
|
11030
|
+
start: getUtcTime(startdate),
|
|
11031
|
+
end: getUtcTime(enddate),
|
|
11007
11032
|
id: (_practData$ = practData[0]) === null || _practData$ === void 0 ? void 0 : _practData$.id
|
|
11008
11033
|
});
|
|
11009
|
-
_context4.next =
|
|
11034
|
+
_context4.next = 20;
|
|
11010
11035
|
return fetchData$3({
|
|
11011
11036
|
body: JSON.stringify(body)
|
|
11012
11037
|
}, __readDocumentUrl__);
|
|
11013
11038
|
|
|
11014
|
-
case
|
|
11039
|
+
case 20:
|
|
11015
11040
|
resp = _context4.sent;
|
|
11016
11041
|
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || {};
|
|
11017
11042
|
slots = (data === null || data === void 0 ? void 0 : data.slots) || [];
|
|
@@ -11126,19 +11151,19 @@ var APPOINTMENT_UPDATE_READ = createAsyncThunk("appointmentReducer/upsertReadApp
|
|
|
11126
11151
|
data: [info]
|
|
11127
11152
|
}));
|
|
11128
11153
|
|
|
11129
|
-
case
|
|
11130
|
-
_context4.prev =
|
|
11154
|
+
case 30:
|
|
11155
|
+
_context4.prev = 30;
|
|
11131
11156
|
_context4.t0 = _context4["catch"](2);
|
|
11132
11157
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
11133
11158
|
message: _context4.t0.message
|
|
11134
11159
|
})));
|
|
11135
11160
|
|
|
11136
|
-
case
|
|
11161
|
+
case 33:
|
|
11137
11162
|
case "end":
|
|
11138
11163
|
return _context4.stop();
|
|
11139
11164
|
}
|
|
11140
11165
|
}
|
|
11141
|
-
}, _callee4, null, [[2,
|
|
11166
|
+
}, _callee4, null, [[2, 30]]);
|
|
11142
11167
|
}))); // end
|
|
11143
11168
|
// APPOINTMENT_READ
|
|
11144
11169
|
|
|
@@ -11243,14 +11268,14 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11243
11268
|
currentVisist: []
|
|
11244
11269
|
};
|
|
11245
11270
|
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$past_appointm = _data$2.past_appointment) === null || _data$2$past_appointm === void 0 ? void 0 : (_data$2$past_appointm2 = _data$2$past_appointm.forEach) === null || _data$2$past_appointm2 === void 0 ? void 0 : _data$2$past_appointm2.call(_data$2$past_appointm, function (v) {
|
|
11246
|
-
if (assemble && moment((v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11271
|
+
if (assemble && moment(utcTOLocal$1(v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11247
11272
|
returnData.currentVisist.push(v);
|
|
11248
11273
|
} else {
|
|
11249
11274
|
returnData.pastAppointment.push(v);
|
|
11250
11275
|
}
|
|
11251
11276
|
});
|
|
11252
11277
|
(_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$upcoming_appo = _data$3.upcoming_appointment) === null || _data$3$upcoming_appo === void 0 ? void 0 : (_data$3$upcoming_appo2 = _data$3$upcoming_appo.forEach) === null || _data$3$upcoming_appo2 === void 0 ? void 0 : _data$3$upcoming_appo2.call(_data$3$upcoming_appo, function (v) {
|
|
11253
|
-
if (assemble && moment((v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11278
|
+
if (assemble && moment(utcTOLocal$1(v === null || v === void 0 ? void 0 : v.start) * 1000).startOf("day").diff(moment().startOf("day"), "days") === 0 && (v.comment === "completed_assemble" || v.comment === "onhold_nurse" || v.comment === "completed_nurse" || v.comment === "onhold_doctor")) {
|
|
11254
11279
|
returnData.currentVisist.push(v);
|
|
11255
11280
|
} else {
|
|
11256
11281
|
returnData.upcomingAppointment.push(v);
|
|
@@ -11705,11 +11730,15 @@ var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppo
|
|
|
11705
11730
|
_context13.prev = 2;
|
|
11706
11731
|
_payload$start3 = payload.start, start = _payload$start3 === void 0 ? [] : _payload$start3, _payload$practionerid = payload.practionerid, practionerid = _payload$practionerid === void 0 ? 0 : _payload$practionerid, _payload$clinicid = payload.clinicid, clinicid = _payload$clinicid === void 0 ? 0 : _payload$clinicid;
|
|
11707
11732
|
date = start.map(function (d) {
|
|
11708
|
-
var startDate =
|
|
11709
|
-
var endDate =
|
|
11733
|
+
var startDate = new Date();
|
|
11734
|
+
var endDate = new Date();
|
|
11735
|
+
startDate = new Date(d * 1000);
|
|
11736
|
+
debugger;
|
|
11737
|
+
endDate = new Date(d * 1000);
|
|
11738
|
+
endDate.setHours(23, 59, 59, 999);
|
|
11710
11739
|
return {
|
|
11711
|
-
start: startDate,
|
|
11712
|
-
end: endDate
|
|
11740
|
+
start: getUtcTime(startDate),
|
|
11741
|
+
end: getUtcTime(endDate)
|
|
11713
11742
|
};
|
|
11714
11743
|
});
|
|
11715
11744
|
input = {
|
|
@@ -11866,8 +11895,8 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
|
|
|
11866
11895
|
statushistory.push({
|
|
11867
11896
|
status: encounterStatus,
|
|
11868
11897
|
period: [{
|
|
11869
|
-
start:
|
|
11870
|
-
end:
|
|
11898
|
+
start: getUtcTime(),
|
|
11899
|
+
end: getUtcTime(),
|
|
11871
11900
|
id: 0
|
|
11872
11901
|
}]
|
|
11873
11902
|
});
|
|
@@ -13709,9 +13738,10 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13709
13738
|
var payload,
|
|
13710
13739
|
_ref3,
|
|
13711
13740
|
rejectWithValue,
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
13741
|
+
Sdate,
|
|
13742
|
+
Edate,
|
|
13743
|
+
startDate,
|
|
13744
|
+
endDate,
|
|
13715
13745
|
hospital,
|
|
13716
13746
|
specialities,
|
|
13717
13747
|
latitude,
|
|
@@ -13737,24 +13767,30 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13737
13767
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
13738
13768
|
_ref3 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref3.rejectWithValue;
|
|
13739
13769
|
_context2.prev = 2;
|
|
13740
|
-
|
|
13770
|
+
Sdate = new Date();
|
|
13771
|
+
Edate = new Date();
|
|
13741
13772
|
|
|
13742
13773
|
if (payload.date) {
|
|
13743
|
-
|
|
13744
|
-
|
|
13774
|
+
Sdate = new Date(payload.date);
|
|
13775
|
+
Edate = new Date(payload.date);
|
|
13776
|
+
} // let startTime = Sdate.setHours(0, 0, 0, 0);
|
|
13777
|
+
// let endTime = Sdate.setHours(23, 59, 59, 999);
|
|
13745
13778
|
|
|
13746
|
-
|
|
13747
|
-
|
|
13779
|
+
|
|
13780
|
+
startDate = Sdate;
|
|
13781
|
+
endDate = Edate;
|
|
13782
|
+
startDate.setHours(0, 0, 0, 0);
|
|
13783
|
+
endDate.setHours(23, 59, 59, 999);
|
|
13748
13784
|
hospital = payload.hospital, specialities = payload.specialities, latitude = payload.latitude, longtitude = payload.longtitude, _payload$doctorId = payload.doctorId, doctorId = _payload$doctorId === void 0 ? 0 : _payload$doctorId;
|
|
13749
13785
|
body = {
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13786
|
+
db_name: dbName,
|
|
13787
|
+
queryid: query_ids.doctorListing,
|
|
13788
|
+
filter: {
|
|
13789
|
+
org_id: hospital,
|
|
13754
13790
|
// "Organization": hospital + "/10000",
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13791
|
+
speciality: specialities,
|
|
13792
|
+
startdate: getUtcTime(startDate),
|
|
13793
|
+
enddate: getUtcTime(endDate) // "latitude": latitude,
|
|
13758
13794
|
// "longtitude": longtitude,
|
|
13759
13795
|
// "startdate": 1614836455,
|
|
13760
13796
|
// "enddate" : 1622785255
|
|
@@ -13769,8 +13805,8 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13769
13805
|
"filter": {
|
|
13770
13806
|
"org_id": hospital,
|
|
13771
13807
|
"practionerId": doctorId,
|
|
13772
|
-
"startdate":
|
|
13773
|
-
"enddate":
|
|
13808
|
+
"startdate": getUtcTime(startTime),
|
|
13809
|
+
"enddate": getUtcTime(endTime)
|
|
13774
13810
|
}
|
|
13775
13811
|
};
|
|
13776
13812
|
} // body = {
|
|
@@ -13787,12 +13823,12 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13787
13823
|
// }
|
|
13788
13824
|
|
|
13789
13825
|
|
|
13790
|
-
_context2.next =
|
|
13826
|
+
_context2.next = 15;
|
|
13791
13827
|
return fetchData$3({
|
|
13792
13828
|
body: JSON.stringify(body)
|
|
13793
13829
|
});
|
|
13794
13830
|
|
|
13795
|
-
case
|
|
13831
|
+
case 15:
|
|
13796
13832
|
data = _context2.sent;
|
|
13797
13833
|
returnData = [];
|
|
13798
13834
|
allLangs = new Set();
|
|
@@ -13998,17 +14034,17 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
13998
14034
|
});
|
|
13999
14035
|
}
|
|
14000
14036
|
|
|
14001
|
-
_context2.next =
|
|
14037
|
+
_context2.next = 22;
|
|
14002
14038
|
return getCurrentPosition();
|
|
14003
14039
|
|
|
14004
|
-
case
|
|
14040
|
+
case 22:
|
|
14005
14041
|
_yield$getCurrentPosi = _context2.sent;
|
|
14006
14042
|
myLat = _yield$getCurrentPosi.lat;
|
|
14007
14043
|
myLong = _yield$getCurrentPosi["long"];
|
|
14008
14044
|
locationInfo = {};
|
|
14009
14045
|
|
|
14010
14046
|
if (!(myLat && myLong)) {
|
|
14011
|
-
_context2.next =
|
|
14047
|
+
_context2.next = 31;
|
|
14012
14048
|
break;
|
|
14013
14049
|
}
|
|
14014
14050
|
|
|
@@ -14020,34 +14056,34 @@ var DOCTER_LISTING = createAsyncThunk("docterListingReducer/docterListing", /*#_
|
|
|
14020
14056
|
"long": myLong
|
|
14021
14057
|
}, city, locationInfo);
|
|
14022
14058
|
});
|
|
14023
|
-
_context2.next =
|
|
14059
|
+
_context2.next = 30;
|
|
14024
14060
|
return es6Promise.Promise.all(promArr);
|
|
14025
14061
|
|
|
14026
|
-
case
|
|
14062
|
+
case 30:
|
|
14027
14063
|
returnData.forEach(function (d) {
|
|
14028
14064
|
d.kms = locationInfo[d.city] || "0 Kms";
|
|
14029
14065
|
});
|
|
14030
14066
|
|
|
14031
|
-
case
|
|
14067
|
+
case 31:
|
|
14032
14068
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
14033
14069
|
data: returnData,
|
|
14034
14070
|
allLangs: _toConsumableArray(allLangs)
|
|
14035
14071
|
}));
|
|
14036
14072
|
|
|
14037
|
-
case
|
|
14038
|
-
_context2.prev =
|
|
14073
|
+
case 34:
|
|
14074
|
+
_context2.prev = 34;
|
|
14039
14075
|
_context2.t0 = _context2["catch"](2);
|
|
14040
14076
|
console.log(_context2.t0);
|
|
14041
14077
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14042
14078
|
message: _context2.t0.message
|
|
14043
14079
|
})));
|
|
14044
14080
|
|
|
14045
|
-
case
|
|
14081
|
+
case 38:
|
|
14046
14082
|
case "end":
|
|
14047
14083
|
return _context2.stop();
|
|
14048
14084
|
}
|
|
14049
14085
|
}
|
|
14050
|
-
}, _callee2, null, [[2,
|
|
14086
|
+
}, _callee2, null, [[2, 34]]);
|
|
14051
14087
|
}))); // end
|
|
14052
14088
|
// FUZZY SEARCH CREATE INITIALSTATE
|
|
14053
14089
|
|
|
@@ -14350,7 +14386,7 @@ var GET_HOSPITALS_LOCALITY = createAsyncThunk("searhcApiSlice/getHospitals", /*#
|
|
|
14350
14386
|
db_name: dbName,
|
|
14351
14387
|
queryid: query_ids["searhcApiSlice/getHospitals"],
|
|
14352
14388
|
filter: {
|
|
14353
|
-
city: city // location,
|
|
14389
|
+
city: (location === null || location === void 0 ? void 0 : location.locality) || city // location,
|
|
14354
14390
|
// "city": "Mumbai",
|
|
14355
14391
|
// "location": "Bandra West"
|
|
14356
14392
|
|
|
@@ -14611,12 +14647,10 @@ var GET_ALL_SPECIALITY = createAsyncThunk("searhcApiSlice/getAllSpeciality", /*#
|
|
|
14611
14647
|
}
|
|
14612
14648
|
}, _callee7, null, [[2, 12]]);
|
|
14613
14649
|
})));
|
|
14614
|
-
var
|
|
14650
|
+
var GET_ALL_SPECIALITY_2 = createAsyncThunk("searhcApiSlice/getAllSpeciality_2", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
14615
14651
|
var payload,
|
|
14616
14652
|
_ref16,
|
|
14617
14653
|
rejectWithValue,
|
|
14618
|
-
_payload$type,
|
|
14619
|
-
type,
|
|
14620
14654
|
body,
|
|
14621
14655
|
data,
|
|
14622
14656
|
returnData,
|
|
@@ -14629,30 +14663,32 @@ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*
|
|
|
14629
14663
|
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
14630
14664
|
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
14631
14665
|
_context8.prev = 2;
|
|
14632
|
-
_payload$type = payload.type, type = _payload$type === void 0 ? [] : _payload$type;
|
|
14633
14666
|
body = {
|
|
14634
14667
|
db_name: dbName,
|
|
14635
|
-
queryid: query_ids["searhcApiSlice/
|
|
14636
|
-
filter: {
|
|
14637
|
-
type: type
|
|
14638
|
-
}
|
|
14668
|
+
queryid: query_ids["searhcApiSlice/getAllSpeciality"]
|
|
14639
14669
|
};
|
|
14640
|
-
_context8.next =
|
|
14670
|
+
_context8.next = 6;
|
|
14641
14671
|
return fetchData$3({
|
|
14642
14672
|
body: JSON.stringify(body)
|
|
14643
14673
|
});
|
|
14644
14674
|
|
|
14645
|
-
case
|
|
14675
|
+
case 6:
|
|
14646
14676
|
data = _context8.sent;
|
|
14647
|
-
returnData =
|
|
14677
|
+
returnData = [];
|
|
14648
14678
|
|
|
14649
14679
|
if (Array.isArray(data)) {
|
|
14650
14680
|
data.forEach(function (spec) {
|
|
14651
|
-
|
|
14652
|
-
returnData[spec.Type] = [];
|
|
14653
|
-
}
|
|
14681
|
+
var _spec$coding5, _spec$coding5$;
|
|
14654
14682
|
|
|
14655
|
-
|
|
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
|
+
}
|
|
14656
14692
|
});
|
|
14657
14693
|
}
|
|
14658
14694
|
|
|
@@ -14660,27 +14696,38 @@ var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*
|
|
|
14660
14696
|
data: returnData
|
|
14661
14697
|
}));
|
|
14662
14698
|
|
|
14663
|
-
case
|
|
14664
|
-
_context8.prev =
|
|
14699
|
+
case 12:
|
|
14700
|
+
_context8.prev = 12;
|
|
14665
14701
|
_context8.t0 = _context8["catch"](2);
|
|
14666
14702
|
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14667
14703
|
message: _context8.t0.message
|
|
14668
14704
|
})));
|
|
14669
14705
|
|
|
14670
|
-
case
|
|
14706
|
+
case 15:
|
|
14671
14707
|
case "end":
|
|
14672
14708
|
return _context8.stop();
|
|
14673
14709
|
}
|
|
14674
14710
|
}
|
|
14675
|
-
}, _callee8, null, [[2,
|
|
14711
|
+
}, _callee8, null, [[2, 12]]);
|
|
14676
14712
|
})));
|
|
14677
|
-
var
|
|
14713
|
+
var MASTER_SEARCH = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
14678
14714
|
var payload,
|
|
14679
14715
|
_ref18,
|
|
14680
14716
|
rejectWithValue,
|
|
14717
|
+
_payload$type,
|
|
14718
|
+
type,
|
|
14719
|
+
newType,
|
|
14720
|
+
fetchEncounter,
|
|
14681
14721
|
body,
|
|
14722
|
+
encounterQuery,
|
|
14723
|
+
promArr,
|
|
14724
|
+
_yield$Promise$all,
|
|
14725
|
+
_yield$Promise$all2,
|
|
14682
14726
|
data,
|
|
14727
|
+
_yield$Promise$all2$,
|
|
14728
|
+
encounterData,
|
|
14683
14729
|
returnData,
|
|
14730
|
+
encounterRes,
|
|
14684
14731
|
_args9 = arguments;
|
|
14685
14732
|
|
|
14686
14733
|
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
@@ -14690,52 +14737,96 @@ var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PUR
|
|
|
14690
14737
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
14691
14738
|
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
14692
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
|
+
|
|
14693
14751
|
body = {
|
|
14694
14752
|
db_name: dbName,
|
|
14695
14753
|
queryid: query_ids["searhcApiSlice/masterSearch"],
|
|
14696
14754
|
filter: {
|
|
14697
|
-
type:
|
|
14755
|
+
type: newType
|
|
14698
14756
|
}
|
|
14699
14757
|
};
|
|
14700
|
-
|
|
14701
|
-
|
|
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({
|
|
14702
14766
|
body: JSON.stringify(body)
|
|
14703
|
-
});
|
|
14767
|
+
})];
|
|
14704
14768
|
|
|
14705
|
-
|
|
14706
|
-
|
|
14707
|
-
|
|
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 = {};
|
|
14708
14787
|
|
|
14709
14788
|
if (Array.isArray(data)) {
|
|
14710
14789
|
data.forEach(function (spec) {
|
|
14711
|
-
|
|
14790
|
+
if (!(spec.Type in returnData)) {
|
|
14791
|
+
returnData[spec.Type] = [];
|
|
14792
|
+
}
|
|
14712
14793
|
|
|
14713
|
-
returnData.push(
|
|
14714
|
-
label: (_spec$coding5 = spec.coding) === null || _spec$coding5 === void 0 ? void 0 : _spec$coding5.display,
|
|
14715
|
-
value: spec._id
|
|
14716
|
-
});
|
|
14794
|
+
returnData[spec.Type].push(spec);
|
|
14717
14795
|
});
|
|
14718
14796
|
}
|
|
14719
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
|
+
};
|
|
14807
|
+
});
|
|
14808
|
+
returnData['ENCOUNTERTYPE'] = encounterRes;
|
|
14809
|
+
}
|
|
14810
|
+
|
|
14720
14811
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
14721
14812
|
data: returnData
|
|
14722
14813
|
}));
|
|
14723
14814
|
|
|
14724
|
-
case
|
|
14725
|
-
_context9.prev =
|
|
14815
|
+
case 24:
|
|
14816
|
+
_context9.prev = 24;
|
|
14726
14817
|
_context9.t0 = _context9["catch"](2);
|
|
14727
14818
|
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
14728
14819
|
message: _context9.t0.message
|
|
14729
14820
|
})));
|
|
14730
14821
|
|
|
14731
|
-
case
|
|
14822
|
+
case 27:
|
|
14732
14823
|
case "end":
|
|
14733
14824
|
return _context9.stop();
|
|
14734
14825
|
}
|
|
14735
14826
|
}
|
|
14736
|
-
}, _callee9, null, [[2,
|
|
14827
|
+
}, _callee9, null, [[2, 24]]);
|
|
14737
14828
|
})));
|
|
14738
|
-
var
|
|
14829
|
+
var GET_RELATIONSHIPS = createAsyncThunk("searhcApiSlice/masterSearch", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
14739
14830
|
var payload,
|
|
14740
14831
|
_ref20,
|
|
14741
14832
|
rejectWithValue,
|
|
@@ -14751,18 +14842,79 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
|
|
|
14751
14842
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
14752
14843
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
14753
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;
|
|
14754
14906
|
body = {
|
|
14755
14907
|
db_name: dbName,
|
|
14756
14908
|
entity: "Practitioner",
|
|
14757
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))})) })"
|
|
14758
14910
|
};
|
|
14759
|
-
|
|
14911
|
+
_context11.next = 6;
|
|
14760
14912
|
return fetchData$3({
|
|
14761
14913
|
body: JSON.stringify(body)
|
|
14762
14914
|
}, __readDocumentUrl__);
|
|
14763
14915
|
|
|
14764
14916
|
case 6:
|
|
14765
|
-
data =
|
|
14917
|
+
data = _context11.sent;
|
|
14766
14918
|
returnData = [];
|
|
14767
14919
|
|
|
14768
14920
|
if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
|
|
@@ -14778,70 +14930,70 @@ var SPECIALITY_AGAINST_PRACTITIONER = createAsyncThunk("searhcApiSlice/specialit
|
|
|
14778
14930
|
});
|
|
14779
14931
|
}
|
|
14780
14932
|
|
|
14781
|
-
return
|
|
14933
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
14782
14934
|
data: returnData
|
|
14783
14935
|
}));
|
|
14784
14936
|
|
|
14785
14937
|
case 12:
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
return
|
|
14789
|
-
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
|
|
14790
14942
|
})));
|
|
14791
14943
|
|
|
14792
14944
|
case 15:
|
|
14793
14945
|
case "end":
|
|
14794
|
-
return
|
|
14946
|
+
return _context11.stop();
|
|
14795
14947
|
}
|
|
14796
14948
|
}
|
|
14797
|
-
},
|
|
14949
|
+
}, _callee11, null, [[2, 12]]);
|
|
14798
14950
|
})));
|
|
14799
14951
|
|
|
14800
14952
|
var getLocationInfo = /*#__PURE__*/function () {
|
|
14801
|
-
var
|
|
14953
|
+
var _ref23 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
14802
14954
|
var _hospInfo$address3, _hospInfo$address3$, _hospInfo$address3$$c;
|
|
14803
14955
|
|
|
14804
14956
|
var hospInfo,
|
|
14805
14957
|
obj,
|
|
14806
14958
|
city,
|
|
14807
14959
|
info,
|
|
14808
|
-
|
|
14809
|
-
return regeneratorRuntime.wrap(function
|
|
14960
|
+
_args12 = arguments;
|
|
14961
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
14810
14962
|
while (1) {
|
|
14811
|
-
switch (
|
|
14963
|
+
switch (_context12.prev = _context12.next) {
|
|
14812
14964
|
case 0:
|
|
14813
|
-
hospInfo =
|
|
14814
|
-
obj =
|
|
14965
|
+
hospInfo = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
14966
|
+
obj = _args12.length > 1 && _args12[1] !== undefined ? _args12[1] : {};
|
|
14815
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;
|
|
14816
14968
|
|
|
14817
14969
|
if (obj[city]) {
|
|
14818
|
-
|
|
14970
|
+
_context12.next = 8;
|
|
14819
14971
|
break;
|
|
14820
14972
|
}
|
|
14821
14973
|
|
|
14822
|
-
|
|
14974
|
+
_context12.next = 6;
|
|
14823
14975
|
return getLatLong(city);
|
|
14824
14976
|
|
|
14825
14977
|
case 6:
|
|
14826
|
-
info =
|
|
14978
|
+
info = _context12.sent;
|
|
14827
14979
|
obj[city] = info;
|
|
14828
14980
|
|
|
14829
14981
|
case 8:
|
|
14830
14982
|
case "end":
|
|
14831
|
-
return
|
|
14983
|
+
return _context12.stop();
|
|
14832
14984
|
}
|
|
14833
14985
|
}
|
|
14834
|
-
},
|
|
14986
|
+
}, _callee12);
|
|
14835
14987
|
}));
|
|
14836
14988
|
|
|
14837
14989
|
return function getLocationInfo() {
|
|
14838
|
-
return
|
|
14990
|
+
return _ref23.apply(this, arguments);
|
|
14839
14991
|
};
|
|
14840
14992
|
}();
|
|
14841
14993
|
|
|
14842
|
-
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() {
|
|
14843
14995
|
var payload,
|
|
14844
|
-
|
|
14996
|
+
_ref25,
|
|
14845
14997
|
rejectWithValue,
|
|
14846
14998
|
_payload$practitioner,
|
|
14847
14999
|
practitionerId,
|
|
@@ -14855,21 +15007,21 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14855
15007
|
_data$result2,
|
|
14856
15008
|
cityMap,
|
|
14857
15009
|
promArr,
|
|
14858
|
-
|
|
15010
|
+
_args13 = arguments;
|
|
14859
15011
|
|
|
14860
|
-
return regeneratorRuntime.wrap(function
|
|
15012
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
14861
15013
|
while (1) {
|
|
14862
|
-
switch (
|
|
15014
|
+
switch (_context13.prev = _context13.next) {
|
|
14863
15015
|
case 0:
|
|
14864
|
-
payload =
|
|
14865
|
-
|
|
14866
|
-
|
|
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;
|
|
14867
15019
|
_payload$practitioner = payload.practitionerId, practitionerId = _payload$practitioner === void 0 ? "" : _payload$practitioner;
|
|
14868
|
-
|
|
15020
|
+
_context13.next = 6;
|
|
14869
15021
|
return getCurrentPosition();
|
|
14870
15022
|
|
|
14871
15023
|
case 6:
|
|
14872
|
-
_yield$getCurrentPosi2 =
|
|
15024
|
+
_yield$getCurrentPosi2 = _context13.sent;
|
|
14873
15025
|
myLat = _yield$getCurrentPosi2.lat;
|
|
14874
15026
|
myLong = _yield$getCurrentPosi2["long"];
|
|
14875
15027
|
body = {
|
|
@@ -14881,17 +15033,17 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14881
15033
|
},
|
|
14882
15034
|
return_fields: "{address: (let add = Document(Organization.address[0]) return merge(add, { city: Document(add.city) })), OrganizationName:Organization.name, OrgID:Organization.id}"
|
|
14883
15035
|
};
|
|
14884
|
-
|
|
15036
|
+
_context13.next = 12;
|
|
14885
15037
|
return fetchData$3({
|
|
14886
15038
|
body: JSON.stringify(body)
|
|
14887
15039
|
}, __readDocumentUrl__);
|
|
14888
15040
|
|
|
14889
15041
|
case 12:
|
|
14890
|
-
data =
|
|
15042
|
+
data = _context13.sent;
|
|
14891
15043
|
returnData = [];
|
|
14892
15044
|
|
|
14893
15045
|
if (!Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
|
|
14894
|
-
|
|
15046
|
+
_context13.next = 20;
|
|
14895
15047
|
break;
|
|
14896
15048
|
}
|
|
14897
15049
|
|
|
@@ -14899,7 +15051,7 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14899
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) {
|
|
14900
15052
|
return getLocationInfo(hospInfo, cityMap);
|
|
14901
15053
|
});
|
|
14902
|
-
|
|
15054
|
+
_context13.next = 19;
|
|
14903
15055
|
return es6Promise.Promise.all(promArr);
|
|
14904
15056
|
|
|
14905
15057
|
case 19:
|
|
@@ -14908,9 +15060,9 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14908
15060
|
|
|
14909
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;
|
|
14910
15062
|
|
|
14911
|
-
var
|
|
14912
|
-
lat =
|
|
14913
|
-
_long2 =
|
|
15063
|
+
var _ref26 = cityMap[city] || {},
|
|
15064
|
+
lat = _ref26.lat,
|
|
15065
|
+
_long2 = _ref26["long"];
|
|
14914
15066
|
|
|
14915
15067
|
var distance = "";
|
|
14916
15068
|
|
|
@@ -14928,23 +15080,23 @@ var PRACTITIONER_AGAINST_ORGANIZATION = createAsyncThunk("searhcApiSlice/practit
|
|
|
14928
15080
|
});
|
|
14929
15081
|
|
|
14930
15082
|
case 20:
|
|
14931
|
-
return
|
|
15083
|
+
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
14932
15084
|
data: returnData
|
|
14933
15085
|
}));
|
|
14934
15086
|
|
|
14935
15087
|
case 23:
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
return
|
|
14939
|
-
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
|
|
14940
15092
|
})));
|
|
14941
15093
|
|
|
14942
15094
|
case 26:
|
|
14943
15095
|
case "end":
|
|
14944
|
-
return
|
|
15096
|
+
return _context13.stop();
|
|
14945
15097
|
}
|
|
14946
15098
|
}
|
|
14947
|
-
},
|
|
15099
|
+
}, _callee13, null, [[2, 23]]);
|
|
14948
15100
|
})));
|
|
14949
15101
|
var searhcApiSlice = createSlice({
|
|
14950
15102
|
name: "searhcApiSlice",
|
|
@@ -14954,6 +15106,7 @@ var searhcApiSlice = createSlice({
|
|
|
14954
15106
|
hospitals: _objectSpread2({}, defaultState.List),
|
|
14955
15107
|
symptoms: _objectSpread2({}, defaultState.List),
|
|
14956
15108
|
speciality: _objectSpread2({}, defaultState.List),
|
|
15109
|
+
allSpeciality: _objectSpread2({}, defaultState.List),
|
|
14957
15110
|
masterSearch: _objectSpread2({}, defaultState.Info),
|
|
14958
15111
|
getRelationships: _objectSpread2({}, defaultState.Info),
|
|
14959
15112
|
getSpecialityAgainstPractitioner: _objectSpread2({}, defaultState.Info),
|
|
@@ -15019,56 +15172,66 @@ var searhcApiSlice = createSlice({
|
|
|
15019
15172
|
var _action$payload12;
|
|
15020
15173
|
|
|
15021
15174
|
state.speciality = (_action$payload12 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload12 !== void 0 ? _action$payload12 : {};
|
|
15022
|
-
}), _defineProperty(_extraReducers$w,
|
|
15175
|
+
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY_2.fulfilled, function (state, action) {
|
|
15023
15176
|
var _action$payload13;
|
|
15024
15177
|
|
|
15025
|
-
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 : {};
|
|
15026
15189
|
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.pending, function (state, action) {
|
|
15027
15190
|
state.speciality.loading = true;
|
|
15028
15191
|
}), _defineProperty(_extraReducers$w, GET_ALL_SPECIALITY.rejected, function (state, action) {
|
|
15029
|
-
var _action$
|
|
15192
|
+
var _action$payload16;
|
|
15030
15193
|
|
|
15031
|
-
state.speciality = (_action$
|
|
15194
|
+
state.speciality = (_action$payload16 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload16 !== void 0 ? _action$payload16 : {};
|
|
15032
15195
|
}), _defineProperty(_extraReducers$w, MASTER_SEARCH.fulfilled, function (state, action) {
|
|
15033
|
-
var _action$
|
|
15196
|
+
var _action$payload17;
|
|
15034
15197
|
|
|
15035
|
-
state.masterSearch = (_action$
|
|
15198
|
+
state.masterSearch = (_action$payload17 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload17 !== void 0 ? _action$payload17 : {};
|
|
15036
15199
|
}), _defineProperty(_extraReducers$w, MASTER_SEARCH.pending, function (state, action) {
|
|
15037
15200
|
state.masterSearch.loading = true;
|
|
15038
15201
|
}), _defineProperty(_extraReducers$w, MASTER_SEARCH.rejected, function (state, action) {
|
|
15039
|
-
var _action$
|
|
15202
|
+
var _action$payload18;
|
|
15040
15203
|
|
|
15041
|
-
state.masterSearch = (_action$
|
|
15204
|
+
state.masterSearch = (_action$payload18 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload18 !== void 0 ? _action$payload18 : {};
|
|
15042
15205
|
}), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.fulfilled, function (state, action) {
|
|
15043
|
-
var _action$
|
|
15206
|
+
var _action$payload19;
|
|
15044
15207
|
|
|
15045
|
-
state.getRelationships = (_action$
|
|
15208
|
+
state.getRelationships = (_action$payload19 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload19 !== void 0 ? _action$payload19 : [];
|
|
15046
15209
|
}), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.pending, function (state, action) {
|
|
15047
15210
|
state.getRelationships.loading = true;
|
|
15048
15211
|
}), _defineProperty(_extraReducers$w, GET_RELATIONSHIPS.rejected, function (state, action) {
|
|
15049
|
-
var _action$
|
|
15212
|
+
var _action$payload20;
|
|
15050
15213
|
|
|
15051
|
-
state.getRelationships = (_action$
|
|
15214
|
+
state.getRelationships = (_action$payload20 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload20 !== void 0 ? _action$payload20 : [];
|
|
15052
15215
|
}), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.fulfilled, function (state, action) {
|
|
15053
|
-
var _action$
|
|
15216
|
+
var _action$payload21;
|
|
15054
15217
|
|
|
15055
|
-
state.getSpecialityAgainstPractitioner = (_action$
|
|
15218
|
+
state.getSpecialityAgainstPractitioner = (_action$payload21 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload21 !== void 0 ? _action$payload21 : [];
|
|
15056
15219
|
}), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.pending, function (state, action) {
|
|
15057
15220
|
state.getSpecialityAgainstPractitioner.loading = true;
|
|
15058
15221
|
}), _defineProperty(_extraReducers$w, SPECIALITY_AGAINST_PRACTITIONER.rejected, function (state, action) {
|
|
15059
|
-
var _action$
|
|
15222
|
+
var _action$payload22;
|
|
15060
15223
|
|
|
15061
|
-
state.getSpecialityAgainstPractitioner = (_action$
|
|
15224
|
+
state.getSpecialityAgainstPractitioner = (_action$payload22 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload22 !== void 0 ? _action$payload22 : [];
|
|
15062
15225
|
}), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.fulfilled, function (state, action) {
|
|
15063
|
-
var _action$
|
|
15226
|
+
var _action$payload23;
|
|
15064
15227
|
|
|
15065
|
-
state.getPractitionerAgainstOrganization = (_action$
|
|
15228
|
+
state.getPractitionerAgainstOrganization = (_action$payload23 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload23 !== void 0 ? _action$payload23 : [];
|
|
15066
15229
|
}), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.pending, function (state, action) {
|
|
15067
15230
|
state.getPractitionerAgainstOrganization.loading = true;
|
|
15068
15231
|
}), _defineProperty(_extraReducers$w, PRACTITIONER_AGAINST_ORGANIZATION.rejected, function (state, action) {
|
|
15069
|
-
var _action$
|
|
15232
|
+
var _action$payload24;
|
|
15070
15233
|
|
|
15071
|
-
state.getPractitionerAgainstOrganization = (_action$
|
|
15234
|
+
state.getPractitionerAgainstOrganization = (_action$payload24 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload24 !== void 0 ? _action$payload24 : [];
|
|
15072
15235
|
}), _extraReducers$w)
|
|
15073
15236
|
});
|
|
15074
15237
|
var searchApiActions = {
|
|
@@ -15082,7 +15245,8 @@ var searchApiActions = {
|
|
|
15082
15245
|
MASTER_SEARCH: MASTER_SEARCH,
|
|
15083
15246
|
GET_RELATIONSHIPS: GET_RELATIONSHIPS,
|
|
15084
15247
|
SPECIALITY_AGAINST_PRACTITIONER: SPECIALITY_AGAINST_PRACTITIONER,
|
|
15085
|
-
PRACTITIONER_AGAINST_ORGANIZATION: PRACTITIONER_AGAINST_ORGANIZATION
|
|
15248
|
+
PRACTITIONER_AGAINST_ORGANIZATION: PRACTITIONER_AGAINST_ORGANIZATION,
|
|
15249
|
+
GET_ALL_SPECIALITY_2: GET_ALL_SPECIALITY_2
|
|
15086
15250
|
};
|
|
15087
15251
|
var searhcApiSlice$1 = searhcApiSlice.reducer;
|
|
15088
15252
|
|
|
@@ -18730,7 +18894,7 @@ var dashboardQuery = {
|
|
|
18730
18894
|
followupUOM: data === null || data === void 0 ? void 0 : data.followupUOM,
|
|
18731
18895
|
reasonCode: data === null || data === void 0 ? void 0 : data.reasonCode,
|
|
18732
18896
|
followupReqd: data === null || data === void 0 ? void 0 : data.followupReqd,
|
|
18733
|
-
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,
|
|
18734
18898
|
status: status,
|
|
18735
18899
|
statushistory: [{
|
|
18736
18900
|
status: status,
|
|
@@ -19698,8 +19862,8 @@ var FOLLOW_UP_COUNT = createAsyncThunk("dashboardApiSlice/followUpCount", /*#__P
|
|
|
19698
19862
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
19699
19863
|
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
19700
19864
|
_context15.prev = 2;
|
|
19701
|
-
startDate = moment().startOf("day")
|
|
19702
|
-
endDate = moment().endOf("day")
|
|
19865
|
+
startDate = getUtcTime(moment().startOf("day"));
|
|
19866
|
+
endDate = getUtcTime(moment().endOf("day"));
|
|
19703
19867
|
_context15.next = 7;
|
|
19704
19868
|
return fetchData$3({
|
|
19705
19869
|
body: JSON.stringify({
|
|
@@ -20068,9 +20232,9 @@ var generateReadJSON = function generateReadJSON(data) {
|
|
|
20068
20232
|
|
|
20069
20233
|
var json = {
|
|
20070
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 : "",
|
|
20071
|
-
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") : "",
|
|
20072
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 : "",
|
|
20073
|
-
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") : "",
|
|
20074
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 : "",
|
|
20075
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(",") : "",
|
|
20076
20240
|
//PATIENT DEATAIL
|
|
@@ -20137,7 +20301,7 @@ var ASSIGN_LIST = createAsyncThunk("dashboardApiSlice/assignList", /*#__PURE__*/
|
|
|
20137
20301
|
case 12:
|
|
20138
20302
|
_context22.prev = 12;
|
|
20139
20303
|
_context22.t0 = _context22["catch"](2);
|
|
20140
|
-
|
|
20304
|
+
debugger;
|
|
20141
20305
|
return _context22.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20142
20306
|
message: _context22.t0.message
|
|
20143
20307
|
})));
|
|
@@ -20155,9 +20319,9 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
20155
20319
|
|
|
20156
20320
|
var json = {
|
|
20157
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 : "",
|
|
20158
|
-
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") : "",
|
|
20159
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 : "",
|
|
20160
|
-
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") : "",
|
|
20161
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 : "",
|
|
20162
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(",") : "",
|
|
20163
20327
|
//PATIENT DEATAIL
|
|
@@ -20188,9 +20352,9 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
20188
20352
|
|
|
20189
20353
|
var json = {
|
|
20190
20354
|
visitType: (_data$visit_type = data === null || data === void 0 ? void 0 : data.visit_type) !== null && _data$visit_type !== void 0 ? _data$visit_type : "",
|
|
20191
|
-
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") : "",
|
|
20192
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 : "",
|
|
20193
|
-
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") : "",
|
|
20194
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 : "",
|
|
20195
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(",") : "",
|
|
20196
20360
|
//PATIENT DEATAIL
|
|
@@ -20307,12 +20471,11 @@ var REASSIGN_LIST = createAsyncThunk("dashboardApiSlice/reassignList", /*#__PURE
|
|
|
20307
20471
|
case 11:
|
|
20308
20472
|
_context23.prev = 11;
|
|
20309
20473
|
_context23.t0 = _context23["catch"](2);
|
|
20310
|
-
alert("error");
|
|
20311
20474
|
return _context23.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
20312
20475
|
message: _context23.t0.message
|
|
20313
20476
|
})));
|
|
20314
20477
|
|
|
20315
|
-
case
|
|
20478
|
+
case 14:
|
|
20316
20479
|
case "end":
|
|
20317
20480
|
return _context23.stop();
|
|
20318
20481
|
}
|
|
@@ -21316,7 +21479,7 @@ var queries$9 = {
|
|
|
21316
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})) })"
|
|
21317
21480
|
// }`,
|
|
21318
21481
|
encounterDetails: function encounterDetails(encounterId) {
|
|
21319
|
-
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 }");
|
|
21320
21483
|
}
|
|
21321
21484
|
};
|
|
21322
21485
|
|
|
@@ -21393,7 +21556,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21393
21556
|
var _val$Person$0$name$te, _val$Person, _val$Person$, _val$Person$$name;
|
|
21394
21557
|
|
|
21395
21558
|
return _objectSpread2(_objectSpread2({}, val), {}, {
|
|
21396
|
-
createdAt:
|
|
21559
|
+
createdAt: getUtcTime(val.period[0].start ? val.period[0].start : new Date()),
|
|
21397
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 : ""
|
|
21398
21561
|
});
|
|
21399
21562
|
});
|
|
@@ -21422,7 +21585,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21422
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,
|
|
21423
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
|
|
21424
21587
|
} : {},
|
|
21425
|
-
"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") : "",
|
|
21426
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,
|
|
21427
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
|
|
21428
21591
|
},
|
|
@@ -21432,7 +21595,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21432
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,
|
|
21433
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
|
|
21434
21597
|
} : {},
|
|
21435
|
-
"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") : "",
|
|
21436
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,
|
|
21437
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
|
|
21438
21601
|
},
|
|
@@ -21446,7 +21609,7 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21446
21609
|
"notes": val.note,
|
|
21447
21610
|
"remarks": [],
|
|
21448
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 : "",
|
|
21449
|
-
"createdAt":
|
|
21612
|
+
"createdAt": utcTOLocal$1(val.recordeddate, "DD MMM, YYYY"),
|
|
21450
21613
|
"statusType": "Inactive",
|
|
21451
21614
|
"headerShow": false,
|
|
21452
21615
|
"editData": val
|
|
@@ -21454,11 +21617,6 @@ var generateResJson$6 = function generateResJson(dataList, state) {
|
|
|
21454
21617
|
});
|
|
21455
21618
|
return list;
|
|
21456
21619
|
};
|
|
21457
|
-
var getData$2 = function getData(date, time) {
|
|
21458
|
-
var da = date ? new Date(date) : new Date();
|
|
21459
|
-
var d = new Date(da).toDateString().split(" ");
|
|
21460
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format('LT') : "");
|
|
21461
|
-
};
|
|
21462
21620
|
|
|
21463
21621
|
var _extraReducers$l;
|
|
21464
21622
|
var RELATIONSHIP_MASTERS = createAsyncThunk("chiefCompilenceMastersSlice/relationship", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -22020,7 +22178,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
22020
22178
|
data = _context12.sent;
|
|
22021
22179
|
arr = [];
|
|
22022
22180
|
data.result.map(function (val) {
|
|
22023
|
-
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;
|
|
22024
22182
|
|
|
22025
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) {
|
|
22026
22184
|
return val.display;
|
|
@@ -22041,6 +22199,7 @@ var GET_ENCOUNTER = createAsyncThunk("chiefCompilenceMastersSlice/encounter", /*
|
|
|
22041
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,
|
|
22042
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 : "",
|
|
22043
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),
|
|
22044
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 : ""
|
|
22045
22204
|
});
|
|
22046
22205
|
});
|
|
@@ -22281,7 +22440,7 @@ var generateResJson$5 = function generateResJson(dataList, state) {
|
|
|
22281
22440
|
label: val === null || val === void 0 ? void 0 : (_val$OnSet3 = val.OnSet) === null || _val$OnSet3 === void 0 ? void 0 : _val$OnSet3.split(" ")[1],
|
|
22282
22441
|
value: val === null || val === void 0 ? void 0 : (_val$OnSet4 = val.OnSet) === null || _val$OnSet4 === void 0 ? void 0 : _val$OnSet4.split(" ")[1]
|
|
22283
22442
|
};
|
|
22284
|
-
var createddate =
|
|
22443
|
+
var createddate = utcTOLocal$1(val.createddate, "DD MMM, YYYY");
|
|
22285
22444
|
var abateday = val === null || val === void 0 ? void 0 : val.Abatement.split(" ")[0];
|
|
22286
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];
|
|
22287
22446
|
var abatefreqValue = {
|
|
@@ -24303,13 +24462,13 @@ var getCA_PresWorkflowStatusTrx = function getCA_PresWorkflowStatusTrx(data, sta
|
|
|
24303
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 : "",
|
|
24304
24463
|
"order_Id": data.editData,
|
|
24305
24464
|
"trxSeqnum": 0,
|
|
24306
|
-
"TrxDateTime":
|
|
24465
|
+
"TrxDateTime": utcTOLocal$1(),
|
|
24307
24466
|
"frStatus": "",
|
|
24308
24467
|
"toStatus": status.value,
|
|
24309
24468
|
"frApprLevel": "0",
|
|
24310
24469
|
"toApprLevel": "0",
|
|
24311
24470
|
"actionedPractId": personId,
|
|
24312
|
-
"actionDateTime":
|
|
24471
|
+
"actionDateTime": utcTOLocal$1(),
|
|
24313
24472
|
"statusAction": "",
|
|
24314
24473
|
"actionedRemarks": "",
|
|
24315
24474
|
"actionReasonCode": ""
|
|
@@ -25017,8 +25176,8 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25017
25176
|
"new_status": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25018
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 : "",
|
|
25019
25178
|
"period": [{
|
|
25020
|
-
"start":
|
|
25021
|
-
"end": moment().endOf('day')
|
|
25179
|
+
"start": getUtcTime(),
|
|
25180
|
+
"end": getUtcTime(moment().endOf('day'))
|
|
25022
25181
|
}]
|
|
25023
25182
|
});
|
|
25024
25183
|
}
|
|
@@ -25046,14 +25205,14 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25046
25205
|
"relatedperson_id": data === null || data === void 0 ? void 0 : data.relatedperson_id,
|
|
25047
25206
|
// "asserted_by": data?.asserted,
|
|
25048
25207
|
"onset": [{
|
|
25049
|
-
"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,
|
|
25050
25209
|
"onsetperiod": (data === null || data === void 0 ? void 0 : data.onset.day) ? data.onset.freq.value : "",
|
|
25051
25210
|
"onsetage": (_data$onsetAge = data === null || data === void 0 ? void 0 : data.onsetAge) !== null && _data$onsetAge !== void 0 ? _data$onsetAge : "",
|
|
25052
25211
|
"onsetrange": (_data$onsetrange = data === null || data === void 0 ? void 0 : data.onsetrange) !== null && _data$onsetrange !== void 0 ? _data$onsetrange : "",
|
|
25053
25212
|
"onsetstring": (_data$onsetstring = data === null || data === void 0 ? void 0 : data.onsetstring) !== null && _data$onsetstring !== void 0 ? _data$onsetstring : ""
|
|
25054
25213
|
}],
|
|
25055
25214
|
"lastoccurrence": [{
|
|
25056
|
-
"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,
|
|
25057
25216
|
"lastoccurrenceperiod": (data === null || data === void 0 ? void 0 : data.lastOccurance.day) ? data.lastOccurance.freq.value : "",
|
|
25058
25217
|
"lastoccurrenceage": (_data$lastoccurrencea = data === null || data === void 0 ? void 0 : data.lastoccurrenceage) !== null && _data$lastoccurrencea !== void 0 ? _data$lastoccurrencea : "",
|
|
25059
25218
|
"lastoccurrencerange": (_data$lastoccurrencer = data === null || data === void 0 ? void 0 : data.lastoccurrencerange) !== null && _data$lastoccurrencer !== void 0 ? _data$lastoccurrencer : "",
|
|
@@ -25101,14 +25260,14 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25101
25260
|
"reaction": _reactionsList,
|
|
25102
25261
|
"clinicalstatus": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25103
25262
|
"onset": [{
|
|
25104
|
-
"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,
|
|
25105
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 : "",
|
|
25106
25265
|
"onsetage": (_data$onsetAge2 = data === null || data === void 0 ? void 0 : data.onsetAge) !== null && _data$onsetAge2 !== void 0 ? _data$onsetAge2 : "",
|
|
25107
25266
|
"onsetrange": (_data$onsetrange2 = data === null || data === void 0 ? void 0 : data.onsetrange) !== null && _data$onsetrange2 !== void 0 ? _data$onsetrange2 : "",
|
|
25108
25267
|
"onsetstring": (_data$onsetstring2 = data === null || data === void 0 ? void 0 : data.onsetstring) !== null && _data$onsetstring2 !== void 0 ? _data$onsetstring2 : ""
|
|
25109
25268
|
}],
|
|
25110
25269
|
"lastoccurrence": [{
|
|
25111
|
-
"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,
|
|
25112
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 : "",
|
|
25113
25272
|
"lastoccurrenceage": (_data$lastoccurrencea2 = data === null || data === void 0 ? void 0 : data.lastoccurrenceage) !== null && _data$lastoccurrencea2 !== void 0 ? _data$lastoccurrencea2 : "",
|
|
25114
25273
|
"lastoccurrencerange": (_data$lastoccurrencer2 = data === null || data === void 0 ? void 0 : data.lastoccurrencerange) !== null && _data$lastoccurrencer2 !== void 0 ? _data$lastoccurrencer2 : "",
|
|
@@ -25120,8 +25279,8 @@ var generateJSON$3 = function generateJSON(data) {
|
|
|
25120
25279
|
"new_status": data === null || data === void 0 ? void 0 : data.clinicalStatus,
|
|
25121
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 : "",
|
|
25122
25281
|
"period": [{
|
|
25123
|
-
"start":
|
|
25124
|
-
"end": moment().endOf('day')
|
|
25282
|
+
"start": getUtcTime(),
|
|
25283
|
+
"end": getUtcTime(moment().endOf('day'))
|
|
25125
25284
|
}]
|
|
25126
25285
|
}],
|
|
25127
25286
|
"nodrugAllergy": (_data$nodrugAllergy2 = data === null || data === void 0 ? void 0 : data.nodrugAllergy) !== null && _data$nodrugAllergy2 !== void 0 ? _data$nodrugAllergy2 : false,
|
|
@@ -25158,7 +25317,7 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25158
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,
|
|
25159
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
|
|
25160
25319
|
} : {},
|
|
25161
|
-
"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") : "",
|
|
25162
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,
|
|
25163
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
|
|
25164
25323
|
},
|
|
@@ -25170,7 +25329,7 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25170
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,
|
|
25171
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
|
|
25172
25331
|
} : {},
|
|
25173
|
-
"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") : "",
|
|
25174
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,
|
|
25175
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
|
|
25176
25335
|
},
|
|
@@ -25191,11 +25350,6 @@ var generateResJson$4 = function generateResJson(dataList, state) {
|
|
|
25191
25350
|
});
|
|
25192
25351
|
return list;
|
|
25193
25352
|
};
|
|
25194
|
-
var getData$1 = function getData(date, time) {
|
|
25195
|
-
var da = date ? new Date(date) : new Date();
|
|
25196
|
-
var d = new Date(da).toDateString().split(" ");
|
|
25197
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format('LT') : "");
|
|
25198
|
-
};
|
|
25199
25353
|
|
|
25200
25354
|
var _extraReducers$i;
|
|
25201
25355
|
var ALLERGY_MASTER = createAsyncThunk("allergyMastersSlice/allergymaster", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -26408,7 +26562,7 @@ var queries$6 = {
|
|
|
26408
26562
|
|
|
26409
26563
|
var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
26410
26564
|
var list = dataList.map(function (val) {
|
|
26411
|
-
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;
|
|
26412
26566
|
|
|
26413
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) {
|
|
26414
26568
|
return {
|
|
@@ -26453,8 +26607,8 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26453
26607
|
nature: {
|
|
26454
26608
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
26455
26609
|
},
|
|
26456
|
-
dateTime: (
|
|
26457
|
-
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 : "" : "",
|
|
26458
26612
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$2(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
26459
26613
|
recurrent: false,
|
|
26460
26614
|
headerShow: true,
|
|
@@ -26467,11 +26621,11 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26467
26621
|
}
|
|
26468
26622
|
},
|
|
26469
26623
|
startsOn: {
|
|
26470
|
-
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 : ""
|
|
26471
26625
|
},
|
|
26472
26626
|
endsAfter: {
|
|
26473
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 : "",
|
|
26474
|
-
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 : "" : ""
|
|
26475
26629
|
}
|
|
26476
26630
|
},
|
|
26477
26631
|
orderType: {
|
|
@@ -26480,7 +26634,7 @@ var generateResJson$3 = function generateResJson(dataList, arr) {
|
|
|
26480
26634
|
mode: {
|
|
26481
26635
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
26482
26636
|
},
|
|
26483
|
-
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 : "",
|
|
26484
26638
|
orderCatalog: {
|
|
26485
26639
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
26486
26640
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -26584,7 +26738,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26584
26738
|
return el != null;
|
|
26585
26739
|
});
|
|
26586
26740
|
var list = dataList.map(function (val) {
|
|
26587
|
-
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;
|
|
26588
26742
|
|
|
26589
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) {
|
|
26590
26744
|
return {
|
|
@@ -26629,8 +26783,8 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26629
26783
|
nature: {
|
|
26630
26784
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
26631
26785
|
},
|
|
26632
|
-
dateTime: (
|
|
26633
|
-
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") : "",
|
|
26634
26788
|
recurrent: false,
|
|
26635
26789
|
headerShow: true,
|
|
26636
26790
|
recurrentData: {
|
|
@@ -26642,11 +26796,11 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26642
26796
|
}
|
|
26643
26797
|
},
|
|
26644
26798
|
startsOn: {
|
|
26645
|
-
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 : ""
|
|
26646
26800
|
},
|
|
26647
26801
|
endsAfter: {
|
|
26648
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 : "",
|
|
26649
|
-
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 : "" : ""
|
|
26650
26804
|
}
|
|
26651
26805
|
},
|
|
26652
26806
|
orderType: {
|
|
@@ -26655,7 +26809,7 @@ var RecurrentgenerateResJson$2 = function RecurrentgenerateResJson(dataList, arr
|
|
|
26655
26809
|
mode: {
|
|
26656
26810
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
26657
26811
|
},
|
|
26658
|
-
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 : "",
|
|
26659
26813
|
orderCatalog: {
|
|
26660
26814
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
26661
26815
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31707,7 +31861,7 @@ var generateJSON$1 = function generateJSON(dataList) {
|
|
|
31707
31861
|
|
|
31708
31862
|
var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
31709
31863
|
var list = dataList.map(function (val) {
|
|
31710
|
-
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;
|
|
31711
31865
|
|
|
31712
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) {
|
|
31713
31867
|
return {
|
|
@@ -31756,8 +31910,8 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31756
31910
|
nature: {
|
|
31757
31911
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
31758
31912
|
},
|
|
31759
|
-
dateTime: (
|
|
31760
|
-
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 : "" : "",
|
|
31761
31915
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson$1(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
31762
31916
|
recurrent: false,
|
|
31763
31917
|
headerShow: true,
|
|
@@ -31770,11 +31924,11 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31770
31924
|
}
|
|
31771
31925
|
},
|
|
31772
31926
|
startsOn: {
|
|
31773
|
-
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 : ""
|
|
31774
31928
|
},
|
|
31775
31929
|
endsAfter: {
|
|
31776
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 : "",
|
|
31777
|
-
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 : "" : ""
|
|
31778
31932
|
}
|
|
31779
31933
|
},
|
|
31780
31934
|
orderType: {
|
|
@@ -31783,7 +31937,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31783
31937
|
mode: {
|
|
31784
31938
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
31785
31939
|
},
|
|
31786
|
-
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 : "",
|
|
31787
31941
|
orderCatalog: {
|
|
31788
31942
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
31789
31943
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31838,7 +31992,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31838
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,
|
|
31839
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 : ""
|
|
31840
31994
|
},
|
|
31841
|
-
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 : "",
|
|
31842
31996
|
// createdAt: getData(),
|
|
31843
31997
|
editData: val._id,
|
|
31844
31998
|
statusData: {
|
|
@@ -31851,7 +32005,7 @@ var generateResJson$2 = function generateResJson(dataList, arr) {
|
|
|
31851
32005
|
},
|
|
31852
32006
|
statushistory: (_val$statushistory = val === null || val === void 0 ? void 0 : val.statushistory) !== null && _val$statushistory !== void 0 ? _val$statushistory : [],
|
|
31853
32007
|
statusType: (_val$statusreason = val === null || val === void 0 ? void 0 : val.statusreason) !== null && _val$statusreason !== void 0 ? _val$statusreason : "",
|
|
31854
|
-
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 : ""
|
|
31855
32009
|
};
|
|
31856
32010
|
});
|
|
31857
32011
|
return list;
|
|
@@ -31861,7 +32015,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31861
32015
|
return el != null;
|
|
31862
32016
|
});
|
|
31863
32017
|
var list = dataList.map(function (val) {
|
|
31864
|
-
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;
|
|
31865
32019
|
|
|
31866
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) {
|
|
31867
32021
|
return {
|
|
@@ -31906,8 +32060,8 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31906
32060
|
nature: {
|
|
31907
32061
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
31908
32062
|
},
|
|
31909
|
-
dateTime: (
|
|
31910
|
-
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") : "",
|
|
31911
32065
|
recurrent: false,
|
|
31912
32066
|
headerShow: true,
|
|
31913
32067
|
recurrentData: {
|
|
@@ -31919,11 +32073,11 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31919
32073
|
}
|
|
31920
32074
|
},
|
|
31921
32075
|
startsOn: {
|
|
31922
|
-
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 : ""
|
|
31923
32077
|
},
|
|
31924
32078
|
endsAfter: {
|
|
31925
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 : "",
|
|
31926
|
-
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 : "" : ""
|
|
31927
32081
|
}
|
|
31928
32082
|
},
|
|
31929
32083
|
orderType: {
|
|
@@ -31932,7 +32086,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31932
32086
|
mode: {
|
|
31933
32087
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
31934
32088
|
},
|
|
31935
|
-
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 : "",
|
|
31936
32090
|
orderCatalog: {
|
|
31937
32091
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
31938
32092
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -31987,7 +32141,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
31987
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,
|
|
31988
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 : ""
|
|
31989
32143
|
},
|
|
31990
|
-
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 : "",
|
|
31991
32145
|
// createdAt: getData(),
|
|
31992
32146
|
editData: val._id,
|
|
31993
32147
|
statusData: {
|
|
@@ -32003,7 +32157,7 @@ var RecurrentgenerateResJson$1 = function RecurrentgenerateResJson(dataList, arr
|
|
|
32003
32157
|
status: val === null || val === void 0 ? void 0 : val.status,
|
|
32004
32158
|
parentOrderId: val === null || val === void 0 ? void 0 : val.parentOrderId,
|
|
32005
32159
|
apptDate: val === null || val === void 0 ? void 0 : val.apptDate,
|
|
32006
|
-
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 : ""
|
|
32007
32161
|
};
|
|
32008
32162
|
});
|
|
32009
32163
|
return list;
|
|
@@ -33624,7 +33778,7 @@ var generateJSON = function generateJSON(dataList) {
|
|
|
33624
33778
|
|
|
33625
33779
|
var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
33626
33780
|
var list = dataList.map(function (val) {
|
|
33627
|
-
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;
|
|
33628
33782
|
|
|
33629
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) {
|
|
33630
33784
|
return {
|
|
@@ -33673,8 +33827,8 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33673
33827
|
nature: {
|
|
33674
33828
|
label: (_val$OrderNature = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature !== void 0 ? _val$OrderNature : ""
|
|
33675
33829
|
},
|
|
33676
|
-
dateTime: (
|
|
33677
|
-
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 : "" : "",
|
|
33678
33832
|
childRecurrent: (val === null || val === void 0 ? void 0 : val.childRecurrent) ? RecurrentgenerateResJson(val === null || val === void 0 ? void 0 : val.childRecurrent) : null,
|
|
33679
33833
|
recurrent: false,
|
|
33680
33834
|
headerShow: true,
|
|
@@ -33687,11 +33841,11 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33687
33841
|
}
|
|
33688
33842
|
},
|
|
33689
33843
|
startsOn: {
|
|
33690
|
-
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 : ""
|
|
33691
33845
|
},
|
|
33692
33846
|
endsAfter: {
|
|
33693
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 : "",
|
|
33694
|
-
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 : "" : ""
|
|
33695
33849
|
}
|
|
33696
33850
|
},
|
|
33697
33851
|
orderType: {
|
|
@@ -33700,7 +33854,7 @@ var generateResJson$1 = function generateResJson(dataList, arr) {
|
|
|
33700
33854
|
mode: {
|
|
33701
33855
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
33702
33856
|
},
|
|
33703
|
-
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 : "",
|
|
33704
33858
|
orderCatalog: {
|
|
33705
33859
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
33706
33860
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -33778,7 +33932,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33778
33932
|
return el != null;
|
|
33779
33933
|
});
|
|
33780
33934
|
var list = dataList.map(function (val) {
|
|
33781
|
-
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;
|
|
33782
33936
|
|
|
33783
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) {
|
|
33784
33938
|
return {
|
|
@@ -33827,8 +33981,8 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33827
33981
|
nature: {
|
|
33828
33982
|
label: (_val$OrderNature2 = val === null || val === void 0 ? void 0 : val.OrderNature) !== null && _val$OrderNature2 !== void 0 ? _val$OrderNature2 : ""
|
|
33829
33983
|
},
|
|
33830
|
-
dateTime: (
|
|
33831
|
-
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") : "",
|
|
33832
33986
|
recurrent: false,
|
|
33833
33987
|
headerShow: true,
|
|
33834
33988
|
recurrentData: {
|
|
@@ -33840,11 +33994,11 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33840
33994
|
}
|
|
33841
33995
|
},
|
|
33842
33996
|
startsOn: {
|
|
33843
|
-
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 : ""
|
|
33844
33998
|
},
|
|
33845
33999
|
endsAfter: {
|
|
33846
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 : "",
|
|
33847
|
-
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 : "" : ""
|
|
33848
34002
|
}
|
|
33849
34003
|
},
|
|
33850
34004
|
orderType: {
|
|
@@ -33853,7 +34007,7 @@ var RecurrentgenerateResJson = function RecurrentgenerateResJson(dataList, arr)
|
|
|
33853
34007
|
mode: {
|
|
33854
34008
|
label: val === null || val === void 0 ? void 0 : val.orderMode
|
|
33855
34009
|
},
|
|
33856
|
-
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 : "",
|
|
33857
34011
|
orderCatalog: {
|
|
33858
34012
|
label: val === null || val === void 0 ? void 0 : val.orderCatalog,
|
|
33859
34013
|
value: val === null || val === void 0 ? void 0 : val.orderCatalog
|
|
@@ -36117,7 +36271,7 @@ var genereateSaveJson = function genereateSaveJson(data) {
|
|
|
36117
36271
|
}],
|
|
36118
36272
|
encountertype: (_patient$type = patient === null || patient === void 0 ? void 0 : patient.type) !== null && _patient$type !== void 0 ? _patient$type : "",
|
|
36119
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,
|
|
36120
|
-
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(),
|
|
36121
36275
|
documents: [{
|
|
36122
36276
|
_id: "",
|
|
36123
36277
|
date: "",
|
|
@@ -36175,7 +36329,7 @@ var generatesingleRead = function generatesingleRead(val, state) {
|
|
|
36175
36329
|
_id: val === null || val === void 0 ? void 0 : (_val$doctype4 = val.doctype) === null || _val$doctype4 === void 0 ? void 0 : _val$doctype4._id
|
|
36176
36330
|
} : null,
|
|
36177
36331
|
formID: val === null || val === void 0 ? void 0 : val.docformid,
|
|
36178
|
-
createdOn:
|
|
36332
|
+
createdOn: utcTOLocal$1(val.createddate, "DD MMM YYYY"),
|
|
36179
36333
|
editId: val._id,
|
|
36180
36334
|
formData: val.formdata,
|
|
36181
36335
|
saveMode: val.status === true ? "Final" : "Draft"
|
|
@@ -36196,15 +36350,15 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36196
36350
|
var category = element === null || element === void 0 ? void 0 : (_element$doccategory4 = element.doccategory) === null || _element$doccategory4 === void 0 ? void 0 : _element$doccategory4.display;
|
|
36197
36351
|
|
|
36198
36352
|
if (category in obj) {
|
|
36199
|
-
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;
|
|
36200
36354
|
|
|
36201
36355
|
obj[category].count = obj[category].count + 1;
|
|
36202
36356
|
|
|
36203
36357
|
var userObj = _objectSpread2({
|
|
36204
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 : "",
|
|
36205
36359
|
//title: "Role",
|
|
36206
|
-
date:
|
|
36207
|
-
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"
|
|
36208
36362
|
}, element);
|
|
36209
36363
|
|
|
36210
36364
|
var childObj = {
|
|
@@ -36221,7 +36375,7 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36221
36375
|
obj[category].child.push(childObj);
|
|
36222
36376
|
}
|
|
36223
36377
|
} else {
|
|
36224
|
-
var _element$
|
|
36378
|
+
var _element$practitioner7, _element$practitioner8, _element$practitioner9, _element$practitioner10, _element$practitioner11, _element$practitioner12;
|
|
36225
36379
|
|
|
36226
36380
|
obj[category] = {
|
|
36227
36381
|
title: category,
|
|
@@ -36230,9 +36384,9 @@ var genreateDocAgnstCategory = function genreateDocAgnstCategory(data) {
|
|
|
36230
36384
|
};
|
|
36231
36385
|
|
|
36232
36386
|
var _userObj = _objectSpread2({
|
|
36233
|
-
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$
|
|
36234
|
-
date:
|
|
36235
|
-
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"
|
|
36236
36390
|
}, element);
|
|
36237
36391
|
|
|
36238
36392
|
var childObj = {
|
|
@@ -36252,23 +36406,18 @@ var generatePractitoner = function generatePractitoner(data) {
|
|
|
36252
36406
|
});
|
|
36253
36407
|
var arr = [];
|
|
36254
36408
|
orderedData.forEach(function (element) {
|
|
36255
|
-
var _element$
|
|
36409
|
+
var _element$practitioner13, _element$practitioner14, _element$practitioner15, _element$practitioner16, _element$practitioner17;
|
|
36256
36410
|
|
|
36257
36411
|
var userObj = _objectSpread2({
|
|
36258
|
-
title: element.practitionerid.length > 0 ? element === null || element === void 0 ? void 0 : (_element$
|
|
36259
|
-
date:
|
|
36260
|
-
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"
|
|
36261
36415
|
}, element);
|
|
36262
36416
|
|
|
36263
36417
|
arr.push(userObj);
|
|
36264
36418
|
});
|
|
36265
36419
|
return arr;
|
|
36266
36420
|
};
|
|
36267
|
-
var getData = function getData(date, time) {
|
|
36268
|
-
var da = date ? new Date(date) : new Date();
|
|
36269
|
-
var d = new Date(da).toDateString().split(" ");
|
|
36270
|
-
return "".concat(d[2], " ").concat(d[1], ", ").concat(d[3], " ").concat(time ? moment(da).format("LT") : "");
|
|
36271
|
-
};
|
|
36272
36421
|
|
|
36273
36422
|
var _extraReducers$9;
|
|
36274
36423
|
var DOCC_SAVE_SERVICE = createAsyncThunk("DoccSlice/docc_save", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -37356,7 +37505,7 @@ var config$1 = [{
|
|
|
37356
37505
|
}];
|
|
37357
37506
|
return {
|
|
37358
37507
|
labels: (_payload$date = payload.date) === null || _payload$date === void 0 ? void 0 : _payload$date.map(function (v) {
|
|
37359
|
-
return
|
|
37508
|
+
return utcTOLocal$1(v.start, "hh A");
|
|
37360
37509
|
}),
|
|
37361
37510
|
datasets: datasets
|
|
37362
37511
|
};
|
|
@@ -37694,7 +37843,7 @@ var query$4 = {
|
|
|
37694
37843
|
entity: "Appointment,Encounter",
|
|
37695
37844
|
filter: {
|
|
37696
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, "'"),
|
|
37697
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37846
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37698
37847
|
},
|
|
37699
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))}))})}"
|
|
37700
37849
|
};
|
|
@@ -37762,7 +37911,7 @@ var query$4 = {
|
|
|
37762
37911
|
filter: {
|
|
37763
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, "'"),
|
|
37764
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"),
|
|
37765
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37914
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37766
37915
|
},
|
|
37767
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)}))})"
|
|
37768
37917
|
};
|
|
@@ -37833,7 +37982,7 @@ var query$4 = {
|
|
|
37833
37982
|
entity: "Appointment,Encounter",
|
|
37834
37983
|
filter: {
|
|
37835
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, "'"),
|
|
37836
|
-
Encounter: "Appointment.id in Encounter.appointmentId"
|
|
37985
|
+
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37837
37986
|
},
|
|
37838
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)}))}))})"
|
|
37839
37988
|
};
|
|
@@ -37927,8 +38076,8 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
|
|
|
37927
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",
|
|
37928
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]) || {}),
|
|
37929
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,
|
|
37930
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment3 = _.Appointment) === null || _$Appointment3 === void 0 ? void 0 : _$Appointment3.start) ?
|
|
37931
|
-
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") : "",
|
|
37932
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) {
|
|
37933
38082
|
var _spl$coding, _spl$coding$;
|
|
37934
38083
|
|
|
@@ -37993,8 +38142,8 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
37993
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",
|
|
37994
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]) || {}),
|
|
37995
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,
|
|
37996
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : _$Appointment11.start) ?
|
|
37997
|
-
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") : "",
|
|
37998
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) {
|
|
37999
38148
|
var _spl$coding2, _spl$coding2$;
|
|
38000
38149
|
|
|
@@ -38059,8 +38208,8 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
38059
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",
|
|
38060
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]) || {}),
|
|
38061
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,
|
|
38062
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment19 = _.Appointment) === null || _$Appointment19 === void 0 ? void 0 : _$Appointment19.start) ?
|
|
38063
|
-
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") : "",
|
|
38064
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) {
|
|
38065
38214
|
var _spl$coding3, _spl$coding3$;
|
|
38066
38215
|
|
|
@@ -38125,8 +38274,8 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
38125
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",
|
|
38126
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]) || {}),
|
|
38127
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,
|
|
38128
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : _$Appointment27.start) ?
|
|
38129
|
-
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") : "",
|
|
38130
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) {
|
|
38131
38280
|
var _spl$coding4, _spl$coding4$;
|
|
38132
38281
|
|
|
@@ -38191,8 +38340,8 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
38191
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",
|
|
38192
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]) || {}),
|
|
38193
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,
|
|
38194
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : _$Appointment35.start) ?
|
|
38195
|
-
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") : "",
|
|
38196
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) {
|
|
38197
38346
|
var _spl$coding5, _spl$coding5$;
|
|
38198
38347
|
|
|
@@ -38257,8 +38406,8 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
38257
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",
|
|
38258
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]) || {}),
|
|
38259
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,
|
|
38260
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : _$Appointment43.start) ?
|
|
38261
|
-
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") : "",
|
|
38262
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) {
|
|
38263
38412
|
var _spl$coding6, _spl$coding6$;
|
|
38264
38413
|
|
|
@@ -38326,8 +38475,8 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38326
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) || "",
|
|
38327
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,
|
|
38328
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) || "",
|
|
38329
|
-
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) ?
|
|
38330
|
-
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") : "",
|
|
38331
38480
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
38332
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) {
|
|
38333
38482
|
var _spl$coding7, _spl$coding7$;
|
|
@@ -38390,8 +38539,8 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38390
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) || "",
|
|
38391
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,
|
|
38392
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) || "",
|
|
38393
|
-
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) ?
|
|
38394
|
-
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") : "",
|
|
38395
38544
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
38396
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) {
|
|
38397
38546
|
var _spl$coding8, _spl$coding8$;
|
|
@@ -38454,8 +38603,8 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
38454
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) || "",
|
|
38455
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,
|
|
38456
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) || "",
|
|
38457
|
-
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) ?
|
|
38458
|
-
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") : "",
|
|
38459
38608
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
38460
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) {
|
|
38461
38610
|
var _spl$coding9, _spl$coding9$;
|
|
@@ -38518,8 +38667,8 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
38518
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) || "",
|
|
38519
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,
|
|
38520
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) || "",
|
|
38521
|
-
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) ?
|
|
38522
|
-
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") : "",
|
|
38523
38672
|
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
38524
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) {
|
|
38525
38674
|
var _spl$coding10, _spl$coding10$;
|
|
@@ -38581,8 +38730,8 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
38581
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]) || {}),
|
|
38582
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,
|
|
38583
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,
|
|
38584
|
-
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) ?
|
|
38585
|
-
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") : "",
|
|
38586
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) {
|
|
38587
38736
|
var _spl$coding11, _spl$coding11$;
|
|
38588
38737
|
|
|
@@ -38645,8 +38794,8 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
38645
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) || "",
|
|
38646
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,
|
|
38647
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) || "",
|
|
38648
|
-
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) ?
|
|
38649
|
-
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") : "",
|
|
38650
38799
|
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
38651
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) {
|
|
38652
38801
|
var _spl$coding12, _spl$coding12$;
|
|
@@ -38709,8 +38858,8 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
38709
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]) || {}),
|
|
38710
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) || "",
|
|
38711
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) || "",
|
|
38712
|
-
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) ?
|
|
38713
|
-
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") : "",
|
|
38714
38863
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
38715
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) {
|
|
38716
38865
|
var _spl$coding13, _spl$coding13$;
|
|
@@ -38772,8 +38921,8 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
38772
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]) || {}),
|
|
38773
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) || "",
|
|
38774
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) || "",
|
|
38775
|
-
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) ?
|
|
38776
|
-
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") : "",
|
|
38777
38926
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
38778
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) {
|
|
38779
38928
|
var _spl$coding14, _spl$coding14$;
|
|
@@ -38835,8 +38984,8 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
38835
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]) || {}),
|
|
38836
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) || "",
|
|
38837
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) || "",
|
|
38838
|
-
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) ?
|
|
38839
|
-
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") : "",
|
|
38840
38989
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
38841
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) {
|
|
38842
38991
|
var _spl$coding15, _spl$coding15$;
|
|
@@ -38898,8 +39047,8 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
38898
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]) || {}),
|
|
38899
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) || "",
|
|
38900
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) || "",
|
|
38901
|
-
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) ?
|
|
38902
|
-
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") : "",
|
|
38903
39052
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
38904
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) {
|
|
38905
39054
|
var _spl$coding16, _spl$coding16$;
|
|
@@ -38961,8 +39110,8 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
38961
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]) || {}),
|
|
38962
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) || "",
|
|
38963
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) || "",
|
|
38964
|
-
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) ?
|
|
38965
|
-
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") : "",
|
|
38966
39115
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
38967
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) {
|
|
38968
39117
|
var _spl$coding17, _spl$coding17$;
|
|
@@ -39024,8 +39173,8 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39024
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]) || {}),
|
|
39025
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) || "",
|
|
39026
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) || "",
|
|
39027
|
-
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) ?
|
|
39028
|
-
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") : "",
|
|
39029
39178
|
visitType: (_$visit_type11 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type11 !== void 0 ? _$visit_type11 : "",
|
|
39030
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) {
|
|
39031
39180
|
var _spl$coding18, _spl$coding18$;
|
|
@@ -40192,31 +40341,23 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40192
40341
|
_data$PersonID2$$name2,
|
|
40193
40342
|
_data$PersonID3,
|
|
40194
40343
|
_data$PersonID3$,
|
|
40195
|
-
_data$PersonID3$$name,
|
|
40196
|
-
_data$PersonID3$$name2,
|
|
40197
40344
|
_data$PersonID4,
|
|
40198
40345
|
_data$PersonID4$,
|
|
40199
|
-
_data$PersonID4$$name,
|
|
40200
|
-
_data$PersonID4$$name2,
|
|
40201
40346
|
_data$PersonID5,
|
|
40202
40347
|
_data$PersonID5$,
|
|
40348
|
+
_data$PersonID5$$age_,
|
|
40349
|
+
_data$PersonID$0$gend,
|
|
40203
40350
|
_data$PersonID6,
|
|
40204
40351
|
_data$PersonID6$,
|
|
40352
|
+
_data$PersonID6$$gend,
|
|
40353
|
+
_data$PersonID$0$alia,
|
|
40205
40354
|
_data$PersonID7,
|
|
40206
40355
|
_data$PersonID7$,
|
|
40207
|
-
_data$
|
|
40208
|
-
_data$PersonID$0$gend,
|
|
40356
|
+
_data$PersonID$0$tele,
|
|
40209
40357
|
_data$PersonID8,
|
|
40210
40358
|
_data$PersonID8$,
|
|
40211
|
-
_data$PersonID8$$
|
|
40212
|
-
_data$
|
|
40213
|
-
_data$PersonID9,
|
|
40214
|
-
_data$PersonID9$,
|
|
40215
|
-
_data$PersonID$0$tele,
|
|
40216
|
-
_data$PersonID10,
|
|
40217
|
-
_data$PersonID10$,
|
|
40218
|
-
_data$PersonID10$$tel,
|
|
40219
|
-
_data$PersonID10$$tel2,
|
|
40359
|
+
_data$PersonID8$$tele,
|
|
40360
|
+
_data$PersonID8$$tele2,
|
|
40220
40361
|
_payload$id,
|
|
40221
40362
|
id,
|
|
40222
40363
|
resp,
|
|
@@ -40262,11 +40403,11 @@ var AVC_LOGIN = createAsyncThunk("avcMeetApiSlice/avc_info", /*#__PURE__*/_async
|
|
|
40262
40403
|
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 : ""
|
|
40263
40404
|
},
|
|
40264
40405
|
personID: {
|
|
40265
|
-
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) ?
|
|
40266
|
-
age: (data === null || data === void 0 ? void 0 : (_data$
|
|
40267
|
-
gander: (_data$PersonID$0$gend = data === null || data === void 0 ? void 0 : (_data$
|
|
40268
|
-
id: (_data$PersonID$0$alia = data === null || data === void 0 ? void 0 : (_data$
|
|
40269
|
-
mobile: (_data$PersonID$0$tele = data === null || data === void 0 ? void 0 : (_data$
|
|
40406
|
+
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 : "-",
|
|
40407
|
+
age: (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$.age) ? (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$.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$PersonID5$.age_type) === null || _data$PersonID5$$age_ === void 0 ? void 0 : _data$PersonID5$$age_.code) : "",
|
|
40408
|
+
gander: (_data$PersonID$0$gend = 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$$gend = _data$PersonID6$.gender) === null || _data$PersonID6$$gend === void 0 ? void 0 : _data$PersonID6$$gend.display) !== null && _data$PersonID$0$gend !== void 0 ? _data$PersonID$0$gend : "",
|
|
40409
|
+
id: (_data$PersonID$0$alia = 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$.alias) !== null && _data$PersonID$0$alia !== void 0 ? _data$PersonID$0$alia : "",
|
|
40410
|
+
mobile: (_data$PersonID$0$tele = 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$$tele = _data$PersonID8$.telecom) === null || _data$PersonID8$$tele === void 0 ? void 0 : (_data$PersonID8$$tele2 = _data$PersonID8$$tele[0]) === null || _data$PersonID8$$tele2 === void 0 ? void 0 : _data$PersonID8$$tele2.value) !== null && _data$PersonID$0$tele !== void 0 ? _data$PersonID$0$tele : ""
|
|
40270
40411
|
},
|
|
40271
40412
|
dataJson: data
|
|
40272
40413
|
};
|
|
@@ -40618,8 +40759,8 @@ var GET_PATIENTS_CHECKED_IN = createAsyncThunk("currentVisitStatsApiSlice/getPat
|
|
|
40618
40759
|
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",
|
|
40619
40760
|
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]) || {}),
|
|
40620
40761
|
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,
|
|
40621
|
-
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) ?
|
|
40622
|
-
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) ?
|
|
40762
|
+
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") : "",
|
|
40763
|
+
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") : "",
|
|
40623
40764
|
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) {
|
|
40624
40765
|
var _spl$coding, _spl$coding$;
|
|
40625
40766
|
|
|
@@ -40681,8 +40822,8 @@ var GET_TRAIGE_DONE = createAsyncThunk("currentVisitStatsApiSlice/getTriageDone"
|
|
|
40681
40822
|
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",
|
|
40682
40823
|
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]) || {}),
|
|
40683
40824
|
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,
|
|
40684
|
-
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) ?
|
|
40685
|
-
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) ?
|
|
40825
|
+
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") : "",
|
|
40826
|
+
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") : "",
|
|
40686
40827
|
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) {
|
|
40687
40828
|
var _spl$coding2, _spl$coding2$;
|
|
40688
40829
|
|
|
@@ -40744,8 +40885,8 @@ var GET_VISIT_COMPLETED = createAsyncThunk("currentVisitStatsApiSlice/getVisitCo
|
|
|
40744
40885
|
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",
|
|
40745
40886
|
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]) || {}),
|
|
40746
40887
|
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,
|
|
40747
|
-
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) ?
|
|
40748
|
-
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) ?
|
|
40888
|
+
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") : "",
|
|
40889
|
+
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") : "",
|
|
40749
40890
|
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) {
|
|
40750
40891
|
var _spl$coding3, _spl$coding3$;
|
|
40751
40892
|
|
|
@@ -40807,8 +40948,8 @@ var GET_PATIENTS_NO_SHOWS = createAsyncThunk("currentVisitStatsApiSlice/getPatie
|
|
|
40807
40948
|
img: "https://www.fillmurray.com/640/360",
|
|
40808
40949
|
name: "Louis Barrett",
|
|
40809
40950
|
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 : "",
|
|
40810
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40811
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
40951
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
40952
|
+
orderTime: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
40812
40953
|
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 : "",
|
|
40813
40954
|
ward: "Ward 1",
|
|
40814
40955
|
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 : "",
|
|
@@ -40871,8 +41012,8 @@ var GET_PATIENTS_CHECKED_IN_NURSE = createAsyncThunk("currentVisitStatsApiSlice/
|
|
|
40871
41012
|
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,
|
|
40872
41013
|
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),
|
|
40873
41014
|
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,
|
|
40874
|
-
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) ?
|
|
40875
|
-
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) ?
|
|
41015
|
+
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") : "",
|
|
41016
|
+
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") : "",
|
|
40876
41017
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
40877
41018
|
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) {
|
|
40878
41019
|
var _spl$coding4, _spl$coding4$;
|
|
@@ -40937,8 +41078,8 @@ var GET_VISIT_COMPLETED_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getV
|
|
|
40937
41078
|
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,
|
|
40938
41079
|
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),
|
|
40939
41080
|
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,
|
|
40940
|
-
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) ?
|
|
40941
|
-
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) ?
|
|
41081
|
+
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") : "",
|
|
41082
|
+
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") : "",
|
|
40942
41083
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
40943
41084
|
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) {
|
|
40944
41085
|
var _spl$coding5, _spl$coding5$;
|
|
@@ -41003,8 +41144,8 @@ var GET_PATIENTS_NO_SHOWS_NURSE = createAsyncThunk("currentVisitStatsApiSlice/ge
|
|
|
41003
41144
|
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,
|
|
41004
41145
|
contact: "Contact",
|
|
41005
41146
|
refNo: "Ref No",
|
|
41006
|
-
date: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41007
|
-
time: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41147
|
+
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
41148
|
+
time: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
41008
41149
|
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,
|
|
41009
41150
|
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,
|
|
41010
41151
|
clinic: "Clinic",
|
|
@@ -41065,8 +41206,8 @@ var GET_TRAIGE_DONE_NURSE = createAsyncThunk("currentVisitStatsApiSlice/getTriag
|
|
|
41065
41206
|
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,
|
|
41066
41207
|
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),
|
|
41067
41208
|
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,
|
|
41068
|
-
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) ?
|
|
41069
|
-
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) ?
|
|
41209
|
+
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") : "",
|
|
41210
|
+
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") : "",
|
|
41070
41211
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41071
41212
|
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) {
|
|
41072
41213
|
var _spl$coding6, _spl$coding6$;
|
|
@@ -41132,8 +41273,8 @@ var GET_PATIENTS_NO_SHOWS_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/g
|
|
|
41132
41273
|
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,
|
|
41133
41274
|
contact: "Contact",
|
|
41134
41275
|
refNo: "Ref No",
|
|
41135
|
-
date: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41136
|
-
time: (_ === null || _ === void 0 ? void 0 : _.start) ?
|
|
41276
|
+
date: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "DD MMM,YYYY") : "",
|
|
41277
|
+
time: (_ === null || _ === void 0 ? void 0 : _.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : _.start, "hh:mm A") : "",
|
|
41137
41278
|
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,
|
|
41138
41279
|
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,
|
|
41139
41280
|
clinic: "Clinic",
|
|
@@ -41194,8 +41335,8 @@ var GET_PATIENTS_CHECKED_IN_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice
|
|
|
41194
41335
|
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,
|
|
41195
41336
|
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),
|
|
41196
41337
|
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,
|
|
41197
|
-
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) ?
|
|
41198
|
-
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) ?
|
|
41338
|
+
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") : "",
|
|
41339
|
+
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") : "",
|
|
41199
41340
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41200
41341
|
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) {
|
|
41201
41342
|
var _spl$coding7, _spl$coding7$;
|
|
@@ -41260,8 +41401,8 @@ var GET_VISIT_COMPLETED_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/get
|
|
|
41260
41401
|
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,
|
|
41261
41402
|
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),
|
|
41262
41403
|
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,
|
|
41263
|
-
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) ?
|
|
41264
|
-
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) ?
|
|
41404
|
+
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") : "",
|
|
41405
|
+
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") : "",
|
|
41265
41406
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41266
41407
|
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) {
|
|
41267
41408
|
var _spl$coding8, _spl$coding8$;
|
|
@@ -41326,8 +41467,8 @@ var GET_TRAIGE_DONE_DOCTOR = createAsyncThunk("currentVisitStatsApiSlice/getTria
|
|
|
41326
41467
|
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,
|
|
41327
41468
|
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),
|
|
41328
41469
|
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,
|
|
41329
|
-
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) ?
|
|
41330
|
-
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) ?
|
|
41470
|
+
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") : "",
|
|
41471
|
+
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") : "",
|
|
41331
41472
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
41332
41473
|
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) {
|
|
41333
41474
|
var _spl$coding9, _spl$coding9$;
|
|
@@ -41557,8 +41698,8 @@ var FOLLOWUP_APPOINTMENTS = createAsyncThunk("pendingTasksApiSlice/getFollowUpAp
|
|
|
41557
41698
|
"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],
|
|
41558
41699
|
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id = _.patient_id) === null || _$patient_id === void 0 ? void 0 : _$patient_id.alias,
|
|
41559
41700
|
"refNo": 'Ref No',
|
|
41560
|
-
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41561
|
-
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41701
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'DD MMM,YYYY') : '',
|
|
41702
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'hh:mm A') : '',
|
|
41562
41703
|
"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,
|
|
41563
41704
|
"clinic": 'Clinic',
|
|
41564
41705
|
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid2 = _.patientid) === null || _$patientid2 === void 0 ? void 0 : _$patientid2.birthDate,
|
|
@@ -41617,8 +41758,8 @@ var APPOINTMENT_REFERRALS = createAsyncThunk("pendingTasksApiSlice/getAppointmen
|
|
|
41617
41758
|
"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],
|
|
41618
41759
|
"mrn": _ === null || _ === void 0 ? void 0 : (_$patient_id2 = _.patient_id) === null || _$patient_id2 === void 0 ? void 0 : _$patient_id2.alias,
|
|
41619
41760
|
"refNo": 'Ref No',
|
|
41620
|
-
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41621
|
-
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ?
|
|
41761
|
+
"date": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'DD MMM,YYYY') : '',
|
|
41762
|
+
"time": (_ === null || _ === void 0 ? void 0 : _.encounterdate) ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.encounterdate, 'hh:mm A') : '',
|
|
41622
41763
|
"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,
|
|
41623
41764
|
"clinic": 'Clinic',
|
|
41624
41765
|
"dateOfBirth": _ === null || _ === void 0 ? void 0 : (_$patientid4 = _.patientid) === null || _$patientid4 === void 0 ? void 0 : _$patientid4.birthDate,
|
|
@@ -41731,7 +41872,7 @@ var GET_ASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getAssignP
|
|
|
41731
41872
|
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,
|
|
41732
41873
|
apptRefNo: _ === null || _ === void 0 ? void 0 : (_$Appointment = _.Appointment) === null || _$Appointment === void 0 ? void 0 : _$Appointment.appno,
|
|
41733
41874
|
// "apptDate&Time":_.Appointment.start,
|
|
41734
|
-
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$Appointment2 = _.Appointment) === null || _$Appointment2 === void 0 ? void 0 : _$Appointment2.start) ?
|
|
41875
|
+
"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") : "",
|
|
41735
41876
|
encounterNo: _ === null || _ === void 0 ? void 0 : (_$Encounter5 = _.Encounter) === null || _$Encounter5 === void 0 ? void 0 : _$Encounter5.encounter_no,
|
|
41736
41877
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter6 = _.Encounter) === null || _$Encounter6 === void 0 ? void 0 : _$Encounter6.visit_type,
|
|
41737
41878
|
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,
|
|
@@ -41791,7 +41932,7 @@ var GET_REASSIGN_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getReAss
|
|
|
41791
41932
|
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,
|
|
41792
41933
|
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,
|
|
41793
41934
|
apptRefNo: _ === null || _ === void 0 ? void 0 : (_$Appointment4 = _.Appointment) === null || _$Appointment4 === void 0 ? void 0 : _$Appointment4.appno,
|
|
41794
|
-
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$Appointment5 = _.Appointment) === null || _$Appointment5 === void 0 ? void 0 : _$Appointment5.start) ?
|
|
41935
|
+
"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") : "",
|
|
41795
41936
|
encounterNo: _ === null || _ === void 0 ? void 0 : (_$Encounter13 = _.Encounter) === null || _$Encounter13 === void 0 ? void 0 : _$Encounter13.encounter_no,
|
|
41796
41937
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter14 = _.Encounter) === null || _$Encounter14 === void 0 ? void 0 : _$Encounter14.visit_type,
|
|
41797
41938
|
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,
|
|
@@ -41851,7 +41992,7 @@ var GET_CLOSE_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getClosePra
|
|
|
41851
41992
|
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 : "",
|
|
41852
41993
|
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 : "",
|
|
41853
41994
|
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 : "",
|
|
41854
|
-
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : _$appointmentId3.start) ?
|
|
41995
|
+
"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") : "",
|
|
41855
41996
|
encounterNo: (_$encounter_no = _ === null || _ === void 0 ? void 0 : _.encounter_no) !== null && _$encounter_no !== void 0 ? _$encounter_no : "",
|
|
41856
41997
|
visitType: (_$visit_type = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type !== void 0 ? _$visit_type : "",
|
|
41857
41998
|
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 : "",
|