primarycare-binder 1.1.39 → 1.1.40
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 +5 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19094,7 +19094,7 @@ var dashboardQuery = {
|
|
|
19094
19094
|
Encounter: "Encounter._key=='".concat(encounter_key, "' && Encounter.activestatus==true && lower(document(Encounter.status).display)=='consultation over'"),
|
|
19095
19095
|
Appointment: "Appointment.id in Encounter.appointmentId && Appointment.start>=".concat(start, " && Appointment.end<=").concat(end)
|
|
19096
19096
|
},
|
|
19097
|
-
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))})"
|
|
19097
|
+
return_fields: "merge(Encounter,{patient_id:(for pat in Patient filter pat.id==Encounter.patient_id return merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)})),telecom:document(pat.telecom),gender:document(pat.gender),age_type:document(pat.age_type)},{photo:document(pat.photo)}))},{appointmentId: merge(Appointment,{practitionerID:(for prac in Practitioner filter prac.id in Appointment.practitionerID return merge(prac,{name:(for nam in HumanNameMaster filter nam._id in prac.name return merge(nam,{use:(for cod in CodeableConceptMaster filter cod._id == nam.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == nam.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == nam.suffix return document(cod.coding))}))},{photo:document(prac.photo)})),HealthcareServiceID:(for hs in HealthcareService filter hs.id in Appointment.HealthcareServiceID return hs)},{appointmentReason:(for apr in CodingMaster filter apr.id in Appointment.appointmentReason return apr)})},{followupUOM:document(Encounter.followupUOM),reasonCode:document(Encounter.reasonCode),dischargeDisposition:document(Encounter.dischargeDisposition)},{practitioner_details:(for pd in Encounter.practitioner_details return merge(pd,{speciality:(for spd in CodeableConceptMaster filter spd._id == pd.speciality return merge(spd,{coding:document(spd.coding)}))}))})"
|
|
19098
19098
|
};
|
|
19099
19099
|
}
|
|
19100
19100
|
};
|
|
@@ -20533,7 +20533,7 @@ var generateReadJSON_Reassign = function generateReadJSON_Reassign(data) {
|
|
|
20533
20533
|
};
|
|
20534
20534
|
|
|
20535
20535
|
var generateReadJSON_colseConsultation = function generateReadJSON_colseConsultation(data) {
|
|
20536
|
-
var _data$visit_type, _data$reasonReference, _data$reasonReference2, _data$appointmentId, _data$appointmentId2, _data$appointmentId$c, _data$appointmentId3, _data$appointmentId4, _data$appointmentId5, _data$appointmentId6, _data$appointmentId6$, _data$patient_id$0$ph, _data$patient_id, _data$patient_id$, _data$patient_id$$pho, _ref47, _data$patient_id2, _data$patient_id2$0$n, _data$patient_id2$0$n2, _data$patient_id3, _data$patient_id3$0$n, _data$patient_id3$0$n2, _data$patient_id$0$ag, _data$patient_id4, _data$patient_id4$, _data$patient_id5, _data$patient_id5$, _data$patient_id5$$ge, _data$patient_id6, _data$patient_id6$, _data$patient_id6$$ge, _data$patient_id7, _data$patient_id7$, _data$patient_id7$$ge, _data$patient_id$0$al, _data$patient_id8, _data$patient_id8$, _data$patient_id$0$te, _data$patient_id9, _data$patient_id9$, _data$patient_id9$$te, _data$patient_id9$$te2, _data$practitioner_de, _data$practitioner_de2, _data$practitioner_de3, _data$practitioner_de4, _data$practitioner_de5, _data$practitioner_de6, _data$practitioner_de7, _data$practitioner_de8, _data$practitioner_de9, _data$practitioner_de10, _data$practitioner_de11;
|
|
20536
|
+
var _data$visit_type, _data$reasonReference, _data$reasonReference2, _data$appointmentId, _data$appointmentId2, _data$appointmentId$c, _data$appointmentId3, _data$appointmentId4, _data$appointmentId4$, _data$appointmentId5, _data$appointmentId6, _data$appointmentId6$, _data$patient_id$0$ph, _data$patient_id, _data$patient_id$, _data$patient_id$$pho, _ref47, _data$patient_id2, _data$patient_id2$0$n, _data$patient_id2$0$n2, _data$patient_id3, _data$patient_id3$0$n, _data$patient_id3$0$n2, _data$patient_id$0$ag, _data$patient_id4, _data$patient_id4$, _data$patient_id5, _data$patient_id5$, _data$patient_id5$$ge, _data$patient_id6, _data$patient_id6$, _data$patient_id6$$ge, _data$patient_id7, _data$patient_id7$, _data$patient_id7$$ge, _data$patient_id$0$al, _data$patient_id8, _data$patient_id8$, _data$patient_id$0$te, _data$patient_id9, _data$patient_id9$, _data$patient_id9$$te, _data$patient_id9$$te2, _data$practitioner_de, _data$practitioner_de2, _data$practitioner_de3, _data$practitioner_de4, _data$practitioner_de5, _data$practitioner_de6, _data$practitioner_de7, _data$practitioner_de8, _data$practitioner_de9, _data$practitioner_de10, _data$practitioner_de11;
|
|
20537
20537
|
|
|
20538
20538
|
var json = {
|
|
20539
20539
|
visitType: (_data$visit_type = data === null || data === void 0 ? void 0 : data.visit_type) !== null && _data$visit_type !== void 0 ? _data$visit_type : "",
|
|
@@ -20541,7 +20541,9 @@ var generateReadJSON_colseConsultation = function generateReadJSON_colseConsulta
|
|
|
20541
20541
|
reasonCode: (_data$reasonReference = data === null || data === void 0 ? void 0 : (_data$reasonReference2 = data.reasonReference) === null || _data$reasonReference2 === void 0 ? void 0 : _data$reasonReference2.display) !== null && _data$reasonReference !== void 0 ? _data$reasonReference : "",
|
|
20542
20542
|
appointmentDateTime: (data === null || data === void 0 ? void 0 : (_data$appointmentId = data.appointmentId) === null || _data$appointmentId === void 0 ? void 0 : _data$appointmentId.start) ? utcTOLocal$1(data === null || data === void 0 ? void 0 : (_data$appointmentId2 = data.appointmentId) === null || _data$appointmentId2 === void 0 ? void 0 : _data$appointmentId2.start, "DD MMM,YYYY hh:mm A") : "",
|
|
20543
20543
|
consultationMode: (_data$appointmentId$c = data === null || data === void 0 ? void 0 : (_data$appointmentId3 = data.appointmentId) === null || _data$appointmentId3 === void 0 ? void 0 : _data$appointmentId3.consultationMode) !== null && _data$appointmentId$c !== void 0 ? _data$appointmentId$c : "",
|
|
20544
|
-
appointmentReason: (data === null || data === void 0 ? void 0 : (_data$appointmentId4 = data.appointmentId) === null || _data$appointmentId4 === void 0 ? void 0 : _data$appointmentId4.appointmentReason) && Array.isArray(data === null || data === void 0 ? void 0 : (_data$appointmentId5 = data.appointmentId) === null || _data$appointmentId5 === void 0 ? void 0 : _data$appointmentId5.appointmentReason) ? data === null || data === void 0 ? void 0 : (_data$appointmentId6 = data.appointmentId) === null || _data$appointmentId6 === void 0 ? void 0 : (_data$appointmentId6$ = _data$appointmentId6.appointmentReason) === null || _data$appointmentId6$ === void 0 ? void 0 : _data$appointmentId6$.
|
|
20544
|
+
appointmentReason: (data === null || data === void 0 ? void 0 : (_data$appointmentId4 = data.appointmentId) === null || _data$appointmentId4 === void 0 ? void 0 : (_data$appointmentId4$ = _data$appointmentId4.appointmentReason) === null || _data$appointmentId4$ === void 0 ? void 0 : _data$appointmentId4$.length) > 0 && Array.isArray(data === null || data === void 0 ? void 0 : (_data$appointmentId5 = data.appointmentId) === null || _data$appointmentId5 === void 0 ? void 0 : _data$appointmentId5.appointmentReason) ? data === null || data === void 0 ? void 0 : (_data$appointmentId6 = data.appointmentId) === null || _data$appointmentId6 === void 0 ? void 0 : (_data$appointmentId6$ = _data$appointmentId6.appointmentReason) === null || _data$appointmentId6$ === void 0 ? void 0 : _data$appointmentId6$.map(function (v) {
|
|
20545
|
+
return v === null || v === void 0 ? void 0 : v.display;
|
|
20546
|
+
}) : "",
|
|
20545
20547
|
//PATIENT DEATAIL
|
|
20546
20548
|
patientPhoto: (_data$patient_id$0$ph = data === null || data === void 0 ? void 0 : (_data$patient_id = data.patient_id) === null || _data$patient_id === void 0 ? void 0 : (_data$patient_id$ = _data$patient_id[0]) === null || _data$patient_id$ === void 0 ? void 0 : (_data$patient_id$$pho = _data$patient_id$.photo) === null || _data$patient_id$$pho === void 0 ? void 0 : _data$patient_id$$pho[0]) !== null && _data$patient_id$0$ph !== void 0 ? _data$patient_id$0$ph : "",
|
|
20547
20549
|
// need to expand
|