primarycare-binder 1.1.57 → 1.1.61
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 +86 -81
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8394,7 +8394,7 @@ var urls = (_urls = {
|
|
|
8394
8394
|
}, _defineProperty(_urls, "get_cities", "/api/v1/getCityFromHospital"), _defineProperty(_urls, "get_symptoms", "/api/v1/getSymptoms"), _defineProperty(_urls, "get_speciality", "/api/v1/getSpeciality"), _defineProperty(_urls, "upsert_service", "/api/v1/upsertService"), _defineProperty(_urls, "read_service", "/api/v1/readService"), _defineProperty(_urls, "delete_service", "/api/v1/deleteService"), _defineProperty(_urls, "upsert_slot", "/api/v1/upsertSlot"), _defineProperty(_urls, "read_slot", "api/v1/readSlot"), _defineProperty(_urls, "delete_slot", "api/v1/deleteSlot"), _defineProperty(_urls, "slot_availability", "api/v1/readAvailibalityChecking"), _defineProperty(_urls, "upsert_task", "api/v1/upsertTask"), _defineProperty(_urls, "read_task", "api/v1/readTask"), _defineProperty(_urls, "delete_task", "api/v1/deleteTask"), _defineProperty(_urls, "upsert_schedule", "api/v1/upsertSchedule"), _defineProperty(_urls, "read_schedule", "api/v1/readSchedule"), _defineProperty(_urls, "delete_schedule", "api/v1/deleteSchedule"), _defineProperty(_urls, "upsert_person", "api/v1/upsertPerson"), _defineProperty(_urls, "read_person", "api/v1/readPerson"), _defineProperty(_urls, "delete_person", "api/v1/deletePerson"), _defineProperty(_urls, "upsert_practitioner_role", "api/v1/upsertPractitionerRole"), _defineProperty(_urls, "read_practitioner_role", "api/v1/readPractitionerRole"), _defineProperty(_urls, "delete_practitioner_role", "api/v1/deletePractitionerRole"), _defineProperty(_urls, "get_user_info", "api/v1/getUserInfo"), _defineProperty(_urls, "oraganization_registration", "api/v1/orgUserRegistration"), _defineProperty(_urls, "oraganization_siginIn", "".concat(__keyClockLogin__, "/api/v1/orgUserSignIn")), _defineProperty(_urls, "oraganization_registet_patient", "api/v1/upsert_document"), _urls);
|
|
8395
8395
|
|
|
8396
8396
|
var makeName = function makeName() {
|
|
8397
|
-
var _prefix$coding, _prefix$coding$, _suffix$coding, _suffix$coding
|
|
8397
|
+
var _prefix$, _prefix$$coding, _prefix$$coding$, _prefix$coding, _prefix$coding$, _prefix$2, _suffix$, _suffix$$coding, _suffix$$coding$, _suffix$coding, _suffix$coding$, _suffix$2;
|
|
8398
8398
|
|
|
8399
8399
|
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8400
8400
|
var _nameObj$prefix = nameObj.prefix,
|
|
@@ -8407,8 +8407,8 @@ var makeName = function makeName() {
|
|
|
8407
8407
|
family = _nameObj$family === void 0 ? "" : _nameObj$family,
|
|
8408
8408
|
_nameObj$suffix = nameObj.suffix,
|
|
8409
8409
|
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix;
|
|
8410
|
-
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || (prefix === null || prefix === void 0 ? void 0 : prefix.display) || "";
|
|
8411
|
-
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : suffix.display) || "";
|
|
8410
|
+
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$ = prefix[0]) === null || _prefix$ === void 0 ? void 0 : (_prefix$$coding = _prefix$.coding) === null || _prefix$$coding === void 0 ? void 0 : (_prefix$$coding$ = _prefix$$coding[0]) === null || _prefix$$coding$ === void 0 ? void 0 : _prefix$$coding$.display) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$2 = prefix[0]) === null || _prefix$2 === void 0 ? void 0 : _prefix$2.display) || (prefix === null || prefix === void 0 ? void 0 : prefix.display) || "";
|
|
8411
|
+
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$ = suffix[0]) === null || _suffix$ === void 0 ? void 0 : (_suffix$$coding = _suffix$.coding) === null || _suffix$$coding === void 0 ? void 0 : (_suffix$$coding$ = _suffix$$coding[0]) === null || _suffix$$coding$ === void 0 ? void 0 : _suffix$$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$2 = suffix[0]) === null || _suffix$2 === void 0 ? void 0 : _suffix$2.display) || (suffix === null || suffix === void 0 ? void 0 : suffix.display) || "";
|
|
8412
8412
|
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
8413
8413
|
};
|
|
8414
8414
|
|
|
@@ -10868,6 +10868,8 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10868
10868
|
orgId,
|
|
10869
10869
|
_payload$orgType,
|
|
10870
10870
|
orgType,
|
|
10871
|
+
_payload$patientInstr,
|
|
10872
|
+
patientInstruction,
|
|
10871
10873
|
body,
|
|
10872
10874
|
data,
|
|
10873
10875
|
_args = arguments;
|
|
@@ -10879,7 +10881,7 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10879
10881
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
10880
10882
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
10881
10883
|
_context.prev = 2;
|
|
10882
|
-
_payload$slotId = payload.slotId, slotId = _payload$slotId === void 0 ? [] : _payload$slotId, _payload$slotStart = payload.slotStart, slotStart = _payload$slotStart === void 0 ? 0 : _payload$slotStart, _payload$slotEnd = payload.slotEnd, slotEnd = _payload$slotEnd === void 0 ? 0 : _payload$slotEnd, _payload$info = payload.info, info = _payload$info === void 0 ? [] : _payload$info, _payload$specialtyID = payload.specialtyID, specialtyID = _payload$specialtyID === void 0 ? [] : _payload$specialtyID, _payload$personID = payload.personID, personID = _payload$personID === void 0 ? [] : _payload$personID, _payload$practitioner = payload.practitionerId, practitionerId = _payload$practitioner === void 0 ? [] : _payload$practitioner, _payload$mobile = payload.mobile, mobile = _payload$mobile === void 0 ? "" : _payload$mobile, _payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email, _payload$consultation = payload.consultationMode, consultationMode = _payload$consultation === void 0 ? "" : _payload$consultation, _payload$healthCareId = payload.healthCareId, healthCareId = _payload$healthCareId === void 0 ? [] : _payload$healthCareId, _payload$report_docs = payload.report_docs, report_docs = _payload$report_docs === void 0 ? [] : _payload$report_docs, _payload$appointmentT = payload.appointmentType, appointmentType = _payload$appointmentT === void 0 ? "general" : _payload$appointmentT, _payload$resourcetype = payload.resourcetype, resourcetype = _payload$resourcetype === void 0 ? "" : _payload$resourcetype, _payload$resourcerole = payload.resourcerole, resourcerole = _payload$resourcerole === void 0 ? "" : _payload$resourcerole, _payload$resourcecode = payload.resourcecode, resourcecode = _payload$resourcecode === void 0 ? "" : _payload$resourcecode, _payload$orgId = payload.orgId, orgId = _payload$orgId === void 0 ? "" : _payload$orgId, _payload$orgType = payload.orgType, orgType = _payload$orgType === void 0 ? "" : _payload$orgType;
|
|
10884
|
+
_payload$slotId = payload.slotId, slotId = _payload$slotId === void 0 ? [] : _payload$slotId, _payload$slotStart = payload.slotStart, slotStart = _payload$slotStart === void 0 ? 0 : _payload$slotStart, _payload$slotEnd = payload.slotEnd, slotEnd = _payload$slotEnd === void 0 ? 0 : _payload$slotEnd, _payload$info = payload.info, info = _payload$info === void 0 ? [] : _payload$info, _payload$specialtyID = payload.specialtyID, specialtyID = _payload$specialtyID === void 0 ? [] : _payload$specialtyID, _payload$personID = payload.personID, personID = _payload$personID === void 0 ? [] : _payload$personID, _payload$practitioner = payload.practitionerId, practitionerId = _payload$practitioner === void 0 ? [] : _payload$practitioner, _payload$mobile = payload.mobile, mobile = _payload$mobile === void 0 ? "" : _payload$mobile, _payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email, _payload$consultation = payload.consultationMode, consultationMode = _payload$consultation === void 0 ? "" : _payload$consultation, _payload$healthCareId = payload.healthCareId, healthCareId = _payload$healthCareId === void 0 ? [] : _payload$healthCareId, _payload$report_docs = payload.report_docs, report_docs = _payload$report_docs === void 0 ? [] : _payload$report_docs, _payload$appointmentT = payload.appointmentType, appointmentType = _payload$appointmentT === void 0 ? "general" : _payload$appointmentT, _payload$resourcetype = payload.resourcetype, resourcetype = _payload$resourcetype === void 0 ? "" : _payload$resourcetype, _payload$resourcerole = payload.resourcerole, resourcerole = _payload$resourcerole === void 0 ? "" : _payload$resourcerole, _payload$resourcecode = payload.resourcecode, resourcecode = _payload$resourcecode === void 0 ? "" : _payload$resourcecode, _payload$orgId = payload.orgId, orgId = _payload$orgId === void 0 ? "" : _payload$orgId, _payload$orgType = payload.orgType, orgType = _payload$orgType === void 0 ? "" : _payload$orgType, _payload$patientInstr = payload.patientInstruction, patientInstruction = _payload$patientInstr === void 0 ? "" : _payload$patientInstr;
|
|
10883
10885
|
body = [{
|
|
10884
10886
|
db_name: dbName,
|
|
10885
10887
|
entity: "Appointment",
|
|
@@ -10907,6 +10909,7 @@ var APPOINTMENT_CREATE = createAsyncThunk("appointmentReducer/upsertAppointment"
|
|
|
10907
10909
|
// appointment reason
|
|
10908
10910
|
basedOn: [],
|
|
10909
10911
|
participant: [],
|
|
10912
|
+
patientInstruction: patientInstruction,
|
|
10910
10913
|
requestedPeriod: [{
|
|
10911
10914
|
// slot in milliseconds
|
|
10912
10915
|
start: new Date(slotStart).getTime(),
|
|
@@ -18220,7 +18223,7 @@ var GET_PRACTITIONERS = createAsyncThunk("OrganizationRegisterPatientApiSlice/ge
|
|
|
18220
18223
|
db_name: dbName,
|
|
18221
18224
|
entity: "Practitioner",
|
|
18222
18225
|
filter: "document(Practitioner.practitioner_role)[*].SpecialtyID any == '" + OrgID + "'",
|
|
18223
|
-
return_fields: "merge(Practitioner,{name:document(Practitioner.name)},{practitioner_role:(for PractitionerRole in PractitionerRole filter Practitioner.practitioner_role any == PractitionerRole._id return merge(PractitionerRole,{role:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == PractitionerRole.role return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))}, {SpecialtyID:(for CodeableConceptMaster in CodeableConceptMaster filter PractitionerRole.SpecialtyID == CodeableConceptMaster._id return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}) ) } ) )}, {practitioner_type:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == Practitioner.practitioner_type return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))})"
|
|
18226
|
+
return_fields: "merge(Practitioner,{name:(let n = document(Practitioner.name)[0] return merge(n, { prefix: (for p in CodeableConceptMaster filter p._id == n.prefix return Document(p.coding)[0])[0], suffix: (for s in CodeableConceptMaster filter s._id == n.suffix return Document(s.coding)[0])[0] }))},{practitioner_role:(for PractitionerRole in PractitionerRole filter Practitioner.practitioner_role any == PractitionerRole._id return merge(PractitionerRole,{role:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == PractitionerRole.role return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))}, {SpecialtyID:(for CodeableConceptMaster in CodeableConceptMaster filter PractitionerRole.SpecialtyID == CodeableConceptMaster._id return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}) ) } ) )}, {practitioner_type:(for CodeableConceptMaster in CodeableConceptMaster filter CodeableConceptMaster._id == Practitioner.practitioner_type return merge(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)}))})"
|
|
18224
18227
|
};
|
|
18225
18228
|
_context9.next = 7;
|
|
18226
18229
|
return fetchData$3({
|
|
@@ -19311,7 +19314,8 @@ var dashboardQuery = {
|
|
|
19311
19314
|
Encounter: "Encounter._key=='".concat(encounter_key, "' && Encounter.activestatus==true && lower(document(Encounter.status).display)=='consultation over'"),
|
|
19312
19315
|
Appointment: "Appointment.id in Encounter.appointmentId && Appointment.start>=".concat(start, " && Appointment.end<=").concat(end)
|
|
19313
19316
|
},
|
|
19314
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})"
|
|
19317
|
+
return_fields: // "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})",
|
|
19318
|
+
"merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))}, {statushistoryExp:(for she in Encounter.statushistory return merge(she,{period:document(she.period)},{status:document(she.status)}))} , {reasonReference:document(Encounter.reasonReference)},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))},{Followupdetails:(for app in AppointmentRequest filter app.encounterid==Encounter._id return merge(app,{followupduruom:document(app.followupduruom)},{followupreason:document(app.followupreason)}))})"
|
|
19315
19319
|
};
|
|
19316
19320
|
}
|
|
19317
19321
|
};
|
|
@@ -20783,7 +20787,8 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
20783
20787
|
encounterId: data === null || data === void 0 ? void 0 : data._id,
|
|
20784
20788
|
patientId: data === null || data === void 0 ? void 0 : (_data$patient_id9 = data.patient_id) === null || _data$patient_id9 === void 0 ? void 0 : (_data$patient_id9$ = _data$patient_id9[0]) === null || _data$patient_id9$ === void 0 ? void 0 : _data$patient_id9$._id,
|
|
20785
20789
|
appointmentId: data === null || data === void 0 ? void 0 : (_data$appointmentId7 = data.appointmentId) === null || _data$appointmentId7 === void 0 ? void 0 : _data$appointmentId7.id,
|
|
20786
|
-
followupReqd: (data === null || data === void 0 ? void 0 : data.followupReqd) ? data === null || data === void 0 ? void 0 : data.followupReqd : false
|
|
20790
|
+
followupReqd: (data === null || data === void 0 ? void 0 : data.followupReqd) ? data === null || data === void 0 ? void 0 : data.followupReqd : false,
|
|
20791
|
+
encounterCloseTime: data === null || data === void 0 ? void 0 : data.statushistoryExp
|
|
20787
20792
|
};
|
|
20788
20793
|
return json;
|
|
20789
20794
|
};
|
|
@@ -39724,7 +39729,7 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
39724
39729
|
case 5:
|
|
39725
39730
|
data = _context2.sent;
|
|
39726
39731
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (_) {
|
|
39727
|
-
var _$Encounter, _$Encounter$patient_i, _$Encounter$patient_i2, _$Encounter$patient_i3, _$Encounter2, _$Encounter2$patient_, _$Encounter2$patient_2, _$Appointment13, _$Appointment13$Perso, _$Appointment13$Perso2, _$Appointment14, _$Appointment15, _$Appointment16, _$Appointment17, _$Encounter3, _$Encounter$status$di, _$Encounter4, _$Encounter4$status, _$
|
|
39732
|
+
var _$Encounter, _$Encounter$patient_i, _$Encounter$patient_i2, _$Encounter$patient_i3, _$Encounter2, _$Encounter2$patient_, _$Encounter2$patient_2, _$Appointment13, _$Appointment13$Perso, _$Appointment13$Perso2, _$Appointment14, _$Appointment15, _$Appointment16, _$Appointment17, _$Encounter3, _$Encounter$status$di, _$Encounter4, _$Encounter4$status, _$Appointment$appno, _$Appointment18, _$Encounter$appointme, _$Encounter5, _$Encounter5$appointm, _$Encounter6, _$Encounter6$patient_, _$Encounter6$patient_2, _$Encounter6$patient_3, _$Encounter6$patient_4, _$Appointment$PersonI4, _$Appointment19, _$Appointment19$Perso, _$Appointment19$Perso2, _$Encounter$patient_i4, _$Encounter7, _$Encounter7$patient_, _$Encounter7$patient_2;
|
|
39728
39733
|
|
|
39729
39734
|
return {
|
|
39730
39735
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -39762,13 +39767,13 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
|
|
|
39762
39767
|
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment14 = _.Appointment) === null || _$Appointment14 === void 0 ? void 0 : _$Appointment14.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment15 = _.Appointment) === null || _$Appointment15 === void 0 ? void 0 : _$Appointment15.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment16 = _.Appointment) === null || _$Appointment16 === void 0 ? void 0 : _$Appointment16.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment17 = _.Appointment) === null || _$Appointment17 === void 0 ? void 0 : _$Appointment17.start, "hh:mm A") : ""),
|
|
39763
39768
|
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter3 = _.Encounter) === null || _$Encounter3 === void 0 ? void 0 : _$Encounter3.visit_type,
|
|
39764
39769
|
appointmentStatus: (_$Encounter$status$di = _ === null || _ === void 0 ? void 0 : (_$Encounter4 = _.Encounter) === null || _$Encounter4 === void 0 ? void 0 : (_$Encounter4$status = _$Encounter4.status) === null || _$Encounter4$status === void 0 ? void 0 : _$Encounter4$status.display) !== null && _$Encounter$status$di !== void 0 ? _$Encounter$status$di : "",
|
|
39765
|
-
refNo: (_$
|
|
39770
|
+
refNo: (_$Appointment$appno = _ === null || _ === void 0 ? void 0 : (_$Appointment18 = _.Appointment) === null || _$Appointment18 === void 0 ? void 0 : _$Appointment18.appno) !== null && _$Appointment$appno !== void 0 ? _$Appointment$appno : "",
|
|
39766
39771
|
action: JSON.stringify({
|
|
39767
|
-
appNo: (_$Encounter$
|
|
39772
|
+
appNo: (_$Encounter$appointme = _ === null || _ === void 0 ? void 0 : (_$Encounter5 = _.Encounter) === null || _$Encounter5 === void 0 ? void 0 : (_$Encounter5$appointm = _$Encounter5.appointmentId) === null || _$Encounter5$appointm === void 0 ? void 0 : _$Encounter5$appointm[0]) !== null && _$Encounter$appointme !== void 0 ? _$Encounter$appointme : "",
|
|
39768
39773
|
enId: _.Encounter.id,
|
|
39769
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39770
|
-
personId: (_$Appointment$PersonI4 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39771
|
-
patientId: (_$Encounter$patient_i4 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39774
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter6 = _.Encounter) === null || _$Encounter6 === void 0 ? void 0 : (_$Encounter6$patient_ = _$Encounter6.patient_id) === null || _$Encounter6$patient_ === void 0 ? void 0 : (_$Encounter6$patient_2 = _$Encounter6$patient_[0]) === null || _$Encounter6$patient_2 === void 0 ? void 0 : (_$Encounter6$patient_3 = _$Encounter6$patient_2.telecom) === null || _$Encounter6$patient_3 === void 0 ? void 0 : (_$Encounter6$patient_4 = _$Encounter6$patient_3[0]) === null || _$Encounter6$patient_4 === void 0 ? void 0 : _$Encounter6$patient_4.value,
|
|
39775
|
+
personId: (_$Appointment$PersonI4 = _ === null || _ === void 0 ? void 0 : (_$Appointment19 = _.Appointment) === null || _$Appointment19 === void 0 ? void 0 : (_$Appointment19$Perso = _$Appointment19.PersonID) === null || _$Appointment19$Perso === void 0 ? void 0 : (_$Appointment19$Perso2 = _$Appointment19$Perso[0]) === null || _$Appointment19$Perso2 === void 0 ? void 0 : _$Appointment19$Perso2.Id) !== null && _$Appointment$PersonI4 !== void 0 ? _$Appointment$PersonI4 : null,
|
|
39776
|
+
patientId: (_$Encounter$patient_i4 = _ === 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_2.id) !== null && _$Encounter$patient_i4 !== void 0 ? _$Encounter$patient_i4 : null
|
|
39772
39777
|
}) // modifyaction: JSON.stringify({
|
|
39773
39778
|
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
39774
39779
|
// enId: _.Encounter.id,
|
|
@@ -39828,7 +39833,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
39828
39833
|
case 5:
|
|
39829
39834
|
data = _context3.sent;
|
|
39830
39835
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
39831
|
-
var _$
|
|
39836
|
+
var _$Encounter8, _$Encounter8$patient_, _$Encounter8$patient_2, _$Encounter8$patient_3, _$Encounter9, _$Encounter9$patient_, _$Encounter9$patient_2, _$Appointment20, _$Appointment20$Perso, _$Appointment20$Perso2, _$Appointment21, _$Appointment22, _$Appointment23, _$Appointment24, _$Encounter10, _$Encounter$status$di2, _$Encounter11, _$Encounter11$status, _$Appointment$appno2, _$Appointment25, _$Encounter$appointme2, _$Encounter12, _$Encounter12$appoint, _$Encounter13, _$Encounter13$patient, _$Encounter13$patient2, _$Encounter13$patient3, _$Encounter13$patient4, _$Appointment$PersonI5, _$Appointment26, _$Appointment26$Perso, _$Appointment26$Perso2, _$Encounter$patient_i5, _$Encounter14, _$Encounter14$patient, _$Encounter14$patient2;
|
|
39832
39837
|
|
|
39833
39838
|
return {
|
|
39834
39839
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -39860,19 +39865,19 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
|
|
|
39860
39865
|
// "Modify Appointment": true,
|
|
39861
39866
|
// "Cancel Appointment": true,
|
|
39862
39867
|
// "View Profile": true,
|
|
39863
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39864
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39865
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39866
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
39867
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
39868
|
-
appointmentStatus: (_$Encounter$status$di2 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39869
|
-
refNo: (_$
|
|
39868
|
+
name: makeName((_ === 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_3 = _$Encounter8$patient_2.name) === null || _$Encounter8$patient_3 === void 0 ? void 0 : _$Encounter8$patient_3[0]) || {}),
|
|
39869
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter9 = _.Encounter) === null || _$Encounter9 === void 0 ? void 0 : (_$Encounter9$patient_ = _$Encounter9.patient_id) === null || _$Encounter9$patient_ === void 0 ? void 0 : (_$Encounter9$patient_2 = _$Encounter9$patient_[0]) === null || _$Encounter9$patient_2 === void 0 ? void 0 : _$Encounter9$patient_2.MRN) || "",
|
|
39870
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment20 = _.Appointment) === null || _$Appointment20 === void 0 ? void 0 : (_$Appointment20$Perso = _$Appointment20.PersonID) === null || _$Appointment20$Perso === void 0 ? void 0 : (_$Appointment20$Perso2 = _$Appointment20$Perso[0]) === null || _$Appointment20$Perso2 === void 0 ? void 0 : _$Appointment20$Perso2.birthDay),
|
|
39871
|
+
date: "".concat((_ === 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, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment23 = _.Appointment) === null || _$Appointment23 === void 0 ? void 0 : _$Appointment23.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment24 = _.Appointment) === null || _$Appointment24 === void 0 ? void 0 : _$Appointment24.start, "hh:mm A") : ""),
|
|
39872
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter10 = _.Encounter) === null || _$Encounter10 === void 0 ? void 0 : _$Encounter10.visit_type,
|
|
39873
|
+
appointmentStatus: (_$Encounter$status$di2 = _ === null || _ === void 0 ? void 0 : (_$Encounter11 = _.Encounter) === null || _$Encounter11 === void 0 ? void 0 : (_$Encounter11$status = _$Encounter11.status) === null || _$Encounter11$status === void 0 ? void 0 : _$Encounter11$status.display) !== null && _$Encounter$status$di2 !== void 0 ? _$Encounter$status$di2 : "",
|
|
39874
|
+
refNo: (_$Appointment$appno2 = _ === null || _ === void 0 ? void 0 : (_$Appointment25 = _.Appointment) === null || _$Appointment25 === void 0 ? void 0 : _$Appointment25.appno) !== null && _$Appointment$appno2 !== void 0 ? _$Appointment$appno2 : "",
|
|
39870
39875
|
action: JSON.stringify({
|
|
39871
|
-
appNo: (_$Encounter$
|
|
39876
|
+
appNo: (_$Encounter$appointme2 = _ === null || _ === void 0 ? void 0 : (_$Encounter12 = _.Encounter) === null || _$Encounter12 === void 0 ? void 0 : (_$Encounter12$appoint = _$Encounter12.appointmentId) === null || _$Encounter12$appoint === void 0 ? void 0 : _$Encounter12$appoint[0]) !== null && _$Encounter$appointme2 !== void 0 ? _$Encounter$appointme2 : "",
|
|
39872
39877
|
enId: _.Encounter.id,
|
|
39873
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39874
|
-
personId: (_$Appointment$PersonI5 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39875
|
-
patientId: (_$Encounter$patient_i5 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39878
|
+
contact: _ === 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.telecom) === null || _$Encounter13$patient3 === void 0 ? void 0 : (_$Encounter13$patient4 = _$Encounter13$patient3[0]) === null || _$Encounter13$patient4 === void 0 ? void 0 : _$Encounter13$patient4.value,
|
|
39879
|
+
personId: (_$Appointment$PersonI5 = _ === 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$Perso2.Id) !== null && _$Appointment$PersonI5 !== void 0 ? _$Appointment$PersonI5 : null,
|
|
39880
|
+
patientId: (_$Encounter$patient_i5 = _ === 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.id) !== null && _$Encounter$patient_i5 !== void 0 ? _$Encounter$patient_i5 : null
|
|
39876
39881
|
}) // modifyaction: JSON.stringify({
|
|
39877
39882
|
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
39878
39883
|
// enId: _.Encounter.id,
|
|
@@ -39932,7 +39937,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
39932
39937
|
case 5:
|
|
39933
39938
|
data = _context4.sent;
|
|
39934
39939
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result4 = data.result) === null || _data$result4 === void 0 ? void 0 : _data$result4.map(function (_) {
|
|
39935
|
-
var _$
|
|
39940
|
+
var _$Encounter15, _$Encounter15$patient, _$Encounter15$patient2, _$Encounter15$patient3, _$Encounter16, _$Encounter16$patient, _$Encounter16$patient2, _$Appointment27, _$Appointment27$Perso, _$Appointment27$Perso2, _$Appointment28, _$Appointment29, _$Appointment30, _$Appointment31, _$Encounter17, _$Encounter$status$di3, _$Encounter18, _$Encounter18$status, _$Appointment$appno3, _$Appointment32, _$Encounter$appointme3, _$Encounter19, _$Encounter19$appoint, _$Encounter20, _$Encounter20$patient, _$Encounter20$patient2, _$Encounter20$patient3, _$Encounter20$patient4, _$Appointment$PersonI6, _$Appointment33, _$Appointment33$Perso, _$Appointment33$Perso2, _$Encounter$patient_i6, _$Encounter21, _$Encounter21$patient, _$Encounter21$patient2;
|
|
39936
39941
|
|
|
39937
39942
|
return {
|
|
39938
39943
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -39964,19 +39969,19 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
|
|
|
39964
39969
|
// "Modify Appointment": true,
|
|
39965
39970
|
// "Cancel Appointment": true,
|
|
39966
39971
|
// "View Profile": true,
|
|
39967
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39968
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39969
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39970
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
39971
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
39972
|
-
appointmentStatus: (_$Encounter$status$di3 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39973
|
-
refNo: (_$
|
|
39972
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter15 = _.Encounter) === null || _$Encounter15 === void 0 ? void 0 : (_$Encounter15$patient = _$Encounter15.patient_id) === null || _$Encounter15$patient === void 0 ? void 0 : (_$Encounter15$patient2 = _$Encounter15$patient[0]) === null || _$Encounter15$patient2 === void 0 ? void 0 : (_$Encounter15$patient3 = _$Encounter15$patient2.name) === null || _$Encounter15$patient3 === void 0 ? void 0 : _$Encounter15$patient3[0]) || {}),
|
|
39973
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter16 = _.Encounter) === null || _$Encounter16 === void 0 ? void 0 : (_$Encounter16$patient = _$Encounter16.patient_id) === null || _$Encounter16$patient === void 0 ? void 0 : (_$Encounter16$patient2 = _$Encounter16$patient[0]) === null || _$Encounter16$patient2 === void 0 ? void 0 : _$Encounter16$patient2.MRN) || "",
|
|
39974
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : (_$Appointment27$Perso = _$Appointment27.PersonID) === null || _$Appointment27$Perso === void 0 ? void 0 : (_$Appointment27$Perso2 = _$Appointment27$Perso[0]) === null || _$Appointment27$Perso2 === void 0 ? void 0 : _$Appointment27$Perso2.birthDay),
|
|
39975
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : _$Appointment28.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : _$Appointment29.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment30 = _.Appointment) === null || _$Appointment30 === void 0 ? void 0 : _$Appointment30.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment31 = _.Appointment) === null || _$Appointment31 === void 0 ? void 0 : _$Appointment31.start, "hh:mm A") : ""),
|
|
39976
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter17 = _.Encounter) === null || _$Encounter17 === void 0 ? void 0 : _$Encounter17.visit_type,
|
|
39977
|
+
appointmentStatus: (_$Encounter$status$di3 = _ === null || _ === void 0 ? void 0 : (_$Encounter18 = _.Encounter) === null || _$Encounter18 === void 0 ? void 0 : (_$Encounter18$status = _$Encounter18.status) === null || _$Encounter18$status === void 0 ? void 0 : _$Encounter18$status.display) !== null && _$Encounter$status$di3 !== void 0 ? _$Encounter$status$di3 : "",
|
|
39978
|
+
refNo: (_$Appointment$appno3 = _ === null || _ === void 0 ? void 0 : (_$Appointment32 = _.Appointment) === null || _$Appointment32 === void 0 ? void 0 : _$Appointment32.appno) !== null && _$Appointment$appno3 !== void 0 ? _$Appointment$appno3 : "",
|
|
39974
39979
|
action: JSON.stringify({
|
|
39975
|
-
appNo: (_$Encounter$
|
|
39980
|
+
appNo: (_$Encounter$appointme3 = _ === null || _ === void 0 ? void 0 : (_$Encounter19 = _.Encounter) === null || _$Encounter19 === void 0 ? void 0 : (_$Encounter19$appoint = _$Encounter19.appointmentId) === null || _$Encounter19$appoint === void 0 ? void 0 : _$Encounter19$appoint[0]) !== null && _$Encounter$appointme3 !== void 0 ? _$Encounter$appointme3 : "",
|
|
39976
39981
|
enId: _.Encounter.id,
|
|
39977
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39978
|
-
personId: (_$Appointment$PersonI6 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39979
|
-
patientId: (_$Encounter$patient_i6 = _ === null || _ === void 0 ? void 0 : (_$
|
|
39982
|
+
contact: _ === 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$patient3 = _$Encounter20$patient2.telecom) === null || _$Encounter20$patient3 === void 0 ? void 0 : (_$Encounter20$patient4 = _$Encounter20$patient3[0]) === null || _$Encounter20$patient4 === void 0 ? void 0 : _$Encounter20$patient4.value,
|
|
39983
|
+
personId: (_$Appointment$PersonI6 = _ === 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$Perso2.Id) !== null && _$Appointment$PersonI6 !== void 0 ? _$Appointment$PersonI6 : null,
|
|
39984
|
+
patientId: (_$Encounter$patient_i6 = _ === null || _ === void 0 ? void 0 : (_$Encounter21 = _.Encounter) === null || _$Encounter21 === void 0 ? void 0 : (_$Encounter21$patient = _$Encounter21.patient_id) === null || _$Encounter21$patient === void 0 ? void 0 : (_$Encounter21$patient2 = _$Encounter21$patient[0]) === null || _$Encounter21$patient2 === void 0 ? void 0 : _$Encounter21$patient2.id) !== null && _$Encounter$patient_i6 !== void 0 ? _$Encounter$patient_i6 : null
|
|
39980
39985
|
}) // modifyaction: JSON.stringify({
|
|
39981
39986
|
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
39982
39987
|
// enId: _.Encounter.id,
|
|
@@ -40036,7 +40041,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
40036
40041
|
case 5:
|
|
40037
40042
|
data = _context5.sent;
|
|
40038
40043
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result5 = data.result) === null || _data$result5 === void 0 ? void 0 : _data$result5.map(function (_) {
|
|
40039
|
-
var _$
|
|
40044
|
+
var _$Encounter22, _$Encounter22$patient, _$Encounter22$patient2, _$Encounter22$patient3, _$Encounter23, _$Encounter23$patient, _$Encounter23$patient2, _$Appointment34, _$Appointment34$Perso, _$Appointment34$Perso2, _$Appointment35, _$Appointment36, _$Appointment37, _$Appointment38, _$Encounter24, _$Encounter$status$di4, _$Encounter25, _$Encounter25$status, _$Appointment$appno4, _$Appointment39, _$Encounter$appointme4, _$Encounter26, _$Encounter26$appoint, _$Encounter27, _$Encounter27$patient, _$Encounter27$patient2, _$Encounter27$patient3, _$Encounter27$patient4, _$Appointment$PersonI7, _$Appointment40, _$Appointment40$Perso, _$Appointment40$Perso2, _$Encounter$patient_i7, _$Encounter28, _$Encounter28$patient, _$Encounter28$patient2;
|
|
40040
40045
|
|
|
40041
40046
|
return {
|
|
40042
40047
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40068,19 +40073,19 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
|
|
|
40068
40073
|
// "Modify Appointment": true,
|
|
40069
40074
|
// "Cancel Appointment": true,
|
|
40070
40075
|
// "View Profile": true,
|
|
40071
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40072
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40073
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40074
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
40075
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
40076
|
-
appointmentStatus: (_$Encounter$status$di4 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40077
|
-
refNo: (_$
|
|
40076
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter22 = _.Encounter) === null || _$Encounter22 === void 0 ? void 0 : (_$Encounter22$patient = _$Encounter22.patient_id) === null || _$Encounter22$patient === void 0 ? void 0 : (_$Encounter22$patient2 = _$Encounter22$patient[0]) === null || _$Encounter22$patient2 === void 0 ? void 0 : (_$Encounter22$patient3 = _$Encounter22$patient2.name) === null || _$Encounter22$patient3 === void 0 ? void 0 : _$Encounter22$patient3[0]) || {}),
|
|
40077
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter23 = _.Encounter) === null || _$Encounter23 === void 0 ? void 0 : (_$Encounter23$patient = _$Encounter23.patient_id) === null || _$Encounter23$patient === void 0 ? void 0 : (_$Encounter23$patient2 = _$Encounter23$patient[0]) === null || _$Encounter23$patient2 === void 0 ? void 0 : _$Encounter23$patient2.MRN) || "",
|
|
40078
|
+
age: getAge(_ === 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$Perso2.birthDay),
|
|
40079
|
+
date: "".concat((_ === 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") : "", ",").concat((_ === 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") : ""),
|
|
40080
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter24 = _.Encounter) === null || _$Encounter24 === void 0 ? void 0 : _$Encounter24.visit_type,
|
|
40081
|
+
appointmentStatus: (_$Encounter$status$di4 = _ === null || _ === void 0 ? void 0 : (_$Encounter25 = _.Encounter) === null || _$Encounter25 === void 0 ? void 0 : (_$Encounter25$status = _$Encounter25.status) === null || _$Encounter25$status === void 0 ? void 0 : _$Encounter25$status.display) !== null && _$Encounter$status$di4 !== void 0 ? _$Encounter$status$di4 : "",
|
|
40082
|
+
refNo: (_$Appointment$appno4 = _ === null || _ === void 0 ? void 0 : (_$Appointment39 = _.Appointment) === null || _$Appointment39 === void 0 ? void 0 : _$Appointment39.appno) !== null && _$Appointment$appno4 !== void 0 ? _$Appointment$appno4 : "",
|
|
40078
40083
|
action: JSON.stringify({
|
|
40079
|
-
appNo: (_$Encounter$
|
|
40084
|
+
appNo: (_$Encounter$appointme4 = _ === null || _ === void 0 ? void 0 : (_$Encounter26 = _.Encounter) === null || _$Encounter26 === void 0 ? void 0 : (_$Encounter26$appoint = _$Encounter26.appointmentId) === null || _$Encounter26$appoint === void 0 ? void 0 : _$Encounter26$appoint[0]) !== null && _$Encounter$appointme4 !== void 0 ? _$Encounter$appointme4 : "",
|
|
40080
40085
|
enId: _.Encounter.id,
|
|
40081
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
40082
|
-
personId: (_$Appointment$PersonI7 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40083
|
-
patientId: (_$Encounter$patient_i7 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40086
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter27 = _.Encounter) === null || _$Encounter27 === void 0 ? void 0 : (_$Encounter27$patient = _$Encounter27.patient_id) === null || _$Encounter27$patient === void 0 ? void 0 : (_$Encounter27$patient2 = _$Encounter27$patient[0]) === null || _$Encounter27$patient2 === void 0 ? void 0 : (_$Encounter27$patient3 = _$Encounter27$patient2.telecom) === null || _$Encounter27$patient3 === void 0 ? void 0 : (_$Encounter27$patient4 = _$Encounter27$patient3[0]) === null || _$Encounter27$patient4 === void 0 ? void 0 : _$Encounter27$patient4.value,
|
|
40087
|
+
personId: (_$Appointment$PersonI7 = _ === null || _ === void 0 ? void 0 : (_$Appointment40 = _.Appointment) === null || _$Appointment40 === void 0 ? void 0 : (_$Appointment40$Perso = _$Appointment40.PersonID) === null || _$Appointment40$Perso === void 0 ? void 0 : (_$Appointment40$Perso2 = _$Appointment40$Perso[0]) === null || _$Appointment40$Perso2 === void 0 ? void 0 : _$Appointment40$Perso2.Id) !== null && _$Appointment$PersonI7 !== void 0 ? _$Appointment$PersonI7 : null,
|
|
40088
|
+
patientId: (_$Encounter$patient_i7 = _ === null || _ === void 0 ? void 0 : (_$Encounter28 = _.Encounter) === null || _$Encounter28 === void 0 ? void 0 : (_$Encounter28$patient = _$Encounter28.patient_id) === null || _$Encounter28$patient === void 0 ? void 0 : (_$Encounter28$patient2 = _$Encounter28$patient[0]) === null || _$Encounter28$patient2 === void 0 ? void 0 : _$Encounter28$patient2.id) !== null && _$Encounter$patient_i7 !== void 0 ? _$Encounter$patient_i7 : null
|
|
40084
40089
|
}) // modifyaction: JSON.stringify({
|
|
40085
40090
|
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
40086
40091
|
// enId: _.Encounter.id,
|
|
@@ -40140,7 +40145,7 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
40140
40145
|
case 5:
|
|
40141
40146
|
data = _context6.sent;
|
|
40142
40147
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result6 = data.result) === null || _data$result6 === void 0 ? void 0 : _data$result6.map(function (_) {
|
|
40143
|
-
var _$
|
|
40148
|
+
var _$Encounter29, _$Encounter29$patient, _$Encounter29$patient2, _$Encounter29$patient3, _$Encounter30, _$Encounter30$patient, _$Encounter30$patient2, _$Appointment41, _$Appointment41$Perso, _$Appointment41$Perso2, _$Appointment42, _$Appointment43, _$Appointment44, _$Appointment45, _$Encounter31, _$Encounter$status$di5, _$Encounter32, _$Encounter32$status, _$Appointment$appno5, _$Appointment46, _$Encounter$appointme5, _$Encounter33, _$Encounter33$appoint, _$Encounter34, _$Encounter34$patient, _$Encounter34$patient2, _$Encounter34$patient3, _$Encounter34$patient4, _$Appointment$PersonI8, _$Appointment47, _$Appointment47$Perso, _$Appointment47$Perso2, _$Encounter$patient_i8, _$Encounter35, _$Encounter35$patient, _$Encounter35$patient2;
|
|
40144
40149
|
|
|
40145
40150
|
return {
|
|
40146
40151
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40172,19 +40177,19 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
40172
40177
|
// "Modify Appointment": true,
|
|
40173
40178
|
// "Cancel Appointment": true,
|
|
40174
40179
|
// "View Profile": true,
|
|
40175
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40176
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40177
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40178
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
40179
|
-
visitType: _ === null || _ === void 0 ? void 0 : (_$
|
|
40180
|
-
appointmentStatus: (_$Encounter$status$di5 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40181
|
-
refNo: (_$
|
|
40180
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter29 = _.Encounter) === null || _$Encounter29 === void 0 ? void 0 : (_$Encounter29$patient = _$Encounter29.patient_id) === null || _$Encounter29$patient === void 0 ? void 0 : (_$Encounter29$patient2 = _$Encounter29$patient[0]) === null || _$Encounter29$patient2 === void 0 ? void 0 : (_$Encounter29$patient3 = _$Encounter29$patient2.name) === null || _$Encounter29$patient3 === void 0 ? void 0 : _$Encounter29$patient3[0]) || {}),
|
|
40181
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$Encounter30 = _.Encounter) === null || _$Encounter30 === void 0 ? void 0 : (_$Encounter30$patient = _$Encounter30.patient_id) === null || _$Encounter30$patient === void 0 ? void 0 : (_$Encounter30$patient2 = _$Encounter30$patient[0]) === null || _$Encounter30$patient2 === void 0 ? void 0 : _$Encounter30$patient2.MRN) || "",
|
|
40182
|
+
age: getAge(_ === 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$Perso2.birthDay),
|
|
40183
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment42 = _.Appointment) === null || _$Appointment42 === void 0 ? void 0 : _$Appointment42.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : _$Appointment43.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : _$Appointment44.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : _$Appointment45.start, "hh:mm A") : ""),
|
|
40184
|
+
visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter31 = _.Encounter) === null || _$Encounter31 === void 0 ? void 0 : _$Encounter31.visit_type,
|
|
40185
|
+
appointmentStatus: (_$Encounter$status$di5 = _ === null || _ === void 0 ? void 0 : (_$Encounter32 = _.Encounter) === null || _$Encounter32 === void 0 ? void 0 : (_$Encounter32$status = _$Encounter32.status) === null || _$Encounter32$status === void 0 ? void 0 : _$Encounter32$status.display) !== null && _$Encounter$status$di5 !== void 0 ? _$Encounter$status$di5 : "",
|
|
40186
|
+
refNo: (_$Appointment$appno5 = _ === null || _ === void 0 ? void 0 : (_$Appointment46 = _.Appointment) === null || _$Appointment46 === void 0 ? void 0 : _$Appointment46.appno) !== null && _$Appointment$appno5 !== void 0 ? _$Appointment$appno5 : "",
|
|
40182
40187
|
action: JSON.stringify({
|
|
40183
|
-
appNo: (_$Encounter$
|
|
40188
|
+
appNo: (_$Encounter$appointme5 = _ === null || _ === void 0 ? void 0 : (_$Encounter33 = _.Encounter) === null || _$Encounter33 === void 0 ? void 0 : (_$Encounter33$appoint = _$Encounter33.appointmentId) === null || _$Encounter33$appoint === void 0 ? void 0 : _$Encounter33$appoint[0]) !== null && _$Encounter$appointme5 !== void 0 ? _$Encounter$appointme5 : "",
|
|
40184
40189
|
enId: _.Encounter.id,
|
|
40185
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
40186
|
-
personId: (_$Appointment$PersonI8 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40187
|
-
patientId: (_$Encounter$patient_i8 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40190
|
+
contact: _ === null || _ === void 0 ? void 0 : (_$Encounter34 = _.Encounter) === null || _$Encounter34 === void 0 ? void 0 : (_$Encounter34$patient = _$Encounter34.patient_id) === null || _$Encounter34$patient === void 0 ? void 0 : (_$Encounter34$patient2 = _$Encounter34$patient[0]) === null || _$Encounter34$patient2 === void 0 ? void 0 : (_$Encounter34$patient3 = _$Encounter34$patient2.telecom) === null || _$Encounter34$patient3 === void 0 ? void 0 : (_$Encounter34$patient4 = _$Encounter34$patient3[0]) === null || _$Encounter34$patient4 === void 0 ? void 0 : _$Encounter34$patient4.value,
|
|
40191
|
+
personId: (_$Appointment$PersonI8 = _ === null || _ === void 0 ? void 0 : (_$Appointment47 = _.Appointment) === null || _$Appointment47 === void 0 ? void 0 : (_$Appointment47$Perso = _$Appointment47.PersonID) === null || _$Appointment47$Perso === void 0 ? void 0 : (_$Appointment47$Perso2 = _$Appointment47$Perso[0]) === null || _$Appointment47$Perso2 === void 0 ? void 0 : _$Appointment47$Perso2.Id) !== null && _$Appointment$PersonI8 !== void 0 ? _$Appointment$PersonI8 : null,
|
|
40192
|
+
patientId: (_$Encounter$patient_i8 = _ === null || _ === void 0 ? void 0 : (_$Encounter35 = _.Encounter) === null || _$Encounter35 === void 0 ? void 0 : (_$Encounter35$patient = _$Encounter35.patient_id) === null || _$Encounter35$patient === void 0 ? void 0 : (_$Encounter35$patient2 = _$Encounter35$patient[0]) === null || _$Encounter35$patient2 === void 0 ? void 0 : _$Encounter35$patient2.id) !== null && _$Encounter$patient_i8 !== void 0 ? _$Encounter$patient_i8 : null
|
|
40188
40193
|
}) // modifyaction: JSON.stringify({
|
|
40189
40194
|
// appNo: _?.Encounter?.appointmentId?.[0] ?? "",
|
|
40190
40195
|
// enId: _.Encounter.id,
|
|
@@ -40245,7 +40250,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40245
40250
|
case 5:
|
|
40246
40251
|
data = _context7.sent;
|
|
40247
40252
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result7 = data.result) === null || _data$result7 === void 0 ? void 0 : _data$result7.map(function (_) {
|
|
40248
|
-
var _$
|
|
40253
|
+
var _$Appointment48, _$Appointment48$Perso, _$Appointment48$Perso2, _$Appointment48$Perso3, _$Appointment49, _$Appointment49$Perso, _$Appointment49$Perso2, _$Appointment50, _$Appointment50$Perso, _$Appointment50$Perso2, _$Appointment50$Perso3, _$Appointment51, _$Appointment51$Perso, _$Appointment51$Perso2, _$Appointment51$Perso3, _$Appointment51$Perso4, _$Appointment52, _$Appointment52$Perso, _$Appointment52$Perso2, _$Appointment52$Perso3, _$Appointment52$Perso4, _$Appointment$appoint2, _$Appointment53, _$Appointment54, _$Appointment55, _$Appointment56, _$Appointment57, _$Appointment58, _$Appointment59;
|
|
40249
40254
|
|
|
40250
40255
|
return {
|
|
40251
40256
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40253,16 +40258,16 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40253
40258
|
// _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
40254
40259
|
// )
|
|
40255
40260
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
40256
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40257
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40258
|
-
mrn: (_$
|
|
40261
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : (_$Appointment48$Perso = _$Appointment48.PersonID) === null || _$Appointment48$Perso === void 0 ? void 0 : (_$Appointment48$Perso2 = _$Appointment48$Perso[0]) === null || _$Appointment48$Perso2 === void 0 ? void 0 : (_$Appointment48$Perso3 = _$Appointment48$Perso2.name) === null || _$Appointment48$Perso3 === void 0 ? void 0 : _$Appointment48$Perso3[0]) || {}),
|
|
40262
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : (_$Appointment49$Perso = _$Appointment49.PersonID) === null || _$Appointment49$Perso === void 0 ? void 0 : (_$Appointment49$Perso2 = _$Appointment49$Perso[0]) === null || _$Appointment49$Perso2 === void 0 ? void 0 : _$Appointment49$Perso2.birthDay),
|
|
40263
|
+
mrn: (_$Appointment50 = _.Appointment) === null || _$Appointment50 === void 0 ? void 0 : (_$Appointment50$Perso = _$Appointment50.PersonID) === null || _$Appointment50$Perso === void 0 ? void 0 : (_$Appointment50$Perso2 = _$Appointment50$Perso[0]) === null || _$Appointment50$Perso2 === void 0 ? void 0 : (_$Appointment50$Perso3 = _$Appointment50$Perso2.MRN) === null || _$Appointment50$Perso3 === void 0 ? void 0 : _$Appointment50$Perso3[0],
|
|
40259
40264
|
// genderData: "M",
|
|
40260
|
-
contact: ((_$
|
|
40265
|
+
contact: ((_$Appointment51 = _.Appointment) === null || _$Appointment51 === void 0 ? void 0 : (_$Appointment51$Perso = _$Appointment51.PersonID) === null || _$Appointment51$Perso === void 0 ? void 0 : (_$Appointment51$Perso2 = _$Appointment51$Perso[0]) === null || _$Appointment51$Perso2 === void 0 ? void 0 : (_$Appointment51$Perso3 = _$Appointment51$Perso2.telecom) === null || _$Appointment51$Perso3 === void 0 ? void 0 : (_$Appointment51$Perso4 = _$Appointment51$Perso3[0]) === null || _$Appointment51$Perso4 === void 0 ? void 0 : _$Appointment51$Perso4.value) ? JSON.stringify((_$Appointment52 = _.Appointment) === null || _$Appointment52 === void 0 ? void 0 : (_$Appointment52$Perso = _$Appointment52.PersonID) === null || _$Appointment52$Perso === void 0 ? void 0 : (_$Appointment52$Perso2 = _$Appointment52$Perso[0]) === null || _$Appointment52$Perso2 === void 0 ? void 0 : (_$Appointment52$Perso3 = _$Appointment52$Perso2.telecom) === null || _$Appointment52$Perso3 === void 0 ? void 0 : (_$Appointment52$Perso4 = _$Appointment52$Perso3[0]) === null || _$Appointment52$Perso4 === void 0 ? void 0 : _$Appointment52$Perso4.value) : "",
|
|
40261
40266
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40262
40267
|
// age: _?.patient_id?.[0]?.age,
|
|
40263
|
-
visitType: (_$Appointment$appoint2 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40264
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
40265
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40268
|
+
visitType: (_$Appointment$appoint2 = _ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : _$Appointment53.appointmentType) !== null && _$Appointment$appoint2 !== void 0 ? _$Appointment$appoint2 : "",
|
|
40269
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment54 = _.Appointment) === null || _$Appointment54 === void 0 ? void 0 : _$Appointment54.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment55 = _.Appointment) === null || _$Appointment55 === void 0 ? void 0 : _$Appointment55.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment56 = _.Appointment) === null || _$Appointment56 === void 0 ? void 0 : _$Appointment56.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment57 = _.Appointment) === null || _$Appointment57 === void 0 ? void 0 : _$Appointment57.start, "hh:mm A") : ""),
|
|
40270
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : _$Appointment58.appno) || "",
|
|
40266
40271
|
// speciality: JSON.stringify({
|
|
40267
40272
|
// speciality: _?.Appointment?.SpecialtyID?.map((spl) => {
|
|
40268
40273
|
// return spl?.coding?.[0]?.display;
|
|
@@ -40270,7 +40275,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
40270
40275
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40271
40276
|
// }),
|
|
40272
40277
|
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
40273
|
-
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40278
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment59 = _.Appointment) === null || _$Appointment59 === void 0 ? void 0 : _$Appointment59.appstatus) || "",
|
|
40274
40279
|
// "View Patient": true,
|
|
40275
40280
|
// Attend: true,
|
|
40276
40281
|
// action: true,
|
|
@@ -40847,7 +40852,7 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40847
40852
|
case 5:
|
|
40848
40853
|
data = _context13.sent;
|
|
40849
40854
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result13 = data.result) === null || _data$result13 === void 0 ? void 0 : _data$result13.map(function (_) {
|
|
40850
|
-
var _$
|
|
40855
|
+
var _$Appointment60, _$Appointment60$Perso, _$Appointment60$Perso2, _$Appointment60$Perso3, _$Appointment61, _$Appointment61$Perso, _$Appointment61$Perso2, _$Appointment61$Perso3, _$Appointment62, _$Appointment62$Perso, _$Appointment62$Perso2, _$Appointment$appoint3, _$Appointment63, _$Appointment64, _$Appointment65, _$Appointment66, _$Appointment67, _$Appointment68, _$Appointment69;
|
|
40851
40856
|
|
|
40852
40857
|
return {
|
|
40853
40858
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
@@ -40862,12 +40867,12 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40862
40867
|
// // genderData: "M",
|
|
40863
40868
|
// contact: _.Appointment?.PersonID?.[0]?.telecom?.[0]?.value ?? ""
|
|
40864
40869
|
// }),
|
|
40865
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
40866
|
-
mrn: ((_$
|
|
40867
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
40868
|
-
visitType: (_$Appointment$appoint3 = _ === null || _ === void 0 ? void 0 : (_$
|
|
40869
|
-
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$
|
|
40870
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40870
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment60 = _.Appointment) === null || _$Appointment60 === void 0 ? void 0 : (_$Appointment60$Perso = _$Appointment60.PersonID) === null || _$Appointment60$Perso === void 0 ? void 0 : (_$Appointment60$Perso2 = _$Appointment60$Perso[0]) === null || _$Appointment60$Perso2 === void 0 ? void 0 : (_$Appointment60$Perso3 = _$Appointment60$Perso2.name) === null || _$Appointment60$Perso3 === void 0 ? void 0 : _$Appointment60$Perso3[0]) || {}),
|
|
40871
|
+
mrn: ((_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : (_$Appointment61$Perso = _$Appointment61.PersonID) === null || _$Appointment61$Perso === void 0 ? void 0 : (_$Appointment61$Perso2 = _$Appointment61$Perso[0]) === null || _$Appointment61$Perso2 === void 0 ? void 0 : (_$Appointment61$Perso3 = _$Appointment61$Perso2.MRN) === null || _$Appointment61$Perso3 === void 0 ? void 0 : _$Appointment61$Perso3[0]) || "",
|
|
40872
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment62 = _.Appointment) === null || _$Appointment62 === void 0 ? void 0 : (_$Appointment62$Perso = _$Appointment62.PersonID) === null || _$Appointment62$Perso === void 0 ? void 0 : (_$Appointment62$Perso2 = _$Appointment62$Perso[0]) === null || _$Appointment62$Perso2 === void 0 ? void 0 : _$Appointment62$Perso2.birthDay),
|
|
40873
|
+
visitType: (_$Appointment$appoint3 = _ === null || _ === void 0 ? void 0 : (_$Appointment63 = _.Appointment) === null || _$Appointment63 === void 0 ? void 0 : _$Appointment63.appointmentType) !== null && _$Appointment$appoint3 !== void 0 ? _$Appointment$appoint3 : "",
|
|
40874
|
+
date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment64 = _.Appointment) === null || _$Appointment64 === void 0 ? void 0 : _$Appointment64.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment65 = _.Appointment) === null || _$Appointment65 === void 0 ? void 0 : _$Appointment65.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : _$Appointment66.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment67 = _.Appointment) === null || _$Appointment67 === void 0 ? void 0 : _$Appointment67.start, "hh:mm A") : ""),
|
|
40875
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment68 = _.Appointment) === null || _$Appointment68 === void 0 ? void 0 : _$Appointment68.appno) || "",
|
|
40871
40876
|
// mrn: _?.patient_id?.[0]?.alias || "",
|
|
40872
40877
|
// age: _?.patient_id?.[0]?.age,
|
|
40873
40878
|
// date: JSON.stringify({
|
|
@@ -40886,7 +40891,7 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
40886
40891
|
// clinic: _?.Appointment?.orgid?.name ?? ""
|
|
40887
40892
|
// }),
|
|
40888
40893
|
// clinic: _?.practitioner_details?.[0]?.clinic || "",
|
|
40889
|
-
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$
|
|
40894
|
+
appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment69 = _.Appointment) === null || _$Appointment69 === void 0 ? void 0 : _$Appointment69.appstatus) || "",
|
|
40890
40895
|
// "View Patient": true,
|
|
40891
40896
|
// Attend: true,
|
|
40892
40897
|
action: true // type: "OP",
|
|
@@ -45107,14 +45112,14 @@ var GET_CLOSE_PRACTITIONER_LIST = createAsyncThunk("workListApiSlice/getClosePra
|
|
|
45107
45112
|
case 5:
|
|
45108
45113
|
data = _context3.sent;
|
|
45109
45114
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
|
|
45110
|
-
var
|
|
45115
|
+
var _makeName, _$patient_id, _$patient_id$, _$patient_id$$name, _$practitioner_detail, _$practitioner_detail2, _$practitioner_detail3, _$patient_id$0$alias, _$patient_id2, _$patient_id2$, _$patient_id$0$age, _$patient_id3, _$patient_id3$, _$patient_id4, _$patient_id4$, _$patient_id4$$teleco, _$patient_id4$$teleco2, _$patient_id5, _$patient_id5$, _$patient_id5$$teleco, _$patient_id5$$teleco2, _$appointmentId$appno, _$appointmentId, _$appointmentId2, _$appointmentId3, _ref7, _$visit_type, _$status$display, _$status;
|
|
45111
45116
|
|
|
45112
45117
|
return {
|
|
45113
|
-
name: (
|
|
45118
|
+
name: (_makeName = 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])) !== null && _makeName !== void 0 ? _makeName : "",
|
|
45114
45119
|
assignedPractitioner: (_$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.id_name) !== null && _$practitioner_detail !== void 0 ? _$practitioner_detail : "",
|
|
45115
45120
|
mrn: (_$patient_id$0$alias = _ === 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) !== null && _$patient_id$0$alias !== void 0 ? _$patient_id$0$alias : "",
|
|
45116
45121
|
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 : "",
|
|
45117
|
-
mobileNo: (_
|
|
45122
|
+
mobileNo: (_ === 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) ? JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id5 = _.patient_id) === null || _$patient_id5 === void 0 ? void 0 : (_$patient_id5$ = _$patient_id5[0]) === null || _$patient_id5$ === void 0 ? void 0 : (_$patient_id5$$teleco = _$patient_id5$.telecom) === null || _$patient_id5$$teleco === void 0 ? void 0 : (_$patient_id5$$teleco2 = _$patient_id5$$teleco[0]) === null || _$patient_id5$$teleco2 === void 0 ? void 0 : _$patient_id5$$teleco2.value) : "",
|
|
45118
45123
|
apptRefNo: (_$appointmentId$appno = _ === null || _ === void 0 ? void 0 : (_$appointmentId = _.appointmentId) === null || _$appointmentId === void 0 ? void 0 : _$appointmentId.appno) !== null && _$appointmentId$appno !== void 0 ? _$appointmentId$appno : "",
|
|
45119
45124
|
"apptDate&Time": (_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : _$appointmentId2.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId3 = _.appointmentId) === null || _$appointmentId3 === void 0 ? void 0 : _$appointmentId3.start, "DD MMM,YYYY hh:mm A") : "",
|
|
45120
45125
|
encounterNo: (_ref7 = "EN-".concat(_ === null || _ === void 0 ? void 0 : _._key)) !== null && _ref7 !== void 0 ? _ref7 : "",
|