primarycare-binder 1.1.34 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +162 -156
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -37985,7 +37985,7 @@ var query$4 = {
|
|
|
37985
37985
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)!='cancelled' && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
37986
37986
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
37987
37987
|
},
|
|
37988
|
-
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
37988
|
+
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
37989
37989
|
};
|
|
37990
37990
|
},
|
|
37991
37991
|
getFirstVisits: function getFirstVisits(data) {
|
|
@@ -37996,7 +37996,7 @@ var query$4 = {
|
|
|
37996
37996
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
37997
37997
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit')"
|
|
37998
37998
|
},
|
|
37999
|
-
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
37999
|
+
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38000
38000
|
};
|
|
38001
38001
|
},
|
|
38002
38002
|
getOtherVisits: function getOtherVisits(data) {
|
|
@@ -38007,7 +38007,7 @@ var query$4 = {
|
|
|
38007
38007
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38008
38008
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Other Visits')"
|
|
38009
38009
|
},
|
|
38010
|
-
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38010
|
+
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38011
38011
|
};
|
|
38012
38012
|
},
|
|
38013
38013
|
getWalkIns: function getWalkIns(data) {
|
|
@@ -38018,7 +38018,7 @@ var query$4 = {
|
|
|
38018
38018
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38019
38019
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Walkin')"
|
|
38020
38020
|
},
|
|
38021
|
-
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38021
|
+
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38022
38022
|
};
|
|
38023
38023
|
},
|
|
38024
38024
|
getNewPatients: function getNewPatients(data) {
|
|
@@ -38029,7 +38029,7 @@ var query$4 = {
|
|
|
38029
38029
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38030
38030
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient')"
|
|
38031
38031
|
},
|
|
38032
|
-
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38032
|
+
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38033
38033
|
};
|
|
38034
38034
|
},
|
|
38035
38035
|
getTodayVisits: function getTodayVisits(data) {
|
|
@@ -38040,7 +38040,7 @@ var query$4 = {
|
|
|
38040
38040
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38041
38041
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in' "
|
|
38042
38042
|
},
|
|
38043
|
-
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38043
|
+
return_fields: "{Appointment:merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}),Encounter:merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))})}"
|
|
38044
38044
|
};
|
|
38045
38045
|
},
|
|
38046
38046
|
// NURSE
|
|
@@ -38100,7 +38100,7 @@ var query$4 = {
|
|
|
38100
38100
|
Practitioner: "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, "'"),
|
|
38101
38101
|
Encounter: "Encounter.activestatus == true && Encounter.Organization_id == ".concat(data === null || data === void 0 ? void 0 : data.orgIDInt, " && DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID ANY IN Encounter.practitioner_details[*].speciality AND Encounter.encounterdate>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Encounter.encounterdate<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'")
|
|
38102
38102
|
},
|
|
38103
|
-
return_fields: "merge(Encounter,{status:document(Encounter.status),patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38103
|
+
return_fields: "merge(Encounter,{status:document(Encounter.status),patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(for Appointment in Appointment filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38104
38104
|
};
|
|
38105
38105
|
},
|
|
38106
38106
|
getWalkInsNurse: function getWalkInsNurse(data) {
|
|
@@ -38124,7 +38124,7 @@ var query$4 = {
|
|
|
38124
38124
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && lower(Appointment.appointmentType)!='cancelled' && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38125
38125
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
38126
38126
|
},
|
|
38127
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38127
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38128
38128
|
};
|
|
38129
38129
|
},
|
|
38130
38130
|
getFirstVisitsDoctor: function getFirstVisitsDoctor(data) {
|
|
@@ -38135,7 +38135,7 @@ var query$4 = {
|
|
|
38135
38135
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38136
38136
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit')"
|
|
38137
38137
|
},
|
|
38138
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38138
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38139
38139
|
};
|
|
38140
38140
|
},
|
|
38141
38141
|
getNewPatientsDoctor: function getNewPatientsDoctor(data) {
|
|
@@ -38146,7 +38146,7 @@ var query$4 = {
|
|
|
38146
38146
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38147
38147
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient')"
|
|
38148
38148
|
},
|
|
38149
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38149
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38150
38150
|
};
|
|
38151
38151
|
},
|
|
38152
38152
|
getOtherVisitsDoctor: function getOtherVisitsDoctor(data) {
|
|
@@ -38157,7 +38157,7 @@ var query$4 = {
|
|
|
38157
38157
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38158
38158
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Other Visits')"
|
|
38159
38159
|
},
|
|
38160
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38160
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38161
38161
|
};
|
|
38162
38162
|
},
|
|
38163
38163
|
getTodayVisitsDoctor: function getTodayVisitsDoctor(data) {
|
|
@@ -38168,7 +38168,7 @@ var query$4 = {
|
|
|
38168
38168
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "' "),
|
|
38169
38169
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(first(document(Encounter.statushistory[*].status)[*].display))=='checked-in'"
|
|
38170
38170
|
},
|
|
38171
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38171
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38172
38172
|
};
|
|
38173
38173
|
},
|
|
38174
38174
|
getWalkInsDoctor: function getWalkInsDoctor(data) {
|
|
@@ -38179,7 +38179,7 @@ var query$4 = {
|
|
|
38179
38179
|
Appointment: "Appointment.activestatus==true && Appointment.start>=".concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(Appointment.resourcecode).id ==").concat(data === null || data === void 0 ? void 0 : data.practionerID, " && Appointment.orgid=='").concat(data === null || data === void 0 ? void 0 : data.orgID, "'"),
|
|
38180
38180
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('Walkin')"
|
|
38181
38181
|
},
|
|
38182
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38182
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return {id : pat.id, _id : pat._id,name:(for hn in HumanNameMaster filter hn._id in pat.name return merge(hn,{use:document(hn.use),prefix:document(hn.prefix),suffix:document(hn.suffix)})),telecom:document(pat.telecom),gender:document(pat.gender),MRN:pat.alias,age:pat.age}),status:document(Encounter.status),practitioner_details:(for prac in Encounter.practitioner_details return merge(prac,{speciality:(for cod in CodeableConceptMaster filter cod._id==prac.speciality return document(cod.coding))}))},{appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:merge(document(document(Appointment.resourcecode).name))}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))}))})"
|
|
38183
38183
|
};
|
|
38184
38184
|
}
|
|
38185
38185
|
};
|
|
@@ -38643,7 +38643,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38643
38643
|
case 5:
|
|
38644
38644
|
data = _context7.sent;
|
|
38645
38645
|
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 (_) {
|
|
38646
|
-
var _$appointmentId, _$appointmentId$, _$appointmentId$$Pers, _$appointmentId$$Pers2, _$appointmentId$$Pers3, _$appointmentId$$Pers4, _$appointmentId2, _$appointmentId2$, _$appointmentId2$$Per, _$appointmentId2$$Per2, _$appointmentId2$$Per3, _$appointmentId2$$Per4, _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$patient_id3, _$patient_id3$, _$appointmentId3, _$appointmentId3$, _$appointmentId4, _$appointmentId4$, _$appointmentId5, _$appointmentId5$, _$appointmentId6, _$appointmentId6$, _$appointmentId7, _$appointmentId7$, _$visit_type, _$appointmentId8, _$appointmentId8$, _$appointmentId8$$Spe, _$practitioner_detail, _$practitioner_detail2, _$status, _$
|
|
38646
|
+
var _$appointmentId, _$appointmentId$, _$appointmentId$$Pers, _$appointmentId$$Pers2, _$appointmentId$$Pers3, _$appointmentId$$Pers4, _$appointmentId2, _$appointmentId2$, _$appointmentId2$$Per, _$appointmentId2$$Per2, _$appointmentId2$$Per3, _$appointmentId2$$Per4, _$patient_id, _$patient_id$, _$patient_id$$name, _$patient_id2, _$patient_id2$, _$patient_id3, _$patient_id3$, _$appointmentId3, _$appointmentId3$, _$appointmentId4, _$appointmentId4$, _$appointmentId5, _$appointmentId5$, _$appointmentId6, _$appointmentId6$, _$appointmentId7, _$appointmentId7$, _$visit_type, _$appointmentId8, _$appointmentId8$, _$appointmentId8$$Spe, _$practitioner_detail, _$practitioner_detail2, _$status, _$appointmentId$0$id, _$appointmentId9, _$appointmentId9$, _$appointmentId10, _$appointmentId10$, _$appointmentId10$$Pe, _$appointmentId10$$Pe2, _$appointmentId11, _$appointmentId11$, _$appointmentId11$$Pe, _$appointmentId11$$Pe2, _$patient_id$0$teleco, _$patient_id4, _$patient_id4$, _$patient_id4$$teleco, _$patient_id4$$teleco2, _$patient_id5, _ref15;
|
|
38647
38647
|
|
|
38648
38648
|
return _ref15 = {
|
|
38649
38649
|
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId = _.appointmentId) === null || _$appointmentId === void 0 ? void 0 : (_$appointmentId$ = _$appointmentId[0]) === null || _$appointmentId$ === void 0 ? void 0 : (_$appointmentId$$Pers = _$appointmentId$.PersonID) === null || _$appointmentId$$Pers === void 0 ? void 0 : (_$appointmentId$$Pers2 = _$appointmentId$$Pers[0]) === null || _$appointmentId$$Pers2 === void 0 ? void 0 : (_$appointmentId$$Pers3 = _$appointmentId$$Pers2.photo) === null || _$appointmentId$$Pers3 === void 0 ? void 0 : (_$appointmentId$$Pers4 = _$appointmentId$$Pers3[0]) === null || _$appointmentId$$Pers4 === void 0 ? void 0 : _$appointmentId$$Pers4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId2 = _.appointmentId) === null || _$appointmentId2 === void 0 ? void 0 : (_$appointmentId2$ = _$appointmentId2[0]) === null || _$appointmentId2$ === void 0 ? void 0 : (_$appointmentId2$$Per = _$appointmentId2$.PersonID) === null || _$appointmentId2$$Per === void 0 ? void 0 : (_$appointmentId2$$Per2 = _$appointmentId2$$Per[0]) === null || _$appointmentId2$$Per2 === void 0 ? void 0 : (_$appointmentId2$$Per3 = _$appointmentId2$$Per2.photo) === null || _$appointmentId2$$Per3 === void 0 ? void 0 : (_$appointmentId2$$Per4 = _$appointmentId2$$Per3[0]) === null || _$appointmentId2$$Per4 === void 0 ? void 0 : _$appointmentId2$$Per4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
@@ -38664,10 +38664,10 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
38664
38664
|
"View Patient": true,
|
|
38665
38665
|
Attend: true,
|
|
38666
38666
|
type: "OP",
|
|
38667
|
-
appNo: (_$
|
|
38667
|
+
appNo: (_$appointmentId$0$id = _ === null || _ === void 0 ? void 0 : (_$appointmentId9 = _.appointmentId) === null || _$appointmentId9 === void 0 ? void 0 : (_$appointmentId9$ = _$appointmentId9[0]) === null || _$appointmentId9$ === void 0 ? void 0 : _$appointmentId9$.id) !== null && _$appointmentId$0$id !== void 0 ? _$appointmentId$0$id : '',
|
|
38668
38668
|
data: _,
|
|
38669
|
-
enId: _.
|
|
38670
|
-
}, _defineProperty(_ref15, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38669
|
+
enId: _.id
|
|
38670
|
+
}, _defineProperty(_ref15, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId10 = _.appointmentId) === null || _$appointmentId10 === void 0 ? void 0 : (_$appointmentId10$ = _$appointmentId10[0]) === null || _$appointmentId10$ === void 0 ? void 0 : (_$appointmentId10$$Pe = _$appointmentId10$.PersonID) === null || _$appointmentId10$$Pe === void 0 ? void 0 : (_$appointmentId10$$Pe2 = _$appointmentId10$$Pe[0]) === null || _$appointmentId10$$Pe2 === void 0 ? void 0 : _$appointmentId10$$Pe2.birthDay)), _defineProperty(_ref15, "gender", _ === null || _ === void 0 ? void 0 : (_$appointmentId11 = _.appointmentId) === null || _$appointmentId11 === void 0 ? void 0 : (_$appointmentId11$ = _$appointmentId11[0]) === null || _$appointmentId11$ === void 0 ? void 0 : (_$appointmentId11$$Pe = _$appointmentId11$.PersonID) === null || _$appointmentId11$$Pe === void 0 ? void 0 : (_$appointmentId11$$Pe2 = _$appointmentId11$$Pe[0]) === null || _$appointmentId11$$Pe2 === void 0 ? void 0 : _$appointmentId11$$Pe2.gender), _defineProperty(_ref15, "contact", (_$patient_id$0$teleco = _ === null || _ === void 0 ? void 0 : (_$patient_id4 = _.patient_id) === null || _$patient_id4 === void 0 ? void 0 : (_$patient_id4$ = _$patient_id4[0]) === null || _$patient_id4$ === void 0 ? void 0 : (_$patient_id4$$teleco = _$patient_id4$.telecom) === null || _$patient_id4$$teleco === void 0 ? void 0 : (_$patient_id4$$teleco2 = _$patient_id4$$teleco[0]) === null || _$patient_id4$$teleco2 === void 0 ? void 0 : _$patient_id4$$teleco2.value) !== null && _$patient_id$0$teleco !== void 0 ? _$patient_id$0$teleco : ""), _defineProperty(_ref15, "pId", _ === null || _ === void 0 ? void 0 : (_$patient_id5 = _.patient_id) === null || _$patient_id5 === void 0 ? void 0 : _$patient_id5.id), _ref15;
|
|
38671
38671
|
}) : [];
|
|
38672
38672
|
return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
38673
38673
|
data: returnedData
|
|
@@ -38711,18 +38711,18 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38711
38711
|
case 5:
|
|
38712
38712
|
data = _context8.sent;
|
|
38713
38713
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result8 = data.result) === null || _data$result8 === void 0 ? void 0 : _data$result8.map(function (_) {
|
|
38714
|
-
var _$
|
|
38714
|
+
var _$appointmentId12, _$appointmentId12$, _$appointmentId12$$Pe, _$appointmentId12$$Pe2, _$appointmentId12$$Pe3, _$appointmentId12$$Pe4, _$appointmentId13, _$appointmentId13$, _$appointmentId13$$Pe, _$appointmentId13$$Pe2, _$appointmentId13$$Pe3, _$appointmentId13$$Pe4, _$patient_id6, _$patient_id6$, _$patient_id6$$name, _$patient_id7, _$patient_id7$, _$patient_id8, _$patient_id8$, _$appointmentId14, _$appointmentId14$, _$appointmentId15, _$appointmentId15$, _$appointmentId16, _$appointmentId16$, _$appointmentId17, _$appointmentId17$, _$appointmentId18, _$appointmentId18$, _$visit_type2, _$appointmentId19, _$appointmentId19$, _$appointmentId19$$Sp, _$practitioner_detail3, _$practitioner_detail4, _$status2, _$appointmentId$0$id2, _$appointmentId20, _$appointmentId20$, _$appointmentId21, _$appointmentId21$, _$appointmentId21$$Pe, _$appointmentId21$$Pe2, _$appointmentId22, _$appointmentId22$, _$appointmentId22$$Pe, _$appointmentId22$$Pe2, _$patient_id$0$teleco2, _$patient_id9, _$patient_id9$, _$patient_id9$$teleco, _$patient_id9$$teleco2, _$patient_id10, _ref18;
|
|
38715
38715
|
|
|
38716
38716
|
return _ref18 = {
|
|
38717
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38718
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38719
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38720
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
38721
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38722
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38723
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38717
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId12 = _.appointmentId) === null || _$appointmentId12 === void 0 ? void 0 : (_$appointmentId12$ = _$appointmentId12[0]) === null || _$appointmentId12$ === void 0 ? void 0 : (_$appointmentId12$$Pe = _$appointmentId12$.PersonID) === null || _$appointmentId12$$Pe === void 0 ? void 0 : (_$appointmentId12$$Pe2 = _$appointmentId12$$Pe[0]) === null || _$appointmentId12$$Pe2 === void 0 ? void 0 : (_$appointmentId12$$Pe3 = _$appointmentId12$$Pe2.photo) === null || _$appointmentId12$$Pe3 === void 0 ? void 0 : (_$appointmentId12$$Pe4 = _$appointmentId12$$Pe3[0]) === null || _$appointmentId12$$Pe4 === void 0 ? void 0 : _$appointmentId12$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId13 = _.appointmentId) === null || _$appointmentId13 === void 0 ? void 0 : (_$appointmentId13$ = _$appointmentId13[0]) === null || _$appointmentId13$ === void 0 ? void 0 : (_$appointmentId13$$Pe = _$appointmentId13$.PersonID) === null || _$appointmentId13$$Pe === void 0 ? void 0 : (_$appointmentId13$$Pe2 = _$appointmentId13$$Pe[0]) === null || _$appointmentId13$$Pe2 === void 0 ? void 0 : (_$appointmentId13$$Pe3 = _$appointmentId13$$Pe2.photo) === null || _$appointmentId13$$Pe3 === void 0 ? void 0 : (_$appointmentId13$$Pe4 = _$appointmentId13$$Pe3[0]) === null || _$appointmentId13$$Pe4 === void 0 ? void 0 : _$appointmentId13$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38718
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id6 = _.patient_id) === null || _$patient_id6 === void 0 ? void 0 : (_$patient_id6$ = _$patient_id6[0]) === null || _$patient_id6$ === void 0 ? void 0 : (_$patient_id6$$name = _$patient_id6$.name) === null || _$patient_id6$$name === void 0 ? void 0 : _$patient_id6$$name[0]) || {}),
|
|
38719
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id7 = _.patient_id) === null || _$patient_id7 === void 0 ? void 0 : (_$patient_id7$ = _$patient_id7[0]) === null || _$patient_id7$ === void 0 ? void 0 : _$patient_id7$.alias) || "",
|
|
38720
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id8 = _.patient_id) === null || _$patient_id8 === void 0 ? void 0 : (_$patient_id8$ = _$patient_id8[0]) === null || _$patient_id8$ === void 0 ? void 0 : _$patient_id8$.age,
|
|
38721
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId14 = _.appointmentId) === null || _$appointmentId14 === void 0 ? void 0 : (_$appointmentId14$ = _$appointmentId14[0]) === null || _$appointmentId14$ === void 0 ? void 0 : _$appointmentId14$.appno) || "",
|
|
38722
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId15 = _.appointmentId) === null || _$appointmentId15 === void 0 ? void 0 : (_$appointmentId15$ = _$appointmentId15[0]) === null || _$appointmentId15$ === void 0 ? void 0 : _$appointmentId15$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId16 = _.appointmentId) === null || _$appointmentId16 === void 0 ? void 0 : (_$appointmentId16$ = _$appointmentId16[0]) === null || _$appointmentId16$ === void 0 ? void 0 : _$appointmentId16$.start, "DD MMM,YYYY") : "",
|
|
38723
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId17 = _.appointmentId) === null || _$appointmentId17 === void 0 ? void 0 : (_$appointmentId17$ = _$appointmentId17[0]) === null || _$appointmentId17$ === void 0 ? void 0 : _$appointmentId17$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId18 = _.appointmentId) === null || _$appointmentId18 === void 0 ? void 0 : (_$appointmentId18$ = _$appointmentId18[0]) === null || _$appointmentId18$ === void 0 ? void 0 : _$appointmentId18$.start, "hh:mm A") : "",
|
|
38724
38724
|
visitType: (_$visit_type2 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type2 !== void 0 ? _$visit_type2 : "",
|
|
38725
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
38725
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId19 = _.appointmentId) === null || _$appointmentId19 === void 0 ? void 0 : (_$appointmentId19$ = _$appointmentId19[0]) === null || _$appointmentId19$ === void 0 ? void 0 : (_$appointmentId19$$Sp = _$appointmentId19$.SpecialtyID) === null || _$appointmentId19$$Sp === void 0 ? void 0 : _$appointmentId19$$Sp.map(function (spl) {
|
|
38726
38726
|
var _spl$coding8, _spl$coding8$;
|
|
38727
38727
|
|
|
38728
38728
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding8 = spl.coding) === null || _spl$coding8 === void 0 ? void 0 : (_spl$coding8$ = _spl$coding8[0]) === null || _spl$coding8$ === void 0 ? void 0 : _spl$coding8$.display;
|
|
@@ -38732,10 +38732,10 @@ var GET_FIRST_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getFirst
|
|
|
38732
38732
|
"View Patient": true,
|
|
38733
38733
|
Attend: true,
|
|
38734
38734
|
type: "OP",
|
|
38735
|
-
appNo: (_$
|
|
38735
|
+
appNo: (_$appointmentId$0$id2 = _ === null || _ === void 0 ? void 0 : (_$appointmentId20 = _.appointmentId) === null || _$appointmentId20 === void 0 ? void 0 : (_$appointmentId20$ = _$appointmentId20[0]) === null || _$appointmentId20$ === void 0 ? void 0 : _$appointmentId20$.id) !== null && _$appointmentId$0$id2 !== void 0 ? _$appointmentId$0$id2 : '',
|
|
38736
38736
|
data: _,
|
|
38737
|
-
enId: _.
|
|
38738
|
-
}, _defineProperty(_ref18, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38737
|
+
enId: _.id
|
|
38738
|
+
}, _defineProperty(_ref18, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId21 = _.appointmentId) === null || _$appointmentId21 === void 0 ? void 0 : (_$appointmentId21$ = _$appointmentId21[0]) === null || _$appointmentId21$ === void 0 ? void 0 : (_$appointmentId21$$Pe = _$appointmentId21$.PersonID) === null || _$appointmentId21$$Pe === void 0 ? void 0 : (_$appointmentId21$$Pe2 = _$appointmentId21$$Pe[0]) === null || _$appointmentId21$$Pe2 === void 0 ? void 0 : _$appointmentId21$$Pe2.birthDay)), _defineProperty(_ref18, "gender", _ === null || _ === void 0 ? void 0 : (_$appointmentId22 = _.appointmentId) === null || _$appointmentId22 === void 0 ? void 0 : (_$appointmentId22$ = _$appointmentId22[0]) === null || _$appointmentId22$ === void 0 ? void 0 : (_$appointmentId22$$Pe = _$appointmentId22$.PersonID) === null || _$appointmentId22$$Pe === void 0 ? void 0 : (_$appointmentId22$$Pe2 = _$appointmentId22$$Pe[0]) === null || _$appointmentId22$$Pe2 === void 0 ? void 0 : _$appointmentId22$$Pe2.gender), _defineProperty(_ref18, "contact", (_$patient_id$0$teleco2 = _ === null || _ === void 0 ? void 0 : (_$patient_id9 = _.patient_id) === null || _$patient_id9 === void 0 ? void 0 : (_$patient_id9$ = _$patient_id9[0]) === null || _$patient_id9$ === void 0 ? void 0 : (_$patient_id9$$teleco = _$patient_id9$.telecom) === null || _$patient_id9$$teleco === void 0 ? void 0 : (_$patient_id9$$teleco2 = _$patient_id9$$teleco[0]) === null || _$patient_id9$$teleco2 === void 0 ? void 0 : _$patient_id9$$teleco2.value) !== null && _$patient_id$0$teleco2 !== void 0 ? _$patient_id$0$teleco2 : ""), _defineProperty(_ref18, "pId", _ === null || _ === void 0 ? void 0 : (_$patient_id10 = _.patient_id) === null || _$patient_id10 === void 0 ? void 0 : _$patient_id10.id), _ref18;
|
|
38739
38739
|
}) : [];
|
|
38740
38740
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
38741
38741
|
data: returnedData
|
|
@@ -38779,18 +38779,18 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
38779
38779
|
case 5:
|
|
38780
38780
|
data = _context9.sent;
|
|
38781
38781
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result9 = data.result) === null || _data$result9 === void 0 ? void 0 : _data$result9.map(function (_) {
|
|
38782
|
-
var _$
|
|
38782
|
+
var _$appointmentId23, _$appointmentId23$, _$appointmentId23$$Pe, _$appointmentId23$$Pe2, _$appointmentId23$$Pe3, _$appointmentId23$$Pe4, _$appointmentId24, _$appointmentId24$, _$appointmentId24$$Pe, _$appointmentId24$$Pe2, _$appointmentId24$$Pe3, _$appointmentId24$$Pe4, _$patient_id11, _$patient_id11$, _$patient_id11$$name, _$patient_id12, _$patient_id12$, _$patient_id13, _$patient_id13$, _$appointmentId25, _$appointmentId25$, _$appointmentId26, _$appointmentId26$, _$appointmentId27, _$appointmentId27$, _$appointmentId28, _$appointmentId28$, _$appointmentId29, _$appointmentId29$, _$visit_type3, _$appointmentId30, _$appointmentId30$, _$appointmentId30$$Sp, _$practitioner_detail5, _$practitioner_detail6, _$status3, _$appointmentId$0$id3, _$appointmentId31, _$appointmentId31$, _$appointmentId32, _$appointmentId32$, _$appointmentId32$$Pe, _$appointmentId32$$Pe2, _$appointmentId33, _$appointmentId33$, _$appointmentId33$$Pe, _$appointmentId33$$Pe2, _$patient_id$0$teleco3, _$patient_id14, _$patient_id14$, _$patient_id14$$telec, _$patient_id14$$telec2, _$patient_id15, _ref21;
|
|
38783
38783
|
|
|
38784
38784
|
return _ref21 = {
|
|
38785
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38786
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38787
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38788
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
38789
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38790
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38791
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38785
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId23 = _.appointmentId) === null || _$appointmentId23 === void 0 ? void 0 : (_$appointmentId23$ = _$appointmentId23[0]) === null || _$appointmentId23$ === void 0 ? void 0 : (_$appointmentId23$$Pe = _$appointmentId23$.PersonID) === null || _$appointmentId23$$Pe === void 0 ? void 0 : (_$appointmentId23$$Pe2 = _$appointmentId23$$Pe[0]) === null || _$appointmentId23$$Pe2 === void 0 ? void 0 : (_$appointmentId23$$Pe3 = _$appointmentId23$$Pe2.photo) === null || _$appointmentId23$$Pe3 === void 0 ? void 0 : (_$appointmentId23$$Pe4 = _$appointmentId23$$Pe3[0]) === null || _$appointmentId23$$Pe4 === void 0 ? void 0 : _$appointmentId23$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId24 = _.appointmentId) === null || _$appointmentId24 === void 0 ? void 0 : (_$appointmentId24$ = _$appointmentId24[0]) === null || _$appointmentId24$ === void 0 ? void 0 : (_$appointmentId24$$Pe = _$appointmentId24$.PersonID) === null || _$appointmentId24$$Pe === void 0 ? void 0 : (_$appointmentId24$$Pe2 = _$appointmentId24$$Pe[0]) === null || _$appointmentId24$$Pe2 === void 0 ? void 0 : (_$appointmentId24$$Pe3 = _$appointmentId24$$Pe2.photo) === null || _$appointmentId24$$Pe3 === void 0 ? void 0 : (_$appointmentId24$$Pe4 = _$appointmentId24$$Pe3[0]) === null || _$appointmentId24$$Pe4 === void 0 ? void 0 : _$appointmentId24$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38786
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id11 = _.patient_id) === null || _$patient_id11 === void 0 ? void 0 : (_$patient_id11$ = _$patient_id11[0]) === null || _$patient_id11$ === void 0 ? void 0 : (_$patient_id11$$name = _$patient_id11$.name) === null || _$patient_id11$$name === void 0 ? void 0 : _$patient_id11$$name[0]) || {}),
|
|
38787
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id12 = _.patient_id) === null || _$patient_id12 === void 0 ? void 0 : (_$patient_id12$ = _$patient_id12[0]) === null || _$patient_id12$ === void 0 ? void 0 : _$patient_id12$.alias) || "",
|
|
38788
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id13 = _.patient_id) === null || _$patient_id13 === void 0 ? void 0 : (_$patient_id13$ = _$patient_id13[0]) === null || _$patient_id13$ === void 0 ? void 0 : _$patient_id13$.age,
|
|
38789
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId25 = _.appointmentId) === null || _$appointmentId25 === void 0 ? void 0 : (_$appointmentId25$ = _$appointmentId25[0]) === null || _$appointmentId25$ === void 0 ? void 0 : _$appointmentId25$.appno) || "",
|
|
38790
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId26 = _.appointmentId) === null || _$appointmentId26 === void 0 ? void 0 : (_$appointmentId26$ = _$appointmentId26[0]) === null || _$appointmentId26$ === void 0 ? void 0 : _$appointmentId26$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId27 = _.appointmentId) === null || _$appointmentId27 === void 0 ? void 0 : (_$appointmentId27$ = _$appointmentId27[0]) === null || _$appointmentId27$ === void 0 ? void 0 : _$appointmentId27$.start, "DD MMM,YYYY") : "",
|
|
38791
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId28 = _.appointmentId) === null || _$appointmentId28 === void 0 ? void 0 : (_$appointmentId28$ = _$appointmentId28[0]) === null || _$appointmentId28$ === void 0 ? void 0 : _$appointmentId28$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId29 = _.appointmentId) === null || _$appointmentId29 === void 0 ? void 0 : (_$appointmentId29$ = _$appointmentId29[0]) === null || _$appointmentId29$ === void 0 ? void 0 : _$appointmentId29$.start, "hh:mm A") : "",
|
|
38792
38792
|
visitType: (_$visit_type3 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type3 !== void 0 ? _$visit_type3 : "",
|
|
38793
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
38793
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId30 = _.appointmentId) === null || _$appointmentId30 === void 0 ? void 0 : (_$appointmentId30$ = _$appointmentId30[0]) === null || _$appointmentId30$ === void 0 ? void 0 : (_$appointmentId30$$Sp = _$appointmentId30$.SpecialtyID) === null || _$appointmentId30$$Sp === void 0 ? void 0 : _$appointmentId30$$Sp.map(function (spl) {
|
|
38794
38794
|
var _spl$coding9, _spl$coding9$;
|
|
38795
38795
|
|
|
38796
38796
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding9 = spl.coding) === null || _spl$coding9 === void 0 ? void 0 : (_spl$coding9$ = _spl$coding9[0]) === null || _spl$coding9$ === void 0 ? void 0 : _spl$coding9$.display;
|
|
@@ -38800,10 +38800,10 @@ var GET_NEW_PATIENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getNewPa
|
|
|
38800
38800
|
"View Patient": true,
|
|
38801
38801
|
Attend: true,
|
|
38802
38802
|
type: "OP",
|
|
38803
|
-
appNo: (_$
|
|
38803
|
+
appNo: (_$appointmentId$0$id3 = _ === null || _ === void 0 ? void 0 : (_$appointmentId31 = _.appointmentId) === null || _$appointmentId31 === void 0 ? void 0 : (_$appointmentId31$ = _$appointmentId31[0]) === null || _$appointmentId31$ === void 0 ? void 0 : _$appointmentId31$.id) !== null && _$appointmentId$0$id3 !== void 0 ? _$appointmentId$0$id3 : '',
|
|
38804
38804
|
data: _,
|
|
38805
|
-
enId: _.
|
|
38806
|
-
}, _defineProperty(_ref21, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38805
|
+
enId: _.id
|
|
38806
|
+
}, _defineProperty(_ref21, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId32 = _.appointmentId) === null || _$appointmentId32 === void 0 ? void 0 : (_$appointmentId32$ = _$appointmentId32[0]) === null || _$appointmentId32$ === void 0 ? void 0 : (_$appointmentId32$$Pe = _$appointmentId32$.PersonID) === null || _$appointmentId32$$Pe === void 0 ? void 0 : (_$appointmentId32$$Pe2 = _$appointmentId32$$Pe[0]) === null || _$appointmentId32$$Pe2 === void 0 ? void 0 : _$appointmentId32$$Pe2.birthDay)), _defineProperty(_ref21, "gender", _ === null || _ === void 0 ? void 0 : (_$appointmentId33 = _.appointmentId) === null || _$appointmentId33 === void 0 ? void 0 : (_$appointmentId33$ = _$appointmentId33[0]) === null || _$appointmentId33$ === void 0 ? void 0 : (_$appointmentId33$$Pe = _$appointmentId33$.PersonID) === null || _$appointmentId33$$Pe === void 0 ? void 0 : (_$appointmentId33$$Pe2 = _$appointmentId33$$Pe[0]) === null || _$appointmentId33$$Pe2 === void 0 ? void 0 : _$appointmentId33$$Pe2.gender), _defineProperty(_ref21, "contact", (_$patient_id$0$teleco3 = _ === null || _ === void 0 ? void 0 : (_$patient_id14 = _.patient_id) === null || _$patient_id14 === void 0 ? void 0 : (_$patient_id14$ = _$patient_id14[0]) === null || _$patient_id14$ === void 0 ? void 0 : (_$patient_id14$$telec = _$patient_id14$.telecom) === null || _$patient_id14$$telec === void 0 ? void 0 : (_$patient_id14$$telec2 = _$patient_id14$$telec[0]) === null || _$patient_id14$$telec2 === void 0 ? void 0 : _$patient_id14$$telec2.value) !== null && _$patient_id$0$teleco3 !== void 0 ? _$patient_id$0$teleco3 : ""), _defineProperty(_ref21, "pId", _ === null || _ === void 0 ? void 0 : (_$patient_id15 = _.patient_id) === null || _$patient_id15 === void 0 ? void 0 : _$patient_id15.id), _ref21;
|
|
38807
38807
|
}) : [];
|
|
38808
38808
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
38809
38809
|
data: returnedData
|
|
@@ -38847,18 +38847,18 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
38847
38847
|
case 5:
|
|
38848
38848
|
data = _context10.sent;
|
|
38849
38849
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result10 = data.result) === null || _data$result10 === void 0 ? void 0 : _data$result10.map(function (_) {
|
|
38850
|
-
var _$
|
|
38850
|
+
var _$appointmentId34, _$appointmentId34$, _$appointmentId34$$Pe, _$appointmentId34$$Pe2, _$appointmentId34$$Pe3, _$appointmentId34$$Pe4, _$appointmentId35, _$appointmentId35$, _$appointmentId35$$Pe, _$appointmentId35$$Pe2, _$appointmentId35$$Pe3, _$appointmentId35$$Pe4, _$patient_id16, _$patient_id16$, _$patient_id16$$name, _$patient_id17, _$patient_id17$, _$patient_id18, _$patient_id18$, _$appointmentId36, _$appointmentId36$, _$appointmentId37, _$appointmentId37$, _$appointmentId38, _$appointmentId38$, _$appointmentId39, _$appointmentId39$, _$appointmentId40, _$appointmentId40$, _$visit_type4, _$appointmentId41, _$appointmentId41$, _$appointmentId41$$Sp, _$practitioner_detail7, _$practitioner_detail8, _$status4, _$appointmentId$0$id4, _$appointmentId42, _$appointmentId42$, _$appointmentId43, _$appointmentId43$, _$appointmentId43$$Pe, _$appointmentId43$$Pe2, _$appointmentId44, _$appointmentId44$, _$appointmentId44$$Pe, _$appointmentId44$$Pe2, _$patient_id$0$teleco4, _$patient_id19, _$patient_id19$, _$patient_id19$$telec, _$patient_id19$$telec2, _$patient_id20, _ref24;
|
|
38851
38851
|
|
|
38852
38852
|
return _ref24 = {
|
|
38853
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38854
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38855
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38856
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
38857
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38858
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38859
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38853
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId34 = _.appointmentId) === null || _$appointmentId34 === void 0 ? void 0 : (_$appointmentId34$ = _$appointmentId34[0]) === null || _$appointmentId34$ === void 0 ? void 0 : (_$appointmentId34$$Pe = _$appointmentId34$.PersonID) === null || _$appointmentId34$$Pe === void 0 ? void 0 : (_$appointmentId34$$Pe2 = _$appointmentId34$$Pe[0]) === null || _$appointmentId34$$Pe2 === void 0 ? void 0 : (_$appointmentId34$$Pe3 = _$appointmentId34$$Pe2.photo) === null || _$appointmentId34$$Pe3 === void 0 ? void 0 : (_$appointmentId34$$Pe4 = _$appointmentId34$$Pe3[0]) === null || _$appointmentId34$$Pe4 === void 0 ? void 0 : _$appointmentId34$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId35 = _.appointmentId) === null || _$appointmentId35 === void 0 ? void 0 : (_$appointmentId35$ = _$appointmentId35[0]) === null || _$appointmentId35$ === void 0 ? void 0 : (_$appointmentId35$$Pe = _$appointmentId35$.PersonID) === null || _$appointmentId35$$Pe === void 0 ? void 0 : (_$appointmentId35$$Pe2 = _$appointmentId35$$Pe[0]) === null || _$appointmentId35$$Pe2 === void 0 ? void 0 : (_$appointmentId35$$Pe3 = _$appointmentId35$$Pe2.photo) === null || _$appointmentId35$$Pe3 === void 0 ? void 0 : (_$appointmentId35$$Pe4 = _$appointmentId35$$Pe3[0]) === null || _$appointmentId35$$Pe4 === void 0 ? void 0 : _$appointmentId35$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38854
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id16 = _.patient_id) === null || _$patient_id16 === void 0 ? void 0 : (_$patient_id16$ = _$patient_id16[0]) === null || _$patient_id16$ === void 0 ? void 0 : (_$patient_id16$$name = _$patient_id16$.name) === null || _$patient_id16$$name === void 0 ? void 0 : _$patient_id16$$name[0]) || {}),
|
|
38855
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id17 = _.patient_id) === null || _$patient_id17 === void 0 ? void 0 : (_$patient_id17$ = _$patient_id17[0]) === null || _$patient_id17$ === void 0 ? void 0 : _$patient_id17$.alias) || "",
|
|
38856
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id18 = _.patient_id) === null || _$patient_id18 === void 0 ? void 0 : (_$patient_id18$ = _$patient_id18[0]) === null || _$patient_id18$ === void 0 ? void 0 : _$patient_id18$.age,
|
|
38857
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId36 = _.appointmentId) === null || _$appointmentId36 === void 0 ? void 0 : (_$appointmentId36$ = _$appointmentId36[0]) === null || _$appointmentId36$ === void 0 ? void 0 : _$appointmentId36$.appno) || "",
|
|
38858
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId37 = _.appointmentId) === null || _$appointmentId37 === void 0 ? void 0 : (_$appointmentId37$ = _$appointmentId37[0]) === null || _$appointmentId37$ === void 0 ? void 0 : _$appointmentId37$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId38 = _.appointmentId) === null || _$appointmentId38 === void 0 ? void 0 : (_$appointmentId38$ = _$appointmentId38[0]) === null || _$appointmentId38$ === void 0 ? void 0 : _$appointmentId38$.start, "DD MMM,YYYY") : "",
|
|
38859
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId39 = _.appointmentId) === null || _$appointmentId39 === void 0 ? void 0 : (_$appointmentId39$ = _$appointmentId39[0]) === null || _$appointmentId39$ === void 0 ? void 0 : _$appointmentId39$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId40 = _.appointmentId) === null || _$appointmentId40 === void 0 ? void 0 : (_$appointmentId40$ = _$appointmentId40[0]) === null || _$appointmentId40$ === void 0 ? void 0 : _$appointmentId40$.start, "hh:mm A") : "",
|
|
38860
38860
|
visitType: (_$visit_type4 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type4 !== void 0 ? _$visit_type4 : "",
|
|
38861
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
38861
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId41 = _.appointmentId) === null || _$appointmentId41 === void 0 ? void 0 : (_$appointmentId41$ = _$appointmentId41[0]) === null || _$appointmentId41$ === void 0 ? void 0 : (_$appointmentId41$$Sp = _$appointmentId41$.SpecialtyID) === null || _$appointmentId41$$Sp === void 0 ? void 0 : _$appointmentId41$$Sp.map(function (spl) {
|
|
38862
38862
|
var _spl$coding10, _spl$coding10$;
|
|
38863
38863
|
|
|
38864
38864
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding10 = spl.coding) === null || _spl$coding10 === void 0 ? void 0 : (_spl$coding10$ = _spl$coding10[0]) === null || _spl$coding10$ === void 0 ? void 0 : _spl$coding10$.display;
|
|
@@ -38868,10 +38868,10 @@ var GET_OTHER_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getOther
|
|
|
38868
38868
|
"View Patient": true,
|
|
38869
38869
|
Attend: true,
|
|
38870
38870
|
type: "OP",
|
|
38871
|
-
appNo: (_$
|
|
38871
|
+
appNo: (_$appointmentId$0$id4 = _ === null || _ === void 0 ? void 0 : (_$appointmentId42 = _.appointmentId) === null || _$appointmentId42 === void 0 ? void 0 : (_$appointmentId42$ = _$appointmentId42[0]) === null || _$appointmentId42$ === void 0 ? void 0 : _$appointmentId42$.id) !== null && _$appointmentId$0$id4 !== void 0 ? _$appointmentId$0$id4 : '',
|
|
38872
38872
|
data: _,
|
|
38873
|
-
enId: _.
|
|
38874
|
-
}, _defineProperty(_ref24, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38873
|
+
enId: _.id
|
|
38874
|
+
}, _defineProperty(_ref24, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId43 = _.appointmentId) === null || _$appointmentId43 === void 0 ? void 0 : (_$appointmentId43$ = _$appointmentId43[0]) === null || _$appointmentId43$ === void 0 ? void 0 : (_$appointmentId43$$Pe = _$appointmentId43$.PersonID) === null || _$appointmentId43$$Pe === void 0 ? void 0 : (_$appointmentId43$$Pe2 = _$appointmentId43$$Pe[0]) === null || _$appointmentId43$$Pe2 === void 0 ? void 0 : _$appointmentId43$$Pe2.birthDay)), _defineProperty(_ref24, "gender", _ === null || _ === void 0 ? void 0 : (_$appointmentId44 = _.appointmentId) === null || _$appointmentId44 === void 0 ? void 0 : (_$appointmentId44$ = _$appointmentId44[0]) === null || _$appointmentId44$ === void 0 ? void 0 : (_$appointmentId44$$Pe = _$appointmentId44$.PersonID) === null || _$appointmentId44$$Pe === void 0 ? void 0 : (_$appointmentId44$$Pe2 = _$appointmentId44$$Pe[0]) === null || _$appointmentId44$$Pe2 === void 0 ? void 0 : _$appointmentId44$$Pe2.gender), _defineProperty(_ref24, "contact", (_$patient_id$0$teleco4 = _ === null || _ === void 0 ? void 0 : (_$patient_id19 = _.patient_id) === null || _$patient_id19 === void 0 ? void 0 : (_$patient_id19$ = _$patient_id19[0]) === null || _$patient_id19$ === void 0 ? void 0 : (_$patient_id19$$telec = _$patient_id19$.telecom) === null || _$patient_id19$$telec === void 0 ? void 0 : (_$patient_id19$$telec2 = _$patient_id19$$telec[0]) === null || _$patient_id19$$telec2 === void 0 ? void 0 : _$patient_id19$$telec2.value) !== null && _$patient_id$0$teleco4 !== void 0 ? _$patient_id$0$teleco4 : ""), _defineProperty(_ref24, "pId", _ === null || _ === void 0 ? void 0 : (_$patient_id20 = _.patient_id) === null || _$patient_id20 === void 0 ? void 0 : _$patient_id20.id), _ref24;
|
|
38875
38875
|
}) : [];
|
|
38876
38876
|
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
38877
38877
|
data: returnedData
|
|
@@ -38915,30 +38915,30 @@ var GET_TODAY_VISITS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getToday
|
|
|
38915
38915
|
case 5:
|
|
38916
38916
|
data = _context11.sent;
|
|
38917
38917
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result11 = data.result) === null || _data$result11 === void 0 ? void 0 : _data$result11.map(function (_) {
|
|
38918
|
-
var _$
|
|
38918
|
+
var _$appointmentId45, _$appointmentId45$, _$appointmentId45$$Pe, _$appointmentId45$$Pe2, _$appointmentId45$$Pe3, _$appointmentId46, _$appointmentId46$, _$appointmentId46$$Pe, _$appointmentId46$$Pe2, _$appointmentId46$$Pe3, _$patient_id21, _$patient_id21$, _$patient_id21$$name, _$patient_id22, _$patient_id22$, _$patient_id23, _$patient_id23$, _$appointmentId47, _$appointmentId47$, _$appointmentId48, _$appointmentId48$, _$appointmentId49, _$appointmentId49$, _$appointmentId50, _$appointmentId50$, _$appointmentId51, _$appointmentId51$, _$appointmentId51$$Sp, _$patient_id24, _$patient_id24$, _$patient_id24$$telec, _$patient_id24$$telec2, _$status5, _$appointmentId$0$id5, _$appointmentId52, _$appointmentId52$, _$appointmentId53, _$appointmentId53$, _$appointmentId53$$Pe, _$appointmentId53$$Pe2, _$appointmentId54, _$appointmentId54$, _$appointmentId54$$Pe, _$appointmentId54$$Pe2, _$patient_id$0$teleco5, _$patient_id25, _$patient_id25$, _$patient_id25$$telec, _$patient_id25$$telec2, _$patient_id26, _ref27;
|
|
38919
38919
|
|
|
38920
38920
|
return _ref27 = {
|
|
38921
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38922
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38923
|
-
mrn: _ === null || _ === void 0 ? void 0 : (_$
|
|
38924
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
38925
|
-
orderDate: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38926
|
-
orderTime: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38927
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
38921
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId45 = _.appointmentId) === null || _$appointmentId45 === void 0 ? void 0 : (_$appointmentId45$ = _$appointmentId45[0]) === null || _$appointmentId45$ === void 0 ? void 0 : (_$appointmentId45$$Pe = _$appointmentId45$.PersonID) === null || _$appointmentId45$$Pe === void 0 ? void 0 : (_$appointmentId45$$Pe2 = _$appointmentId45$$Pe[0]) === null || _$appointmentId45$$Pe2 === void 0 ? void 0 : (_$appointmentId45$$Pe3 = _$appointmentId45$$Pe2.photo[0]) === null || _$appointmentId45$$Pe3 === void 0 ? void 0 : _$appointmentId45$$Pe3.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId46 = _.appointmentId) === null || _$appointmentId46 === void 0 ? void 0 : (_$appointmentId46$ = _$appointmentId46[0]) === null || _$appointmentId46$ === void 0 ? void 0 : (_$appointmentId46$$Pe = _$appointmentId46$.PersonID) === null || _$appointmentId46$$Pe === void 0 ? void 0 : (_$appointmentId46$$Pe2 = _$appointmentId46$$Pe[0]) === null || _$appointmentId46$$Pe2 === void 0 ? void 0 : (_$appointmentId46$$Pe3 = _$appointmentId46$$Pe2.photo[0]) === null || _$appointmentId46$$Pe3 === void 0 ? void 0 : _$appointmentId46$$Pe3.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38922
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id21 = _.patient_id) === null || _$patient_id21 === void 0 ? void 0 : (_$patient_id21$ = _$patient_id21[0]) === null || _$patient_id21$ === void 0 ? void 0 : (_$patient_id21$$name = _$patient_id21$.name) === null || _$patient_id21$$name === void 0 ? void 0 : _$patient_id21$$name[0]) || {}),
|
|
38923
|
+
mrn: _ === null || _ === void 0 ? void 0 : (_$patient_id22 = _.patient_id) === null || _$patient_id22 === void 0 ? void 0 : (_$patient_id22$ = _$patient_id22[0]) === null || _$patient_id22$ === void 0 ? void 0 : _$patient_id22$.MRN,
|
|
38924
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id23 = _.patient_id) === null || _$patient_id23 === void 0 ? void 0 : (_$patient_id23$ = _$patient_id23[0]) === null || _$patient_id23$ === void 0 ? void 0 : _$patient_id23$.age,
|
|
38925
|
+
orderDate: (_ === null || _ === void 0 ? void 0 : (_$appointmentId47 = _.appointmentId) === null || _$appointmentId47 === void 0 ? void 0 : (_$appointmentId47$ = _$appointmentId47[0]) === null || _$appointmentId47$ === void 0 ? void 0 : _$appointmentId47$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId48 = _.appointmentId) === null || _$appointmentId48 === void 0 ? void 0 : (_$appointmentId48$ = _$appointmentId48[0]) === null || _$appointmentId48$ === void 0 ? void 0 : _$appointmentId48$.start, "DD MMM,YYYY") : "",
|
|
38926
|
+
orderTime: (_ === null || _ === void 0 ? void 0 : (_$appointmentId49 = _.appointmentId) === null || _$appointmentId49 === void 0 ? void 0 : (_$appointmentId49$ = _$appointmentId49[0]) === null || _$appointmentId49$ === void 0 ? void 0 : _$appointmentId49$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId50 = _.appointmentId) === null || _$appointmentId50 === void 0 ? void 0 : (_$appointmentId50$ = _$appointmentId50[0]) === null || _$appointmentId50$ === void 0 ? void 0 : _$appointmentId50$.start, "hh:mm A") : "",
|
|
38927
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId51 = _.appointmentId) === null || _$appointmentId51 === void 0 ? void 0 : (_$appointmentId51$ = _$appointmentId51[0]) === null || _$appointmentId51$ === void 0 ? void 0 : (_$appointmentId51$$Sp = _$appointmentId51$.SpecialtyID) === null || _$appointmentId51$$Sp === void 0 ? void 0 : _$appointmentId51$$Sp.map(function (spl) {
|
|
38928
38928
|
var _spl$coding11, _spl$coding11$;
|
|
38929
38929
|
|
|
38930
38930
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding11 = spl.coding) === null || _spl$coding11 === void 0 ? void 0 : (_spl$coding11$ = _spl$coding11[0]) === null || _spl$coding11$ === void 0 ? void 0 : _spl$coding11$.display;
|
|
38931
38931
|
}).join(", "),
|
|
38932
38932
|
ward: "Ward 1",
|
|
38933
|
-
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$
|
|
38933
|
+
contact: JSON.stringify(_ === null || _ === void 0 ? void 0 : (_$patient_id24 = _.patient_id) === null || _$patient_id24 === void 0 ? void 0 : (_$patient_id24$ = _$patient_id24[0]) === null || _$patient_id24$ === void 0 ? void 0 : (_$patient_id24$$telec = _$patient_id24$.telecom) === null || _$patient_id24$$telec === void 0 ? void 0 : (_$patient_id24$$telec2 = _$patient_id24$$telec[0]) === null || _$patient_id24$$telec2 === void 0 ? void 0 : _$patient_id24$$telec2.value),
|
|
38934
38934
|
visittype: (_ === null || _ === void 0 ? void 0 : _.visit_type) || "",
|
|
38935
38935
|
encounterStatus: _ === null || _ === void 0 ? void 0 : (_$status5 = _.status) === null || _$status5 === void 0 ? void 0 : _$status5.display,
|
|
38936
38936
|
view: true,
|
|
38937
38937
|
type: "OP",
|
|
38938
|
-
appNo: (_$
|
|
38938
|
+
appNo: (_$appointmentId$0$id5 = _ === null || _ === void 0 ? void 0 : (_$appointmentId52 = _.appointmentId) === null || _$appointmentId52 === void 0 ? void 0 : (_$appointmentId52$ = _$appointmentId52[0]) === null || _$appointmentId52$ === void 0 ? void 0 : _$appointmentId52$.id) !== null && _$appointmentId$0$id5 !== void 0 ? _$appointmentId$0$id5 : '',
|
|
38939
38939
|
data: _,
|
|
38940
|
-
enId: _.
|
|
38941
|
-
}, _defineProperty(_ref27, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
38940
|
+
enId: _.id
|
|
38941
|
+
}, _defineProperty(_ref27, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId53 = _.appointmentId) === null || _$appointmentId53 === void 0 ? void 0 : (_$appointmentId53$ = _$appointmentId53[0]) === null || _$appointmentId53$ === void 0 ? void 0 : (_$appointmentId53$$Pe = _$appointmentId53$.PersonID) === null || _$appointmentId53$$Pe === void 0 ? void 0 : (_$appointmentId53$$Pe2 = _$appointmentId53$$Pe[0]) === null || _$appointmentId53$$Pe2 === void 0 ? void 0 : _$appointmentId53$$Pe2.birthDay)), _defineProperty(_ref27, "gender", _ === null || _ === void 0 ? void 0 : (_$appointmentId54 = _.appointmentId) === null || _$appointmentId54 === void 0 ? void 0 : (_$appointmentId54$ = _$appointmentId54[0]) === null || _$appointmentId54$ === void 0 ? void 0 : (_$appointmentId54$$Pe = _$appointmentId54$.PersonID) === null || _$appointmentId54$$Pe === void 0 ? void 0 : (_$appointmentId54$$Pe2 = _$appointmentId54$$Pe[0]) === null || _$appointmentId54$$Pe2 === void 0 ? void 0 : _$appointmentId54$$Pe2.gender), _defineProperty(_ref27, "contact", (_$patient_id$0$teleco5 = _ === null || _ === void 0 ? void 0 : (_$patient_id25 = _.patient_id) === null || _$patient_id25 === void 0 ? void 0 : (_$patient_id25$ = _$patient_id25[0]) === null || _$patient_id25$ === void 0 ? void 0 : (_$patient_id25$$telec = _$patient_id25$.telecom) === null || _$patient_id25$$telec === void 0 ? void 0 : (_$patient_id25$$telec2 = _$patient_id25$$telec[0]) === null || _$patient_id25$$telec2 === void 0 ? void 0 : _$patient_id25$$telec2.value) !== null && _$patient_id$0$teleco5 !== void 0 ? _$patient_id$0$teleco5 : ""), _defineProperty(_ref27, "pId", _ === null || _ === void 0 ? void 0 : (_$patient_id26 = _.patient_id) === null || _$patient_id26 === void 0 ? void 0 : _$patient_id26.id), _ref27;
|
|
38942
38942
|
}) : [];
|
|
38943
38943
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
38944
38944
|
data: returnedData
|
|
@@ -38982,18 +38982,18 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
38982
38982
|
case 5:
|
|
38983
38983
|
data = _context12.sent;
|
|
38984
38984
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result12 = data.result) === null || _data$result12 === void 0 ? void 0 : _data$result12.map(function (_) {
|
|
38985
|
-
var _$
|
|
38985
|
+
var _$appointmentId55, _$appointmentId55$, _$appointmentId55$$Pe, _$appointmentId55$$Pe2, _$appointmentId55$$Pe3, _$appointmentId55$$Pe4, _$appointmentId56, _$appointmentId56$, _$appointmentId56$$Pe, _$appointmentId56$$Pe2, _$appointmentId56$$Pe3, _$appointmentId56$$Pe4, _$patient_id27, _$patient_id27$, _$patient_id27$$name, _$patient_id28, _$patient_id28$, _$patient_id29, _$patient_id29$, _$appointmentId57, _$appointmentId57$, _$appointmentId58, _$appointmentId58$, _$appointmentId59, _$appointmentId59$, _$appointmentId60, _$appointmentId60$, _$appointmentId61, _$appointmentId61$, _$visit_type5, _$appointmentId62, _$appointmentId62$, _$appointmentId62$$Sp, _$practitioner_detail9, _$practitioner_detail10, _$status6, _$appointmentId$0$id6, _$appointmentId63, _$appointmentId63$, _$appointmentId64, _$appointmentId64$, _$appointmentId64$$Pe, _$appointmentId64$$Pe2, _$appointmentId65, _$appointmentId65$, _$appointmentId65$$Pe, _$appointmentId65$$Pe2, _$patient_id$0$teleco6, _$patient_id30, _$patient_id30$, _$patient_id30$$telec, _$patient_id30$$telec2, _$patient_id31, _ref30;
|
|
38986
38986
|
|
|
38987
38987
|
return _ref30 = {
|
|
38988
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38989
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
38990
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38991
|
-
age: _ === null || _ === void 0 ? void 0 : (_$
|
|
38992
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38993
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38994
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
38995
|
-
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "",
|
|
38996
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
38988
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId55 = _.appointmentId) === null || _$appointmentId55 === void 0 ? void 0 : (_$appointmentId55$ = _$appointmentId55[0]) === null || _$appointmentId55$ === void 0 ? void 0 : (_$appointmentId55$$Pe = _$appointmentId55$.PersonID) === null || _$appointmentId55$$Pe === void 0 ? void 0 : (_$appointmentId55$$Pe2 = _$appointmentId55$$Pe[0]) === null || _$appointmentId55$$Pe2 === void 0 ? void 0 : (_$appointmentId55$$Pe3 = _$appointmentId55$$Pe2.photo) === null || _$appointmentId55$$Pe3 === void 0 ? void 0 : (_$appointmentId55$$Pe4 = _$appointmentId55$$Pe3[0]) === null || _$appointmentId55$$Pe4 === void 0 ? void 0 : _$appointmentId55$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId56 = _.appointmentId) === null || _$appointmentId56 === void 0 ? void 0 : (_$appointmentId56$ = _$appointmentId56[0]) === null || _$appointmentId56$ === void 0 ? void 0 : (_$appointmentId56$$Pe = _$appointmentId56$.PersonID) === null || _$appointmentId56$$Pe === void 0 ? void 0 : (_$appointmentId56$$Pe2 = _$appointmentId56$$Pe[0]) === null || _$appointmentId56$$Pe2 === void 0 ? void 0 : (_$appointmentId56$$Pe3 = _$appointmentId56$$Pe2.photo) === null || _$appointmentId56$$Pe3 === void 0 ? void 0 : (_$appointmentId56$$Pe4 = _$appointmentId56$$Pe3[0]) === null || _$appointmentId56$$Pe4 === void 0 ? void 0 : _$appointmentId56$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
38989
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id27 = _.patient_id) === null || _$patient_id27 === void 0 ? void 0 : (_$patient_id27$ = _$patient_id27[0]) === null || _$patient_id27$ === void 0 ? void 0 : (_$patient_id27$$name = _$patient_id27$.name) === null || _$patient_id27$$name === void 0 ? void 0 : _$patient_id27$$name[0]) || {}),
|
|
38990
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id28 = _.patient_id) === null || _$patient_id28 === void 0 ? void 0 : (_$patient_id28$ = _$patient_id28[0]) === null || _$patient_id28$ === void 0 ? void 0 : _$patient_id28$.alias) || "",
|
|
38991
|
+
age: _ === null || _ === void 0 ? void 0 : (_$patient_id29 = _.patient_id) === null || _$patient_id29 === void 0 ? void 0 : (_$patient_id29$ = _$patient_id29[0]) === null || _$patient_id29$ === void 0 ? void 0 : _$patient_id29$.age,
|
|
38992
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId57 = _.appointmentId) === null || _$appointmentId57 === void 0 ? void 0 : (_$appointmentId57$ = _$appointmentId57[0]) === null || _$appointmentId57$ === void 0 ? void 0 : _$appointmentId57$.appno) || "",
|
|
38993
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId58 = _.appointmentId) === null || _$appointmentId58 === void 0 ? void 0 : (_$appointmentId58$ = _$appointmentId58[0]) === null || _$appointmentId58$ === void 0 ? void 0 : _$appointmentId58$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId59 = _.appointmentId) === null || _$appointmentId59 === void 0 ? void 0 : (_$appointmentId59$ = _$appointmentId59[0]) === null || _$appointmentId59$ === void 0 ? void 0 : _$appointmentId59$.start, "DD MMM,YYYY") : "",
|
|
38994
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId60 = _.appointmentId) === null || _$appointmentId60 === void 0 ? void 0 : (_$appointmentId60$ = _$appointmentId60[0]) === null || _$appointmentId60$ === void 0 ? void 0 : _$appointmentId60$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId61 = _.appointmentId) === null || _$appointmentId61 === void 0 ? void 0 : (_$appointmentId61$ = _$appointmentId61[0]) === null || _$appointmentId61$ === void 0 ? void 0 : _$appointmentId61$.start, "hh:mm A") : "",
|
|
38995
|
+
visitType: (_$visit_type5 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type5 !== void 0 ? _$visit_type5 : "Walk-Ins",
|
|
38996
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId62 = _.appointmentId) === null || _$appointmentId62 === void 0 ? void 0 : (_$appointmentId62$ = _$appointmentId62[0]) === null || _$appointmentId62$ === void 0 ? void 0 : (_$appointmentId62$$Sp = _$appointmentId62$.SpecialtyID) === null || _$appointmentId62$$Sp === void 0 ? void 0 : _$appointmentId62$$Sp.map(function (spl) {
|
|
38997
38997
|
var _spl$coding12, _spl$coding12$;
|
|
38998
38998
|
|
|
38999
38999
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding12 = spl.coding) === null || _spl$coding12 === void 0 ? void 0 : (_spl$coding12$ = _spl$coding12[0]) === null || _spl$coding12$ === void 0 ? void 0 : _spl$coding12$.display;
|
|
@@ -39003,10 +39003,10 @@ var GET_WALK_INS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getWalkInsNu
|
|
|
39003
39003
|
"View Patient": true,
|
|
39004
39004
|
Attend: true,
|
|
39005
39005
|
type: "OP",
|
|
39006
|
-
appNo: (_$
|
|
39006
|
+
appNo: (_$appointmentId$0$id6 = _ === null || _ === void 0 ? void 0 : (_$appointmentId63 = _.appointmentId) === null || _$appointmentId63 === void 0 ? void 0 : (_$appointmentId63$ = _$appointmentId63[0]) === null || _$appointmentId63$ === void 0 ? void 0 : _$appointmentId63$.id) !== null && _$appointmentId$0$id6 !== void 0 ? _$appointmentId$0$id6 : '',
|
|
39007
39007
|
data: _,
|
|
39008
|
-
enId: _.
|
|
39009
|
-
}, _defineProperty(_ref30, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39008
|
+
enId: _.id
|
|
39009
|
+
}, _defineProperty(_ref30, "age", getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId64 = _.appointmentId) === null || _$appointmentId64 === void 0 ? void 0 : (_$appointmentId64$ = _$appointmentId64[0]) === null || _$appointmentId64$ === void 0 ? void 0 : (_$appointmentId64$$Pe = _$appointmentId64$.PersonID) === null || _$appointmentId64$$Pe === void 0 ? void 0 : (_$appointmentId64$$Pe2 = _$appointmentId64$$Pe[0]) === null || _$appointmentId64$$Pe2 === void 0 ? void 0 : _$appointmentId64$$Pe2.birthDay)), _defineProperty(_ref30, "gender", _ === null || _ === void 0 ? void 0 : (_$appointmentId65 = _.appointmentId) === null || _$appointmentId65 === void 0 ? void 0 : (_$appointmentId65$ = _$appointmentId65[0]) === null || _$appointmentId65$ === void 0 ? void 0 : (_$appointmentId65$$Pe = _$appointmentId65$.PersonID) === null || _$appointmentId65$$Pe === void 0 ? void 0 : (_$appointmentId65$$Pe2 = _$appointmentId65$$Pe[0]) === null || _$appointmentId65$$Pe2 === void 0 ? void 0 : _$appointmentId65$$Pe2.gender), _defineProperty(_ref30, "contact", (_$patient_id$0$teleco6 = _ === null || _ === void 0 ? void 0 : (_$patient_id30 = _.patient_id) === null || _$patient_id30 === void 0 ? void 0 : (_$patient_id30$ = _$patient_id30[0]) === null || _$patient_id30$ === void 0 ? void 0 : (_$patient_id30$$telec = _$patient_id30$.telecom) === null || _$patient_id30$$telec === void 0 ? void 0 : (_$patient_id30$$telec2 = _$patient_id30$$telec[0]) === null || _$patient_id30$$telec2 === void 0 ? void 0 : _$patient_id30$$telec2.value) !== null && _$patient_id$0$teleco6 !== void 0 ? _$patient_id$0$teleco6 : ""), _defineProperty(_ref30, "pId", _ === null || _ === void 0 ? void 0 : (_$patient_id31 = _.patient_id) === null || _$patient_id31 === void 0 ? void 0 : _$patient_id31.id), _ref30;
|
|
39010
39010
|
}) : [];
|
|
39011
39011
|
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
39012
39012
|
data: returnedData
|
|
@@ -39051,17 +39051,17 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
39051
39051
|
case 5:
|
|
39052
39052
|
data = _context13.sent;
|
|
39053
39053
|
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 (_) {
|
|
39054
|
-
var _$
|
|
39054
|
+
var _$appointmentId66, _$appointmentId66$, _$appointmentId66$$Pe, _$appointmentId66$$Pe2, _$appointmentId66$$Pe3, _$appointmentId66$$Pe4, _$appointmentId67, _$appointmentId67$, _$appointmentId67$$Pe, _$appointmentId67$$Pe2, _$appointmentId67$$Pe3, _$appointmentId67$$Pe4, _$patient_id32, _$patient_id32$, _$patient_id32$$name, _$patient_id33, _$patient_id33$, _$appointmentId68, _$appointmentId68$, _$appointmentId69, _$appointmentId69$, _$appointmentId70, _$appointmentId70$, _$appointmentId71, _$appointmentId71$, _$appointmentId72, _$appointmentId72$, _$visit_type6, _$appointmentId73, _$appointmentId73$, _$appointmentId73$$Sp, _$practitioner_detail11, _$practitioner_detail12, _$status7, _$appointmentId$0$id7, _$appointmentId74, _$appointmentId74$, _$appointmentId75, _$appointmentId75$, _$appointmentId75$$Pe, _$appointmentId75$$Pe2, _$appointmentId76, _$appointmentId76$, _$appointmentId76$$Pe, _$appointmentId76$$Pe2, _$patient_id$0$teleco7, _$patient_id34, _$patient_id34$, _$patient_id34$$telec, _$patient_id34$$telec2, _$patient_id35;
|
|
39055
39055
|
|
|
39056
39056
|
return {
|
|
39057
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39058
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39059
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39060
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39061
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39062
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39057
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId66 = _.appointmentId) === null || _$appointmentId66 === void 0 ? void 0 : (_$appointmentId66$ = _$appointmentId66[0]) === null || _$appointmentId66$ === void 0 ? void 0 : (_$appointmentId66$$Pe = _$appointmentId66$.PersonID) === null || _$appointmentId66$$Pe === void 0 ? void 0 : (_$appointmentId66$$Pe2 = _$appointmentId66$$Pe[0]) === null || _$appointmentId66$$Pe2 === void 0 ? void 0 : (_$appointmentId66$$Pe3 = _$appointmentId66$$Pe2.photo) === null || _$appointmentId66$$Pe3 === void 0 ? void 0 : (_$appointmentId66$$Pe4 = _$appointmentId66$$Pe3[0]) === null || _$appointmentId66$$Pe4 === void 0 ? void 0 : _$appointmentId66$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId67 = _.appointmentId) === null || _$appointmentId67 === void 0 ? void 0 : (_$appointmentId67$ = _$appointmentId67[0]) === null || _$appointmentId67$ === void 0 ? void 0 : (_$appointmentId67$$Pe = _$appointmentId67$.PersonID) === null || _$appointmentId67$$Pe === void 0 ? void 0 : (_$appointmentId67$$Pe2 = _$appointmentId67$$Pe[0]) === null || _$appointmentId67$$Pe2 === void 0 ? void 0 : (_$appointmentId67$$Pe3 = _$appointmentId67$$Pe2.photo) === null || _$appointmentId67$$Pe3 === void 0 ? void 0 : (_$appointmentId67$$Pe4 = _$appointmentId67$$Pe3[0]) === null || _$appointmentId67$$Pe4 === void 0 ? void 0 : _$appointmentId67$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39058
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id32 = _.patient_id) === null || _$patient_id32 === void 0 ? void 0 : (_$patient_id32$ = _$patient_id32[0]) === null || _$patient_id32$ === void 0 ? void 0 : (_$patient_id32$$name = _$patient_id32$.name) === null || _$patient_id32$$name === void 0 ? void 0 : _$patient_id32$$name[0]) || {}),
|
|
39059
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id33 = _.patient_id) === null || _$patient_id33 === void 0 ? void 0 : (_$patient_id33$ = _$patient_id33[0]) === null || _$patient_id33$ === void 0 ? void 0 : _$patient_id33$.MRN) || "",
|
|
39060
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId68 = _.appointmentId) === null || _$appointmentId68 === void 0 ? void 0 : (_$appointmentId68$ = _$appointmentId68[0]) === null || _$appointmentId68$ === void 0 ? void 0 : _$appointmentId68$.appno) || "",
|
|
39061
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId69 = _.appointmentId) === null || _$appointmentId69 === void 0 ? void 0 : (_$appointmentId69$ = _$appointmentId69[0]) === null || _$appointmentId69$ === void 0 ? void 0 : _$appointmentId69$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId70 = _.appointmentId) === null || _$appointmentId70 === void 0 ? void 0 : (_$appointmentId70$ = _$appointmentId70[0]) === null || _$appointmentId70$ === void 0 ? void 0 : _$appointmentId70$.start, "DD MMM,YYYY") : "",
|
|
39062
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId71 = _.appointmentId) === null || _$appointmentId71 === void 0 ? void 0 : (_$appointmentId71$ = _$appointmentId71[0]) === null || _$appointmentId71$ === void 0 ? void 0 : _$appointmentId71$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId72 = _.appointmentId) === null || _$appointmentId72 === void 0 ? void 0 : (_$appointmentId72$ = _$appointmentId72[0]) === null || _$appointmentId72$ === void 0 ? void 0 : _$appointmentId72$.start, "hh:mm A") : "",
|
|
39063
39063
|
visitType: (_$visit_type6 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type6 !== void 0 ? _$visit_type6 : "",
|
|
39064
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
39064
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId73 = _.appointmentId) === null || _$appointmentId73 === void 0 ? void 0 : (_$appointmentId73$ = _$appointmentId73[0]) === null || _$appointmentId73$ === void 0 ? void 0 : (_$appointmentId73$$Sp = _$appointmentId73$.SpecialtyID) === null || _$appointmentId73$$Sp === void 0 ? void 0 : _$appointmentId73$$Sp.map(function (spl) {
|
|
39065
39065
|
var _spl$coding13, _spl$coding13$;
|
|
39066
39066
|
|
|
39067
39067
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding13 = spl.coding) === null || _spl$coding13 === void 0 ? void 0 : (_spl$coding13$ = _spl$coding13[0]) === null || _spl$coding13$ === void 0 ? void 0 : _spl$coding13$.display;
|
|
@@ -39071,12 +39071,13 @@ var GET_APPOINTMENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getAppo
|
|
|
39071
39071
|
"View Patient": true,
|
|
39072
39072
|
Attend: true,
|
|
39073
39073
|
type: "OP",
|
|
39074
|
-
appNo: (_$
|
|
39074
|
+
appNo: (_$appointmentId$0$id7 = _ === null || _ === void 0 ? void 0 : (_$appointmentId74 = _.appointmentId) === null || _$appointmentId74 === void 0 ? void 0 : (_$appointmentId74$ = _$appointmentId74[0]) === null || _$appointmentId74$ === void 0 ? void 0 : _$appointmentId74$.id) !== null && _$appointmentId$0$id7 !== void 0 ? _$appointmentId$0$id7 : '',
|
|
39075
39075
|
data: _,
|
|
39076
|
-
enId: _.
|
|
39077
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39078
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
39079
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39076
|
+
enId: _.id,
|
|
39077
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId75 = _.appointmentId) === null || _$appointmentId75 === void 0 ? void 0 : (_$appointmentId75$ = _$appointmentId75[0]) === null || _$appointmentId75$ === void 0 ? void 0 : (_$appointmentId75$$Pe = _$appointmentId75$.PersonID) === null || _$appointmentId75$$Pe === void 0 ? void 0 : (_$appointmentId75$$Pe2 = _$appointmentId75$$Pe[0]) === null || _$appointmentId75$$Pe2 === void 0 ? void 0 : _$appointmentId75$$Pe2.birthDay),
|
|
39078
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$appointmentId76 = _.appointmentId) === null || _$appointmentId76 === void 0 ? void 0 : (_$appointmentId76$ = _$appointmentId76[0]) === null || _$appointmentId76$ === void 0 ? void 0 : (_$appointmentId76$$Pe = _$appointmentId76$.PersonID) === null || _$appointmentId76$$Pe === void 0 ? void 0 : (_$appointmentId76$$Pe2 = _$appointmentId76$$Pe[0]) === null || _$appointmentId76$$Pe2 === void 0 ? void 0 : _$appointmentId76$$Pe2.gender,
|
|
39079
|
+
contact: (_$patient_id$0$teleco7 = _ === null || _ === void 0 ? void 0 : (_$patient_id34 = _.patient_id) === null || _$patient_id34 === void 0 ? void 0 : (_$patient_id34$ = _$patient_id34[0]) === null || _$patient_id34$ === void 0 ? void 0 : (_$patient_id34$$telec = _$patient_id34$.telecom) === null || _$patient_id34$$telec === void 0 ? void 0 : (_$patient_id34$$telec2 = _$patient_id34$$telec[0]) === null || _$patient_id34$$telec2 === void 0 ? void 0 : _$patient_id34$$telec2.value) !== null && _$patient_id$0$teleco7 !== void 0 ? _$patient_id$0$teleco7 : "",
|
|
39080
|
+
pId: _ === null || _ === void 0 ? void 0 : (_$patient_id35 = _.patient_id) === null || _$patient_id35 === void 0 ? void 0 : _$patient_id35.id
|
|
39080
39081
|
};
|
|
39081
39082
|
}) : [];
|
|
39082
39083
|
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39121,17 +39122,17 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
39121
39122
|
case 5:
|
|
39122
39123
|
data = _context14.sent;
|
|
39123
39124
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result14 = data.result) === null || _data$result14 === void 0 ? void 0 : _data$result14.map(function (_) {
|
|
39124
|
-
var _$
|
|
39125
|
+
var _$appointmentId77, _$appointmentId77$, _$appointmentId77$$Pe, _$appointmentId77$$Pe2, _$appointmentId77$$Pe3, _$appointmentId77$$Pe4, _$appointmentId78, _$appointmentId78$, _$appointmentId78$$Pe, _$appointmentId78$$Pe2, _$appointmentId78$$Pe3, _$appointmentId78$$Pe4, _$patient_id36, _$patient_id36$, _$patient_id36$$name, _$patient_id37, _$patient_id37$, _$appointmentId79, _$appointmentId79$, _$appointmentId80, _$appointmentId80$, _$appointmentId81, _$appointmentId81$, _$appointmentId82, _$appointmentId82$, _$appointmentId83, _$appointmentId83$, _$visit_type7, _$appointmentId84, _$appointmentId84$, _$appointmentId84$$Sp, _$practitioner_detail13, _$practitioner_detail14, _$status8, _$appointmentId$0$id8, _$appointmentId85, _$appointmentId85$, _$appointmentId86, _$appointmentId86$, _$appointmentId86$$Pe, _$appointmentId86$$Pe2, _$appointmentId87, _$appointmentId87$, _$appointmentId87$$Pe, _$appointmentId87$$Pe2, _$patient_id$0$teleco8, _$patient_id38, _$patient_id38$, _$patient_id38$$telec, _$patient_id38$$telec2, _$patient_id39;
|
|
39125
39126
|
|
|
39126
39127
|
return {
|
|
39127
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39128
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39129
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39130
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39131
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39132
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39128
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId77 = _.appointmentId) === null || _$appointmentId77 === void 0 ? void 0 : (_$appointmentId77$ = _$appointmentId77[0]) === null || _$appointmentId77$ === void 0 ? void 0 : (_$appointmentId77$$Pe = _$appointmentId77$.PersonID) === null || _$appointmentId77$$Pe === void 0 ? void 0 : (_$appointmentId77$$Pe2 = _$appointmentId77$$Pe[0]) === null || _$appointmentId77$$Pe2 === void 0 ? void 0 : (_$appointmentId77$$Pe3 = _$appointmentId77$$Pe2.photo) === null || _$appointmentId77$$Pe3 === void 0 ? void 0 : (_$appointmentId77$$Pe4 = _$appointmentId77$$Pe3[0]) === null || _$appointmentId77$$Pe4 === void 0 ? void 0 : _$appointmentId77$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId78 = _.appointmentId) === null || _$appointmentId78 === void 0 ? void 0 : (_$appointmentId78$ = _$appointmentId78[0]) === null || _$appointmentId78$ === void 0 ? void 0 : (_$appointmentId78$$Pe = _$appointmentId78$.PersonID) === null || _$appointmentId78$$Pe === void 0 ? void 0 : (_$appointmentId78$$Pe2 = _$appointmentId78$$Pe[0]) === null || _$appointmentId78$$Pe2 === void 0 ? void 0 : (_$appointmentId78$$Pe3 = _$appointmentId78$$Pe2.photo) === null || _$appointmentId78$$Pe3 === void 0 ? void 0 : (_$appointmentId78$$Pe4 = _$appointmentId78$$Pe3[0]) === null || _$appointmentId78$$Pe4 === void 0 ? void 0 : _$appointmentId78$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39129
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id36 = _.patient_id) === null || _$patient_id36 === void 0 ? void 0 : (_$patient_id36$ = _$patient_id36[0]) === null || _$patient_id36$ === void 0 ? void 0 : (_$patient_id36$$name = _$patient_id36$.name) === null || _$patient_id36$$name === void 0 ? void 0 : _$patient_id36$$name[0]) || {}),
|
|
39130
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id37 = _.patient_id) === null || _$patient_id37 === void 0 ? void 0 : (_$patient_id37$ = _$patient_id37[0]) === null || _$patient_id37$ === void 0 ? void 0 : _$patient_id37$.MRN) || "",
|
|
39131
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId79 = _.appointmentId) === null || _$appointmentId79 === void 0 ? void 0 : (_$appointmentId79$ = _$appointmentId79[0]) === null || _$appointmentId79$ === void 0 ? void 0 : _$appointmentId79$.appno) || "",
|
|
39132
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId80 = _.appointmentId) === null || _$appointmentId80 === void 0 ? void 0 : (_$appointmentId80$ = _$appointmentId80[0]) === null || _$appointmentId80$ === void 0 ? void 0 : _$appointmentId80$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId81 = _.appointmentId) === null || _$appointmentId81 === void 0 ? void 0 : (_$appointmentId81$ = _$appointmentId81[0]) === null || _$appointmentId81$ === void 0 ? void 0 : _$appointmentId81$.start, "DD MMM,YYYY") : "",
|
|
39133
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId82 = _.appointmentId) === null || _$appointmentId82 === void 0 ? void 0 : (_$appointmentId82$ = _$appointmentId82[0]) === null || _$appointmentId82$ === void 0 ? void 0 : _$appointmentId82$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId83 = _.appointmentId) === null || _$appointmentId83 === void 0 ? void 0 : (_$appointmentId83$ = _$appointmentId83[0]) === null || _$appointmentId83$ === void 0 ? void 0 : _$appointmentId83$.start, "hh:mm A") : "",
|
|
39133
39134
|
visitType: (_$visit_type7 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type7 !== void 0 ? _$visit_type7 : "",
|
|
39134
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
39135
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId84 = _.appointmentId) === null || _$appointmentId84 === void 0 ? void 0 : (_$appointmentId84$ = _$appointmentId84[0]) === null || _$appointmentId84$ === void 0 ? void 0 : (_$appointmentId84$$Sp = _$appointmentId84$.SpecialtyID) === null || _$appointmentId84$$Sp === void 0 ? void 0 : _$appointmentId84$$Sp.map(function (spl) {
|
|
39135
39136
|
var _spl$coding14, _spl$coding14$;
|
|
39136
39137
|
|
|
39137
39138
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding14 = spl.coding) === null || _spl$coding14 === void 0 ? void 0 : (_spl$coding14$ = _spl$coding14[0]) === null || _spl$coding14$ === void 0 ? void 0 : _spl$coding14$.display;
|
|
@@ -39141,12 +39142,13 @@ var GET_FIRST_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getFirs
|
|
|
39141
39142
|
"View Patient": true,
|
|
39142
39143
|
Attend: true,
|
|
39143
39144
|
type: "OP",
|
|
39144
|
-
appNo: (_$
|
|
39145
|
+
appNo: (_$appointmentId$0$id8 = _ === null || _ === void 0 ? void 0 : (_$appointmentId85 = _.appointmentId) === null || _$appointmentId85 === void 0 ? void 0 : (_$appointmentId85$ = _$appointmentId85[0]) === null || _$appointmentId85$ === void 0 ? void 0 : _$appointmentId85$.id) !== null && _$appointmentId$0$id8 !== void 0 ? _$appointmentId$0$id8 : '',
|
|
39145
39146
|
data: _,
|
|
39146
|
-
enId: _.
|
|
39147
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39148
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
39149
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39147
|
+
enId: _.id,
|
|
39148
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId86 = _.appointmentId) === null || _$appointmentId86 === void 0 ? void 0 : (_$appointmentId86$ = _$appointmentId86[0]) === null || _$appointmentId86$ === void 0 ? void 0 : (_$appointmentId86$$Pe = _$appointmentId86$.PersonID) === null || _$appointmentId86$$Pe === void 0 ? void 0 : (_$appointmentId86$$Pe2 = _$appointmentId86$$Pe[0]) === null || _$appointmentId86$$Pe2 === void 0 ? void 0 : _$appointmentId86$$Pe2.birthDay),
|
|
39149
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$appointmentId87 = _.appointmentId) === null || _$appointmentId87 === void 0 ? void 0 : (_$appointmentId87$ = _$appointmentId87[0]) === null || _$appointmentId87$ === void 0 ? void 0 : (_$appointmentId87$$Pe = _$appointmentId87$.PersonID) === null || _$appointmentId87$$Pe === void 0 ? void 0 : (_$appointmentId87$$Pe2 = _$appointmentId87$$Pe[0]) === null || _$appointmentId87$$Pe2 === void 0 ? void 0 : _$appointmentId87$$Pe2.gender,
|
|
39150
|
+
contact: (_$patient_id$0$teleco8 = _ === null || _ === void 0 ? void 0 : (_$patient_id38 = _.patient_id) === null || _$patient_id38 === void 0 ? void 0 : (_$patient_id38$ = _$patient_id38[0]) === null || _$patient_id38$ === void 0 ? void 0 : (_$patient_id38$$telec = _$patient_id38$.telecom) === null || _$patient_id38$$telec === void 0 ? void 0 : (_$patient_id38$$telec2 = _$patient_id38$$telec[0]) === null || _$patient_id38$$telec2 === void 0 ? void 0 : _$patient_id38$$telec2.value) !== null && _$patient_id$0$teleco8 !== void 0 ? _$patient_id$0$teleco8 : "",
|
|
39151
|
+
pId: _ === null || _ === void 0 ? void 0 : (_$patient_id39 = _.patient_id) === null || _$patient_id39 === void 0 ? void 0 : _$patient_id39.id
|
|
39150
39152
|
};
|
|
39151
39153
|
}) : [];
|
|
39152
39154
|
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39191,17 +39193,17 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
39191
39193
|
case 5:
|
|
39192
39194
|
data = _context15.sent;
|
|
39193
39195
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result15 = data.result) === null || _data$result15 === void 0 ? void 0 : _data$result15.map(function (_) {
|
|
39194
|
-
var _$
|
|
39196
|
+
var _$appointmentId88, _$appointmentId88$, _$appointmentId88$$Pe, _$appointmentId88$$Pe2, _$appointmentId88$$Pe3, _$appointmentId88$$Pe4, _$appointmentId89, _$appointmentId89$, _$appointmentId89$$Pe, _$appointmentId89$$Pe2, _$appointmentId89$$Pe3, _$appointmentId89$$Pe4, _$patient_id40, _$patient_id40$, _$patient_id40$$name, _$patient_id41, _$patient_id41$, _$appointmentId90, _$appointmentId90$, _$appointmentId91, _$appointmentId91$, _$appointmentId92, _$appointmentId92$, _$appointmentId93, _$appointmentId93$, _$appointmentId94, _$appointmentId94$, _$visit_type8, _$appointmentId95, _$appointmentId95$, _$appointmentId95$$Sp, _$practitioner_detail15, _$practitioner_detail16, _$status9, _$appointmentId$0$id9, _$appointmentId96, _$appointmentId96$, _$appointmentId97, _$appointmentId97$, _$appointmentId97$$Pe, _$appointmentId97$$Pe2, _$appointmentId98, _$appointmentId98$, _$appointmentId98$$Pe, _$appointmentId98$$Pe2, _$patient_id$0$teleco9, _$patient_id42, _$patient_id42$, _$patient_id42$$telec, _$patient_id42$$telec2, _$patient_id43;
|
|
39195
39197
|
|
|
39196
39198
|
return {
|
|
39197
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39198
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39199
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39200
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39201
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39202
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39199
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId88 = _.appointmentId) === null || _$appointmentId88 === void 0 ? void 0 : (_$appointmentId88$ = _$appointmentId88[0]) === null || _$appointmentId88$ === void 0 ? void 0 : (_$appointmentId88$$Pe = _$appointmentId88$.PersonID) === null || _$appointmentId88$$Pe === void 0 ? void 0 : (_$appointmentId88$$Pe2 = _$appointmentId88$$Pe[0]) === null || _$appointmentId88$$Pe2 === void 0 ? void 0 : (_$appointmentId88$$Pe3 = _$appointmentId88$$Pe2.photo) === null || _$appointmentId88$$Pe3 === void 0 ? void 0 : (_$appointmentId88$$Pe4 = _$appointmentId88$$Pe3[0]) === null || _$appointmentId88$$Pe4 === void 0 ? void 0 : _$appointmentId88$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId89 = _.appointmentId) === null || _$appointmentId89 === void 0 ? void 0 : (_$appointmentId89$ = _$appointmentId89[0]) === null || _$appointmentId89$ === void 0 ? void 0 : (_$appointmentId89$$Pe = _$appointmentId89$.PersonID) === null || _$appointmentId89$$Pe === void 0 ? void 0 : (_$appointmentId89$$Pe2 = _$appointmentId89$$Pe[0]) === null || _$appointmentId89$$Pe2 === void 0 ? void 0 : (_$appointmentId89$$Pe3 = _$appointmentId89$$Pe2.photo) === null || _$appointmentId89$$Pe3 === void 0 ? void 0 : (_$appointmentId89$$Pe4 = _$appointmentId89$$Pe3[0]) === null || _$appointmentId89$$Pe4 === void 0 ? void 0 : _$appointmentId89$$Pe4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39200
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id40 = _.patient_id) === null || _$patient_id40 === void 0 ? void 0 : (_$patient_id40$ = _$patient_id40[0]) === null || _$patient_id40$ === void 0 ? void 0 : (_$patient_id40$$name = _$patient_id40$.name) === null || _$patient_id40$$name === void 0 ? void 0 : _$patient_id40$$name[0]) || {}),
|
|
39201
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id41 = _.patient_id) === null || _$patient_id41 === void 0 ? void 0 : (_$patient_id41$ = _$patient_id41[0]) === null || _$patient_id41$ === void 0 ? void 0 : _$patient_id41$.MRN) || "",
|
|
39202
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId90 = _.appointmentId) === null || _$appointmentId90 === void 0 ? void 0 : (_$appointmentId90$ = _$appointmentId90[0]) === null || _$appointmentId90$ === void 0 ? void 0 : _$appointmentId90$.appno) || "",
|
|
39203
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId91 = _.appointmentId) === null || _$appointmentId91 === void 0 ? void 0 : (_$appointmentId91$ = _$appointmentId91[0]) === null || _$appointmentId91$ === void 0 ? void 0 : _$appointmentId91$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId92 = _.appointmentId) === null || _$appointmentId92 === void 0 ? void 0 : (_$appointmentId92$ = _$appointmentId92[0]) === null || _$appointmentId92$ === void 0 ? void 0 : _$appointmentId92$.start, "DD MMM,YYYY") : "",
|
|
39204
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId93 = _.appointmentId) === null || _$appointmentId93 === void 0 ? void 0 : (_$appointmentId93$ = _$appointmentId93[0]) === null || _$appointmentId93$ === void 0 ? void 0 : _$appointmentId93$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId94 = _.appointmentId) === null || _$appointmentId94 === void 0 ? void 0 : (_$appointmentId94$ = _$appointmentId94[0]) === null || _$appointmentId94$ === void 0 ? void 0 : _$appointmentId94$.start, "hh:mm A") : "",
|
|
39203
39205
|
visitType: (_$visit_type8 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type8 !== void 0 ? _$visit_type8 : "",
|
|
39204
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
39206
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId95 = _.appointmentId) === null || _$appointmentId95 === void 0 ? void 0 : (_$appointmentId95$ = _$appointmentId95[0]) === null || _$appointmentId95$ === void 0 ? void 0 : (_$appointmentId95$$Sp = _$appointmentId95$.SpecialtyID) === null || _$appointmentId95$$Sp === void 0 ? void 0 : _$appointmentId95$$Sp.map(function (spl) {
|
|
39205
39207
|
var _spl$coding15, _spl$coding15$;
|
|
39206
39208
|
|
|
39207
39209
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding15 = spl.coding) === null || _spl$coding15 === void 0 ? void 0 : (_spl$coding15$ = _spl$coding15[0]) === null || _spl$coding15$ === void 0 ? void 0 : _spl$coding15$.display;
|
|
@@ -39211,12 +39213,13 @@ var GET_NEW_PATIENTS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getNewP
|
|
|
39211
39213
|
"View Patient": true,
|
|
39212
39214
|
Attend: true,
|
|
39213
39215
|
type: "OP",
|
|
39214
|
-
appNo: (_$
|
|
39216
|
+
appNo: (_$appointmentId$0$id9 = _ === null || _ === void 0 ? void 0 : (_$appointmentId96 = _.appointmentId) === null || _$appointmentId96 === void 0 ? void 0 : (_$appointmentId96$ = _$appointmentId96[0]) === null || _$appointmentId96$ === void 0 ? void 0 : _$appointmentId96$.id) !== null && _$appointmentId$0$id9 !== void 0 ? _$appointmentId$0$id9 : '',
|
|
39215
39217
|
data: _,
|
|
39216
|
-
enId: _.
|
|
39217
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39218
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
39219
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39218
|
+
enId: _.id,
|
|
39219
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId97 = _.appointmentId) === null || _$appointmentId97 === void 0 ? void 0 : (_$appointmentId97$ = _$appointmentId97[0]) === null || _$appointmentId97$ === void 0 ? void 0 : (_$appointmentId97$$Pe = _$appointmentId97$.PersonID) === null || _$appointmentId97$$Pe === void 0 ? void 0 : (_$appointmentId97$$Pe2 = _$appointmentId97$$Pe[0]) === null || _$appointmentId97$$Pe2 === void 0 ? void 0 : _$appointmentId97$$Pe2.birthDay),
|
|
39220
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$appointmentId98 = _.appointmentId) === null || _$appointmentId98 === void 0 ? void 0 : (_$appointmentId98$ = _$appointmentId98[0]) === null || _$appointmentId98$ === void 0 ? void 0 : (_$appointmentId98$$Pe = _$appointmentId98$.PersonID) === null || _$appointmentId98$$Pe === void 0 ? void 0 : (_$appointmentId98$$Pe2 = _$appointmentId98$$Pe[0]) === null || _$appointmentId98$$Pe2 === void 0 ? void 0 : _$appointmentId98$$Pe2.gender,
|
|
39221
|
+
contact: (_$patient_id$0$teleco9 = _ === null || _ === void 0 ? void 0 : (_$patient_id42 = _.patient_id) === null || _$patient_id42 === void 0 ? void 0 : (_$patient_id42$ = _$patient_id42[0]) === null || _$patient_id42$ === void 0 ? void 0 : (_$patient_id42$$telec = _$patient_id42$.telecom) === null || _$patient_id42$$telec === void 0 ? void 0 : (_$patient_id42$$telec2 = _$patient_id42$$telec[0]) === null || _$patient_id42$$telec2 === void 0 ? void 0 : _$patient_id42$$telec2.value) !== null && _$patient_id$0$teleco9 !== void 0 ? _$patient_id$0$teleco9 : "",
|
|
39222
|
+
pId: _ === null || _ === void 0 ? void 0 : (_$patient_id43 = _.patient_id) === null || _$patient_id43 === void 0 ? void 0 : _$patient_id43.id
|
|
39220
39223
|
};
|
|
39221
39224
|
}) : [];
|
|
39222
39225
|
return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39261,17 +39264,17 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39261
39264
|
case 5:
|
|
39262
39265
|
data = _context16.sent;
|
|
39263
39266
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result16 = data.result) === null || _data$result16 === void 0 ? void 0 : _data$result16.map(function (_) {
|
|
39264
|
-
var _$
|
|
39267
|
+
var _$appointmentId99, _$appointmentId99$, _$appointmentId99$$Pe, _$appointmentId99$$Pe2, _$appointmentId99$$Pe3, _$appointmentId99$$Pe4, _$appointmentId100, _$appointmentId100$, _$appointmentId100$$P, _$appointmentId100$$P2, _$appointmentId100$$P3, _$appointmentId100$$P4, _$patient_id44, _$patient_id44$, _$patient_id44$$name, _$patient_id45, _$patient_id45$, _$appointmentId101, _$appointmentId101$, _$appointmentId102, _$appointmentId102$, _$appointmentId103, _$appointmentId103$, _$appointmentId104, _$appointmentId104$, _$appointmentId105, _$appointmentId105$, _$visit_type9, _$appointmentId106, _$appointmentId106$, _$appointmentId106$$S, _$practitioner_detail17, _$practitioner_detail18, _$status10, _$appointmentId$0$id10, _$appointmentId107, _$appointmentId107$, _$appointmentId108, _$appointmentId108$, _$appointmentId108$$P, _$appointmentId108$$P2, _$appointmentId109, _$appointmentId109$, _$appointmentId109$$P, _$appointmentId109$$P2, _$patient_id$0$teleco10, _$patient_id46, _$patient_id46$, _$patient_id46$$telec, _$patient_id46$$telec2, _$patient_id47;
|
|
39265
39268
|
|
|
39266
39269
|
return {
|
|
39267
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39268
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39269
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39270
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39271
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39272
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39270
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId99 = _.appointmentId) === null || _$appointmentId99 === void 0 ? void 0 : (_$appointmentId99$ = _$appointmentId99[0]) === null || _$appointmentId99$ === void 0 ? void 0 : (_$appointmentId99$$Pe = _$appointmentId99$.PersonID) === null || _$appointmentId99$$Pe === void 0 ? void 0 : (_$appointmentId99$$Pe2 = _$appointmentId99$$Pe[0]) === null || _$appointmentId99$$Pe2 === void 0 ? void 0 : (_$appointmentId99$$Pe3 = _$appointmentId99$$Pe2.photo) === null || _$appointmentId99$$Pe3 === void 0 ? void 0 : (_$appointmentId99$$Pe4 = _$appointmentId99$$Pe3[0]) === null || _$appointmentId99$$Pe4 === void 0 ? void 0 : _$appointmentId99$$Pe4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId100 = _.appointmentId) === null || _$appointmentId100 === void 0 ? void 0 : (_$appointmentId100$ = _$appointmentId100[0]) === null || _$appointmentId100$ === void 0 ? void 0 : (_$appointmentId100$$P = _$appointmentId100$.PersonID) === null || _$appointmentId100$$P === void 0 ? void 0 : (_$appointmentId100$$P2 = _$appointmentId100$$P[0]) === null || _$appointmentId100$$P2 === void 0 ? void 0 : (_$appointmentId100$$P3 = _$appointmentId100$$P2.photo) === null || _$appointmentId100$$P3 === void 0 ? void 0 : (_$appointmentId100$$P4 = _$appointmentId100$$P3[0]) === null || _$appointmentId100$$P4 === void 0 ? void 0 : _$appointmentId100$$P4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39271
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id44 = _.patient_id) === null || _$patient_id44 === void 0 ? void 0 : (_$patient_id44$ = _$patient_id44[0]) === null || _$patient_id44$ === void 0 ? void 0 : (_$patient_id44$$name = _$patient_id44$.name) === null || _$patient_id44$$name === void 0 ? void 0 : _$patient_id44$$name[0]) || {}),
|
|
39272
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id45 = _.patient_id) === null || _$patient_id45 === void 0 ? void 0 : (_$patient_id45$ = _$patient_id45[0]) === null || _$patient_id45$ === void 0 ? void 0 : _$patient_id45$.MRN) || "",
|
|
39273
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId101 = _.appointmentId) === null || _$appointmentId101 === void 0 ? void 0 : (_$appointmentId101$ = _$appointmentId101[0]) === null || _$appointmentId101$ === void 0 ? void 0 : _$appointmentId101$.appno) || "",
|
|
39274
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId102 = _.appointmentId) === null || _$appointmentId102 === void 0 ? void 0 : (_$appointmentId102$ = _$appointmentId102[0]) === null || _$appointmentId102$ === void 0 ? void 0 : _$appointmentId102$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId103 = _.appointmentId) === null || _$appointmentId103 === void 0 ? void 0 : (_$appointmentId103$ = _$appointmentId103[0]) === null || _$appointmentId103$ === void 0 ? void 0 : _$appointmentId103$.start, "DD MMM,YYYY") : "",
|
|
39275
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId104 = _.appointmentId) === null || _$appointmentId104 === void 0 ? void 0 : (_$appointmentId104$ = _$appointmentId104[0]) === null || _$appointmentId104$ === void 0 ? void 0 : _$appointmentId104$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId105 = _.appointmentId) === null || _$appointmentId105 === void 0 ? void 0 : (_$appointmentId105$ = _$appointmentId105[0]) === null || _$appointmentId105$ === void 0 ? void 0 : _$appointmentId105$.start, "hh:mm A") : "",
|
|
39273
39276
|
visitType: (_$visit_type9 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type9 !== void 0 ? _$visit_type9 : "",
|
|
39274
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
39277
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId106 = _.appointmentId) === null || _$appointmentId106 === void 0 ? void 0 : (_$appointmentId106$ = _$appointmentId106[0]) === null || _$appointmentId106$ === void 0 ? void 0 : (_$appointmentId106$$S = _$appointmentId106$.SpecialtyID) === null || _$appointmentId106$$S === void 0 ? void 0 : _$appointmentId106$$S.map(function (spl) {
|
|
39275
39278
|
var _spl$coding16, _spl$coding16$;
|
|
39276
39279
|
|
|
39277
39280
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding16 = spl.coding) === null || _spl$coding16 === void 0 ? void 0 : (_spl$coding16$ = _spl$coding16[0]) === null || _spl$coding16$ === void 0 ? void 0 : _spl$coding16$.display;
|
|
@@ -39281,12 +39284,13 @@ var GET_OTHER_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getOthe
|
|
|
39281
39284
|
"View Patient": true,
|
|
39282
39285
|
Attend: true,
|
|
39283
39286
|
type: "OP",
|
|
39284
|
-
appNo: (_$
|
|
39287
|
+
appNo: (_$appointmentId$0$id10 = _ === null || _ === void 0 ? void 0 : (_$appointmentId107 = _.appointmentId) === null || _$appointmentId107 === void 0 ? void 0 : (_$appointmentId107$ = _$appointmentId107[0]) === null || _$appointmentId107$ === void 0 ? void 0 : _$appointmentId107$.id) !== null && _$appointmentId$0$id10 !== void 0 ? _$appointmentId$0$id10 : '',
|
|
39285
39288
|
data: _,
|
|
39286
|
-
enId: _.
|
|
39287
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39288
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
39289
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39289
|
+
enId: _.id,
|
|
39290
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId108 = _.appointmentId) === null || _$appointmentId108 === void 0 ? void 0 : (_$appointmentId108$ = _$appointmentId108[0]) === null || _$appointmentId108$ === void 0 ? void 0 : (_$appointmentId108$$P = _$appointmentId108$.PersonID) === null || _$appointmentId108$$P === void 0 ? void 0 : (_$appointmentId108$$P2 = _$appointmentId108$$P[0]) === null || _$appointmentId108$$P2 === void 0 ? void 0 : _$appointmentId108$$P2.birthDay),
|
|
39291
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$appointmentId109 = _.appointmentId) === null || _$appointmentId109 === void 0 ? void 0 : (_$appointmentId109$ = _$appointmentId109[0]) === null || _$appointmentId109$ === void 0 ? void 0 : (_$appointmentId109$$P = _$appointmentId109$.PersonID) === null || _$appointmentId109$$P === void 0 ? void 0 : (_$appointmentId109$$P2 = _$appointmentId109$$P[0]) === null || _$appointmentId109$$P2 === void 0 ? void 0 : _$appointmentId109$$P2.gender,
|
|
39292
|
+
contact: (_$patient_id$0$teleco10 = _ === null || _ === void 0 ? void 0 : (_$patient_id46 = _.patient_id) === null || _$patient_id46 === void 0 ? void 0 : (_$patient_id46$ = _$patient_id46[0]) === null || _$patient_id46$ === void 0 ? void 0 : (_$patient_id46$$telec = _$patient_id46$.telecom) === null || _$patient_id46$$telec === void 0 ? void 0 : (_$patient_id46$$telec2 = _$patient_id46$$telec[0]) === null || _$patient_id46$$telec2 === void 0 ? void 0 : _$patient_id46$$telec2.value) !== null && _$patient_id$0$teleco10 !== void 0 ? _$patient_id$0$teleco10 : "",
|
|
39293
|
+
pId: _ === null || _ === void 0 ? void 0 : (_$patient_id47 = _.patient_id) === null || _$patient_id47 === void 0 ? void 0 : _$patient_id47.id
|
|
39290
39294
|
};
|
|
39291
39295
|
}) : [];
|
|
39292
39296
|
return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39331,17 +39335,17 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39331
39335
|
case 5:
|
|
39332
39336
|
data = _context17.sent;
|
|
39333
39337
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result17 = data.result) === null || _data$result17 === void 0 ? void 0 : _data$result17.map(function (_) {
|
|
39334
|
-
var _$
|
|
39338
|
+
var _$appointmentId110, _$appointmentId110$, _$appointmentId110$$P, _$appointmentId110$$P2, _$appointmentId110$$P3, _$appointmentId110$$P4, _$appointmentId111, _$appointmentId111$, _$appointmentId111$$P, _$appointmentId111$$P2, _$appointmentId111$$P3, _$appointmentId111$$P4, _$patient_id48, _$patient_id48$, _$patient_id48$$name, _$patient_id49, _$patient_id49$, _$appointmentId112, _$appointmentId112$, _$appointmentId113, _$appointmentId113$, _$appointmentId114, _$appointmentId114$, _$appointmentId115, _$appointmentId115$, _$appointmentId116, _$appointmentId116$, _$visit_type10, _$appointmentId117, _$appointmentId117$, _$appointmentId117$$S, _$practitioner_detail19, _$practitioner_detail20, _$status11, _$appointmentId$0$id11, _$appointmentId118, _$appointmentId118$, _$appointmentId119, _$appointmentId119$, _$appointmentId119$$P, _$appointmentId119$$P2, _$appointmentId120, _$appointmentId120$, _$appointmentId120$$P, _$appointmentId120$$P2, _$patient_id$0$teleco11, _$patient_id50, _$patient_id50$, _$patient_id50$$telec, _$patient_id50$$telec2, _$patient_id51;
|
|
39335
39339
|
|
|
39336
39340
|
return {
|
|
39337
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39338
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39339
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39340
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39341
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39342
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39341
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId110 = _.appointmentId) === null || _$appointmentId110 === void 0 ? void 0 : (_$appointmentId110$ = _$appointmentId110[0]) === null || _$appointmentId110$ === void 0 ? void 0 : (_$appointmentId110$$P = _$appointmentId110$.PersonID) === null || _$appointmentId110$$P === void 0 ? void 0 : (_$appointmentId110$$P2 = _$appointmentId110$$P[0]) === null || _$appointmentId110$$P2 === void 0 ? void 0 : (_$appointmentId110$$P3 = _$appointmentId110$$P2.photo) === null || _$appointmentId110$$P3 === void 0 ? void 0 : (_$appointmentId110$$P4 = _$appointmentId110$$P3[0]) === null || _$appointmentId110$$P4 === void 0 ? void 0 : _$appointmentId110$$P4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId111 = _.appointmentId) === null || _$appointmentId111 === void 0 ? void 0 : (_$appointmentId111$ = _$appointmentId111[0]) === null || _$appointmentId111$ === void 0 ? void 0 : (_$appointmentId111$$P = _$appointmentId111$.PersonID) === null || _$appointmentId111$$P === void 0 ? void 0 : (_$appointmentId111$$P2 = _$appointmentId111$$P[0]) === null || _$appointmentId111$$P2 === void 0 ? void 0 : (_$appointmentId111$$P3 = _$appointmentId111$$P2.photo) === null || _$appointmentId111$$P3 === void 0 ? void 0 : (_$appointmentId111$$P4 = _$appointmentId111$$P3[0]) === null || _$appointmentId111$$P4 === void 0 ? void 0 : _$appointmentId111$$P4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39342
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id48 = _.patient_id) === null || _$patient_id48 === void 0 ? void 0 : (_$patient_id48$ = _$patient_id48[0]) === null || _$patient_id48$ === void 0 ? void 0 : (_$patient_id48$$name = _$patient_id48$.name) === null || _$patient_id48$$name === void 0 ? void 0 : _$patient_id48$$name[0]) || {}),
|
|
39343
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id49 = _.patient_id) === null || _$patient_id49 === void 0 ? void 0 : (_$patient_id49$ = _$patient_id49[0]) === null || _$patient_id49$ === void 0 ? void 0 : _$patient_id49$.MRN) || "",
|
|
39344
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId112 = _.appointmentId) === null || _$appointmentId112 === void 0 ? void 0 : (_$appointmentId112$ = _$appointmentId112[0]) === null || _$appointmentId112$ === void 0 ? void 0 : _$appointmentId112$.appno) || "",
|
|
39345
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId113 = _.appointmentId) === null || _$appointmentId113 === void 0 ? void 0 : (_$appointmentId113$ = _$appointmentId113[0]) === null || _$appointmentId113$ === void 0 ? void 0 : _$appointmentId113$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId114 = _.appointmentId) === null || _$appointmentId114 === void 0 ? void 0 : (_$appointmentId114$ = _$appointmentId114[0]) === null || _$appointmentId114$ === void 0 ? void 0 : _$appointmentId114$.start, "DD MMM,YYYY") : "",
|
|
39346
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId115 = _.appointmentId) === null || _$appointmentId115 === void 0 ? void 0 : (_$appointmentId115$ = _$appointmentId115[0]) === null || _$appointmentId115$ === void 0 ? void 0 : _$appointmentId115$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId116 = _.appointmentId) === null || _$appointmentId116 === void 0 ? void 0 : (_$appointmentId116$ = _$appointmentId116[0]) === null || _$appointmentId116$ === void 0 ? void 0 : _$appointmentId116$.start, "hh:mm A") : "",
|
|
39343
39347
|
visitType: (_$visit_type10 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type10 !== void 0 ? _$visit_type10 : "",
|
|
39344
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
39348
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId117 = _.appointmentId) === null || _$appointmentId117 === void 0 ? void 0 : (_$appointmentId117$ = _$appointmentId117[0]) === null || _$appointmentId117$ === void 0 ? void 0 : (_$appointmentId117$$S = _$appointmentId117$.SpecialtyID) === null || _$appointmentId117$$S === void 0 ? void 0 : _$appointmentId117$$S.map(function (spl) {
|
|
39345
39349
|
var _spl$coding17, _spl$coding17$;
|
|
39346
39350
|
|
|
39347
39351
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding17 = spl.coding) === null || _spl$coding17 === void 0 ? void 0 : (_spl$coding17$ = _spl$coding17[0]) === null || _spl$coding17$ === void 0 ? void 0 : _spl$coding17$.display;
|
|
@@ -39351,12 +39355,13 @@ var GET_TODAY_VISITS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getToda
|
|
|
39351
39355
|
"View Patient": true,
|
|
39352
39356
|
Attend: true,
|
|
39353
39357
|
type: "OP",
|
|
39354
|
-
appNo: (_$
|
|
39358
|
+
appNo: (_$appointmentId$0$id11 = _ === null || _ === void 0 ? void 0 : (_$appointmentId118 = _.appointmentId) === null || _$appointmentId118 === void 0 ? void 0 : (_$appointmentId118$ = _$appointmentId118[0]) === null || _$appointmentId118$ === void 0 ? void 0 : _$appointmentId118$.id) !== null && _$appointmentId$0$id11 !== void 0 ? _$appointmentId$0$id11 : '',
|
|
39355
39359
|
data: _,
|
|
39356
|
-
enId: _.
|
|
39357
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39358
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
39359
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39360
|
+
enId: _.id,
|
|
39361
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId119 = _.appointmentId) === null || _$appointmentId119 === void 0 ? void 0 : (_$appointmentId119$ = _$appointmentId119[0]) === null || _$appointmentId119$ === void 0 ? void 0 : (_$appointmentId119$$P = _$appointmentId119$.PersonID) === null || _$appointmentId119$$P === void 0 ? void 0 : (_$appointmentId119$$P2 = _$appointmentId119$$P[0]) === null || _$appointmentId119$$P2 === void 0 ? void 0 : _$appointmentId119$$P2.birthDay),
|
|
39362
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$appointmentId120 = _.appointmentId) === null || _$appointmentId120 === void 0 ? void 0 : (_$appointmentId120$ = _$appointmentId120[0]) === null || _$appointmentId120$ === void 0 ? void 0 : (_$appointmentId120$$P = _$appointmentId120$.PersonID) === null || _$appointmentId120$$P === void 0 ? void 0 : (_$appointmentId120$$P2 = _$appointmentId120$$P[0]) === null || _$appointmentId120$$P2 === void 0 ? void 0 : _$appointmentId120$$P2.gender,
|
|
39363
|
+
contact: (_$patient_id$0$teleco11 = _ === null || _ === void 0 ? void 0 : (_$patient_id50 = _.patient_id) === null || _$patient_id50 === void 0 ? void 0 : (_$patient_id50$ = _$patient_id50[0]) === null || _$patient_id50$ === void 0 ? void 0 : (_$patient_id50$$telec = _$patient_id50$.telecom) === null || _$patient_id50$$telec === void 0 ? void 0 : (_$patient_id50$$telec2 = _$patient_id50$$telec[0]) === null || _$patient_id50$$telec2 === void 0 ? void 0 : _$patient_id50$$telec2.value) !== null && _$patient_id$0$teleco11 !== void 0 ? _$patient_id$0$teleco11 : "",
|
|
39364
|
+
pId: _ === null || _ === void 0 ? void 0 : (_$patient_id51 = _.patient_id) === null || _$patient_id51 === void 0 ? void 0 : _$patient_id51.id
|
|
39360
39365
|
};
|
|
39361
39366
|
}) : [];
|
|
39362
39367
|
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -39401,17 +39406,17 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39401
39406
|
case 5:
|
|
39402
39407
|
data = _context18.sent;
|
|
39403
39408
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result18 = data.result) === null || _data$result18 === void 0 ? void 0 : _data$result18.map(function (_) {
|
|
39404
|
-
var _$
|
|
39409
|
+
var _$appointmentId121, _$appointmentId121$, _$appointmentId121$$P, _$appointmentId121$$P2, _$appointmentId121$$P3, _$appointmentId121$$P4, _$appointmentId122, _$appointmentId122$, _$appointmentId122$$P, _$appointmentId122$$P2, _$appointmentId122$$P3, _$appointmentId122$$P4, _$patient_id52, _$patient_id52$, _$patient_id52$$name, _$patient_id53, _$patient_id53$, _$appointmentId123, _$appointmentId123$, _$appointmentId124, _$appointmentId124$, _$appointmentId125, _$appointmentId125$, _$appointmentId126, _$appointmentId126$, _$appointmentId127, _$appointmentId127$, _$visit_type11, _$appointmentId128, _$appointmentId128$, _$appointmentId128$$S, _$practitioner_detail21, _$practitioner_detail22, _$status12, _$appointmentId$0$id12, _$appointmentId129, _$appointmentId129$, _$appointmentId130, _$appointmentId130$, _$appointmentId130$$P, _$appointmentId130$$P2, _$appointmentId131, _$appointmentId131$, _$appointmentId131$$P, _$appointmentId131$$P2, _$patient_id$0$teleco12, _$patient_id54, _$patient_id54$, _$patient_id54$$telec, _$patient_id54$$telec2, _$patient_id55;
|
|
39405
39410
|
|
|
39406
39411
|
return {
|
|
39407
|
-
img: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39408
|
-
name: makeName((_ === null || _ === void 0 ? void 0 : (_$
|
|
39409
|
-
mrn: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39410
|
-
refNo: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39411
|
-
date: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39412
|
-
time: (_ === null || _ === void 0 ? void 0 : (_$
|
|
39412
|
+
img: (_ === null || _ === void 0 ? void 0 : (_$appointmentId121 = _.appointmentId) === null || _$appointmentId121 === void 0 ? void 0 : (_$appointmentId121$ = _$appointmentId121[0]) === null || _$appointmentId121$ === void 0 ? void 0 : (_$appointmentId121$$P = _$appointmentId121$.PersonID) === null || _$appointmentId121$$P === void 0 ? void 0 : (_$appointmentId121$$P2 = _$appointmentId121$$P[0]) === null || _$appointmentId121$$P2 === void 0 ? void 0 : (_$appointmentId121$$P3 = _$appointmentId121$$P2.photo) === null || _$appointmentId121$$P3 === void 0 ? void 0 : (_$appointmentId121$$P4 = _$appointmentId121$$P3[0]) === null || _$appointmentId121$$P4 === void 0 ? void 0 : _$appointmentId121$$P4.fileid) ? getImgUrl(_ === null || _ === void 0 ? void 0 : (_$appointmentId122 = _.appointmentId) === null || _$appointmentId122 === void 0 ? void 0 : (_$appointmentId122$ = _$appointmentId122[0]) === null || _$appointmentId122$ === void 0 ? void 0 : (_$appointmentId122$$P = _$appointmentId122$.PersonID) === null || _$appointmentId122$$P === void 0 ? void 0 : (_$appointmentId122$$P2 = _$appointmentId122$$P[0]) === null || _$appointmentId122$$P2 === void 0 ? void 0 : (_$appointmentId122$$P3 = _$appointmentId122$$P2.photo) === null || _$appointmentId122$$P3 === void 0 ? void 0 : (_$appointmentId122$$P4 = _$appointmentId122$$P3[0]) === null || _$appointmentId122$$P4 === void 0 ? void 0 : _$appointmentId122$$P4.fileid) : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
39413
|
+
name: makeName((_ === null || _ === void 0 ? void 0 : (_$patient_id52 = _.patient_id) === null || _$patient_id52 === void 0 ? void 0 : (_$patient_id52$ = _$patient_id52[0]) === null || _$patient_id52$ === void 0 ? void 0 : (_$patient_id52$$name = _$patient_id52$.name) === null || _$patient_id52$$name === void 0 ? void 0 : _$patient_id52$$name[0]) || {}),
|
|
39414
|
+
mrn: (_ === null || _ === void 0 ? void 0 : (_$patient_id53 = _.patient_id) === null || _$patient_id53 === void 0 ? void 0 : (_$patient_id53$ = _$patient_id53[0]) === null || _$patient_id53$ === void 0 ? void 0 : _$patient_id53$.MRN) || "",
|
|
39415
|
+
refNo: (_ === null || _ === void 0 ? void 0 : (_$appointmentId123 = _.appointmentId) === null || _$appointmentId123 === void 0 ? void 0 : (_$appointmentId123$ = _$appointmentId123[0]) === null || _$appointmentId123$ === void 0 ? void 0 : _$appointmentId123$.appno) || "",
|
|
39416
|
+
date: (_ === null || _ === void 0 ? void 0 : (_$appointmentId124 = _.appointmentId) === null || _$appointmentId124 === void 0 ? void 0 : (_$appointmentId124$ = _$appointmentId124[0]) === null || _$appointmentId124$ === void 0 ? void 0 : _$appointmentId124$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId125 = _.appointmentId) === null || _$appointmentId125 === void 0 ? void 0 : (_$appointmentId125$ = _$appointmentId125[0]) === null || _$appointmentId125$ === void 0 ? void 0 : _$appointmentId125$.start, "DD MMM,YYYY") : "",
|
|
39417
|
+
time: (_ === null || _ === void 0 ? void 0 : (_$appointmentId126 = _.appointmentId) === null || _$appointmentId126 === void 0 ? void 0 : (_$appointmentId126$ = _$appointmentId126[0]) === null || _$appointmentId126$ === void 0 ? void 0 : _$appointmentId126$.start) ? utcTOLocal$1(_ === null || _ === void 0 ? void 0 : (_$appointmentId127 = _.appointmentId) === null || _$appointmentId127 === void 0 ? void 0 : (_$appointmentId127$ = _$appointmentId127[0]) === null || _$appointmentId127$ === void 0 ? void 0 : _$appointmentId127$.start, "hh:mm A") : "",
|
|
39413
39418
|
visitType: (_$visit_type11 = _ === null || _ === void 0 ? void 0 : _.visit_type) !== null && _$visit_type11 !== void 0 ? _$visit_type11 : "",
|
|
39414
|
-
speciality: _ === null || _ === void 0 ? void 0 : (_$
|
|
39419
|
+
speciality: _ === null || _ === void 0 ? void 0 : (_$appointmentId128 = _.appointmentId) === null || _$appointmentId128 === void 0 ? void 0 : (_$appointmentId128$ = _$appointmentId128[0]) === null || _$appointmentId128$ === void 0 ? void 0 : (_$appointmentId128$$S = _$appointmentId128$.SpecialtyID) === null || _$appointmentId128$$S === void 0 ? void 0 : _$appointmentId128$$S.map(function (spl) {
|
|
39415
39420
|
var _spl$coding18, _spl$coding18$;
|
|
39416
39421
|
|
|
39417
39422
|
return spl === null || spl === void 0 ? void 0 : (_spl$coding18 = spl.coding) === null || _spl$coding18 === void 0 ? void 0 : (_spl$coding18$ = _spl$coding18[0]) === null || _spl$coding18$ === void 0 ? void 0 : _spl$coding18$.display;
|
|
@@ -39421,12 +39426,13 @@ var GET_WALK_INS_DOCTOR = createAsyncThunk("appointmentStatsApiSlice/getWalkInsD
|
|
|
39421
39426
|
"View Patient": true,
|
|
39422
39427
|
Attend: true,
|
|
39423
39428
|
type: "OP",
|
|
39424
|
-
appNo: (_$
|
|
39429
|
+
appNo: (_$appointmentId$0$id12 = _ === null || _ === void 0 ? void 0 : (_$appointmentId129 = _.appointmentId) === null || _$appointmentId129 === void 0 ? void 0 : (_$appointmentId129$ = _$appointmentId129[0]) === null || _$appointmentId129$ === void 0 ? void 0 : _$appointmentId129$.id) !== null && _$appointmentId$0$id12 !== void 0 ? _$appointmentId$0$id12 : '',
|
|
39425
39430
|
data: _,
|
|
39426
|
-
enId: _.
|
|
39427
|
-
age: getAge(_ === null || _ === void 0 ? void 0 : (_$
|
|
39428
|
-
gender: _ === null || _ === void 0 ? void 0 : (_$
|
|
39429
|
-
contact: _ === null || _ === void 0 ? void 0 : (_$
|
|
39431
|
+
enId: _.id,
|
|
39432
|
+
age: getAge(_ === null || _ === void 0 ? void 0 : (_$appointmentId130 = _.appointmentId) === null || _$appointmentId130 === void 0 ? void 0 : (_$appointmentId130$ = _$appointmentId130[0]) === null || _$appointmentId130$ === void 0 ? void 0 : (_$appointmentId130$$P = _$appointmentId130$.PersonID) === null || _$appointmentId130$$P === void 0 ? void 0 : (_$appointmentId130$$P2 = _$appointmentId130$$P[0]) === null || _$appointmentId130$$P2 === void 0 ? void 0 : _$appointmentId130$$P2.birthDay),
|
|
39433
|
+
gender: _ === null || _ === void 0 ? void 0 : (_$appointmentId131 = _.appointmentId) === null || _$appointmentId131 === void 0 ? void 0 : (_$appointmentId131$ = _$appointmentId131[0]) === null || _$appointmentId131$ === void 0 ? void 0 : (_$appointmentId131$$P = _$appointmentId131$.PersonID) === null || _$appointmentId131$$P === void 0 ? void 0 : (_$appointmentId131$$P2 = _$appointmentId131$$P[0]) === null || _$appointmentId131$$P2 === void 0 ? void 0 : _$appointmentId131$$P2.gender,
|
|
39434
|
+
contact: (_$patient_id$0$teleco12 = _ === null || _ === void 0 ? void 0 : (_$patient_id54 = _.patient_id) === null || _$patient_id54 === void 0 ? void 0 : (_$patient_id54$ = _$patient_id54[0]) === null || _$patient_id54$ === void 0 ? void 0 : (_$patient_id54$$telec = _$patient_id54$.telecom) === null || _$patient_id54$$telec === void 0 ? void 0 : (_$patient_id54$$telec2 = _$patient_id54$$telec[0]) === null || _$patient_id54$$telec2 === void 0 ? void 0 : _$patient_id54$$telec2.value) !== null && _$patient_id$0$teleco12 !== void 0 ? _$patient_id$0$teleco12 : "",
|
|
39435
|
+
pId: _ === null || _ === void 0 ? void 0 : (_$patient_id55 = _.patient_id) === null || _$patient_id55 === void 0 ? void 0 : _$patient_id55.id
|
|
39430
39436
|
};
|
|
39431
39437
|
}) : [];
|
|
39432
39438
|
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|