primarycare-binder 1.1.109 → 1.1.110
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 +20 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8180,7 +8180,8 @@ var queries$b = {
|
|
|
8180
8180
|
thirdName = _ref2.thirdName;
|
|
8181
8181
|
return "(LIKE(DOCUMENT(Person.name)[0].text,'%".concat(firstName, "%',true) || LIKE(DOCUMENT(Person.name)[0].given,'%").concat(secondName, "%',true) || LIKE(DOCUMENT(Person.name)[0].family,'%").concat(thirdName, "%',true)) && Person.activestatus == true");
|
|
8182
8182
|
},
|
|
8183
|
-
returnFields: "{prefix: DOCUMENT(Person.name)[*].prefix,gender: Person.gender,birthDate: Person.birthDay,suffix: DOCUMENT(Person.name)[*].suffix, nameObj: DOCUMENT(Person.name)[*], name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{photo:document(pat.photo)})),telecom: Document(Person.telecom),photo:document(Person.photo)}"
|
|
8183
|
+
returnFields: // "{prefix: DOCUMENT(Person.name)[*].prefix,gender: Person.gender,birthDate: Person.birthDay,suffix: DOCUMENT(Person.name)[*].suffix, nameObj: DOCUMENT(Person.name)[*], name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{photo:document(pat.photo)})),telecom: Document(Person.telecom),photo:document(Person.photo)}",
|
|
8184
|
+
"{prefix: document(DOCUMENT(Person.name)[*].prefix),gender: Person.gender,birthDate: Person.birthDay,suffix: document(DOCUMENT(Person.name)[*].suffix), nameObj:(for HumanNameMaster in HumanNameMaster filter HumanNameMaster._id in Person.name && HumanNameMaster.activestatus==true return merge(HumanNameMaster,{prefix:document(HumanNameMaster.prefix)},{suffix:document(HumanNameMaster.suffix)},{period:document(HumanNameMaster.period)},{use:document(HumanNameMaster.use)}) ) , name: DOCUMENT(Person.name)[*].text, personId: Person.Id,patientDetail: (for pat in Patient FILTER pat.personID == Person.Id RETURN merge(pat,{name:(for nam in HumanNameMaster filter nam._id in pat.name return merge(nam,{use:document(nam.use),prefix:document(nam.prefix),suffix:document(nam.suffix)}))},{photo:document(pat.photo)})),telecom: Document(Person.telecom),photo:document(Person.photo)}"
|
|
8184
8185
|
},
|
|
8185
8186
|
specialityAgainstPractitioner: {
|
|
8186
8187
|
query: function query() {
|
|
@@ -11854,10 +11855,25 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11854
11855
|
} else {
|
|
11855
11856
|
console.log(utcTOLocal$1(v.start));
|
|
11856
11857
|
var type_ = timeLine_(v.start);
|
|
11857
|
-
console.log(type_); //debugger
|
|
11858
|
+
console.log("type_", type_); //debugger
|
|
11858
11859
|
|
|
11859
|
-
if (type_ === "TODAY") {
|
|
11860
|
-
returnData.
|
|
11860
|
+
if (type_ === "TODAY" && v.appstatus === "cancelled") {
|
|
11861
|
+
returnData.pastAppointmentThisWeek.push(v);
|
|
11862
|
+
returnData.pastAppointment.push(v);
|
|
11863
|
+
} else if (type_ === "THIS_WEEK" && v.appstatus === "cancelled") {
|
|
11864
|
+
returnData.pastAppointmentThisWeek.push(v);
|
|
11865
|
+
returnData.pastAppointment.push(v);
|
|
11866
|
+
} else if (type_ === "LAST_WEEK" && v.appstatus === "cancelled") {
|
|
11867
|
+
returnData.pastAppointmentLastWeek.push(v);
|
|
11868
|
+
returnData.pastAppointment.push(v);
|
|
11869
|
+
} else if (type_ === "THIS_MONTH" && v.appstatus === "cancelled") {
|
|
11870
|
+
returnData.pastAppointmentThisMonth.push(v);
|
|
11871
|
+
returnData.pastAppointment.push(v);
|
|
11872
|
+
} else if (type_ === "LAST_MONTH" && v.appstatus === "cancelled") {
|
|
11873
|
+
returnData.pastAppointmentLastMonth.push(v);
|
|
11874
|
+
returnData.pastAppointment.push(v);
|
|
11875
|
+
} else if (type_ === "TODAY") {
|
|
11876
|
+
returnData.currentVisist.push(v);
|
|
11861
11877
|
} else if (type_ === "NEXT_WEEK") {
|
|
11862
11878
|
returnData.currentVisist.push(v); // returnData.pastAppointment.push(v);
|
|
11863
11879
|
} else if (type_ === "THIS_WEEK") {
|