primarycare-binder 1.1.95 → 1.1.96
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 +4 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -40258,7 +40258,7 @@ var query$4 = {
|
|
|
40258
40258
|
Appointment: "Appointment.activestatus==true && Appointment.orgid=='".concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].id ANY IN Appointment.SpecialtyID"),
|
|
40259
40259
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('First Visit')"
|
|
40260
40260
|
},
|
|
40261
|
-
return_fields: "merge(Encounter,{status:document(Encounter.status),appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:document(document(Appointment.resourcecode).name)}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})),patient_id:(for pati in Patient filter pati.id == Encounter.patient_id return merge(pati,{name:document(pati.name)}))})"
|
|
40261
|
+
return_fields: "merge(Encounter,{status:document(Encounter.status),appointmentId:(filter Appointment.id in Encounter.appointmentId return merge(Appointment,{PersonID:(for per in Person filter per.Id in Appointment.PersonID return merge(per,{name:(for nam in HumanNameMaster filter nam._id in per.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{gender:document(per.gender)},{photo:document(per.photo)})),resourcecode:merge(document(Appointment.resourcecode),{name:document(document(Appointment.resourcecode).name)}),SpecialtyID:(for spe in CodeableConceptMaster filter Appointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})),patient_id:(for pati in Patient filter pati.id == Encounter.patient_id return merge(pati,{name:document(pati.name)},{telecom:document(pati.telecom)}))})"
|
|
40262
40262
|
};
|
|
40263
40263
|
},
|
|
40264
40264
|
getNewPatientsNurse: function getNewPatientsNurse(data) {
|
|
@@ -40270,7 +40270,7 @@ var query$4 = {
|
|
|
40270
40270
|
Appointment: "Appointment.activestatus==true && Appointment.orgid=='".concat(data === null || data === void 0 ? void 0 : data.orgID, "' && Appointment.start>=").concat(data === null || data === void 0 ? void 0 : data.startDate, " && Appointment.end<=").concat(data === null || data === void 0 ? void 0 : data.endDate, " && document(DOCUMENT(Practitioner.practitioner_role[*])[*].SpecialtyID)[*].id ANY IN Appointment.SpecialtyID"),
|
|
40271
40271
|
Encounter: "Appointment.id in Encounter.appointmentId && lower(Encounter.visit_type)==lower('New Patient')"
|
|
40272
40272
|
},
|
|
40273
|
-
return_fields: "merge(
|
|
40273
|
+
return_fields: "merge(adqolcEncounter,{status:document(adqolcEncounter.status),appointmentId:(filter adqolcAppointment.id in adqolcEncounter.appointmentId return merge(adqolcAppointment,{PersonID:(for per in Person filter per.Id in adqolcAppointment.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(adqolcAppointment.resourcecode),{name:document(document(adqolcAppointment.resourcecode).name)}),SpecialtyID:(for spe in CodeableConceptMaster filter adqolcAppointment.SpecialtyID any == spe.id return merge(spe,{coding:document(spe.coding)}))})),patient_id:(for pati in Patient filter pati.id == adqolcEncounter.patient_id return merge(pati,{name:document(pati.name)},{telecom:document(pati.telecom)}))})"
|
|
40274
40274
|
};
|
|
40275
40275
|
},
|
|
40276
40276
|
getOtherVisitsNurse: function getOtherVisitsNurse(data) {
|
|
@@ -40907,6 +40907,7 @@ var GET_TODAY_VISITS = createAsyncThunk("appointmentStatsApiSlice/getTodayVisits
|
|
|
40907
40907
|
returnedData = (data === null || data === void 0 ? void 0 : data.result) ? data === null || data === void 0 ? void 0 : (_data$result6 = data.result) === null || _data$result6 === void 0 ? void 0 : _data$result6.map(function (_) {
|
|
40908
40908
|
var _$Encounter29, _$Encounter29$patient, _$Encounter29$patient2, _$Encounter29$patient3, _$Encounter30, _$Encounter30$patient, _$Encounter30$patient2, _$Appointment41, _$Appointment41$Perso, _$Appointment41$Perso2, _$Appointment42, _$Appointment43, _$Appointment44, _$Appointment45, _$Encounter31, _$Encounter$status$di5, _$Encounter32, _$Encounter32$status, _$Appointment$appno5, _$Appointment46, _$Encounter$appointme5, _$Encounter33, _$Encounter33$appoint, _$Encounter34, _$Encounter34$patient, _$Encounter34$patient2, _$Encounter34$patient3, _$Encounter34$patient4, _$Appointment$PersonI8, _$Appointment47, _$Appointment47$Perso, _$Appointment47$Perso2, _$Encounter$patient_i8, _$Encounter35, _$Encounter35$patient, _$Encounter35$patient2;
|
|
40909
40909
|
|
|
40910
|
+
debugger;
|
|
40910
40911
|
return {
|
|
40911
40912
|
// img: _?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid
|
|
40912
40913
|
// ? getImgUrl(_?.Appointment?.PersonID?.[0]?.photo?.[0]?.fileid)
|
|
@@ -41019,7 +41020,7 @@ var GET_APPOINTMENTS_NURSE = createAsyncThunk("appointmentStatsApiSlice/getAppoi
|
|
|
41019
41020
|
// )
|
|
41020
41021
|
// : "https://worthingtonmotorcycles.com.au/wp-content/uploads/2017/06/tlc-perth-user-icon-im2.png",
|
|
41021
41022
|
name: makeName((_ === null || _ === void 0 ? void 0 : (_$Appointment48 = _.Appointment) === null || _$Appointment48 === void 0 ? void 0 : (_$Appointment48$Perso = _$Appointment48.PersonID) === null || _$Appointment48$Perso === void 0 ? void 0 : (_$Appointment48$Perso2 = _$Appointment48$Perso[0]) === null || _$Appointment48$Perso2 === void 0 ? void 0 : (_$Appointment48$Perso3 = _$Appointment48$Perso2.name) === null || _$Appointment48$Perso3 === void 0 ? void 0 : _$Appointment48$Perso3[0]) || {}),
|
|
41022
|
-
mrn: (_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : (_$Appointment49$Perso = _$Appointment49.PersonID) === null || _$Appointment49$Perso === void 0 ? void 0 : (_$Appointment49$Perso2 = _$Appointment49$Perso[0]) === null || _$Appointment49$Perso2 === void 0 ? void 0 : (_$Appointment49$Perso3 = _$Appointment49$Perso2.MRN) === null || _$Appointment49$Perso3 === void 0 ? void 0 : _$Appointment49$Perso3[0],
|
|
41023
|
+
mrn: ((_$Appointment49 = _.Appointment) === null || _$Appointment49 === void 0 ? void 0 : (_$Appointment49$Perso = _$Appointment49.PersonID) === null || _$Appointment49$Perso === void 0 ? void 0 : (_$Appointment49$Perso2 = _$Appointment49$Perso[0]) === null || _$Appointment49$Perso2 === void 0 ? void 0 : (_$Appointment49$Perso3 = _$Appointment49$Perso2.MRN) === null || _$Appointment49$Perso3 === void 0 ? void 0 : _$Appointment49$Perso3[0]) || "",
|
|
41023
41024
|
age: getAge(_ === null || _ === void 0 ? void 0 : (_$Appointment50 = _.Appointment) === null || _$Appointment50 === void 0 ? void 0 : (_$Appointment50$Perso = _$Appointment50.PersonID) === null || _$Appointment50$Perso === void 0 ? void 0 : (_$Appointment50$Perso2 = _$Appointment50$Perso[0]) === null || _$Appointment50$Perso2 === void 0 ? void 0 : _$Appointment50$Perso2.birthDay),
|
|
41024
41025
|
// genderData: "M",
|
|
41025
41026
|
contact: ((_$Appointment51 = _.Appointment) === null || _$Appointment51 === void 0 ? void 0 : (_$Appointment51$Perso = _$Appointment51.PersonID) === null || _$Appointment51$Perso === void 0 ? void 0 : (_$Appointment51$Perso2 = _$Appointment51$Perso[0]) === null || _$Appointment51$Perso2 === void 0 ? void 0 : (_$Appointment51$Perso3 = _$Appointment51$Perso2.telecom) === null || _$Appointment51$Perso3 === void 0 ? void 0 : (_$Appointment51$Perso4 = _$Appointment51$Perso3[0]) === null || _$Appointment51$Perso4 === void 0 ? void 0 : _$Appointment51$Perso4.value) ? JSON.stringify((_$Appointment52 = _.Appointment) === null || _$Appointment52 === void 0 ? void 0 : (_$Appointment52$Perso = _$Appointment52.PersonID) === null || _$Appointment52$Perso === void 0 ? void 0 : (_$Appointment52$Perso2 = _$Appointment52$Perso[0]) === null || _$Appointment52$Perso2 === void 0 ? void 0 : (_$Appointment52$Perso3 = _$Appointment52$Perso2.telecom) === null || _$Appointment52$Perso3 === void 0 ? void 0 : (_$Appointment52$Perso4 = _$Appointment52$Perso3[0]) === null || _$Appointment52$Perso4 === void 0 ? void 0 : _$Appointment52$Perso4.value) : "",
|