primarycare-binder 1.1.64 → 1.1.65
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 +12 -9
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -42230,7 +42230,7 @@ var queries = {
|
|
|
42230
42230
|
return "";
|
|
42231
42231
|
},
|
|
42232
42232
|
dayBasedPractitioner: function dayBasedPractitioner(date) {
|
|
42233
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DayEndProcess\",\n \"filter\": \"DayEndProcess.docdate == ").concat(date, " && DayEndProcess.activestatus == true\",\n \"return_fields\": \"merge(DayEndProcess,{appointmentid:(for app IN Appointment FILTER app.id==TO_NUMBER(DayEndProcess.appointmentid) RETURN app)[0]},{encounterid:(for enc in Encounter filter DayEndProcess.encounterid!=null AND enc.id == TO_NUMBER(DayEndProcess.encounterid) return merge(enc,{patient_id:(for pat in Patient filter pat.id==enc.patient_id return merge(pat,{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}))}))[0]})\"\n }");
|
|
42233
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DayEndProcess\",\n \"filter\": \"DayEndProcess.docdate == ").concat(date, " && DayEndProcess.activestatus == true\",\n \"return_fields\": \"merge(DayEndProcess,{appointmentid:(for app IN Appointment FILTER app.id == TO_NUMBER(DayEndProcess.appointmentid) RETURN merge(app,{ Person: (for Per in Person filter app.PersonID any == Per.Id return merge({ _id: Per._id }, { birthDate: Per.birthDay }, { name: (for doc in HumanNameMaster filter doc._id in Per.name return merge(doc, { use: (document(doc.use)), prefix: (document(doc.prefix)), suffix:(document(doc.suffix))}))}))},{PatientID:(for Patient in Patient filter app.PersonID any == Patient.personID return merge({_id:Patient._id},{alias:Patient.alias},{birthDate:Patient.birthDate},{age:Patient.age},{name:(for doc in HumanNameMaster filter doc._id in Patient.name return merge(doc,{use:(document(doc.use)),prefix:(document(doc.prefix)),suffix:(document(doc.suffix))}))}) )}))[0]},{encounterid:(for enc in Encounter filter DayEndProcess.encounterid!=null AND enc.id == TO_NUMBER(DayEndProcess.encounterid) return merge(enc,{patient_id:(for pat in Patient filter pat.id==enc.patient_id return merge(pat,{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}))}))[0]})\"\n }");
|
|
42234
42234
|
}
|
|
42235
42235
|
};
|
|
42236
42236
|
|
|
@@ -42353,17 +42353,20 @@ var DAY_BASED_PRACTITIONER_LIST = createAsyncThunk("dayEndProcessSlice/dayBasedP
|
|
|
42353
42353
|
case 5:
|
|
42354
42354
|
data = _context3.sent;
|
|
42355
42355
|
arr = data.result.map(function (val) {
|
|
42356
|
-
var _val$encounterid, _val$encounterid
|
|
42356
|
+
var _val$encounterid, _val$encounterid$pati, _val$encounterid$pati2, _val$encounterid$pati3, _val$appointmentid, _val$appointmentid$Pa, _val$appointmentid$Pa2, _val$appointmentid$Pa3, _val$appointmentid2, _val$appointmentid2$P, _val$appointmentid2$P2, _val$appointmentid2$P3, _val$encounterid2, _val$encounterid2$pat, _val$encounterid2$pat2, _val$appointmentid3, _val$appointmentid3$P, _val$appointmentid3$P2, _val$encounterid3, _val$encounterid3$pat, _val$encounterid3$pat2, _val$appointmentid4, _val$appointmentid4$P, _val$appointmentid4$P2, _val$appointmentid5, _val$appointmentid5$P, _val$appointmentid5$P2, _val$appointmentid6, _val$encounterid4, _val$encounterid5, _val$appointmentid7;
|
|
42357
42357
|
|
|
42358
|
+
var name = makeName(val === null || val === void 0 ? void 0 : (_val$encounterid = val.encounterid) === null || _val$encounterid === void 0 ? void 0 : (_val$encounterid$pati = _val$encounterid.patient_id) === null || _val$encounterid$pati === void 0 ? void 0 : (_val$encounterid$pati2 = _val$encounterid$pati[0]) === null || _val$encounterid$pati2 === void 0 ? void 0 : (_val$encounterid$pati3 = _val$encounterid$pati2.name) === null || _val$encounterid$pati3 === void 0 ? void 0 : _val$encounterid$pati3[0]) || makeName(val === null || val === void 0 ? void 0 : (_val$appointmentid = val.appointmentid) === null || _val$appointmentid === void 0 ? void 0 : (_val$appointmentid$Pa = _val$appointmentid.PatientID) === null || _val$appointmentid$Pa === void 0 ? void 0 : (_val$appointmentid$Pa2 = _val$appointmentid$Pa[0]) === null || _val$appointmentid$Pa2 === void 0 ? void 0 : (_val$appointmentid$Pa3 = _val$appointmentid$Pa2.name) === null || _val$appointmentid$Pa3 === void 0 ? void 0 : _val$appointmentid$Pa3[0]) || makeName(val === null || val === void 0 ? void 0 : (_val$appointmentid2 = val.appointmentid) === null || _val$appointmentid2 === void 0 ? void 0 : (_val$appointmentid2$P = _val$appointmentid2.Person) === null || _val$appointmentid2$P === void 0 ? void 0 : (_val$appointmentid2$P2 = _val$appointmentid2$P[0]) === null || _val$appointmentid2$P2 === void 0 ? void 0 : (_val$appointmentid2$P3 = _val$appointmentid2$P2.name) === null || _val$appointmentid2$P3 === void 0 ? void 0 : _val$appointmentid2$P3[0]);
|
|
42359
|
+
var MRN = (val === null || val === void 0 ? void 0 : (_val$encounterid2 = val.encounterid) === null || _val$encounterid2 === void 0 ? void 0 : (_val$encounterid2$pat = _val$encounterid2.patient_id) === null || _val$encounterid2$pat === void 0 ? void 0 : (_val$encounterid2$pat2 = _val$encounterid2$pat[0]) === null || _val$encounterid2$pat2 === void 0 ? void 0 : _val$encounterid2$pat2.MRN) || (val === null || val === void 0 ? void 0 : (_val$appointmentid3 = val.appointmentid) === null || _val$appointmentid3 === void 0 ? void 0 : (_val$appointmentid3$P = _val$appointmentid3.PatientID) === null || _val$appointmentid3$P === void 0 ? void 0 : (_val$appointmentid3$P2 = _val$appointmentid3$P[0]) === null || _val$appointmentid3$P2 === void 0 ? void 0 : _val$appointmentid3$P2.alias) || "----";
|
|
42360
|
+
var age = getAge(val === null || val === void 0 ? void 0 : (_val$encounterid3 = val.encounterid) === null || _val$encounterid3 === void 0 ? void 0 : (_val$encounterid3$pat = _val$encounterid3.patient_id) === null || _val$encounterid3$pat === void 0 ? void 0 : (_val$encounterid3$pat2 = _val$encounterid3$pat[0]) === null || _val$encounterid3$pat2 === void 0 ? void 0 : _val$encounterid3$pat2.birthDate) || getAge(val === null || val === void 0 ? void 0 : (_val$appointmentid4 = val.appointmentid) === null || _val$appointmentid4 === void 0 ? void 0 : (_val$appointmentid4$P = _val$appointmentid4.PatientID) === null || _val$appointmentid4$P === void 0 ? void 0 : (_val$appointmentid4$P2 = _val$appointmentid4$P[0]) === null || _val$appointmentid4$P2 === void 0 ? void 0 : _val$appointmentid4$P2.birthDate) || getAge(val === null || val === void 0 ? void 0 : (_val$appointmentid5 = val.appointmentid) === null || _val$appointmentid5 === void 0 ? void 0 : (_val$appointmentid5$P = _val$appointmentid5.Person) === null || _val$appointmentid5$P === void 0 ? void 0 : (_val$appointmentid5$P2 = _val$appointmentid5$P[0]) === null || _val$appointmentid5$P2 === void 0 ? void 0 : _val$appointmentid5$P2.birthDate);
|
|
42358
42361
|
return {
|
|
42359
|
-
name:
|
|
42360
|
-
MRN:
|
|
42361
|
-
age:
|
|
42362
|
-
appointmentId: val === null || val === void 0 ? void 0 : (_val$
|
|
42363
|
-
id: val === null || val === void 0 ? void 0 : (_val$encounterid4 = val.encounterid) === null || _val$encounterid4 === void 0 ? void 0 :
|
|
42364
|
-
visit_type: val === null || val === void 0 ? void 0 : (_val$encounterid5 = val.encounterid) === null || _val$encounterid5 === void 0 ? void 0 :
|
|
42362
|
+
name: name,
|
|
42363
|
+
MRN: MRN,
|
|
42364
|
+
age: age,
|
|
42365
|
+
appointmentId: val === null || val === void 0 ? void 0 : (_val$appointmentid6 = val.appointmentid) === null || _val$appointmentid6 === void 0 ? void 0 : _val$appointmentid6.appno,
|
|
42366
|
+
id: (val === null || val === void 0 ? void 0 : (_val$encounterid4 = val.encounterid) === null || _val$encounterid4 === void 0 ? void 0 : _val$encounterid4._key) || "-----",
|
|
42367
|
+
visit_type: (val === null || val === void 0 ? void 0 : (_val$encounterid5 = val.encounterid) === null || _val$encounterid5 === void 0 ? void 0 : _val$encounterid5.visit_type) || "-----",
|
|
42365
42368
|
curStatus: val.curStatus,
|
|
42366
|
-
aptdate: moment$1.unix(val === null || val === void 0 ? void 0 : (_val$
|
|
42369
|
+
aptdate: moment$1.unix(val === null || val === void 0 ? void 0 : (_val$appointmentid7 = val.appointmentid) === null || _val$appointmentid7 === void 0 ? void 0 : _val$appointmentid7.createddate).format("DD MMM,YYYY HH:MM:SS")
|
|
42367
42370
|
};
|
|
42368
42371
|
});
|
|
42369
42372
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|