primary_care_admin_binder 0.1.99 → 0.1.101
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 +68 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19030,6 +19030,63 @@ var RES_APPOINTMENT_GENERALPRIORITY_LOAD = createAsyncThunk("resourceByAppointme
|
|
|
19030
19030
|
}
|
|
19031
19031
|
}, _callee45, null, [[2, 12]]);
|
|
19032
19032
|
})));
|
|
19033
|
+
var RES_APPOINTMENT_APPROUTEURL_LOAD = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_approuteurl_Load", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46() {
|
|
19034
|
+
var _ref92,
|
|
19035
|
+
rejectWithValue,
|
|
19036
|
+
_data$9,
|
|
19037
|
+
_data$9$APPTYPEROUTEU,
|
|
19038
|
+
_data$9$APPTYPEROUTEU2,
|
|
19039
|
+
body,
|
|
19040
|
+
data,
|
|
19041
|
+
arry,
|
|
19042
|
+
_args46 = arguments;
|
|
19043
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context46) {
|
|
19044
|
+
while (1) {
|
|
19045
|
+
switch (_context46.prev = _context46.next) {
|
|
19046
|
+
case 0:
|
|
19047
|
+
_ref92 = _args46.length > 1 ? _args46[1] : undefined, rejectWithValue = _ref92.rejectWithValue;
|
|
19048
|
+
_context46.prev = 2;
|
|
19049
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
19050
|
+
body = {
|
|
19051
|
+
db_name: process.env.REACT_APP_DATABASE_NAME,
|
|
19052
|
+
"filter": {
|
|
19053
|
+
"type": ["APPTYPEROUTEURL"],
|
|
19054
|
+
"tenantid": "",
|
|
19055
|
+
"facilityid": "",
|
|
19056
|
+
"lang": ""
|
|
19057
|
+
},
|
|
19058
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
19059
|
+
};
|
|
19060
|
+
_context46.next = 6;
|
|
19061
|
+
return fetchData({
|
|
19062
|
+
body: JSON.stringify(body)
|
|
19063
|
+
}, __baseUrl__$1);
|
|
19064
|
+
case 6:
|
|
19065
|
+
data = _context46.sent;
|
|
19066
|
+
arry = [];
|
|
19067
|
+
(_data$9 = data[0]) === null || _data$9 === void 0 ? void 0 : (_data$9$APPTYPEROUTEU = _data$9.APPTYPEROUTEURL) === null || _data$9$APPTYPEROUTEU === void 0 ? void 0 : (_data$9$APPTYPEROUTEU2 = _data$9$APPTYPEROUTEU.Value) === null || _data$9$APPTYPEROUTEU2 === void 0 ? void 0 : _data$9$APPTYPEROUTEU2.map(function (item) {
|
|
19068
|
+
return arry.push({
|
|
19069
|
+
_id: item._id,
|
|
19070
|
+
value: item._id,
|
|
19071
|
+
label: item.display
|
|
19072
|
+
});
|
|
19073
|
+
});
|
|
19074
|
+
return _context46.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
19075
|
+
data: arry
|
|
19076
|
+
}));
|
|
19077
|
+
case 12:
|
|
19078
|
+
_context46.prev = 12;
|
|
19079
|
+
_context46.t0 = _context46["catch"](2);
|
|
19080
|
+
return _context46.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
19081
|
+
message: _context46.t0.message
|
|
19082
|
+
})));
|
|
19083
|
+
case 15:
|
|
19084
|
+
case "end":
|
|
19085
|
+
return _context46.stop();
|
|
19086
|
+
}
|
|
19087
|
+
}
|
|
19088
|
+
}, _callee46, null, [[2, 12]]);
|
|
19089
|
+
})));
|
|
19033
19090
|
var resourceByAppointmentTypesSlice = createSlice({
|
|
19034
19091
|
name: "resourceByAppointmentTypesSlice",
|
|
19035
19092
|
initialState: {
|
|
@@ -19077,7 +19134,8 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
19077
19134
|
res_appointment_bookingType: _objectSpread2$1({}, defaultState.List),
|
|
19078
19135
|
res_appointment_dynamicData_Load: _objectSpread2$1({}, defaultState.List),
|
|
19079
19136
|
res_appointment_dynamicQueryidData_Load: _objectSpread2$1({}, defaultState.List),
|
|
19080
|
-
res_appointment_generalpriority_Load: _objectSpread2$1({}, defaultState.List)
|
|
19137
|
+
res_appointment_generalpriority_Load: _objectSpread2$1({}, defaultState.List),
|
|
19138
|
+
res_appointment_approuteurl_Load: _objectSpread2$1({}, defaultState.List)
|
|
19081
19139
|
},
|
|
19082
19140
|
extraReducers: (_extraReducers$A = {}, _defineProperty(_extraReducers$A, RESOURCE_BY_APPOINTMRNT_TYPES.fulfilled, function (state, action) {
|
|
19083
19141
|
state.resource_appointment_type.loading = false, state.resource_appointment_type.error = false, state.resource_appointment_type = action.payload;
|
|
@@ -19349,6 +19407,12 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
19349
19407
|
state.res_appointment_generalpriority_Load.loading = true, state.res_appointment_generalpriority_Load.error = false, state.res_appointment_generalpriority_Load.loading = true;
|
|
19350
19408
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_GENERALPRIORITY_LOAD.rejected, function (state, action) {
|
|
19351
19409
|
state.res_appointment_generalpriority_Load.loading = false, state.res_appointment_generalpriority_Load.error = true, state.res_appointment_generalpriority_Load = action.payload;
|
|
19410
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_APPROUTEURL_LOAD.fulfilled, function (state, action) {
|
|
19411
|
+
state.res_appointment_approuteurl_Load.loading = false, state.res_appointment_approuteurl_Load.error = false, state.res_appointment_approuteurl_Load = action.payload;
|
|
19412
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_APPROUTEURL_LOAD.pending, function (state, action) {
|
|
19413
|
+
state.res_appointment_approuteurl_Load.loading = true, state.res_appointment_approuteurl_Load.error = false, state.res_appointment_approuteurl_Load.loading = true;
|
|
19414
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_APPROUTEURL_LOAD.rejected, function (state, action) {
|
|
19415
|
+
state.res_appointment_approuteurl_Load.loading = false, state.res_appointment_approuteurl_Load.error = true, state.res_appointment_approuteurl_Load = action.payload;
|
|
19352
19416
|
}), _extraReducers$A)
|
|
19353
19417
|
});
|
|
19354
19418
|
var resourceByAppointmentTypes = {
|
|
@@ -19396,7 +19460,8 @@ var resourceByAppointmentTypes = {
|
|
|
19396
19460
|
RES_APPOINTMENT_BOOKING_TYPE: RES_APPOINTMENT_BOOKING_TYPE,
|
|
19397
19461
|
RES_APPOINTMENT_DYNAMIC_DATA_LOAD: RES_APPOINTMENT_DYNAMIC_DATA_LOAD,
|
|
19398
19462
|
RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD: RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD,
|
|
19399
|
-
RES_APPOINTMENT_GENERALPRIORITY_LOAD: RES_APPOINTMENT_GENERALPRIORITY_LOAD
|
|
19463
|
+
RES_APPOINTMENT_GENERALPRIORITY_LOAD: RES_APPOINTMENT_GENERALPRIORITY_LOAD,
|
|
19464
|
+
RES_APPOINTMENT_APPROUTEURL_LOAD: RES_APPOINTMENT_APPROUTEURL_LOAD
|
|
19400
19465
|
};
|
|
19401
19466
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
19402
19467
|
|
|
@@ -40585,7 +40650,7 @@ var SYMPTOM_AND_SPECIALTY_MASTERS = createAsyncThunk("symptomAndSpecialtySlice/s
|
|
|
40585
40650
|
_context5.next = 9;
|
|
40586
40651
|
return data_arr.result.map(function (val) {
|
|
40587
40652
|
arry.push({
|
|
40588
|
-
label: val.coding.display,
|
|
40653
|
+
label: val.coding[0].display,
|
|
40589
40654
|
value: val._id
|
|
40590
40655
|
});
|
|
40591
40656
|
});
|