primarycare-binder 1.1.36 → 1.1.37

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +67 -67
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -37986,7 +37986,7 @@ var query$4 = {
37986
37986
  // "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'",
37987
37987
 
37988
37988
  },
37989
- "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{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)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),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)}))})}"
37989
+ "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{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)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),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)}))})}"
37990
37990
  };
37991
37991
  },
37992
37992
  getFirstVisits: function getFirstVisits(data) {
@@ -38065,7 +38065,7 @@ var query$4 = {
38065
38065
  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, "'"),
38066
38066
  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")
38067
38067
  },
38068
- "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{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)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),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)}))})}"
38068
+ "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{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)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),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)}))})}"
38069
38069
  };
38070
38070
  },
38071
38071
  getFirstVisitsNurse: function getFirstVisitsNurse(data) {
@@ -38137,7 +38137,7 @@ var query$4 = {
38137
38137
  // "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'",
38138
38138
 
38139
38139
  },
38140
- "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{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)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),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)}))})}"
38140
+ "return_fields": "{Appointment:merge(Appointment,{orgid:document(Appointment.orgid)},{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)},{telecom:document(per.telecom)},{MRN:(for pat in Patient filter pat.personID==per.Id return pat.alias)},{age:(for pat in Patient filter pat.personID==per.Id return pat.age)})),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)}))})}"
38141
38141
  };
38142
38142
  },
38143
38143
  getFirstVisitsDoctor: function getFirstVisitsDoctor(data) {
@@ -38223,7 +38223,7 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
38223
38223
  case 5:
38224
38224
  data = _context.sent;
38225
38225
  returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
38226
- var _$Appointment, _$Appointment$PersonI, _$Appointment$PersonI2, _$Appointment$PersonI3, _$Appointment2, _$Appointment2$Person, _$Appointment2$Person2, _$Appointment2$Person3, _$Appointment3, _$Appointment3$Person, _$Appointment3$Person2, _$Appointment4, _$Appointment5, _$Appointment6, _$Appointment7, _$Appointment$appoint, _$Appointment8, _$Appointment9, _$Appointment10;
38226
+ var _$Appointment, _$Appointment$PersonI, _$Appointment$PersonI2, _$Appointment$PersonI3, _$Appointment2, _$Appointment2$Person, _$Appointment2$Person2, _$Appointment2$Person3, _$Appointment3, _$Appointment3$Person, _$Appointment3$Person2, _$Appointment4, _$Appointment5, _$Appointment6, _$Appointment7, _$Appointment$PersonI4, _$Appointment8, _$Appointment8$Person, _$Appointment8$Person2, _$Appointment8$Person3, _$Appointment8$Person4, _$Appointment$appoint, _$Appointment9, _$Appointment10, _$Appointment11;
38227
38227
 
38228
38228
  return {
38229
38229
  // img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
@@ -38246,10 +38246,10 @@ var GET_APPOINTMENTS = createAsyncThunk("appointmentStatsApiSlice/getAppointment
38246
38246
  // clinic: _?.Encounter?.practitioner_details?.[0]?.clinic,
38247
38247
  // dob: _?.Appointment?.PersonID?.[0]?.birthDay,
38248
38248
  // gender: _?.Appointment?.PersonID?.[0]?.gender,
38249
- // contact: _?.Encounter?.patient_id?.[0]?.telecom?.[0]?.value,
38250
- visitType: (_$Appointment$appoint = _ === null || _ === void 0 ? void 0 : (_$Appointment8 = _.Appointment) === null || _$Appointment8 === void 0 ? void 0 : _$Appointment8.appointmentType) !== null && _$Appointment$appoint !== void 0 ? _$Appointment$appoint : "",
38251
- appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment9 = _.Appointment) === null || _$Appointment9 === void 0 ? void 0 : _$Appointment9.appstatus) || "",
38252
- refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment10 = _.Appointment) === null || _$Appointment10 === void 0 ? void 0 : _$Appointment10.appno) || "",
38249
+ contact: (_$Appointment$PersonI4 = _ === null || _ === void 0 ? void 0 : (_$Appointment8 = _.Appointment) === null || _$Appointment8 === void 0 ? void 0 : (_$Appointment8$Person = _$Appointment8.PersonID) === null || _$Appointment8$Person === void 0 ? void 0 : (_$Appointment8$Person2 = _$Appointment8$Person[0]) === null || _$Appointment8$Person2 === void 0 ? void 0 : (_$Appointment8$Person3 = _$Appointment8$Person2.telecom) === null || _$Appointment8$Person3 === void 0 ? void 0 : (_$Appointment8$Person4 = _$Appointment8$Person3[0]) === null || _$Appointment8$Person4 === void 0 ? void 0 : _$Appointment8$Person4.value) !== null && _$Appointment$PersonI4 !== void 0 ? _$Appointment$PersonI4 : "",
38250
+ visitType: (_$Appointment$appoint = _ === null || _ === void 0 ? void 0 : (_$Appointment9 = _.Appointment) === null || _$Appointment9 === void 0 ? void 0 : _$Appointment9.appointmentType) !== null && _$Appointment$appoint !== void 0 ? _$Appointment$appoint : "",
38251
+ appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment10 = _.Appointment) === null || _$Appointment10 === void 0 ? void 0 : _$Appointment10.appstatus) || "",
38252
+ refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : _$Appointment11.appno) || "",
38253
38253
  // type: "OP",
38254
38254
  // "Register Visit": true,
38255
38255
  // "Modify Appointment": true,
@@ -38309,10 +38309,10 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
38309
38309
  case 5:
38310
38310
  data = _context2.sent;
38311
38311
  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 (_) {
38312
- var _$Appointment11, _$Appointment11$Perso, _$Appointment11$Perso2, _$Appointment11$Perso3, _$Appointment11$Perso4, _$Appointment12, _$Appointment12$Perso, _$Appointment12$Perso2, _$Appointment12$Perso3, _$Appointment12$Perso4, _$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, _$Encounter4, _$Encounter4$status, _$Encounter$appointme, _$Encounter5, _$Encounter5$appointm, _$Encounter$appointme2, _$Encounter6, _$Encounter6$appointm, _$Encounter7, _$Encounter7$patient_, _$Encounter7$patient_2, _$Encounter7$patient_3, _$Encounter7$patient_4, _$Appointment$PersonI4, _$Appointment18, _$Appointment18$Perso, _$Appointment18$Perso2, _$Encounter$patient_i4, _$Encounter8, _$Encounter8$patient_, _$Encounter8$patient_2, _$Encounter$appointme3, _$Encounter9, _$Encounter9$appointm, _$Encounter10, _$Encounter10$patient, _$Encounter10$patient2, _$Encounter10$patient3, _$Encounter10$patient4, _$Appointment$PersonI5, _$Appointment19, _$Appointment19$Perso, _$Appointment19$Perso2, _$Encounter$patient_i5, _$Encounter11, _$Encounter11$patient, _$Encounter11$patient2, _$Encounter$appointme4, _$Encounter12, _$Encounter12$appoint, _$Encounter13, _$Encounter13$patient, _$Encounter13$patient2, _$Encounter13$patient3, _$Encounter13$patient4, _$Appointment$PersonI6, _$Appointment20, _$Appointment20$Perso, _$Appointment20$Perso2, _$Encounter$patient_i6, _$Encounter14, _$Encounter14$patient, _$Encounter14$patient2;
38312
+ var _$Appointment12, _$Appointment12$Perso, _$Appointment12$Perso2, _$Appointment12$Perso3, _$Appointment12$Perso4, _$Appointment13, _$Appointment13$Perso, _$Appointment13$Perso2, _$Appointment13$Perso3, _$Appointment13$Perso4, _$Encounter, _$Encounter$patient_i, _$Encounter$patient_i2, _$Encounter$patient_i3, _$Encounter2, _$Encounter2$patient_, _$Encounter2$patient_2, _$Appointment14, _$Appointment14$Perso, _$Appointment14$Perso2, _$Appointment15, _$Appointment16, _$Appointment17, _$Appointment18, _$Encounter3, _$Encounter4, _$Encounter4$status, _$Encounter$appointme, _$Encounter5, _$Encounter5$appointm, _$Encounter$appointme2, _$Encounter6, _$Encounter6$appointm, _$Encounter7, _$Encounter7$patient_, _$Encounter7$patient_2, _$Encounter7$patient_3, _$Encounter7$patient_4, _$Appointment$PersonI5, _$Appointment19, _$Appointment19$Perso, _$Appointment19$Perso2, _$Encounter$patient_i4, _$Encounter8, _$Encounter8$patient_, _$Encounter8$patient_2, _$Encounter$appointme3, _$Encounter9, _$Encounter9$appointm, _$Encounter10, _$Encounter10$patient, _$Encounter10$patient2, _$Encounter10$patient3, _$Encounter10$patient4, _$Appointment$PersonI6, _$Appointment20, _$Appointment20$Perso, _$Appointment20$Perso2, _$Encounter$patient_i5, _$Encounter11, _$Encounter11$patient, _$Encounter11$patient2, _$Encounter$appointme4, _$Encounter12, _$Encounter12$appoint, _$Encounter13, _$Encounter13$patient, _$Encounter13$patient2, _$Encounter13$patient3, _$Encounter13$patient4, _$Appointment$PersonI7, _$Appointment21, _$Appointment21$Perso, _$Appointment21$Perso2, _$Encounter$patient_i6, _$Encounter14, _$Encounter14$patient, _$Encounter14$patient2;
38313
38313
 
38314
38314
  return {
38315
- img: (_ === null || _ === void 0 ? void 0 : (_$Appointment11 = _.Appointment) === null || _$Appointment11 === void 0 ? void 0 : (_$Appointment11$Perso = _$Appointment11.PersonID) === null || _$Appointment11$Perso === void 0 ? void 0 : (_$Appointment11$Perso2 = _$Appointment11$Perso[0]) === null || _$Appointment11$Perso2 === void 0 ? void 0 : (_$Appointment11$Perso3 = _$Appointment11$Perso2.photo) === null || _$Appointment11$Perso3 === void 0 ? void 0 : (_$Appointment11$Perso4 = _$Appointment11$Perso3[0]) === null || _$Appointment11$Perso4 === void 0 ? void 0 : _$Appointment11$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment12 = _.Appointment) === null || _$Appointment12 === void 0 ? void 0 : (_$Appointment12$Perso = _$Appointment12.PersonID) === null || _$Appointment12$Perso === void 0 ? void 0 : (_$Appointment12$Perso2 = _$Appointment12$Perso[0]) === null || _$Appointment12$Perso2 === void 0 ? void 0 : (_$Appointment12$Perso3 = _$Appointment12$Perso2.photo) === null || _$Appointment12$Perso3 === void 0 ? void 0 : (_$Appointment12$Perso4 = _$Appointment12$Perso3[0]) === null || _$Appointment12$Perso4 === void 0 ? void 0 : _$Appointment12$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
38315
+ img: (_ === null || _ === void 0 ? void 0 : (_$Appointment12 = _.Appointment) === null || _$Appointment12 === void 0 ? void 0 : (_$Appointment12$Perso = _$Appointment12.PersonID) === null || _$Appointment12$Perso === void 0 ? void 0 : (_$Appointment12$Perso2 = _$Appointment12$Perso[0]) === null || _$Appointment12$Perso2 === void 0 ? void 0 : (_$Appointment12$Perso3 = _$Appointment12$Perso2.photo) === null || _$Appointment12$Perso3 === void 0 ? void 0 : (_$Appointment12$Perso4 = _$Appointment12$Perso3[0]) === null || _$Appointment12$Perso4 === void 0 ? void 0 : _$Appointment12$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment13 = _.Appointment) === null || _$Appointment13 === void 0 ? void 0 : (_$Appointment13$Perso = _$Appointment13.PersonID) === null || _$Appointment13$Perso === void 0 ? void 0 : (_$Appointment13$Perso2 = _$Appointment13$Perso[0]) === null || _$Appointment13$Perso2 === void 0 ? void 0 : (_$Appointment13$Perso3 = _$Appointment13$Perso2.photo) === null || _$Appointment13$Perso3 === void 0 ? void 0 : (_$Appointment13$Perso4 = _$Appointment13$Perso3[0]) === null || _$Appointment13$Perso4 === void 0 ? void 0 : _$Appointment13$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
38316
38316
  // name: makeName(_?.Encounter?.patient_id?.[0]?.name?.[0] || {}),
38317
38317
  // mrn: _?.Encounter?.patient_id?.[0]?.MRN,
38318
38318
  // date: _?.Appointment?.start
@@ -38341,8 +38341,8 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
38341
38341
  // "View Profile": true,
38342
38342
  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]) || {}),
38343
38343
  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,
38344
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment13 = _.Appointment) === null || _$Appointment13 === void 0 ? void 0 : (_$Appointment13$Perso = _$Appointment13.PersonID) === null || _$Appointment13$Perso === void 0 ? void 0 : (_$Appointment13$Perso2 = _$Appointment13$Perso[0]) === null || _$Appointment13$Perso2 === void 0 ? void 0 : _$Appointment13$Perso2.birthDay),
38345
- 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") : ""),
38344
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment14 = _.Appointment) === null || _$Appointment14 === void 0 ? void 0 : (_$Appointment14$Perso = _$Appointment14.PersonID) === null || _$Appointment14$Perso === void 0 ? void 0 : (_$Appointment14$Perso2 = _$Appointment14$Perso[0]) === null || _$Appointment14$Perso2 === void 0 ? void 0 : _$Appointment14$Perso2.birthDay),
38345
+ date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment15 = _.Appointment) === null || _$Appointment15 === void 0 ? void 0 : _$Appointment15.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment16 = _.Appointment) === null || _$Appointment16 === void 0 ? void 0 : _$Appointment16.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment17 = _.Appointment) === null || _$Appointment17 === void 0 ? void 0 : _$Appointment17.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment18 = _.Appointment) === null || _$Appointment18 === void 0 ? void 0 : _$Appointment18.start, "hh:mm A") : ""),
38346
38346
  visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter3 = _.Encounter) === null || _$Encounter3 === void 0 ? void 0 : _$Encounter3.visit_type,
38347
38347
  appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter4 = _.Encounter) === null || _$Encounter4 === void 0 ? void 0 : (_$Encounter4$status = _$Encounter4.status) === null || _$Encounter4$status === void 0 ? void 0 : _$Encounter4$status.display,
38348
38348
  refNo: (_$Encounter$appointme = _ === null || _ === void 0 ? void 0 : (_$Encounter5 = _.Encounter) === null || _$Encounter5 === void 0 ? void 0 : (_$Encounter5$appointm = _$Encounter5.appointmentId) === null || _$Encounter5$appointm === void 0 ? void 0 : _$Encounter5$appointm[0]) !== null && _$Encounter$appointme !== void 0 ? _$Encounter$appointme : "",
@@ -38350,21 +38350,21 @@ var GET_FIRST_VISITS = createAsyncThunk("appointmentStatsApiSlice/getFirstVisits
38350
38350
  appNo: (_$Encounter$appointme2 = _ === null || _ === void 0 ? void 0 : (_$Encounter6 = _.Encounter) === null || _$Encounter6 === void 0 ? void 0 : (_$Encounter6$appointm = _$Encounter6.appointmentId) === null || _$Encounter6$appointm === void 0 ? void 0 : _$Encounter6$appointm[0]) !== null && _$Encounter$appointme2 !== void 0 ? _$Encounter$appointme2 : "",
38351
38351
  enId: _.Encounter.id,
38352
38352
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter7 = _.Encounter) === null || _$Encounter7 === void 0 ? void 0 : (_$Encounter7$patient_ = _$Encounter7.patient_id) === null || _$Encounter7$patient_ === void 0 ? void 0 : (_$Encounter7$patient_2 = _$Encounter7$patient_[0]) === null || _$Encounter7$patient_2 === void 0 ? void 0 : (_$Encounter7$patient_3 = _$Encounter7$patient_2.telecom) === null || _$Encounter7$patient_3 === void 0 ? void 0 : (_$Encounter7$patient_4 = _$Encounter7$patient_3[0]) === null || _$Encounter7$patient_4 === void 0 ? void 0 : _$Encounter7$patient_4.value,
38353
- personId: (_$Appointment$PersonI4 = _ === null || _ === void 0 ? void 0 : (_$Appointment18 = _.Appointment) === null || _$Appointment18 === void 0 ? void 0 : (_$Appointment18$Perso = _$Appointment18.PersonID) === null || _$Appointment18$Perso === void 0 ? void 0 : (_$Appointment18$Perso2 = _$Appointment18$Perso[0]) === null || _$Appointment18$Perso2 === void 0 ? void 0 : _$Appointment18$Perso2.Id) !== null && _$Appointment$PersonI4 !== void 0 ? _$Appointment$PersonI4 : null,
38353
+ personId: (_$Appointment$PersonI5 = _ === 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$PersonI5 !== void 0 ? _$Appointment$PersonI5 : null,
38354
38354
  patientId: (_$Encounter$patient_i4 = _ === null || _ === void 0 ? void 0 : (_$Encounter8 = _.Encounter) === null || _$Encounter8 === void 0 ? void 0 : (_$Encounter8$patient_ = _$Encounter8.patient_id) === null || _$Encounter8$patient_ === void 0 ? void 0 : (_$Encounter8$patient_2 = _$Encounter8$patient_[0]) === null || _$Encounter8$patient_2 === void 0 ? void 0 : _$Encounter8$patient_2.id) !== null && _$Encounter$patient_i4 !== void 0 ? _$Encounter$patient_i4 : null
38355
38355
  }),
38356
38356
  modifyaction: JSON.stringify({
38357
38357
  appNo: (_$Encounter$appointme3 = _ === null || _ === void 0 ? void 0 : (_$Encounter9 = _.Encounter) === null || _$Encounter9 === void 0 ? void 0 : (_$Encounter9$appointm = _$Encounter9.appointmentId) === null || _$Encounter9$appointm === void 0 ? void 0 : _$Encounter9$appointm[0]) !== null && _$Encounter$appointme3 !== void 0 ? _$Encounter$appointme3 : "",
38358
38358
  enId: _.Encounter.id,
38359
38359
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter10 = _.Encounter) === null || _$Encounter10 === void 0 ? void 0 : (_$Encounter10$patient = _$Encounter10.patient_id) === null || _$Encounter10$patient === void 0 ? void 0 : (_$Encounter10$patient2 = _$Encounter10$patient[0]) === null || _$Encounter10$patient2 === void 0 ? void 0 : (_$Encounter10$patient3 = _$Encounter10$patient2.telecom) === null || _$Encounter10$patient3 === void 0 ? void 0 : (_$Encounter10$patient4 = _$Encounter10$patient3[0]) === null || _$Encounter10$patient4 === void 0 ? void 0 : _$Encounter10$patient4.value,
38360
- personId: (_$Appointment$PersonI5 = _ === 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$PersonI5 !== void 0 ? _$Appointment$PersonI5 : null,
38360
+ personId: (_$Appointment$PersonI6 = _ === 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.Id) !== null && _$Appointment$PersonI6 !== void 0 ? _$Appointment$PersonI6 : null,
38361
38361
  patientId: (_$Encounter$patient_i5 = _ === 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.id) !== null && _$Encounter$patient_i5 !== void 0 ? _$Encounter$patient_i5 : null
38362
38362
  }),
38363
38363
  cancelaction: JSON.stringify({
38364
38364
  appNo: (_$Encounter$appointme4 = _ === 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$appointme4 !== void 0 ? _$Encounter$appointme4 : "",
38365
38365
  enId: _.Encounter.id,
38366
38366
  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,
38367
- personId: (_$Appointment$PersonI6 = _ === 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.Id) !== null && _$Appointment$PersonI6 !== void 0 ? _$Appointment$PersonI6 : null,
38367
+ personId: (_$Appointment$PersonI7 = _ === null || _ === void 0 ? void 0 : (_$Appointment21 = _.Appointment) === null || _$Appointment21 === void 0 ? void 0 : (_$Appointment21$Perso = _$Appointment21.PersonID) === null || _$Appointment21$Perso === void 0 ? void 0 : (_$Appointment21$Perso2 = _$Appointment21$Perso[0]) === null || _$Appointment21$Perso2 === void 0 ? void 0 : _$Appointment21$Perso2.Id) !== null && _$Appointment$PersonI7 !== void 0 ? _$Appointment$PersonI7 : null,
38368
38368
  patientId: (_$Encounter$patient_i6 = _ === 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_i6 !== void 0 ? _$Encounter$patient_i6 : null
38369
38369
  })
38370
38370
  };
@@ -38411,7 +38411,7 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
38411
38411
  case 5:
38412
38412
  data = _context3.sent;
38413
38413
  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 (_) {
38414
- var _$Encounter15, _$Encounter15$patient, _$Encounter15$patient2, _$Encounter15$patient3, _$Encounter16, _$Encounter16$patient, _$Encounter16$patient2, _$Appointment21, _$Appointment21$Perso, _$Appointment21$Perso2, _$Appointment22, _$Appointment23, _$Appointment24, _$Appointment25, _$Encounter17, _$Encounter18, _$Encounter18$status, _$Encounter$appointme5, _$Encounter19, _$Encounter19$appoint, _$Encounter$appointme6, _$Encounter20, _$Encounter20$appoint, _$Encounter21, _$Encounter21$patient, _$Encounter21$patient2, _$Encounter21$patient3, _$Encounter21$patient4, _$Appointment$PersonI7, _$Appointment26, _$Appointment26$Perso, _$Appointment26$Perso2, _$Encounter$patient_i7, _$Encounter22, _$Encounter22$patient, _$Encounter22$patient2, _$Encounter$appointme7, _$Encounter23, _$Encounter23$appoint, _$Encounter24, _$Encounter24$patient, _$Encounter24$patient2, _$Encounter24$patient3, _$Encounter24$patient4, _$Appointment$PersonI8, _$Appointment27, _$Appointment27$Perso, _$Appointment27$Perso2, _$Encounter$patient_i8, _$Encounter25, _$Encounter25$patient, _$Encounter25$patient2, _$Encounter$appointme8, _$Encounter26, _$Encounter26$appoint, _$Encounter27, _$Encounter27$patient, _$Encounter27$patient2, _$Encounter27$patient3, _$Encounter27$patient4, _$Appointment$PersonI9, _$Appointment28, _$Appointment28$Perso, _$Appointment28$Perso2, _$Encounter$patient_i9, _$Encounter28, _$Encounter28$patient, _$Encounter28$patient2;
38414
+ var _$Encounter15, _$Encounter15$patient, _$Encounter15$patient2, _$Encounter15$patient3, _$Encounter16, _$Encounter16$patient, _$Encounter16$patient2, _$Appointment22, _$Appointment22$Perso, _$Appointment22$Perso2, _$Appointment23, _$Appointment24, _$Appointment25, _$Appointment26, _$Encounter17, _$Encounter18, _$Encounter18$status, _$Encounter$appointme5, _$Encounter19, _$Encounter19$appoint, _$Encounter$appointme6, _$Encounter20, _$Encounter20$appoint, _$Encounter21, _$Encounter21$patient, _$Encounter21$patient2, _$Encounter21$patient3, _$Encounter21$patient4, _$Appointment$PersonI8, _$Appointment27, _$Appointment27$Perso, _$Appointment27$Perso2, _$Encounter$patient_i7, _$Encounter22, _$Encounter22$patient, _$Encounter22$patient2, _$Encounter$appointme7, _$Encounter23, _$Encounter23$appoint, _$Encounter24, _$Encounter24$patient, _$Encounter24$patient2, _$Encounter24$patient3, _$Encounter24$patient4, _$Appointment$PersonI9, _$Appointment28, _$Appointment28$Perso, _$Appointment28$Perso2, _$Encounter$patient_i8, _$Encounter25, _$Encounter25$patient, _$Encounter25$patient2, _$Encounter$appointme8, _$Encounter26, _$Encounter26$appoint, _$Encounter27, _$Encounter27$patient, _$Encounter27$patient2, _$Encounter27$patient3, _$Encounter27$patient4, _$Appointment$PersonI10, _$Appointment29, _$Appointment29$Perso, _$Appointment29$Perso2, _$Encounter$patient_i9, _$Encounter28, _$Encounter28$patient, _$Encounter28$patient2;
38415
38415
 
38416
38416
  return {
38417
38417
  // img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
@@ -38445,8 +38445,8 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
38445
38445
  // "View Profile": true,
38446
38446
  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]) || {}),
38447
38447
  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,
38448
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment21 = _.Appointment) === null || _$Appointment21 === void 0 ? void 0 : (_$Appointment21$Perso = _$Appointment21.PersonID) === null || _$Appointment21$Perso === void 0 ? void 0 : (_$Appointment21$Perso2 = _$Appointment21$Perso[0]) === null || _$Appointment21$Perso2 === void 0 ? void 0 : _$Appointment21$Perso2.birthDay),
38449
- date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment22 = _.Appointment) === null || _$Appointment22 === void 0 ? void 0 : _$Appointment22.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment23 = _.Appointment) === null || _$Appointment23 === void 0 ? void 0 : _$Appointment23.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment24 = _.Appointment) === null || _$Appointment24 === void 0 ? void 0 : _$Appointment24.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment25 = _.Appointment) === null || _$Appointment25 === void 0 ? void 0 : _$Appointment25.start, "hh:mm A") : ""),
38448
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment22 = _.Appointment) === null || _$Appointment22 === void 0 ? void 0 : (_$Appointment22$Perso = _$Appointment22.PersonID) === null || _$Appointment22$Perso === void 0 ? void 0 : (_$Appointment22$Perso2 = _$Appointment22$Perso[0]) === null || _$Appointment22$Perso2 === void 0 ? void 0 : _$Appointment22$Perso2.birthDay),
38449
+ date: "".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, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment25 = _.Appointment) === null || _$Appointment25 === void 0 ? void 0 : _$Appointment25.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment26 = _.Appointment) === null || _$Appointment26 === void 0 ? void 0 : _$Appointment26.start, "hh:mm A") : ""),
38450
38450
  visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter17 = _.Encounter) === null || _$Encounter17 === void 0 ? void 0 : _$Encounter17.visit_type,
38451
38451
  appointmentStatus: _ === 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,
38452
38452
  refNo: (_$Encounter$appointme5 = _ === 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$appointme5 !== void 0 ? _$Encounter$appointme5 : "",
@@ -38454,21 +38454,21 @@ var GET_OTHER_VISITS = createAsyncThunk("appointmentStatsApiSlice/getOtherVisits
38454
38454
  appNo: (_$Encounter$appointme6 = _ === null || _ === void 0 ? void 0 : (_$Encounter20 = _.Encounter) === null || _$Encounter20 === void 0 ? void 0 : (_$Encounter20$appoint = _$Encounter20.appointmentId) === null || _$Encounter20$appoint === void 0 ? void 0 : _$Encounter20$appoint[0]) !== null && _$Encounter$appointme6 !== void 0 ? _$Encounter$appointme6 : "",
38455
38455
  enId: _.Encounter.id,
38456
38456
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter21 = _.Encounter) === null || _$Encounter21 === void 0 ? void 0 : (_$Encounter21$patient = _$Encounter21.patient_id) === null || _$Encounter21$patient === void 0 ? void 0 : (_$Encounter21$patient2 = _$Encounter21$patient[0]) === null || _$Encounter21$patient2 === void 0 ? void 0 : (_$Encounter21$patient3 = _$Encounter21$patient2.telecom) === null || _$Encounter21$patient3 === void 0 ? void 0 : (_$Encounter21$patient4 = _$Encounter21$patient3[0]) === null || _$Encounter21$patient4 === void 0 ? void 0 : _$Encounter21$patient4.value,
38457
- personId: (_$Appointment$PersonI7 = _ === 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$PersonI7 !== void 0 ? _$Appointment$PersonI7 : null,
38457
+ personId: (_$Appointment$PersonI8 = _ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : (_$Appointment27$Perso = _$Appointment27.PersonID) === null || _$Appointment27$Perso === void 0 ? void 0 : (_$Appointment27$Perso2 = _$Appointment27$Perso[0]) === null || _$Appointment27$Perso2 === void 0 ? void 0 : _$Appointment27$Perso2.Id) !== null && _$Appointment$PersonI8 !== void 0 ? _$Appointment$PersonI8 : null,
38458
38458
  patientId: (_$Encounter$patient_i7 = _ === null || _ === void 0 ? void 0 : (_$Encounter22 = _.Encounter) === null || _$Encounter22 === void 0 ? void 0 : (_$Encounter22$patient = _$Encounter22.patient_id) === null || _$Encounter22$patient === void 0 ? void 0 : (_$Encounter22$patient2 = _$Encounter22$patient[0]) === null || _$Encounter22$patient2 === void 0 ? void 0 : _$Encounter22$patient2.id) !== null && _$Encounter$patient_i7 !== void 0 ? _$Encounter$patient_i7 : null
38459
38459
  }),
38460
38460
  modifyaction: JSON.stringify({
38461
38461
  appNo: (_$Encounter$appointme7 = _ === null || _ === void 0 ? void 0 : (_$Encounter23 = _.Encounter) === null || _$Encounter23 === void 0 ? void 0 : (_$Encounter23$appoint = _$Encounter23.appointmentId) === null || _$Encounter23$appoint === void 0 ? void 0 : _$Encounter23$appoint[0]) !== null && _$Encounter$appointme7 !== void 0 ? _$Encounter$appointme7 : "",
38462
38462
  enId: _.Encounter.id,
38463
38463
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter24 = _.Encounter) === null || _$Encounter24 === void 0 ? void 0 : (_$Encounter24$patient = _$Encounter24.patient_id) === null || _$Encounter24$patient === void 0 ? void 0 : (_$Encounter24$patient2 = _$Encounter24$patient[0]) === null || _$Encounter24$patient2 === void 0 ? void 0 : (_$Encounter24$patient3 = _$Encounter24$patient2.telecom) === null || _$Encounter24$patient3 === void 0 ? void 0 : (_$Encounter24$patient4 = _$Encounter24$patient3[0]) === null || _$Encounter24$patient4 === void 0 ? void 0 : _$Encounter24$patient4.value,
38464
- personId: (_$Appointment$PersonI8 = _ === null || _ === void 0 ? void 0 : (_$Appointment27 = _.Appointment) === null || _$Appointment27 === void 0 ? void 0 : (_$Appointment27$Perso = _$Appointment27.PersonID) === null || _$Appointment27$Perso === void 0 ? void 0 : (_$Appointment27$Perso2 = _$Appointment27$Perso[0]) === null || _$Appointment27$Perso2 === void 0 ? void 0 : _$Appointment27$Perso2.Id) !== null && _$Appointment$PersonI8 !== void 0 ? _$Appointment$PersonI8 : null,
38464
+ personId: (_$Appointment$PersonI9 = _ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : (_$Appointment28$Perso = _$Appointment28.PersonID) === null || _$Appointment28$Perso === void 0 ? void 0 : (_$Appointment28$Perso2 = _$Appointment28$Perso[0]) === null || _$Appointment28$Perso2 === void 0 ? void 0 : _$Appointment28$Perso2.Id) !== null && _$Appointment$PersonI9 !== void 0 ? _$Appointment$PersonI9 : null,
38465
38465
  patientId: (_$Encounter$patient_i8 = _ === null || _ === void 0 ? void 0 : (_$Encounter25 = _.Encounter) === null || _$Encounter25 === void 0 ? void 0 : (_$Encounter25$patient = _$Encounter25.patient_id) === null || _$Encounter25$patient === void 0 ? void 0 : (_$Encounter25$patient2 = _$Encounter25$patient[0]) === null || _$Encounter25$patient2 === void 0 ? void 0 : _$Encounter25$patient2.id) !== null && _$Encounter$patient_i8 !== void 0 ? _$Encounter$patient_i8 : null
38466
38466
  }),
38467
38467
  cancelaction: JSON.stringify({
38468
38468
  appNo: (_$Encounter$appointme8 = _ === null || _ === void 0 ? void 0 : (_$Encounter26 = _.Encounter) === null || _$Encounter26 === void 0 ? void 0 : (_$Encounter26$appoint = _$Encounter26.appointmentId) === null || _$Encounter26$appoint === void 0 ? void 0 : _$Encounter26$appoint[0]) !== null && _$Encounter$appointme8 !== void 0 ? _$Encounter$appointme8 : "",
38469
38469
  enId: _.Encounter.id,
38470
38470
  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,
38471
- personId: (_$Appointment$PersonI9 = _ === null || _ === void 0 ? void 0 : (_$Appointment28 = _.Appointment) === null || _$Appointment28 === void 0 ? void 0 : (_$Appointment28$Perso = _$Appointment28.PersonID) === null || _$Appointment28$Perso === void 0 ? void 0 : (_$Appointment28$Perso2 = _$Appointment28$Perso[0]) === null || _$Appointment28$Perso2 === void 0 ? void 0 : _$Appointment28$Perso2.Id) !== null && _$Appointment$PersonI9 !== void 0 ? _$Appointment$PersonI9 : null,
38471
+ personId: (_$Appointment$PersonI10 = _ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : (_$Appointment29$Perso = _$Appointment29.PersonID) === null || _$Appointment29$Perso === void 0 ? void 0 : (_$Appointment29$Perso2 = _$Appointment29$Perso[0]) === null || _$Appointment29$Perso2 === void 0 ? void 0 : _$Appointment29$Perso2.Id) !== null && _$Appointment$PersonI10 !== void 0 ? _$Appointment$PersonI10 : null,
38472
38472
  patientId: (_$Encounter$patient_i9 = _ === 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_i9 !== void 0 ? _$Encounter$patient_i9 : null
38473
38473
  })
38474
38474
  };
@@ -38515,7 +38515,7 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
38515
38515
  case 5:
38516
38516
  data = _context4.sent;
38517
38517
  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 (_) {
38518
- var _$Encounter29, _$Encounter29$patient, _$Encounter29$patient2, _$Encounter29$patient3, _$Encounter30, _$Encounter30$patient, _$Encounter30$patient2, _$Appointment29, _$Appointment29$Perso, _$Appointment29$Perso2, _$Appointment30, _$Appointment31, _$Appointment32, _$Appointment33, _$Encounter31, _$Encounter32, _$Encounter32$status, _$Encounter$appointme9, _$Encounter33, _$Encounter33$appoint, _$Encounter$appointme10, _$Encounter34, _$Encounter34$appoint, _$Encounter35, _$Encounter35$patient, _$Encounter35$patient2, _$Encounter35$patient3, _$Encounter35$patient4, _$Appointment$PersonI10, _$Appointment34, _$Appointment34$Perso, _$Appointment34$Perso2, _$Encounter$patient_i10, _$Encounter36, _$Encounter36$patient, _$Encounter36$patient2, _$Encounter$appointme11, _$Encounter37, _$Encounter37$appoint, _$Encounter38, _$Encounter38$patient, _$Encounter38$patient2, _$Encounter38$patient3, _$Encounter38$patient4, _$Appointment$PersonI11, _$Appointment35, _$Appointment35$Perso, _$Appointment35$Perso2, _$Encounter$patient_i11, _$Encounter39, _$Encounter39$patient, _$Encounter39$patient2, _$Encounter$appointme12, _$Encounter40, _$Encounter40$appoint, _$Encounter41, _$Encounter41$patient, _$Encounter41$patient2, _$Encounter41$patient3, _$Encounter41$patient4, _$Appointment$PersonI12, _$Appointment36, _$Appointment36$Perso, _$Appointment36$Perso2, _$Encounter$patient_i12, _$Encounter42, _$Encounter42$patient, _$Encounter42$patient2;
38518
+ var _$Encounter29, _$Encounter29$patient, _$Encounter29$patient2, _$Encounter29$patient3, _$Encounter30, _$Encounter30$patient, _$Encounter30$patient2, _$Appointment30, _$Appointment30$Perso, _$Appointment30$Perso2, _$Appointment31, _$Appointment32, _$Appointment33, _$Appointment34, _$Encounter31, _$Encounter32, _$Encounter32$status, _$Encounter$appointme9, _$Encounter33, _$Encounter33$appoint, _$Encounter$appointme10, _$Encounter34, _$Encounter34$appoint, _$Encounter35, _$Encounter35$patient, _$Encounter35$patient2, _$Encounter35$patient3, _$Encounter35$patient4, _$Appointment$PersonI11, _$Appointment35, _$Appointment35$Perso, _$Appointment35$Perso2, _$Encounter$patient_i10, _$Encounter36, _$Encounter36$patient, _$Encounter36$patient2, _$Encounter$appointme11, _$Encounter37, _$Encounter37$appoint, _$Encounter38, _$Encounter38$patient, _$Encounter38$patient2, _$Encounter38$patient3, _$Encounter38$patient4, _$Appointment$PersonI12, _$Appointment36, _$Appointment36$Perso, _$Appointment36$Perso2, _$Encounter$patient_i11, _$Encounter39, _$Encounter39$patient, _$Encounter39$patient2, _$Encounter$appointme12, _$Encounter40, _$Encounter40$appoint, _$Encounter41, _$Encounter41$patient, _$Encounter41$patient2, _$Encounter41$patient3, _$Encounter41$patient4, _$Appointment$PersonI13, _$Appointment37, _$Appointment37$Perso, _$Appointment37$Perso2, _$Encounter$patient_i12, _$Encounter42, _$Encounter42$patient, _$Encounter42$patient2;
38519
38519
 
38520
38520
  return {
38521
38521
  // img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
@@ -38549,8 +38549,8 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
38549
38549
  // "View Profile": true,
38550
38550
  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]) || {}),
38551
38551
  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,
38552
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment29 = _.Appointment) === null || _$Appointment29 === void 0 ? void 0 : (_$Appointment29$Perso = _$Appointment29.PersonID) === null || _$Appointment29$Perso === void 0 ? void 0 : (_$Appointment29$Perso2 = _$Appointment29$Perso[0]) === null || _$Appointment29$Perso2 === void 0 ? void 0 : _$Appointment29$Perso2.birthDay),
38553
- date: "".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, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment32 = _.Appointment) === null || _$Appointment32 === void 0 ? void 0 : _$Appointment32.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment33 = _.Appointment) === null || _$Appointment33 === void 0 ? void 0 : _$Appointment33.start, "hh:mm A") : ""),
38552
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment30 = _.Appointment) === null || _$Appointment30 === void 0 ? void 0 : (_$Appointment30$Perso = _$Appointment30.PersonID) === null || _$Appointment30$Perso === void 0 ? void 0 : (_$Appointment30$Perso2 = _$Appointment30$Perso[0]) === null || _$Appointment30$Perso2 === void 0 ? void 0 : _$Appointment30$Perso2.birthDay),
38553
+ date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment31 = _.Appointment) === null || _$Appointment31 === void 0 ? void 0 : _$Appointment31.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment32 = _.Appointment) === null || _$Appointment32 === void 0 ? void 0 : _$Appointment32.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment33 = _.Appointment) === null || _$Appointment33 === void 0 ? void 0 : _$Appointment33.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment34 = _.Appointment) === null || _$Appointment34 === void 0 ? void 0 : _$Appointment34.start, "hh:mm A") : ""),
38554
38554
  visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter31 = _.Encounter) === null || _$Encounter31 === void 0 ? void 0 : _$Encounter31.visit_type,
38555
38555
  appointmentStatus: _ === 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,
38556
38556
  refNo: (_$Encounter$appointme9 = _ === 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$appointme9 !== void 0 ? _$Encounter$appointme9 : "",
@@ -38558,21 +38558,21 @@ var GET_WALK_INS = createAsyncThunk("appointmentStatsApiSlice/getWalkIns", /*#__
38558
38558
  appNo: (_$Encounter$appointme10 = _ === null || _ === void 0 ? void 0 : (_$Encounter34 = _.Encounter) === null || _$Encounter34 === void 0 ? void 0 : (_$Encounter34$appoint = _$Encounter34.appointmentId) === null || _$Encounter34$appoint === void 0 ? void 0 : _$Encounter34$appoint[0]) !== null && _$Encounter$appointme10 !== void 0 ? _$Encounter$appointme10 : "",
38559
38559
  enId: _.Encounter.id,
38560
38560
  contact: _ === 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$patient3 = _$Encounter35$patient2.telecom) === null || _$Encounter35$patient3 === void 0 ? void 0 : (_$Encounter35$patient4 = _$Encounter35$patient3[0]) === null || _$Encounter35$patient4 === void 0 ? void 0 : _$Encounter35$patient4.value,
38561
- personId: (_$Appointment$PersonI10 = _ === 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.Id) !== null && _$Appointment$PersonI10 !== void 0 ? _$Appointment$PersonI10 : null,
38561
+ personId: (_$Appointment$PersonI11 = _ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : (_$Appointment35$Perso = _$Appointment35.PersonID) === null || _$Appointment35$Perso === void 0 ? void 0 : (_$Appointment35$Perso2 = _$Appointment35$Perso[0]) === null || _$Appointment35$Perso2 === void 0 ? void 0 : _$Appointment35$Perso2.Id) !== null && _$Appointment$PersonI11 !== void 0 ? _$Appointment$PersonI11 : null,
38562
38562
  patientId: (_$Encounter$patient_i10 = _ === null || _ === void 0 ? void 0 : (_$Encounter36 = _.Encounter) === null || _$Encounter36 === void 0 ? void 0 : (_$Encounter36$patient = _$Encounter36.patient_id) === null || _$Encounter36$patient === void 0 ? void 0 : (_$Encounter36$patient2 = _$Encounter36$patient[0]) === null || _$Encounter36$patient2 === void 0 ? void 0 : _$Encounter36$patient2.id) !== null && _$Encounter$patient_i10 !== void 0 ? _$Encounter$patient_i10 : null
38563
38563
  }),
38564
38564
  modifyaction: JSON.stringify({
38565
38565
  appNo: (_$Encounter$appointme11 = _ === null || _ === void 0 ? void 0 : (_$Encounter37 = _.Encounter) === null || _$Encounter37 === void 0 ? void 0 : (_$Encounter37$appoint = _$Encounter37.appointmentId) === null || _$Encounter37$appoint === void 0 ? void 0 : _$Encounter37$appoint[0]) !== null && _$Encounter$appointme11 !== void 0 ? _$Encounter$appointme11 : "",
38566
38566
  enId: _.Encounter.id,
38567
38567
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter38 = _.Encounter) === null || _$Encounter38 === void 0 ? void 0 : (_$Encounter38$patient = _$Encounter38.patient_id) === null || _$Encounter38$patient === void 0 ? void 0 : (_$Encounter38$patient2 = _$Encounter38$patient[0]) === null || _$Encounter38$patient2 === void 0 ? void 0 : (_$Encounter38$patient3 = _$Encounter38$patient2.telecom) === null || _$Encounter38$patient3 === void 0 ? void 0 : (_$Encounter38$patient4 = _$Encounter38$patient3[0]) === null || _$Encounter38$patient4 === void 0 ? void 0 : _$Encounter38$patient4.value,
38568
- personId: (_$Appointment$PersonI11 = _ === null || _ === void 0 ? void 0 : (_$Appointment35 = _.Appointment) === null || _$Appointment35 === void 0 ? void 0 : (_$Appointment35$Perso = _$Appointment35.PersonID) === null || _$Appointment35$Perso === void 0 ? void 0 : (_$Appointment35$Perso2 = _$Appointment35$Perso[0]) === null || _$Appointment35$Perso2 === void 0 ? void 0 : _$Appointment35$Perso2.Id) !== null && _$Appointment$PersonI11 !== void 0 ? _$Appointment$PersonI11 : null,
38568
+ personId: (_$Appointment$PersonI12 = _ === null || _ === void 0 ? void 0 : (_$Appointment36 = _.Appointment) === null || _$Appointment36 === void 0 ? void 0 : (_$Appointment36$Perso = _$Appointment36.PersonID) === null || _$Appointment36$Perso === void 0 ? void 0 : (_$Appointment36$Perso2 = _$Appointment36$Perso[0]) === null || _$Appointment36$Perso2 === void 0 ? void 0 : _$Appointment36$Perso2.Id) !== null && _$Appointment$PersonI12 !== void 0 ? _$Appointment$PersonI12 : null,
38569
38569
  patientId: (_$Encounter$patient_i11 = _ === null || _ === void 0 ? void 0 : (_$Encounter39 = _.Encounter) === null || _$Encounter39 === void 0 ? void 0 : (_$Encounter39$patient = _$Encounter39.patient_id) === null || _$Encounter39$patient === void 0 ? void 0 : (_$Encounter39$patient2 = _$Encounter39$patient[0]) === null || _$Encounter39$patient2 === void 0 ? void 0 : _$Encounter39$patient2.id) !== null && _$Encounter$patient_i11 !== void 0 ? _$Encounter$patient_i11 : null
38570
38570
  }),
38571
38571
  cancelaction: JSON.stringify({
38572
38572
  appNo: (_$Encounter$appointme12 = _ === null || _ === void 0 ? void 0 : (_$Encounter40 = _.Encounter) === null || _$Encounter40 === void 0 ? void 0 : (_$Encounter40$appoint = _$Encounter40.appointmentId) === null || _$Encounter40$appoint === void 0 ? void 0 : _$Encounter40$appoint[0]) !== null && _$Encounter$appointme12 !== void 0 ? _$Encounter$appointme12 : "",
38573
38573
  enId: _.Encounter.id,
38574
38574
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter41 = _.Encounter) === null || _$Encounter41 === void 0 ? void 0 : (_$Encounter41$patient = _$Encounter41.patient_id) === null || _$Encounter41$patient === void 0 ? void 0 : (_$Encounter41$patient2 = _$Encounter41$patient[0]) === null || _$Encounter41$patient2 === void 0 ? void 0 : (_$Encounter41$patient3 = _$Encounter41$patient2.telecom) === null || _$Encounter41$patient3 === void 0 ? void 0 : (_$Encounter41$patient4 = _$Encounter41$patient3[0]) === null || _$Encounter41$patient4 === void 0 ? void 0 : _$Encounter41$patient4.value,
38575
- personId: (_$Appointment$PersonI12 = _ === null || _ === void 0 ? void 0 : (_$Appointment36 = _.Appointment) === null || _$Appointment36 === void 0 ? void 0 : (_$Appointment36$Perso = _$Appointment36.PersonID) === null || _$Appointment36$Perso === void 0 ? void 0 : (_$Appointment36$Perso2 = _$Appointment36$Perso[0]) === null || _$Appointment36$Perso2 === void 0 ? void 0 : _$Appointment36$Perso2.Id) !== null && _$Appointment$PersonI12 !== void 0 ? _$Appointment$PersonI12 : null,
38575
+ personId: (_$Appointment$PersonI13 = _ === null || _ === void 0 ? void 0 : (_$Appointment37 = _.Appointment) === null || _$Appointment37 === void 0 ? void 0 : (_$Appointment37$Perso = _$Appointment37.PersonID) === null || _$Appointment37$Perso === void 0 ? void 0 : (_$Appointment37$Perso2 = _$Appointment37$Perso[0]) === null || _$Appointment37$Perso2 === void 0 ? void 0 : _$Appointment37$Perso2.Id) !== null && _$Appointment$PersonI13 !== void 0 ? _$Appointment$PersonI13 : null,
38576
38576
  patientId: (_$Encounter$patient_i12 = _ === null || _ === void 0 ? void 0 : (_$Encounter42 = _.Encounter) === null || _$Encounter42 === void 0 ? void 0 : (_$Encounter42$patient = _$Encounter42.patient_id) === null || _$Encounter42$patient === void 0 ? void 0 : (_$Encounter42$patient2 = _$Encounter42$patient[0]) === null || _$Encounter42$patient2 === void 0 ? void 0 : _$Encounter42$patient2.id) !== null && _$Encounter$patient_i12 !== void 0 ? _$Encounter$patient_i12 : null
38577
38577
  })
38578
38578
  };
@@ -38619,7 +38619,7 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
38619
38619
  case 5:
38620
38620
  data = _context5.sent;
38621
38621
  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 (_) {
38622
- var _$Encounter43, _$Encounter43$patient, _$Encounter43$patient2, _$Encounter43$patient3, _$Encounter44, _$Encounter44$patient, _$Encounter44$patient2, _$Appointment37, _$Appointment37$Perso, _$Appointment37$Perso2, _$Appointment38, _$Appointment39, _$Appointment40, _$Appointment41, _$Encounter45, _$Encounter46, _$Encounter46$status, _$Encounter$appointme13, _$Encounter47, _$Encounter47$appoint, _$Encounter$appointme14, _$Encounter48, _$Encounter48$appoint, _$Encounter49, _$Encounter49$patient, _$Encounter49$patient2, _$Encounter49$patient3, _$Encounter49$patient4, _$Appointment$PersonI13, _$Appointment42, _$Appointment42$Perso, _$Appointment42$Perso2, _$Encounter$patient_i13, _$Encounter50, _$Encounter50$patient, _$Encounter50$patient2, _$Encounter$appointme15, _$Encounter51, _$Encounter51$appoint, _$Encounter52, _$Encounter52$patient, _$Encounter52$patient2, _$Encounter52$patient3, _$Encounter52$patient4, _$Appointment$PersonI14, _$Appointment43, _$Appointment43$Perso, _$Appointment43$Perso2, _$Encounter$patient_i14, _$Encounter53, _$Encounter53$patient, _$Encounter53$patient2, _$Encounter$appointme16, _$Encounter54, _$Encounter54$appoint, _$Encounter55, _$Encounter55$patient, _$Encounter55$patient2, _$Encounter55$patient3, _$Encounter55$patient4, _$Appointment$PersonI15, _$Appointment44, _$Appointment44$Perso, _$Appointment44$Perso2, _$Encounter$patient_i15, _$Encounter56, _$Encounter56$patient, _$Encounter56$patient2;
38622
+ var _$Encounter43, _$Encounter43$patient, _$Encounter43$patient2, _$Encounter43$patient3, _$Encounter44, _$Encounter44$patient, _$Encounter44$patient2, _$Appointment38, _$Appointment38$Perso, _$Appointment38$Perso2, _$Appointment39, _$Appointment40, _$Appointment41, _$Appointment42, _$Encounter45, _$Encounter46, _$Encounter46$status, _$Encounter$appointme13, _$Encounter47, _$Encounter47$appoint, _$Encounter$appointme14, _$Encounter48, _$Encounter48$appoint, _$Encounter49, _$Encounter49$patient, _$Encounter49$patient2, _$Encounter49$patient3, _$Encounter49$patient4, _$Appointment$PersonI14, _$Appointment43, _$Appointment43$Perso, _$Appointment43$Perso2, _$Encounter$patient_i13, _$Encounter50, _$Encounter50$patient, _$Encounter50$patient2, _$Encounter$appointme15, _$Encounter51, _$Encounter51$appoint, _$Encounter52, _$Encounter52$patient, _$Encounter52$patient2, _$Encounter52$patient3, _$Encounter52$patient4, _$Appointment$PersonI15, _$Appointment44, _$Appointment44$Perso, _$Appointment44$Perso2, _$Encounter$patient_i14, _$Encounter53, _$Encounter53$patient, _$Encounter53$patient2, _$Encounter$appointme16, _$Encounter54, _$Encounter54$appoint, _$Encounter55, _$Encounter55$patient, _$Encounter55$patient2, _$Encounter55$patient3, _$Encounter55$patient4, _$Appointment$PersonI16, _$Appointment45, _$Appointment45$Perso, _$Appointment45$Perso2, _$Encounter$patient_i15, _$Encounter56, _$Encounter56$patient, _$Encounter56$patient2;
38623
38623
 
38624
38624
  return {
38625
38625
  // img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
@@ -38653,8 +38653,8 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
38653
38653
  // "View Profile": true,
38654
38654
  name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter43 = _.Encounter) === null || _$Encounter43 === void 0 ? void 0 : (_$Encounter43$patient = _$Encounter43.patient_id) === null || _$Encounter43$patient === void 0 ? void 0 : (_$Encounter43$patient2 = _$Encounter43$patient[0]) === null || _$Encounter43$patient2 === void 0 ? void 0 : (_$Encounter43$patient3 = _$Encounter43$patient2.name) === null || _$Encounter43$patient3 === void 0 ? void 0 : _$Encounter43$patient3[0]) || {}),
38655
38655
  mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter44 = _.Encounter) === null || _$Encounter44 === void 0 ? void 0 : (_$Encounter44$patient = _$Encounter44.patient_id) === null || _$Encounter44$patient === void 0 ? void 0 : (_$Encounter44$patient2 = _$Encounter44$patient[0]) === null || _$Encounter44$patient2 === void 0 ? void 0 : _$Encounter44$patient2.MRN,
38656
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment37 = _.Appointment) === null || _$Appointment37 === void 0 ? void 0 : (_$Appointment37$Perso = _$Appointment37.PersonID) === null || _$Appointment37$Perso === void 0 ? void 0 : (_$Appointment37$Perso2 = _$Appointment37$Perso[0]) === null || _$Appointment37$Perso2 === void 0 ? void 0 : _$Appointment37$Perso2.birthDay),
38657
- date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment38 = _.Appointment) === null || _$Appointment38 === void 0 ? void 0 : _$Appointment38.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment39 = _.Appointment) === null || _$Appointment39 === void 0 ? void 0 : _$Appointment39.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment40 = _.Appointment) === null || _$Appointment40 === void 0 ? void 0 : _$Appointment40.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment41 = _.Appointment) === null || _$Appointment41 === void 0 ? void 0 : _$Appointment41.start, "hh:mm A") : ""),
38656
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment38 = _.Appointment) === null || _$Appointment38 === void 0 ? void 0 : (_$Appointment38$Perso = _$Appointment38.PersonID) === null || _$Appointment38$Perso === void 0 ? void 0 : (_$Appointment38$Perso2 = _$Appointment38$Perso[0]) === null || _$Appointment38$Perso2 === void 0 ? void 0 : _$Appointment38$Perso2.birthDay),
38657
+ date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment39 = _.Appointment) === null || _$Appointment39 === void 0 ? void 0 : _$Appointment39.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment40 = _.Appointment) === null || _$Appointment40 === void 0 ? void 0 : _$Appointment40.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment41 = _.Appointment) === null || _$Appointment41 === void 0 ? void 0 : _$Appointment41.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment42 = _.Appointment) === null || _$Appointment42 === void 0 ? void 0 : _$Appointment42.start, "hh:mm A") : ""),
38658
38658
  visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter45 = _.Encounter) === null || _$Encounter45 === void 0 ? void 0 : _$Encounter45.visit_type,
38659
38659
  appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter46 = _.Encounter) === null || _$Encounter46 === void 0 ? void 0 : (_$Encounter46$status = _$Encounter46.status) === null || _$Encounter46$status === void 0 ? void 0 : _$Encounter46$status.display,
38660
38660
  refNo: (_$Encounter$appointme13 = _ === null || _ === void 0 ? void 0 : (_$Encounter47 = _.Encounter) === null || _$Encounter47 === void 0 ? void 0 : (_$Encounter47$appoint = _$Encounter47.appointmentId) === null || _$Encounter47$appoint === void 0 ? void 0 : _$Encounter47$appoint[0]) !== null && _$Encounter$appointme13 !== void 0 ? _$Encounter$appointme13 : "",
@@ -38662,21 +38662,21 @@ var GET_NEW_PATIENTS = createAsyncThunk("appointmentStatsApiSlice/getNewPatients
38662
38662
  appNo: (_$Encounter$appointme14 = _ === null || _ === void 0 ? void 0 : (_$Encounter48 = _.Encounter) === null || _$Encounter48 === void 0 ? void 0 : (_$Encounter48$appoint = _$Encounter48.appointmentId) === null || _$Encounter48$appoint === void 0 ? void 0 : _$Encounter48$appoint[0]) !== null && _$Encounter$appointme14 !== void 0 ? _$Encounter$appointme14 : "",
38663
38663
  enId: _.Encounter.id,
38664
38664
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter49 = _.Encounter) === null || _$Encounter49 === void 0 ? void 0 : (_$Encounter49$patient = _$Encounter49.patient_id) === null || _$Encounter49$patient === void 0 ? void 0 : (_$Encounter49$patient2 = _$Encounter49$patient[0]) === null || _$Encounter49$patient2 === void 0 ? void 0 : (_$Encounter49$patient3 = _$Encounter49$patient2.telecom) === null || _$Encounter49$patient3 === void 0 ? void 0 : (_$Encounter49$patient4 = _$Encounter49$patient3[0]) === null || _$Encounter49$patient4 === void 0 ? void 0 : _$Encounter49$patient4.value,
38665
- personId: (_$Appointment$PersonI13 = _ === null || _ === void 0 ? void 0 : (_$Appointment42 = _.Appointment) === null || _$Appointment42 === void 0 ? void 0 : (_$Appointment42$Perso = _$Appointment42.PersonID) === null || _$Appointment42$Perso === void 0 ? void 0 : (_$Appointment42$Perso2 = _$Appointment42$Perso[0]) === null || _$Appointment42$Perso2 === void 0 ? void 0 : _$Appointment42$Perso2.Id) !== null && _$Appointment$PersonI13 !== void 0 ? _$Appointment$PersonI13 : null,
38665
+ personId: (_$Appointment$PersonI14 = _ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : (_$Appointment43$Perso = _$Appointment43.PersonID) === null || _$Appointment43$Perso === void 0 ? void 0 : (_$Appointment43$Perso2 = _$Appointment43$Perso[0]) === null || _$Appointment43$Perso2 === void 0 ? void 0 : _$Appointment43$Perso2.Id) !== null && _$Appointment$PersonI14 !== void 0 ? _$Appointment$PersonI14 : null,
38666
38666
  patientId: (_$Encounter$patient_i13 = _ === null || _ === void 0 ? void 0 : (_$Encounter50 = _.Encounter) === null || _$Encounter50 === void 0 ? void 0 : (_$Encounter50$patient = _$Encounter50.patient_id) === null || _$Encounter50$patient === void 0 ? void 0 : (_$Encounter50$patient2 = _$Encounter50$patient[0]) === null || _$Encounter50$patient2 === void 0 ? void 0 : _$Encounter50$patient2.id) !== null && _$Encounter$patient_i13 !== void 0 ? _$Encounter$patient_i13 : null
38667
38667
  }),
38668
38668
  modifyaction: JSON.stringify({
38669
38669
  appNo: (_$Encounter$appointme15 = _ === null || _ === void 0 ? void 0 : (_$Encounter51 = _.Encounter) === null || _$Encounter51 === void 0 ? void 0 : (_$Encounter51$appoint = _$Encounter51.appointmentId) === null || _$Encounter51$appoint === void 0 ? void 0 : _$Encounter51$appoint[0]) !== null && _$Encounter$appointme15 !== void 0 ? _$Encounter$appointme15 : "",
38670
38670
  enId: _.Encounter.id,
38671
38671
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter52 = _.Encounter) === null || _$Encounter52 === void 0 ? void 0 : (_$Encounter52$patient = _$Encounter52.patient_id) === null || _$Encounter52$patient === void 0 ? void 0 : (_$Encounter52$patient2 = _$Encounter52$patient[0]) === null || _$Encounter52$patient2 === void 0 ? void 0 : (_$Encounter52$patient3 = _$Encounter52$patient2.telecom) === null || _$Encounter52$patient3 === void 0 ? void 0 : (_$Encounter52$patient4 = _$Encounter52$patient3[0]) === null || _$Encounter52$patient4 === void 0 ? void 0 : _$Encounter52$patient4.value,
38672
- personId: (_$Appointment$PersonI14 = _ === null || _ === void 0 ? void 0 : (_$Appointment43 = _.Appointment) === null || _$Appointment43 === void 0 ? void 0 : (_$Appointment43$Perso = _$Appointment43.PersonID) === null || _$Appointment43$Perso === void 0 ? void 0 : (_$Appointment43$Perso2 = _$Appointment43$Perso[0]) === null || _$Appointment43$Perso2 === void 0 ? void 0 : _$Appointment43$Perso2.Id) !== null && _$Appointment$PersonI14 !== void 0 ? _$Appointment$PersonI14 : null,
38672
+ personId: (_$Appointment$PersonI15 = _ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : (_$Appointment44$Perso = _$Appointment44.PersonID) === null || _$Appointment44$Perso === void 0 ? void 0 : (_$Appointment44$Perso2 = _$Appointment44$Perso[0]) === null || _$Appointment44$Perso2 === void 0 ? void 0 : _$Appointment44$Perso2.Id) !== null && _$Appointment$PersonI15 !== void 0 ? _$Appointment$PersonI15 : null,
38673
38673
  patientId: (_$Encounter$patient_i14 = _ === null || _ === void 0 ? void 0 : (_$Encounter53 = _.Encounter) === null || _$Encounter53 === void 0 ? void 0 : (_$Encounter53$patient = _$Encounter53.patient_id) === null || _$Encounter53$patient === void 0 ? void 0 : (_$Encounter53$patient2 = _$Encounter53$patient[0]) === null || _$Encounter53$patient2 === void 0 ? void 0 : _$Encounter53$patient2.id) !== null && _$Encounter$patient_i14 !== void 0 ? _$Encounter$patient_i14 : null
38674
38674
  }),
38675
38675
  cancelaction: JSON.stringify({
38676
38676
  appNo: (_$Encounter$appointme16 = _ === null || _ === void 0 ? void 0 : (_$Encounter54 = _.Encounter) === null || _$Encounter54 === void 0 ? void 0 : (_$Encounter54$appoint = _$Encounter54.appointmentId) === null || _$Encounter54$appoint === void 0 ? void 0 : _$Encounter54$appoint[0]) !== null && _$Encounter$appointme16 !== void 0 ? _$Encounter$appointme16 : "",
38677
38677
  enId: _.Encounter.id,
38678
38678
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter55 = _.Encounter) === null || _$Encounter55 === void 0 ? void 0 : (_$Encounter55$patient = _$Encounter55.patient_id) === null || _$Encounter55$patient === void 0 ? void 0 : (_$Encounter55$patient2 = _$Encounter55$patient[0]) === null || _$Encounter55$patient2 === void 0 ? void 0 : (_$Encounter55$patient3 = _$Encounter55$patient2.telecom) === null || _$Encounter55$patient3 === void 0 ? void 0 : (_$Encounter55$patient4 = _$Encounter55$patient3[0]) === null || _$Encounter55$patient4 === void 0 ? void 0 : _$Encounter55$patient4.value,
38679
- personId: (_$Appointment$PersonI15 = _ === null || _ === void 0 ? void 0 : (_$Appointment44 = _.Appointment) === null || _$Appointment44 === void 0 ? void 0 : (_$Appointment44$Perso = _$Appointment44.PersonID) === null || _$Appointment44$Perso === void 0 ? void 0 : (_$Appointment44$Perso2 = _$Appointment44$Perso[0]) === null || _$Appointment44$Perso2 === void 0 ? void 0 : _$Appointment44$Perso2.Id) !== null && _$Appointment$PersonI15 !== void 0 ? _$Appointment$PersonI15 : null,
38679
+ personId: (_$Appointment$PersonI16 = _ === null || _ === void 0 ? void 0 : (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : (_$Appointment45$Perso = _$Appointment45.PersonID) === null || _$Appointment45$Perso === void 0 ? void 0 : (_$Appointment45$Perso2 = _$Appointment45$Perso[0]) === null || _$Appointment45$Perso2 === void 0 ? void 0 : _$Appointment45$Perso2.Id) !== null && _$Appointment$PersonI16 !== void 0 ? _$Appointment$PersonI16 : null,
38680
38680
  patientId: (_$Encounter$patient_i15 = _ === null || _ === void 0 ? void 0 : (_$Encounter56 = _.Encounter) === null || _$Encounter56 === void 0 ? void 0 : (_$Encounter56$patient = _$Encounter56.patient_id) === null || _$Encounter56$patient === void 0 ? void 0 : (_$Encounter56$patient2 = _$Encounter56$patient[0]) === null || _$Encounter56$patient2 === void 0 ? void 0 : _$Encounter56$patient2.id) !== null && _$Encounter$patient_i15 !== void 0 ? _$Encounter$patient_i15 : null
38681
38681
  })
38682
38682
  };
@@ -38723,7 +38723,7 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
38723
38723
  case 5:
38724
38724
  data = _context6.sent;
38725
38725
  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 (_) {
38726
- var _$Encounter57, _$Encounter57$patient, _$Encounter57$patient2, _$Encounter57$patient3, _$Encounter58, _$Encounter58$patient, _$Encounter58$patient2, _$Appointment45, _$Appointment45$Perso, _$Appointment45$Perso2, _$Appointment46, _$Appointment47, _$Appointment48, _$Appointment49, _$Encounter59, _$Encounter60, _$Encounter60$status, _$Encounter$appointme17, _$Encounter61, _$Encounter61$appoint, _$Encounter$appointme18, _$Encounter62, _$Encounter62$appoint, _$Encounter63, _$Encounter63$patient, _$Encounter63$patient2, _$Encounter63$patient3, _$Encounter63$patient4, _$Appointment$PersonI16, _$Appointment50, _$Appointment50$Perso, _$Appointment50$Perso2, _$Encounter$patient_i16, _$Encounter64, _$Encounter64$patient, _$Encounter64$patient2, _$Encounter$appointme19, _$Encounter65, _$Encounter65$appoint, _$Encounter66, _$Encounter66$patient, _$Encounter66$patient2, _$Encounter66$patient3, _$Encounter66$patient4, _$Appointment$PersonI17, _$Appointment51, _$Appointment51$Perso, _$Appointment51$Perso2, _$Encounter$patient_i17, _$Encounter67, _$Encounter67$patient, _$Encounter67$patient2, _$Encounter$appointme20, _$Encounter68, _$Encounter68$appoint, _$Encounter69, _$Encounter69$patient, _$Encounter69$patient2, _$Encounter69$patient3, _$Encounter69$patient4, _$Appointment$PersonI18, _$Appointment52, _$Appointment52$Perso, _$Appointment52$Perso2, _$Encounter$patient_i18, _$Encounter70, _$Encounter70$patient, _$Encounter70$patient2;
38726
+ var _$Encounter57, _$Encounter57$patient, _$Encounter57$patient2, _$Encounter57$patient3, _$Encounter58, _$Encounter58$patient, _$Encounter58$patient2, _$Appointment46, _$Appointment46$Perso, _$Appointment46$Perso2, _$Appointment47, _$Appointment48, _$Appointment49, _$Appointment50, _$Encounter59, _$Encounter60, _$Encounter60$status, _$Encounter$appointme17, _$Encounter61, _$Encounter61$appoint, _$Encounter$appointme18, _$Encounter62, _$Encounter62$appoint, _$Encounter63, _$Encounter63$patient, _$Encounter63$patient2, _$Encounter63$patient3, _$Encounter63$patient4, _$Appointment$PersonI17, _$Appointment51, _$Appointment51$Perso, _$Appointment51$Perso2, _$Encounter$patient_i16, _$Encounter64, _$Encounter64$patient, _$Encounter64$patient2, _$Encounter$appointme19, _$Encounter65, _$Encounter65$appoint, _$Encounter66, _$Encounter66$patient, _$Encounter66$patient2, _$Encounter66$patient3, _$Encounter66$patient4, _$Appointment$PersonI18, _$Appointment52, _$Appointment52$Perso, _$Appointment52$Perso2, _$Encounter$patient_i17, _$Encounter67, _$Encounter67$patient, _$Encounter67$patient2, _$Encounter$appointme20, _$Encounter68, _$Encounter68$appoint, _$Encounter69, _$Encounter69$patient, _$Encounter69$patient2, _$Encounter69$patient3, _$Encounter69$patient4, _$Appointment$PersonI19, _$Appointment53, _$Appointment53$Perso, _$Appointment53$Perso2, _$Encounter$patient_i18, _$Encounter70, _$Encounter70$patient, _$Encounter70$patient2;
38727
38727
 
38728
38728
  return {
38729
38729
  // img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
@@ -38757,8 +38757,8 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
38757
38757
  // "View Profile": true,
38758
38758
  name: makeName((_ === null || _ === void 0 ? void 0 : (_$Encounter57 = _.Encounter) === null || _$Encounter57 === void 0 ? void 0 : (_$Encounter57$patient = _$Encounter57.patient_id) === null || _$Encounter57$patient === void 0 ? void 0 : (_$Encounter57$patient2 = _$Encounter57$patient[0]) === null || _$Encounter57$patient2 === void 0 ? void 0 : (_$Encounter57$patient3 = _$Encounter57$patient2.name) === null || _$Encounter57$patient3 === void 0 ? void 0 : _$Encounter57$patient3[0]) || {}),
38759
38759
  mrn: _ === null || _ === void 0 ? void 0 : (_$Encounter58 = _.Encounter) === null || _$Encounter58 === void 0 ? void 0 : (_$Encounter58$patient = _$Encounter58.patient_id) === null || _$Encounter58$patient === void 0 ? void 0 : (_$Encounter58$patient2 = _$Encounter58$patient[0]) === null || _$Encounter58$patient2 === void 0 ? void 0 : _$Encounter58$patient2.MRN,
38760
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment45 = _.Appointment) === null || _$Appointment45 === void 0 ? void 0 : (_$Appointment45$Perso = _$Appointment45.PersonID) === null || _$Appointment45$Perso === void 0 ? void 0 : (_$Appointment45$Perso2 = _$Appointment45$Perso[0]) === null || _$Appointment45$Perso2 === void 0 ? void 0 : _$Appointment45$Perso2.birthDay),
38761
- date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment46 = _.Appointment) === null || _$Appointment46 === void 0 ? void 0 : _$Appointment46.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment47 = _.Appointment) === null || _$Appointment47 === void 0 ? void 0 : _$Appointment47.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : _$Appointment48.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : _$Appointment49.start, "hh:mm A") : ""),
38760
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment46 = _.Appointment) === null || _$Appointment46 === void 0 ? void 0 : (_$Appointment46$Perso = _$Appointment46.PersonID) === null || _$Appointment46$Perso === void 0 ? void 0 : (_$Appointment46$Perso2 = _$Appointment46$Perso[0]) === null || _$Appointment46$Perso2 === void 0 ? void 0 : _$Appointment46$Perso2.birthDay),
38761
+ date: "".concat((_ === null || _ === void 0 ? void 0 : (_$Appointment47 = _.Appointment) === null || _$Appointment47 === void 0 ? void 0 : _$Appointment47.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : _$Appointment48.start, "DD MMM,YYYY") : "", ",").concat((_ === null || _ === void 0 ? void 0 : (_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : _$Appointment49.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment50 = _.Appointment) === null || _$Appointment50 === void 0 ? void 0 : _$Appointment50.start, "hh:mm A") : ""),
38762
38762
  visitType: _ === null || _ === void 0 ? void 0 : (_$Encounter59 = _.Encounter) === null || _$Encounter59 === void 0 ? void 0 : _$Encounter59.visit_type,
38763
38763
  appointmentStatus: _ === null || _ === void 0 ? void 0 : (_$Encounter60 = _.Encounter) === null || _$Encounter60 === void 0 ? void 0 : (_$Encounter60$status = _$Encounter60.status) === null || _$Encounter60$status === void 0 ? void 0 : _$Encounter60$status.display,
38764
38764
  refNo: (_$Encounter$appointme17 = _ === null || _ === void 0 ? void 0 : (_$Encounter61 = _.Encounter) === null || _$Encounter61 === void 0 ? void 0 : (_$Encounter61$appoint = _$Encounter61.appointmentId) === null || _$Encounter61$appoint === void 0 ? void 0 : _$Encounter61$appoint[0]) !== null && _$Encounter$appointme17 !== void 0 ? _$Encounter$appointme17 : "",
@@ -38766,21 +38766,21 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
38766
38766
  appNo: (_$Encounter$appointme18 = _ === null || _ === void 0 ? void 0 : (_$Encounter62 = _.Encounter) === null || _$Encounter62 === void 0 ? void 0 : (_$Encounter62$appoint = _$Encounter62.appointmentId) === null || _$Encounter62$appoint === void 0 ? void 0 : _$Encounter62$appoint[0]) !== null && _$Encounter$appointme18 !== void 0 ? _$Encounter$appointme18 : "",
38767
38767
  enId: _.Encounter.id,
38768
38768
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter63 = _.Encounter) === null || _$Encounter63 === void 0 ? void 0 : (_$Encounter63$patient = _$Encounter63.patient_id) === null || _$Encounter63$patient === void 0 ? void 0 : (_$Encounter63$patient2 = _$Encounter63$patient[0]) === null || _$Encounter63$patient2 === void 0 ? void 0 : (_$Encounter63$patient3 = _$Encounter63$patient2.telecom) === null || _$Encounter63$patient3 === void 0 ? void 0 : (_$Encounter63$patient4 = _$Encounter63$patient3[0]) === null || _$Encounter63$patient4 === void 0 ? void 0 : _$Encounter63$patient4.value,
38769
- personId: (_$Appointment$PersonI16 = _ === null || _ === void 0 ? void 0 : (_$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$Perso2.Id) !== null && _$Appointment$PersonI16 !== void 0 ? _$Appointment$PersonI16 : null,
38769
+ personId: (_$Appointment$PersonI17 = _ === null || _ === void 0 ? void 0 : (_$Appointment51 = _.Appointment) === null || _$Appointment51 === void 0 ? void 0 : (_$Appointment51$Perso = _$Appointment51.PersonID) === null || _$Appointment51$Perso === void 0 ? void 0 : (_$Appointment51$Perso2 = _$Appointment51$Perso[0]) === null || _$Appointment51$Perso2 === void 0 ? void 0 : _$Appointment51$Perso2.Id) !== null && _$Appointment$PersonI17 !== void 0 ? _$Appointment$PersonI17 : null,
38770
38770
  patientId: (_$Encounter$patient_i16 = _ === null || _ === void 0 ? void 0 : (_$Encounter64 = _.Encounter) === null || _$Encounter64 === void 0 ? void 0 : (_$Encounter64$patient = _$Encounter64.patient_id) === null || _$Encounter64$patient === void 0 ? void 0 : (_$Encounter64$patient2 = _$Encounter64$patient[0]) === null || _$Encounter64$patient2 === void 0 ? void 0 : _$Encounter64$patient2.id) !== null && _$Encounter$patient_i16 !== void 0 ? _$Encounter$patient_i16 : null
38771
38771
  }),
38772
38772
  modifyaction: JSON.stringify({
38773
38773
  appNo: (_$Encounter$appointme19 = _ === null || _ === void 0 ? void 0 : (_$Encounter65 = _.Encounter) === null || _$Encounter65 === void 0 ? void 0 : (_$Encounter65$appoint = _$Encounter65.appointmentId) === null || _$Encounter65$appoint === void 0 ? void 0 : _$Encounter65$appoint[0]) !== null && _$Encounter$appointme19 !== void 0 ? _$Encounter$appointme19 : "",
38774
38774
  enId: _.Encounter.id,
38775
38775
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter66 = _.Encounter) === null || _$Encounter66 === void 0 ? void 0 : (_$Encounter66$patient = _$Encounter66.patient_id) === null || _$Encounter66$patient === void 0 ? void 0 : (_$Encounter66$patient2 = _$Encounter66$patient[0]) === null || _$Encounter66$patient2 === void 0 ? void 0 : (_$Encounter66$patient3 = _$Encounter66$patient2.telecom) === null || _$Encounter66$patient3 === void 0 ? void 0 : (_$Encounter66$patient4 = _$Encounter66$patient3[0]) === null || _$Encounter66$patient4 === void 0 ? void 0 : _$Encounter66$patient4.value,
38776
- personId: (_$Appointment$PersonI17 = _ === null || _ === void 0 ? void 0 : (_$Appointment51 = _.Appointment) === null || _$Appointment51 === void 0 ? void 0 : (_$Appointment51$Perso = _$Appointment51.PersonID) === null || _$Appointment51$Perso === void 0 ? void 0 : (_$Appointment51$Perso2 = _$Appointment51$Perso[0]) === null || _$Appointment51$Perso2 === void 0 ? void 0 : _$Appointment51$Perso2.Id) !== null && _$Appointment$PersonI17 !== void 0 ? _$Appointment$PersonI17 : null,
38776
+ personId: (_$Appointment$PersonI18 = _ === null || _ === void 0 ? void 0 : (_$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$Perso2.Id) !== null && _$Appointment$PersonI18 !== void 0 ? _$Appointment$PersonI18 : null,
38777
38777
  patientId: (_$Encounter$patient_i17 = _ === null || _ === void 0 ? void 0 : (_$Encounter67 = _.Encounter) === null || _$Encounter67 === void 0 ? void 0 : (_$Encounter67$patient = _$Encounter67.patient_id) === null || _$Encounter67$patient === void 0 ? void 0 : (_$Encounter67$patient2 = _$Encounter67$patient[0]) === null || _$Encounter67$patient2 === void 0 ? void 0 : _$Encounter67$patient2.id) !== null && _$Encounter$patient_i17 !== void 0 ? _$Encounter$patient_i17 : null
38778
38778
  }),
38779
38779
  cancelaction: JSON.stringify({
38780
38780
  appNo: (_$Encounter$appointme20 = _ === null || _ === void 0 ? void 0 : (_$Encounter68 = _.Encounter) === null || _$Encounter68 === void 0 ? void 0 : (_$Encounter68$appoint = _$Encounter68.appointmentId) === null || _$Encounter68$appoint === void 0 ? void 0 : _$Encounter68$appoint[0]) !== null && _$Encounter$appointme20 !== void 0 ? _$Encounter$appointme20 : "",
38781
38781
  enId: _.Encounter.id,
38782
38782
  contact: _ === null || _ === void 0 ? void 0 : (_$Encounter69 = _.Encounter) === null || _$Encounter69 === void 0 ? void 0 : (_$Encounter69$patient = _$Encounter69.patient_id) === null || _$Encounter69$patient === void 0 ? void 0 : (_$Encounter69$patient2 = _$Encounter69$patient[0]) === null || _$Encounter69$patient2 === void 0 ? void 0 : (_$Encounter69$patient3 = _$Encounter69$patient2.telecom) === null || _$Encounter69$patient3 === void 0 ? void 0 : (_$Encounter69$patient4 = _$Encounter69$patient3[0]) === null || _$Encounter69$patient4 === void 0 ? void 0 : _$Encounter69$patient4.value,
38783
- personId: (_$Appointment$PersonI18 = _ === null || _ === void 0 ? void 0 : (_$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$Perso2.Id) !== null && _$Appointment$PersonI18 !== void 0 ? _$Appointment$PersonI18 : null,
38783
+ personId: (_$Appointment$PersonI19 = _ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : (_$Appointment53$Perso = _$Appointment53.PersonID) === null || _$Appointment53$Perso === void 0 ? void 0 : (_$Appointment53$Perso2 = _$Appointment53$Perso[0]) === null || _$Appointment53$Perso2 === void 0 ? void 0 : _$Appointment53$Perso2.Id) !== null && _$Appointment$PersonI19 !== void 0 ? _$Appointment$PersonI19 : null,
38784
38784
  patientId: (_$Encounter$patient_i18 = _ === null || _ === void 0 ? void 0 : (_$Encounter70 = _.Encounter) === null || _$Encounter70 === void 0 ? void 0 : (_$Encounter70$patient = _$Encounter70.patient_id) === null || _$Encounter70$patient === void 0 ? void 0 : (_$Encounter70$patient2 = _$Encounter70$patient[0]) === null || _$Encounter70$patient2 === void 0 ? void 0 : _$Encounter70$patient2.id) !== null && _$Encounter$patient_i18 !== void 0 ? _$Encounter$patient_i18 : null
38785
38785
  })
38786
38786
  };
@@ -38828,35 +38828,35 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
38828
38828
  case 5:
38829
38829
  data = _context7.sent;
38830
38830
  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 (_) {
38831
- var _$Appointment53, _$Appointment53$Perso, _$Appointment53$Perso2, _$Appointment53$Perso3, _$Appointment53$Perso4, _$Appointment54, _$Appointment54$Perso, _$Appointment54$Perso2, _$Appointment54$Perso3, _$Appointment54$Perso4, _$Appointment55, _$Appointment55$Perso, _$Appointment55$Perso2, _$Appointment55$Perso3, _$Appointment56, _$Appointment56$Perso, _$Appointment56$Perso2, _$Appointment57, _$Appointment57$Perso, _$Appointment57$Perso2, _$Appointment57$Perso3, _$Appointment58, _$Appointment59, _$Appointment60, _$Appointment61, _$Appointment62, _$Appointment$appoint2, _$Appointment63, _$Appointment$Special, _$Appointment64, _$Appointment64$Speci, _$Appointment$orgid$n, _$Appointment65, _$Appointment65$orgid, _$practitioner_detail, _$practitioner_detail2, _$Appointment66;
38831
+ var _$Appointment54, _$Appointment54$Perso, _$Appointment54$Perso2, _$Appointment54$Perso3, _$Appointment54$Perso4, _$Appointment55, _$Appointment55$Perso, _$Appointment55$Perso2, _$Appointment55$Perso3, _$Appointment55$Perso4, _$Appointment56, _$Appointment56$Perso, _$Appointment56$Perso2, _$Appointment56$Perso3, _$Appointment57, _$Appointment57$Perso, _$Appointment57$Perso2, _$Appointment58, _$Appointment58$Perso, _$Appointment58$Perso2, _$Appointment58$Perso3, _$Appointment$PersonI20, _$Appointment59, _$Appointment59$Perso, _$Appointment59$Perso2, _$Appointment59$Perso3, _$Appointment59$Perso4, _$Appointment60, _$Appointment61, _$Appointment62, _$Appointment63, _$Appointment64, _$Appointment$appoint2, _$Appointment65, _$Appointment$Special, _$Appointment66, _$Appointment66$Speci, _$Appointment$orgid$n, _$Appointment67, _$Appointment67$orgid, _$practitioner_detail, _$practitioner_detail2, _$Appointment68;
38832
38832
 
38833
38833
  return {
38834
- img: (_ === null || _ === void 0 ? void 0 : (_$Appointment53 = _.Appointment) === null || _$Appointment53 === void 0 ? void 0 : (_$Appointment53$Perso = _$Appointment53.PersonID) === null || _$Appointment53$Perso === void 0 ? void 0 : (_$Appointment53$Perso2 = _$Appointment53$Perso[0]) === null || _$Appointment53$Perso2 === void 0 ? void 0 : (_$Appointment53$Perso3 = _$Appointment53$Perso2.photo) === null || _$Appointment53$Perso3 === void 0 ? void 0 : (_$Appointment53$Perso4 = _$Appointment53$Perso3[0]) === null || _$Appointment53$Perso4 === void 0 ? void 0 : _$Appointment53$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment54 = _.Appointment) === null || _$Appointment54 === void 0 ? void 0 : (_$Appointment54$Perso = _$Appointment54.PersonID) === null || _$Appointment54$Perso === void 0 ? void 0 : (_$Appointment54$Perso2 = _$Appointment54$Perso[0]) === null || _$Appointment54$Perso2 === void 0 ? void 0 : (_$Appointment54$Perso3 = _$Appointment54$Perso2.photo) === null || _$Appointment54$Perso3 === void 0 ? void 0 : (_$Appointment54$Perso4 = _$Appointment54$Perso3[0]) === null || _$Appointment54$Perso4 === void 0 ? void 0 : _$Appointment54$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
38834
+ img: (_ === null || _ === void 0 ? void 0 : (_$Appointment54 = _.Appointment) === null || _$Appointment54 === void 0 ? void 0 : (_$Appointment54$Perso = _$Appointment54.PersonID) === null || _$Appointment54$Perso === void 0 ? void 0 : (_$Appointment54$Perso2 = _$Appointment54$Perso[0]) === null || _$Appointment54$Perso2 === void 0 ? void 0 : (_$Appointment54$Perso3 = _$Appointment54$Perso2.photo) === null || _$Appointment54$Perso3 === void 0 ? void 0 : (_$Appointment54$Perso4 = _$Appointment54$Perso3[0]) === null || _$Appointment54$Perso4 === void 0 ? void 0 : _$Appointment54$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment55 = _.Appointment) === null || _$Appointment55 === void 0 ? void 0 : (_$Appointment55$Perso = _$Appointment55.PersonID) === null || _$Appointment55$Perso === void 0 ? void 0 : (_$Appointment55$Perso2 = _$Appointment55$Perso[0]) === null || _$Appointment55$Perso2 === void 0 ? void 0 : (_$Appointment55$Perso3 = _$Appointment55$Perso2.photo) === null || _$Appointment55$Perso3 === void 0 ? void 0 : (_$Appointment55$Perso4 = _$Appointment55$Perso3[0]) === null || _$Appointment55$Perso4 === void 0 ? void 0 : _$Appointment55$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
38835
38835
  name: JSON.stringify({
38836
- name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment55 = _.Appointment) === null || _$Appointment55 === void 0 ? void 0 : (_$Appointment55$Perso = _$Appointment55.PersonID) === null || _$Appointment55$Perso === void 0 ? void 0 : (_$Appointment55$Perso2 = _$Appointment55$Perso[0]) === null || _$Appointment55$Perso2 === void 0 ? void 0 : (_$Appointment55$Perso3 = _$Appointment55$Perso2.name) === null || _$Appointment55$Perso3 === void 0 ? void 0 : _$Appointment55$Perso3[0]) || {}),
38837
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment56 = _.Appointment) === null || _$Appointment56 === void 0 ? void 0 : (_$Appointment56$Perso = _$Appointment56.PersonID) === null || _$Appointment56$Perso === void 0 ? void 0 : (_$Appointment56$Perso2 = _$Appointment56$Perso[0]) === null || _$Appointment56$Perso2 === void 0 ? void 0 : _$Appointment56$Perso2.birthDay),
38838
- mrn: (_$Appointment57 = _.Appointment) === null || _$Appointment57 === void 0 ? void 0 : (_$Appointment57$Perso = _$Appointment57.PersonID) === null || _$Appointment57$Perso === void 0 ? void 0 : (_$Appointment57$Perso2 = _$Appointment57$Perso[0]) === null || _$Appointment57$Perso2 === void 0 ? void 0 : (_$Appointment57$Perso3 = _$Appointment57$Perso2.MRN) === null || _$Appointment57$Perso3 === void 0 ? void 0 : _$Appointment57$Perso3[0],
38839
- genderData: "M",
38840
- contact: "9785487478"
38836
+ name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment56 = _.Appointment) === null || _$Appointment56 === void 0 ? void 0 : (_$Appointment56$Perso = _$Appointment56.PersonID) === null || _$Appointment56$Perso === void 0 ? void 0 : (_$Appointment56$Perso2 = _$Appointment56$Perso[0]) === null || _$Appointment56$Perso2 === void 0 ? void 0 : (_$Appointment56$Perso3 = _$Appointment56$Perso2.name) === null || _$Appointment56$Perso3 === void 0 ? void 0 : _$Appointment56$Perso3[0]) || {}),
38837
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment57 = _.Appointment) === null || _$Appointment57 === void 0 ? void 0 : (_$Appointment57$Perso = _$Appointment57.PersonID) === null || _$Appointment57$Perso === void 0 ? void 0 : (_$Appointment57$Perso2 = _$Appointment57$Perso[0]) === null || _$Appointment57$Perso2 === void 0 ? void 0 : _$Appointment57$Perso2.birthDay),
38838
+ mrn: (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : (_$Appointment58$Perso = _$Appointment58.PersonID) === null || _$Appointment58$Perso === void 0 ? void 0 : (_$Appointment58$Perso2 = _$Appointment58$Perso[0]) === null || _$Appointment58$Perso2 === void 0 ? void 0 : (_$Appointment58$Perso3 = _$Appointment58$Perso2.MRN) === null || _$Appointment58$Perso3 === void 0 ? void 0 : _$Appointment58$Perso3[0],
38839
+ // genderData: "M",
38840
+ contact: (_$Appointment$PersonI20 = (_$Appointment59 = _.Appointment) === null || _$Appointment59 === void 0 ? void 0 : (_$Appointment59$Perso = _$Appointment59.PersonID) === null || _$Appointment59$Perso === void 0 ? void 0 : (_$Appointment59$Perso2 = _$Appointment59$Perso[0]) === null || _$Appointment59$Perso2 === void 0 ? void 0 : (_$Appointment59$Perso3 = _$Appointment59$Perso2.telecom) === null || _$Appointment59$Perso3 === void 0 ? void 0 : (_$Appointment59$Perso4 = _$Appointment59$Perso3[0]) === null || _$Appointment59$Perso4 === void 0 ? void 0 : _$Appointment59$Perso4.value) !== null && _$Appointment$PersonI20 !== void 0 ? _$Appointment$PersonI20 : ""
38841
38841
  }),
38842
38842
  // mrn: _?.patient_id?.[0]?.alias || "",
38843
38843
  // age: _?.patient_id?.[0]?.age,
38844
- refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment58 = _.Appointment) === null || _$Appointment58 === void 0 ? void 0 : _$Appointment58.appno) || "",
38844
+ refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment60 = _.Appointment) === null || _$Appointment60 === void 0 ? void 0 : _$Appointment60.appno) || "",
38845
38845
  date: JSON.stringify({
38846
- date: (_ === null || _ === void 0 ? void 0 : (_$Appointment59 = _.Appointment) === null || _$Appointment59 === void 0 ? void 0 : _$Appointment59.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment60 = _.Appointment) === null || _$Appointment60 === void 0 ? void 0 : _$Appointment60.start, "DD MMM,YYYY") : "",
38847
- time: (_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment62 = _.Appointment) === null || _$Appointment62 === void 0 ? void 0 : _$Appointment62.start, "hh:mm A") : ""
38846
+ date: (_ === null || _ === void 0 ? void 0 : (_$Appointment61 = _.Appointment) === null || _$Appointment61 === void 0 ? void 0 : _$Appointment61.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment62 = _.Appointment) === null || _$Appointment62 === void 0 ? void 0 : _$Appointment62.start, "DD MMM,YYYY") : "",
38847
+ time: (_ === null || _ === void 0 ? void 0 : (_$Appointment63 = _.Appointment) === null || _$Appointment63 === void 0 ? void 0 : _$Appointment63.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment64 = _.Appointment) === null || _$Appointment64 === void 0 ? void 0 : _$Appointment64.start, "hh:mm A") : ""
38848
38848
  }),
38849
- visitType: (_$Appointment$appoint2 = _ === null || _ === void 0 ? void 0 : (_$Appointment63 = _.Appointment) === null || _$Appointment63 === void 0 ? void 0 : _$Appointment63.appointmentType) !== null && _$Appointment$appoint2 !== void 0 ? _$Appointment$appoint2 : "",
38849
+ visitType: (_$Appointment$appoint2 = _ === null || _ === void 0 ? void 0 : (_$Appointment65 = _.Appointment) === null || _$Appointment65 === void 0 ? void 0 : _$Appointment65.appointmentType) !== null && _$Appointment$appoint2 !== void 0 ? _$Appointment$appoint2 : "",
38850
38850
  speciality: JSON.stringify({
38851
- speciality: (_$Appointment$Special = _ === null || _ === void 0 ? void 0 : (_$Appointment64 = _.Appointment) === null || _$Appointment64 === void 0 ? void 0 : (_$Appointment64$Speci = _$Appointment64.SpecialtyID) === null || _$Appointment64$Speci === void 0 ? void 0 : _$Appointment64$Speci.map(function (spl) {
38851
+ speciality: (_$Appointment$Special = _ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : (_$Appointment66$Speci = _$Appointment66.SpecialtyID) === null || _$Appointment66$Speci === void 0 ? void 0 : _$Appointment66$Speci.map(function (spl) {
38852
38852
  var _spl$coding, _spl$coding$;
38853
38853
 
38854
38854
  return spl === null || spl === void 0 ? void 0 : (_spl$coding = spl.coding) === null || _spl$coding === void 0 ? void 0 : (_spl$coding$ = _spl$coding[0]) === null || _spl$coding$ === void 0 ? void 0 : _spl$coding$.display;
38855
38855
  }).join(", ")) !== null && _$Appointment$Special !== void 0 ? _$Appointment$Special : "",
38856
- clinic: (_$Appointment$orgid$n = _ === null || _ === void 0 ? void 0 : (_$Appointment65 = _.Appointment) === null || _$Appointment65 === void 0 ? void 0 : (_$Appointment65$orgid = _$Appointment65.orgid) === null || _$Appointment65$orgid === void 0 ? void 0 : _$Appointment65$orgid.name) !== null && _$Appointment$orgid$n !== void 0 ? _$Appointment$orgid$n : ""
38856
+ clinic: (_$Appointment$orgid$n = _ === null || _ === void 0 ? void 0 : (_$Appointment67 = _.Appointment) === null || _$Appointment67 === void 0 ? void 0 : (_$Appointment67$orgid = _$Appointment67.orgid) === null || _$Appointment67$orgid === void 0 ? void 0 : _$Appointment67$orgid.name) !== null && _$Appointment$orgid$n !== void 0 ? _$Appointment$orgid$n : ""
38857
38857
  }),
38858
38858
  clinic: (_ === 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.clinic) || "",
38859
- appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment66 = _.Appointment) === null || _$Appointment66 === void 0 ? void 0 : _$Appointment66.appstatus) || "",
38859
+ appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment68 = _.Appointment) === null || _$Appointment68 === void 0 ? void 0 : _$Appointment68.appstatus) || "",
38860
38860
  "View Patient": true,
38861
38861
  Attend: true,
38862
38862
  action: true,
@@ -39397,35 +39397,35 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
39397
39397
  case 5:
39398
39398
  data = _context13.sent;
39399
39399
  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 (_) {
39400
- var _$Appointment67, _$Appointment67$Perso, _$Appointment67$Perso2, _$Appointment67$Perso3, _$Appointment67$Perso4, _$Appointment68, _$Appointment68$Perso, _$Appointment68$Perso2, _$Appointment68$Perso3, _$Appointment68$Perso4, _$Appointment69, _$Appointment69$Perso, _$Appointment69$Perso2, _$Appointment69$Perso3, _$Appointment70, _$Appointment70$Perso, _$Appointment70$Perso2, _$Appointment71, _$Appointment71$Perso, _$Appointment71$Perso2, _$Appointment71$Perso3, _$Appointment72, _$Appointment73, _$Appointment74, _$Appointment75, _$Appointment76, _$Appointment$appoint3, _$Appointment77, _$Appointment$Special2, _$Appointment78, _$Appointment78$Speci, _$Appointment$orgid$n2, _$Appointment79, _$Appointment79$orgid, _$practitioner_detail13, _$practitioner_detail14, _$Appointment80;
39400
+ var _$Appointment69, _$Appointment69$Perso, _$Appointment69$Perso2, _$Appointment69$Perso3, _$Appointment69$Perso4, _$Appointment70, _$Appointment70$Perso, _$Appointment70$Perso2, _$Appointment70$Perso3, _$Appointment70$Perso4, _$Appointment71, _$Appointment71$Perso, _$Appointment71$Perso2, _$Appointment71$Perso3, _$Appointment72, _$Appointment72$Perso, _$Appointment72$Perso2, _$Appointment73, _$Appointment73$Perso, _$Appointment73$Perso2, _$Appointment73$Perso3, _$Appointment$PersonI21, _$Appointment74, _$Appointment74$Perso, _$Appointment74$Perso2, _$Appointment74$Perso3, _$Appointment74$Perso4, _$Appointment75, _$Appointment76, _$Appointment77, _$Appointment78, _$Appointment79, _$Appointment$appoint3, _$Appointment80, _$Appointment$Special2, _$Appointment81, _$Appointment81$Speci, _$Appointment$orgid$n2, _$Appointment82, _$Appointment82$orgid, _$practitioner_detail13, _$practitioner_detail14, _$Appointment83;
39401
39401
 
39402
39402
  return {
39403
- img: (_ === null || _ === void 0 ? void 0 : (_$Appointment67 = _.Appointment) === null || _$Appointment67 === void 0 ? void 0 : (_$Appointment67$Perso = _$Appointment67.PersonID) === null || _$Appointment67$Perso === void 0 ? void 0 : (_$Appointment67$Perso2 = _$Appointment67$Perso[0]) === null || _$Appointment67$Perso2 === void 0 ? void 0 : (_$Appointment67$Perso3 = _$Appointment67$Perso2.photo) === null || _$Appointment67$Perso3 === void 0 ? void 0 : (_$Appointment67$Perso4 = _$Appointment67$Perso3[0]) === null || _$Appointment67$Perso4 === void 0 ? void 0 : _$Appointment67$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment68 = _.Appointment) === null || _$Appointment68 === void 0 ? void 0 : (_$Appointment68$Perso = _$Appointment68.PersonID) === null || _$Appointment68$Perso === void 0 ? void 0 : (_$Appointment68$Perso2 = _$Appointment68$Perso[0]) === null || _$Appointment68$Perso2 === void 0 ? void 0 : (_$Appointment68$Perso3 = _$Appointment68$Perso2.photo) === null || _$Appointment68$Perso3 === void 0 ? void 0 : (_$Appointment68$Perso4 = _$Appointment68$Perso3[0]) === null || _$Appointment68$Perso4 === void 0 ? void 0 : _$Appointment68$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
39403
+ img: (_ === null || _ === void 0 ? void 0 : (_$Appointment69 = _.Appointment) === null || _$Appointment69 === void 0 ? void 0 : (_$Appointment69$Perso = _$Appointment69.PersonID) === null || _$Appointment69$Perso === void 0 ? void 0 : (_$Appointment69$Perso2 = _$Appointment69$Perso[0]) === null || _$Appointment69$Perso2 === void 0 ? void 0 : (_$Appointment69$Perso3 = _$Appointment69$Perso2.photo) === null || _$Appointment69$Perso3 === void 0 ? void 0 : (_$Appointment69$Perso4 = _$Appointment69$Perso3[0]) === null || _$Appointment69$Perso4 === void 0 ? void 0 : _$Appointment69$Perso4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$Appointment70 = _.Appointment) === null || _$Appointment70 === void 0 ? void 0 : (_$Appointment70$Perso = _$Appointment70.PersonID) === null || _$Appointment70$Perso === void 0 ? void 0 : (_$Appointment70$Perso2 = _$Appointment70$Perso[0]) === null || _$Appointment70$Perso2 === void 0 ? void 0 : (_$Appointment70$Perso3 = _$Appointment70$Perso2.photo) === null || _$Appointment70$Perso3 === void 0 ? void 0 : (_$Appointment70$Perso4 = _$Appointment70$Perso3[0]) === null || _$Appointment70$Perso4 === void 0 ? void 0 : _$Appointment70$Perso4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
39404
39404
  name: JSON.stringify({
39405
- name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment69 = _.Appointment) === null || _$Appointment69 === void 0 ? void 0 : (_$Appointment69$Perso = _$Appointment69.PersonID) === null || _$Appointment69$Perso === void 0 ? void 0 : (_$Appointment69$Perso2 = _$Appointment69$Perso[0]) === null || _$Appointment69$Perso2 === void 0 ? void 0 : (_$Appointment69$Perso3 = _$Appointment69$Perso2.name) === null || _$Appointment69$Perso3 === void 0 ? void 0 : _$Appointment69$Perso3[0]) || {}),
39406
- age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment70 = _.Appointment) === null || _$Appointment70 === void 0 ? void 0 : (_$Appointment70$Perso = _$Appointment70.PersonID) === null || _$Appointment70$Perso === void 0 ? void 0 : (_$Appointment70$Perso2 = _$Appointment70$Perso[0]) === null || _$Appointment70$Perso2 === void 0 ? void 0 : _$Appointment70$Perso2.birthDay),
39407
- mrn: (_$Appointment71 = _.Appointment) === null || _$Appointment71 === void 0 ? void 0 : (_$Appointment71$Perso = _$Appointment71.PersonID) === null || _$Appointment71$Perso === void 0 ? void 0 : (_$Appointment71$Perso2 = _$Appointment71$Perso[0]) === null || _$Appointment71$Perso2 === void 0 ? void 0 : (_$Appointment71$Perso3 = _$Appointment71$Perso2.MRN) === null || _$Appointment71$Perso3 === void 0 ? void 0 : _$Appointment71$Perso3[0],
39408
- genderData: "M",
39409
- contact: "9785487478"
39405
+ name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment71 = _.Appointment) === null || _$Appointment71 === void 0 ? void 0 : (_$Appointment71$Perso = _$Appointment71.PersonID) === null || _$Appointment71$Perso === void 0 ? void 0 : (_$Appointment71$Perso2 = _$Appointment71$Perso[0]) === null || _$Appointment71$Perso2 === void 0 ? void 0 : (_$Appointment71$Perso3 = _$Appointment71$Perso2.name) === null || _$Appointment71$Perso3 === void 0 ? void 0 : _$Appointment71$Perso3[0]) || {}),
39406
+ age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment72 = _.Appointment) === null || _$Appointment72 === void 0 ? void 0 : (_$Appointment72$Perso = _$Appointment72.PersonID) === null || _$Appointment72$Perso === void 0 ? void 0 : (_$Appointment72$Perso2 = _$Appointment72$Perso[0]) === null || _$Appointment72$Perso2 === void 0 ? void 0 : _$Appointment72$Perso2.birthDay),
39407
+ mrn: (_$Appointment73 = _.Appointment) === null || _$Appointment73 === void 0 ? void 0 : (_$Appointment73$Perso = _$Appointment73.PersonID) === null || _$Appointment73$Perso === void 0 ? void 0 : (_$Appointment73$Perso2 = _$Appointment73$Perso[0]) === null || _$Appointment73$Perso2 === void 0 ? void 0 : (_$Appointment73$Perso3 = _$Appointment73$Perso2.MRN) === null || _$Appointment73$Perso3 === void 0 ? void 0 : _$Appointment73$Perso3[0],
39408
+ // genderData: "M",
39409
+ contact: (_$Appointment$PersonI21 = (_$Appointment74 = _.Appointment) === null || _$Appointment74 === void 0 ? void 0 : (_$Appointment74$Perso = _$Appointment74.PersonID) === null || _$Appointment74$Perso === void 0 ? void 0 : (_$Appointment74$Perso2 = _$Appointment74$Perso[0]) === null || _$Appointment74$Perso2 === void 0 ? void 0 : (_$Appointment74$Perso3 = _$Appointment74$Perso2.telecom) === null || _$Appointment74$Perso3 === void 0 ? void 0 : (_$Appointment74$Perso4 = _$Appointment74$Perso3[0]) === null || _$Appointment74$Perso4 === void 0 ? void 0 : _$Appointment74$Perso4.value) !== null && _$Appointment$PersonI21 !== void 0 ? _$Appointment$PersonI21 : ""
39410
39410
  }),
39411
39411
  // mrn: _?.patient_id?.[0]?.alias || "",
39412
39412
  // age: _?.patient_id?.[0]?.age,
39413
- refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment72 = _.Appointment) === null || _$Appointment72 === void 0 ? void 0 : _$Appointment72.appno) || "",
39413
+ refNo: (_ === null || _ === void 0 ? void 0 : (_$Appointment75 = _.Appointment) === null || _$Appointment75 === void 0 ? void 0 : _$Appointment75.appno) || "",
39414
39414
  date: JSON.stringify({
39415
- date: (_ === null || _ === void 0 ? void 0 : (_$Appointment73 = _.Appointment) === null || _$Appointment73 === void 0 ? void 0 : _$Appointment73.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment74 = _.Appointment) === null || _$Appointment74 === void 0 ? void 0 : _$Appointment74.start, "DD MMM,YYYY") : "",
39416
- time: (_ === null || _ === void 0 ? void 0 : (_$Appointment75 = _.Appointment) === null || _$Appointment75 === void 0 ? void 0 : _$Appointment75.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment76 = _.Appointment) === null || _$Appointment76 === void 0 ? void 0 : _$Appointment76.start, "hh:mm A") : ""
39415
+ date: (_ === null || _ === void 0 ? void 0 : (_$Appointment76 = _.Appointment) === null || _$Appointment76 === void 0 ? void 0 : _$Appointment76.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment77 = _.Appointment) === null || _$Appointment77 === void 0 ? void 0 : _$Appointment77.start, "DD MMM,YYYY") : "",
39416
+ time: (_ === null || _ === void 0 ? void 0 : (_$Appointment78 = _.Appointment) === null || _$Appointment78 === void 0 ? void 0 : _$Appointment78.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$Appointment79 = _.Appointment) === null || _$Appointment79 === void 0 ? void 0 : _$Appointment79.start, "hh:mm A") : ""
39417
39417
  }),
39418
- visitType: (_$Appointment$appoint3 = _ === null || _ === void 0 ? void 0 : (_$Appointment77 = _.Appointment) === null || _$Appointment77 === void 0 ? void 0 : _$Appointment77.appointmentType) !== null && _$Appointment$appoint3 !== void 0 ? _$Appointment$appoint3 : "",
39418
+ visitType: (_$Appointment$appoint3 = _ === null || _ === void 0 ? void 0 : (_$Appointment80 = _.Appointment) === null || _$Appointment80 === void 0 ? void 0 : _$Appointment80.appointmentType) !== null && _$Appointment$appoint3 !== void 0 ? _$Appointment$appoint3 : "",
39419
39419
  speciality: JSON.stringify({
39420
- speciality: (_$Appointment$Special2 = _ === null || _ === void 0 ? void 0 : (_$Appointment78 = _.Appointment) === null || _$Appointment78 === void 0 ? void 0 : (_$Appointment78$Speci = _$Appointment78.SpecialtyID) === null || _$Appointment78$Speci === void 0 ? void 0 : _$Appointment78$Speci.map(function (spl) {
39420
+ speciality: (_$Appointment$Special2 = _ === null || _ === void 0 ? void 0 : (_$Appointment81 = _.Appointment) === null || _$Appointment81 === void 0 ? void 0 : (_$Appointment81$Speci = _$Appointment81.SpecialtyID) === null || _$Appointment81$Speci === void 0 ? void 0 : _$Appointment81$Speci.map(function (spl) {
39421
39421
  var _spl$coding7, _spl$coding7$;
39422
39422
 
39423
39423
  return spl === null || spl === void 0 ? void 0 : (_spl$coding7 = spl.coding) === null || _spl$coding7 === void 0 ? void 0 : (_spl$coding7$ = _spl$coding7[0]) === null || _spl$coding7$ === void 0 ? void 0 : _spl$coding7$.display;
39424
39424
  }).join(", ")) !== null && _$Appointment$Special2 !== void 0 ? _$Appointment$Special2 : "",
39425
- clinic: (_$Appointment$orgid$n2 = _ === null || _ === void 0 ? void 0 : (_$Appointment79 = _.Appointment) === null || _$Appointment79 === void 0 ? void 0 : (_$Appointment79$orgid = _$Appointment79.orgid) === null || _$Appointment79$orgid === void 0 ? void 0 : _$Appointment79$orgid.name) !== null && _$Appointment$orgid$n2 !== void 0 ? _$Appointment$orgid$n2 : ""
39425
+ clinic: (_$Appointment$orgid$n2 = _ === null || _ === void 0 ? void 0 : (_$Appointment82 = _.Appointment) === null || _$Appointment82 === void 0 ? void 0 : (_$Appointment82$orgid = _$Appointment82.orgid) === null || _$Appointment82$orgid === void 0 ? void 0 : _$Appointment82$orgid.name) !== null && _$Appointment$orgid$n2 !== void 0 ? _$Appointment$orgid$n2 : ""
39426
39426
  }),
39427
39427
  clinic: (_ === null || _ === void 0 ? void 0 : (_$practitioner_detail13 = _.practitioner_details) === null || _$practitioner_detail13 === void 0 ? void 0 : (_$practitioner_detail14 = _$practitioner_detail13[0]) === null || _$practitioner_detail14 === void 0 ? void 0 : _$practitioner_detail14.clinic) || "",
39428
- appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment80 = _.Appointment) === null || _$Appointment80 === void 0 ? void 0 : _$Appointment80.appstatus) || "",
39428
+ appointmentStatus: (_ === null || _ === void 0 ? void 0 : (_$Appointment83 = _.Appointment) === null || _$Appointment83 === void 0 ? void 0 : _$Appointment83.appstatus) || "",
39429
39429
  "View Patient": true,
39430
39430
  Attend: true,
39431
39431
  action: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",