primarycare-binder 1.1.91 → 1.1.92
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 +146 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9695,6 +9695,117 @@ var GET_COUNTRY_CODE_LIST = createAsyncThunk("authSlice/country_code_list", /*#_
|
|
|
9695
9695
|
}
|
|
9696
9696
|
}, _callee16, null, [[2, 12]]);
|
|
9697
9697
|
})));
|
|
9698
|
+
var GET_FACILITY_BY_USERID = createAsyncThunk("authSlice/getFacilityByUserid", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
|
|
9699
|
+
var payload,
|
|
9700
|
+
_ref29,
|
|
9701
|
+
rejectWithValue,
|
|
9702
|
+
_data$result$0$OrgID$,
|
|
9703
|
+
_data$result,
|
|
9704
|
+
_data$result$,
|
|
9705
|
+
_data$result$$OrgID,
|
|
9706
|
+
_payload$username3,
|
|
9707
|
+
username,
|
|
9708
|
+
queries,
|
|
9709
|
+
data,
|
|
9710
|
+
dat,
|
|
9711
|
+
_args17 = arguments;
|
|
9712
|
+
|
|
9713
|
+
return regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
9714
|
+
while (1) {
|
|
9715
|
+
switch (_context17.prev = _context17.next) {
|
|
9716
|
+
case 0:
|
|
9717
|
+
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
9718
|
+
_ref29 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
|
|
9719
|
+
_context17.prev = 2;
|
|
9720
|
+
_payload$username3 = payload.username, username = _payload$username3 === void 0 ? "" : _payload$username3;
|
|
9721
|
+
queries = {
|
|
9722
|
+
"db_name": dbName,
|
|
9723
|
+
"entity": "Person",
|
|
9724
|
+
"filter": "document(document(Person.telecom)[*].system)[*].code == to_Array('email') && document(Person.telecom)[*].value==to_array('".concat(username, "') && Person.activestatus==true"),
|
|
9725
|
+
"return_fields": "keep(Person,'_id','_key','OrgID','Id')"
|
|
9726
|
+
};
|
|
9727
|
+
_context17.next = 7;
|
|
9728
|
+
return fetchData$3({
|
|
9729
|
+
body: JSON.stringify(queries)
|
|
9730
|
+
}, __readDocumentUrl__);
|
|
9731
|
+
|
|
9732
|
+
case 7:
|
|
9733
|
+
data = _context17.sent;
|
|
9734
|
+
dat = (_data$result$0$OrgID$ = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : (_data$result$ = _data$result[0]) === null || _data$result$ === void 0 ? void 0 : (_data$result$$OrgID = _data$result$.OrgID) === null || _data$result$$OrgID === void 0 ? void 0 : _data$result$$OrgID[0]) !== null && _data$result$0$OrgID$ !== void 0 ? _data$result$0$OrgID$ : "";
|
|
9735
|
+
debugger;
|
|
9736
|
+
return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
9737
|
+
data: dat
|
|
9738
|
+
}));
|
|
9739
|
+
|
|
9740
|
+
case 13:
|
|
9741
|
+
_context17.prev = 13;
|
|
9742
|
+
_context17.t0 = _context17["catch"](2);
|
|
9743
|
+
return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9744
|
+
message: _context17.t0.message
|
|
9745
|
+
})));
|
|
9746
|
+
|
|
9747
|
+
case 16:
|
|
9748
|
+
case "end":
|
|
9749
|
+
return _context17.stop();
|
|
9750
|
+
}
|
|
9751
|
+
}
|
|
9752
|
+
}, _callee17, null, [[2, 13]]);
|
|
9753
|
+
})));
|
|
9754
|
+
var GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY = createAsyncThunk("authSlice/getIsNurseTriageRequiredByFacility", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee18() {
|
|
9755
|
+
var payload,
|
|
9756
|
+
_ref31,
|
|
9757
|
+
rejectWithValue,
|
|
9758
|
+
_data$result2,
|
|
9759
|
+
_data$result2$,
|
|
9760
|
+
_payload$facilityId,
|
|
9761
|
+
facilityId,
|
|
9762
|
+
queries,
|
|
9763
|
+
data,
|
|
9764
|
+
res,
|
|
9765
|
+
_args18 = arguments;
|
|
9766
|
+
|
|
9767
|
+
return regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
9768
|
+
while (1) {
|
|
9769
|
+
switch (_context18.prev = _context18.next) {
|
|
9770
|
+
case 0:
|
|
9771
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
9772
|
+
_ref31 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref31.rejectWithValue;
|
|
9773
|
+
_context18.prev = 2;
|
|
9774
|
+
_payload$facilityId = payload.facilityId, facilityId = _payload$facilityId === void 0 ? "" : _payload$facilityId;
|
|
9775
|
+
debugger;
|
|
9776
|
+
queries = {
|
|
9777
|
+
"db_name": dbName,
|
|
9778
|
+
"entity": "EntityParametersSetup",
|
|
9779
|
+
"filter": "EntityParametersSetup.entityid=='".concat(facilityId, "' && document(EntityParametersSetup.parameterid).code=='ISNURSETRIAGEREQD'"),
|
|
9780
|
+
"return_fields": "EntityParametersSetup"
|
|
9781
|
+
};
|
|
9782
|
+
_context18.next = 8;
|
|
9783
|
+
return fetchData$3({
|
|
9784
|
+
body: JSON.stringify(queries)
|
|
9785
|
+
}, __readDocumentUrl__);
|
|
9786
|
+
|
|
9787
|
+
case 8:
|
|
9788
|
+
data = _context18.sent;
|
|
9789
|
+
res = (data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : (_data$result2$ = _data$result2[0]) === null || _data$result2$ === void 0 ? void 0 : _data$result2$.parametervalue) === "N" ? false : true;
|
|
9790
|
+
debugger;
|
|
9791
|
+
return _context18.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
9792
|
+
data: res
|
|
9793
|
+
}));
|
|
9794
|
+
|
|
9795
|
+
case 14:
|
|
9796
|
+
_context18.prev = 14;
|
|
9797
|
+
_context18.t0 = _context18["catch"](2);
|
|
9798
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
9799
|
+
message: _context18.t0.message
|
|
9800
|
+
})));
|
|
9801
|
+
|
|
9802
|
+
case 17:
|
|
9803
|
+
case "end":
|
|
9804
|
+
return _context18.stop();
|
|
9805
|
+
}
|
|
9806
|
+
}
|
|
9807
|
+
}, _callee18, null, [[2, 14]]);
|
|
9808
|
+
})));
|
|
9698
9809
|
var authSlice = createSlice({
|
|
9699
9810
|
name: "authSlice",
|
|
9700
9811
|
initialState: {
|
|
@@ -9714,7 +9825,9 @@ var authSlice = createSlice({
|
|
|
9714
9825
|
changePassword: _objectSpread2({}, defaultState.Info),
|
|
9715
9826
|
tokenValidate: _objectSpread2({}, defaultState.Info),
|
|
9716
9827
|
refreshToken: _objectSpread2({}, defaultState.Info),
|
|
9717
|
-
country_code_list: _objectSpread2({}, defaultState.Info)
|
|
9828
|
+
country_code_list: _objectSpread2({}, defaultState.Info),
|
|
9829
|
+
getFacilityByUserid: _objectSpread2({}, defaultState.Info),
|
|
9830
|
+
getIsNurseTriageRequiredByFacility: _objectSpread2({}, defaultState.Info)
|
|
9718
9831
|
},
|
|
9719
9832
|
extraReducers: (_extraReducers$G = {}, _defineProperty(_extraReducers$G, REGISTER_USERS.fulfilled, function (state, action) {
|
|
9720
9833
|
var _action$payload;
|
|
@@ -9866,6 +9979,26 @@ var authSlice = createSlice({
|
|
|
9866
9979
|
var _action$payload30;
|
|
9867
9980
|
|
|
9868
9981
|
state.country_code_list = (_action$payload30 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload30 !== void 0 ? _action$payload30 : {};
|
|
9982
|
+
}), _defineProperty(_extraReducers$G, GET_FACILITY_BY_USERID.fulfilled, function (state, action) {
|
|
9983
|
+
var _action$payload31;
|
|
9984
|
+
|
|
9985
|
+
state.getFacilityByUserid = (_action$payload31 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload31 !== void 0 ? _action$payload31 : {};
|
|
9986
|
+
}), _defineProperty(_extraReducers$G, GET_FACILITY_BY_USERID.pending, function (state, action) {
|
|
9987
|
+
state.getFacilityByUserid.loading = true;
|
|
9988
|
+
}), _defineProperty(_extraReducers$G, GET_FACILITY_BY_USERID.rejected, function (state, action) {
|
|
9989
|
+
var _action$payload32;
|
|
9990
|
+
|
|
9991
|
+
state.getFacilityByUserid = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : {};
|
|
9992
|
+
}), _defineProperty(_extraReducers$G, GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY.fulfilled, function (state, action) {
|
|
9993
|
+
var _action$payload33;
|
|
9994
|
+
|
|
9995
|
+
state.getIsNurseTriageRequiredByFacility = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : {};
|
|
9996
|
+
}), _defineProperty(_extraReducers$G, GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY.pending, function (state, action) {
|
|
9997
|
+
state.getIsNurseTriageRequiredByFacility.loading = true;
|
|
9998
|
+
}), _defineProperty(_extraReducers$G, GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY.rejected, function (state, action) {
|
|
9999
|
+
var _action$payload34;
|
|
10000
|
+
|
|
10001
|
+
state.getIsNurseTriageRequiredByFacility = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : {};
|
|
9869
10002
|
}), _extraReducers$G)
|
|
9870
10003
|
});
|
|
9871
10004
|
var authActions = {
|
|
@@ -9883,7 +10016,9 @@ var authActions = {
|
|
|
9883
10016
|
CHANGE_PASSWORD: CHANGE_PASSWORD,
|
|
9884
10017
|
TOKEN_VALIDATE: TOKEN_VALIDATE,
|
|
9885
10018
|
REFRESH_TOKEN: REFRESH_TOKEN,
|
|
9886
|
-
GET_COUNTRY_CODE_LIST: GET_COUNTRY_CODE_LIST
|
|
10019
|
+
GET_COUNTRY_CODE_LIST: GET_COUNTRY_CODE_LIST,
|
|
10020
|
+
GET_FACILITY_BY_USERID: GET_FACILITY_BY_USERID,
|
|
10021
|
+
GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY: GET_IS_NURSE_TRIAGE_REQUIRED_BY_FACILITY
|
|
9887
10022
|
};
|
|
9888
10023
|
var authSlice$1 = authSlice.reducer;
|
|
9889
10024
|
|
|
@@ -11716,12 +11851,16 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11716
11851
|
|
|
11717
11852
|
if (type_ === "THIS_WEEK") {
|
|
11718
11853
|
returnData.pastAppointmentThisWeek.push(v);
|
|
11854
|
+
returnData.pastAppointment.push(v);
|
|
11719
11855
|
} else if (type_ === "LAST_WEEK") {
|
|
11720
11856
|
returnData.pastAppointmentLastWeek.push(v);
|
|
11857
|
+
returnData.pastAppointment.push(v);
|
|
11721
11858
|
} else if (type_ === "THIS_MONTH") {
|
|
11722
11859
|
returnData.pastAppointmentThisMonth.push(v);
|
|
11860
|
+
returnData.pastAppointment.push(v);
|
|
11723
11861
|
} else if (type_ === "LAST_MONTH") {
|
|
11724
11862
|
returnData.pastAppointmentLastMonth.push(v);
|
|
11863
|
+
returnData.pastAppointment.push(v);
|
|
11725
11864
|
} else {
|
|
11726
11865
|
returnData.pastAppointment.push(v);
|
|
11727
11866
|
}
|
|
@@ -11735,14 +11874,19 @@ var ALL_APPOINTMENTS = createAsyncThunk("appointmentReducer/allAppointments", /*
|
|
|
11735
11874
|
|
|
11736
11875
|
if (type_ === "TODAY") {
|
|
11737
11876
|
returnData.upcomingAppointmentToday.push(v);
|
|
11877
|
+
returnData.upcomingAppointment.push(v);
|
|
11738
11878
|
} else if (type_ === "THIS_WEEK") {
|
|
11739
11879
|
returnData.upcomingAppointmentThisWeek.push(v);
|
|
11880
|
+
returnData.upcomingAppointment.push(v);
|
|
11740
11881
|
} else if (type_ === "NEXT_WEEK") {
|
|
11741
11882
|
returnData.upcomingAppointmentNextWeek.push(v);
|
|
11883
|
+
returnData.upcomingAppointment.push(v);
|
|
11742
11884
|
} else if (type_ === "THIS_MONTH") {
|
|
11743
11885
|
returnData.upcomingAppointmentThisMonth.push(v);
|
|
11886
|
+
returnData.upcomingAppointment.push(v);
|
|
11744
11887
|
} else if (type_ === "NEXT_MONTH") {
|
|
11745
11888
|
returnData.upcomingAppointmentNextMonth.push(v);
|
|
11889
|
+
returnData.upcomingAppointment.push(v);
|
|
11746
11890
|
} else {
|
|
11747
11891
|
returnData.upcomingAppointment.push(v);
|
|
11748
11892
|
}
|