primary_care_admin_binder 0.1.97 → 0.1.99
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 +451 -6
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11316,6 +11316,7 @@ var categoryJson = function categoryJson(data, state, agecategory) {
|
|
|
11316
11316
|
|
|
11317
11317
|
//for saving/upsert Json
|
|
11318
11318
|
var generateJSON$1 = function generateJSON(data) {
|
|
11319
|
+
var _data$obstype, _data$resultreport;
|
|
11319
11320
|
var unit_arr = data.unitAllowed.map(function (v) {
|
|
11320
11321
|
return v.value;
|
|
11321
11322
|
});
|
|
@@ -11332,7 +11333,8 @@ var generateJSON$1 = function generateJSON(data) {
|
|
|
11332
11333
|
entity: "VitalsCodes"
|
|
11333
11334
|
}, filter), {}, {
|
|
11334
11335
|
is_metadata: true,
|
|
11335
|
-
|
|
11336
|
+
metadata_dbname: data === null || data === void 0 ? void 0 : data.metadata_dbname,
|
|
11337
|
+
metadataId: data !== null && data !== void 0 && data.metadataId ? data === null || data === void 0 ? void 0 : data.metadataId : "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
11336
11338
|
doc: {
|
|
11337
11339
|
_id: "",
|
|
11338
11340
|
vitalscode: data.code ? data.code : "",
|
|
@@ -11342,6 +11344,9 @@ var generateJSON$1 = function generateJSON(data) {
|
|
|
11342
11344
|
status: data.status,
|
|
11343
11345
|
units_allowed: unit_arr,
|
|
11344
11346
|
default_unit: data.defaultUnit ? data.defaultUnit.value : "",
|
|
11347
|
+
obstype: data !== null && data !== void 0 && data.obstype ? data === null || data === void 0 ? void 0 : (_data$obstype = data.obstype) === null || _data$obstype === void 0 ? void 0 : _data$obstype._id : "",
|
|
11348
|
+
resultreport: data !== null && data !== void 0 && data.resultreport ? data === null || data === void 0 ? void 0 : (_data$resultreport = data.resultreport) === null || _data$resultreport === void 0 ? void 0 : _data$resultreport._id : "",
|
|
11349
|
+
resultcodeset: data !== null && data !== void 0 && data.resultcodeset ? data === null || data === void 0 ? void 0 : data.resultcodeset : "",
|
|
11345
11350
|
VitalsCodesReferenceRanges: data.reference.length > 0 ? generateCodeReference(data.reference) : []
|
|
11346
11351
|
}
|
|
11347
11352
|
})];
|
|
@@ -11418,6 +11423,13 @@ var generateReadResJson$1 = function generateReadResJson(data, state, ageCategor
|
|
|
11418
11423
|
longdes: v.longdesc,
|
|
11419
11424
|
shortdes: v.shortdesc,
|
|
11420
11425
|
status: v.status,
|
|
11426
|
+
obstype: v.obstype ? state.getGeneralDataforVitalType.data.find(function (sys) {
|
|
11427
|
+
return v.obstype.indexOf(sys.value) > -1;
|
|
11428
|
+
}) : "",
|
|
11429
|
+
resultcodeset: v.resultcodeset,
|
|
11430
|
+
resultreport: v.resultreport ? state.getGeneralDataforControlType.data.find(function (sys) {
|
|
11431
|
+
return v.resultreport.indexOf(sys.value) > -1;
|
|
11432
|
+
}) : "",
|
|
11421
11433
|
unitAllowed: state.unit_allowed.data.filter(function (sys) {
|
|
11422
11434
|
return v.units_allowed.indexOf(sys.value) > -1;
|
|
11423
11435
|
}),
|
|
@@ -11957,6 +11969,124 @@ var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalM
|
|
|
11957
11969
|
}
|
|
11958
11970
|
}, _callee11, null, [[2, 16]]);
|
|
11959
11971
|
})));
|
|
11972
|
+
var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforVitalType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
11973
|
+
var payload,
|
|
11974
|
+
_ref24,
|
|
11975
|
+
rejectWithValue,
|
|
11976
|
+
_data$,
|
|
11977
|
+
_data$$OBSERVATIONTYP,
|
|
11978
|
+
_data$$OBSERVATIONTYP2,
|
|
11979
|
+
body,
|
|
11980
|
+
data,
|
|
11981
|
+
arry,
|
|
11982
|
+
_args12 = arguments;
|
|
11983
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
11984
|
+
while (1) {
|
|
11985
|
+
switch (_context12.prev = _context12.next) {
|
|
11986
|
+
case 0:
|
|
11987
|
+
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : "";
|
|
11988
|
+
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
11989
|
+
_context12.prev = 2;
|
|
11990
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
11991
|
+
body = {
|
|
11992
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
11993
|
+
"filter": {
|
|
11994
|
+
"type": [payload],
|
|
11995
|
+
"tenantid": "",
|
|
11996
|
+
"facilityid": "",
|
|
11997
|
+
"lang": ""
|
|
11998
|
+
},
|
|
11999
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
12000
|
+
};
|
|
12001
|
+
_context12.next = 6;
|
|
12002
|
+
return fetchData({
|
|
12003
|
+
body: JSON.stringify(body)
|
|
12004
|
+
}, __baseUrl__$1);
|
|
12005
|
+
case 6:
|
|
12006
|
+
data = _context12.sent;
|
|
12007
|
+
arry = [];
|
|
12008
|
+
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$OBSERVATIONTYP = _data$.OBSERVATIONTYPE) === null || _data$$OBSERVATIONTYP === void 0 ? void 0 : (_data$$OBSERVATIONTYP2 = _data$$OBSERVATIONTYP.Value) === null || _data$$OBSERVATIONTYP2 === void 0 ? void 0 : _data$$OBSERVATIONTYP2.map(function (item) {
|
|
12009
|
+
return arry.push({
|
|
12010
|
+
_id: item._id,
|
|
12011
|
+
value: item._id,
|
|
12012
|
+
label: item.display
|
|
12013
|
+
});
|
|
12014
|
+
});
|
|
12015
|
+
return _context12.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
12016
|
+
data: arry
|
|
12017
|
+
}));
|
|
12018
|
+
case 12:
|
|
12019
|
+
_context12.prev = 12;
|
|
12020
|
+
_context12.t0 = _context12["catch"](2);
|
|
12021
|
+
return _context12.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
12022
|
+
message: _context12.t0.message
|
|
12023
|
+
})));
|
|
12024
|
+
case 15:
|
|
12025
|
+
case "end":
|
|
12026
|
+
return _context12.stop();
|
|
12027
|
+
}
|
|
12028
|
+
}
|
|
12029
|
+
}, _callee12, null, [[2, 12]]);
|
|
12030
|
+
})));
|
|
12031
|
+
var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforControlType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
12032
|
+
var payload,
|
|
12033
|
+
_ref26,
|
|
12034
|
+
rejectWithValue,
|
|
12035
|
+
_data$2,
|
|
12036
|
+
_data$2$RESULTREPORTD,
|
|
12037
|
+
_data$2$RESULTREPORTD2,
|
|
12038
|
+
body,
|
|
12039
|
+
data,
|
|
12040
|
+
arry,
|
|
12041
|
+
_args13 = arguments;
|
|
12042
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
12043
|
+
while (1) {
|
|
12044
|
+
switch (_context13.prev = _context13.next) {
|
|
12045
|
+
case 0:
|
|
12046
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : "";
|
|
12047
|
+
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
12048
|
+
_context13.prev = 2;
|
|
12049
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
12050
|
+
body = {
|
|
12051
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
12052
|
+
"filter": {
|
|
12053
|
+
"type": [payload],
|
|
12054
|
+
"tenantid": "",
|
|
12055
|
+
"facilityid": "",
|
|
12056
|
+
"lang": ""
|
|
12057
|
+
},
|
|
12058
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
12059
|
+
};
|
|
12060
|
+
_context13.next = 6;
|
|
12061
|
+
return fetchData({
|
|
12062
|
+
body: JSON.stringify(body)
|
|
12063
|
+
}, __baseUrl__$1);
|
|
12064
|
+
case 6:
|
|
12065
|
+
data = _context13.sent;
|
|
12066
|
+
arry = [];
|
|
12067
|
+
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$RESULTREPORTD = _data$2.RESULTREPORTDATATYPE) === null || _data$2$RESULTREPORTD === void 0 ? void 0 : (_data$2$RESULTREPORTD2 = _data$2$RESULTREPORTD.Value) === null || _data$2$RESULTREPORTD2 === void 0 ? void 0 : _data$2$RESULTREPORTD2.map(function (item) {
|
|
12068
|
+
return arry.push({
|
|
12069
|
+
_id: item._id,
|
|
12070
|
+
value: item._id,
|
|
12071
|
+
label: item.display
|
|
12072
|
+
});
|
|
12073
|
+
});
|
|
12074
|
+
return _context13.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
12075
|
+
data: arry
|
|
12076
|
+
}));
|
|
12077
|
+
case 12:
|
|
12078
|
+
_context13.prev = 12;
|
|
12079
|
+
_context13.t0 = _context13["catch"](2);
|
|
12080
|
+
return _context13.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
12081
|
+
message: _context13.t0.message
|
|
12082
|
+
})));
|
|
12083
|
+
case 15:
|
|
12084
|
+
case "end":
|
|
12085
|
+
return _context13.stop();
|
|
12086
|
+
}
|
|
12087
|
+
}
|
|
12088
|
+
}, _callee13, null, [[2, 12]]);
|
|
12089
|
+
})));
|
|
11960
12090
|
var vitalsMasterSectionSlice = createSlice({
|
|
11961
12091
|
name: "vitalsMasterSectionApiSlice",
|
|
11962
12092
|
initialState: {
|
|
@@ -11970,7 +12100,9 @@ var vitalsMasterSectionSlice = createSlice({
|
|
|
11970
12100
|
vital_master_read: _objectSpread2$1({}, defaultState.List),
|
|
11971
12101
|
update_master_status: _objectSpread2$1({}, defaultState.List),
|
|
11972
12102
|
delete_vital_master: _objectSpread2$1({}, defaultState.List),
|
|
11973
|
-
edit_vital_master: _objectSpread2$1({}, defaultState.List)
|
|
12103
|
+
edit_vital_master: _objectSpread2$1({}, defaultState.List),
|
|
12104
|
+
getGeneralDataforVitalType: _objectSpread2$1({}, defaultState.List),
|
|
12105
|
+
getGeneralDataforControlType: _objectSpread2$1({}, defaultState.List)
|
|
11974
12106
|
},
|
|
11975
12107
|
extraReducers: (_extraReducers$H = {}, _defineProperty(_extraReducers$H, MASTER_GENDER.fulfilled, function (state, action) {
|
|
11976
12108
|
state.master_gender.loading = false, state.master_gender.error = false, state.master_gender = action.payload;
|
|
@@ -12038,6 +12170,18 @@ var vitalsMasterSectionSlice = createSlice({
|
|
|
12038
12170
|
state.edit_vital_master.loading = true, state.edit_vital_master.error = false, state.edit_vital_master.loading = true;
|
|
12039
12171
|
}), _defineProperty(_extraReducers$H, EDIT_VITAL_MASTER.rejected, function (state, action) {
|
|
12040
12172
|
state.edit_vital_master.loading = false, state.edit_vital_master.error = true, state.edit_vital_master = action.payload;
|
|
12173
|
+
}), _defineProperty(_extraReducers$H, GET_GENERAL_DATA_VITAL_TYPE.fulfilled, function (state, action) {
|
|
12174
|
+
state.getGeneralDataforVitalType.loading = false, state.getGeneralDataforVitalType.error = false, state.getGeneralDataforVitalType = action.payload;
|
|
12175
|
+
}), _defineProperty(_extraReducers$H, GET_GENERAL_DATA_VITAL_TYPE.pending, function (state, action) {
|
|
12176
|
+
state.getGeneralDataforVitalType.loading = true, state.getGeneralDataforVitalType.error = false, state.getGeneralDataforVitalType.loading = true;
|
|
12177
|
+
}), _defineProperty(_extraReducers$H, GET_GENERAL_DATA_VITAL_TYPE.rejected, function (state, action) {
|
|
12178
|
+
state.getGeneralDataforVitalType.loading = false, state.getGeneralDataforVitalType.error = true, state.getGeneralDataforVitalType = action.payload;
|
|
12179
|
+
}), _defineProperty(_extraReducers$H, GET_GENERAL_DATA_CONTROL_TYPE.fulfilled, function (state, action) {
|
|
12180
|
+
state.getGeneralDataforControlType.loading = false, state.getGeneralDataforControlType.error = false, state.getGeneralDataforControlType = action.payload;
|
|
12181
|
+
}), _defineProperty(_extraReducers$H, GET_GENERAL_DATA_CONTROL_TYPE.pending, function (state, action) {
|
|
12182
|
+
state.getGeneralDataforControlType.loading = true, state.getGeneralDataforControlType.error = false, state.getGeneralDataforControlType.loading = true;
|
|
12183
|
+
}), _defineProperty(_extraReducers$H, GET_GENERAL_DATA_CONTROL_TYPE.rejected, function (state, action) {
|
|
12184
|
+
state.getGeneralDataforControlType.loading = false, state.getGeneralDataforControlType.error = true, state.getGeneralDataforControlType = action.payload;
|
|
12041
12185
|
}), _extraReducers$H)
|
|
12042
12186
|
});
|
|
12043
12187
|
var vitalsMasterSectionActions = {
|
|
@@ -12051,7 +12195,9 @@ var vitalsMasterSectionActions = {
|
|
|
12051
12195
|
READ_VITAL_MASTER: READ_VITAL_MASTER,
|
|
12052
12196
|
UPDATE_VITAL_MASTER_STATUS: UPDATE_VITAL_MASTER_STATUS,
|
|
12053
12197
|
DELETE_VITAL_MASTER: DELETE_VITAL_MASTER,
|
|
12054
|
-
EDIT_VITAL_MASTER: EDIT_VITAL_MASTER
|
|
12198
|
+
EDIT_VITAL_MASTER: EDIT_VITAL_MASTER,
|
|
12199
|
+
GET_GENERAL_DATA_VITAL_TYPE: GET_GENERAL_DATA_VITAL_TYPE,
|
|
12200
|
+
GET_GENERAL_DATA_CONTROL_TYPE: GET_GENERAL_DATA_CONTROL_TYPE
|
|
12055
12201
|
};
|
|
12056
12202
|
var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
|
|
12057
12203
|
|
|
@@ -18625,6 +18771,265 @@ var RES_APPOINTMENT_SINGLE_READ = createAsyncThunk("resourceByAppointmentTypesSl
|
|
|
18625
18771
|
}
|
|
18626
18772
|
}, _callee40, null, [[2, 12]]);
|
|
18627
18773
|
})));
|
|
18774
|
+
var RES_APPOINTMENT_VITAL_CODE = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_vitalCode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41() {
|
|
18775
|
+
var _ref82,
|
|
18776
|
+
rejectWithValue,
|
|
18777
|
+
body,
|
|
18778
|
+
data,
|
|
18779
|
+
arry,
|
|
18780
|
+
_args41 = arguments;
|
|
18781
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context41) {
|
|
18782
|
+
while (1) {
|
|
18783
|
+
switch (_context41.prev = _context41.next) {
|
|
18784
|
+
case 0:
|
|
18785
|
+
_ref82 = _args41.length > 1 ? _args41[1] : undefined, rejectWithValue = _ref82.rejectWithValue;
|
|
18786
|
+
_context41.prev = 2;
|
|
18787
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18788
|
+
body = {
|
|
18789
|
+
db_name: process.env.REACT_APP_DATABASE_NAME,
|
|
18790
|
+
queryid: "79d8750b-851d-488f-846a-5253722c4588"
|
|
18791
|
+
};
|
|
18792
|
+
_context41.next = 6;
|
|
18793
|
+
return fetchData({
|
|
18794
|
+
body: JSON.stringify(body)
|
|
18795
|
+
}, __baseUrl__$1);
|
|
18796
|
+
case 6:
|
|
18797
|
+
data = _context41.sent;
|
|
18798
|
+
arry = []; // data?.map((item) =>
|
|
18799
|
+
// arry.push({ _id: item._id, Value: item._id, label: item.display })
|
|
18800
|
+
// );
|
|
18801
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
18802
|
+
var _item$loadtype, _item$resultcodeset;
|
|
18803
|
+
return arry.push({
|
|
18804
|
+
_id: item._id,
|
|
18805
|
+
value: item._id,
|
|
18806
|
+
label: item.longdesc,
|
|
18807
|
+
resultreportdesc: item.resultreportdesc,
|
|
18808
|
+
resultreport: item.resultreport,
|
|
18809
|
+
loadtype: (_item$loadtype = item === null || item === void 0 ? void 0 : item.loadtype) !== null && _item$loadtype !== void 0 ? _item$loadtype : "",
|
|
18810
|
+
resultcodeset: (_item$resultcodeset = item === null || item === void 0 ? void 0 : item.resultcodeset) !== null && _item$resultcodeset !== void 0 ? _item$resultcodeset : ""
|
|
18811
|
+
});
|
|
18812
|
+
});
|
|
18813
|
+
return _context41.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18814
|
+
data: arry
|
|
18815
|
+
}));
|
|
18816
|
+
case 12:
|
|
18817
|
+
_context41.prev = 12;
|
|
18818
|
+
_context41.t0 = _context41["catch"](2);
|
|
18819
|
+
return _context41.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18820
|
+
message: _context41.t0.message
|
|
18821
|
+
})));
|
|
18822
|
+
case 15:
|
|
18823
|
+
case "end":
|
|
18824
|
+
return _context41.stop();
|
|
18825
|
+
}
|
|
18826
|
+
}
|
|
18827
|
+
}, _callee41, null, [[2, 12]]);
|
|
18828
|
+
})));
|
|
18829
|
+
var RES_APPOINTMENT_BOOKING_TYPE = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_bookingType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42() {
|
|
18830
|
+
var _ref84,
|
|
18831
|
+
rejectWithValue,
|
|
18832
|
+
_data$7,
|
|
18833
|
+
_data$7$BOOKTYPE,
|
|
18834
|
+
_data$7$BOOKTYPE$Valu,
|
|
18835
|
+
body,
|
|
18836
|
+
data,
|
|
18837
|
+
arry,
|
|
18838
|
+
_args42 = arguments;
|
|
18839
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context42) {
|
|
18840
|
+
while (1) {
|
|
18841
|
+
switch (_context42.prev = _context42.next) {
|
|
18842
|
+
case 0:
|
|
18843
|
+
_ref84 = _args42.length > 1 ? _args42[1] : undefined, rejectWithValue = _ref84.rejectWithValue;
|
|
18844
|
+
_context42.prev = 2;
|
|
18845
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18846
|
+
body = {
|
|
18847
|
+
db_name: process.env.REACT_APP_DATABASE_NAME,
|
|
18848
|
+
"filter": {
|
|
18849
|
+
"type": ["BOOKTYPE"],
|
|
18850
|
+
"tenantid": "",
|
|
18851
|
+
"facilityid": "",
|
|
18852
|
+
"lang": ""
|
|
18853
|
+
},
|
|
18854
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
18855
|
+
};
|
|
18856
|
+
_context42.next = 6;
|
|
18857
|
+
return fetchData({
|
|
18858
|
+
body: JSON.stringify(body)
|
|
18859
|
+
}, __baseUrl__$1);
|
|
18860
|
+
case 6:
|
|
18861
|
+
data = _context42.sent;
|
|
18862
|
+
arry = [];
|
|
18863
|
+
(_data$7 = data[0]) === null || _data$7 === void 0 ? void 0 : (_data$7$BOOKTYPE = _data$7.BOOKTYPE) === null || _data$7$BOOKTYPE === void 0 ? void 0 : (_data$7$BOOKTYPE$Valu = _data$7$BOOKTYPE.Value) === null || _data$7$BOOKTYPE$Valu === void 0 ? void 0 : _data$7$BOOKTYPE$Valu.map(function (item) {
|
|
18864
|
+
return arry.push({
|
|
18865
|
+
_id: item._id,
|
|
18866
|
+
value: item._id,
|
|
18867
|
+
label: item.display
|
|
18868
|
+
});
|
|
18869
|
+
});
|
|
18870
|
+
return _context42.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18871
|
+
data: arry
|
|
18872
|
+
}));
|
|
18873
|
+
case 12:
|
|
18874
|
+
_context42.prev = 12;
|
|
18875
|
+
_context42.t0 = _context42["catch"](2);
|
|
18876
|
+
return _context42.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18877
|
+
message: _context42.t0.message
|
|
18878
|
+
})));
|
|
18879
|
+
case 15:
|
|
18880
|
+
case "end":
|
|
18881
|
+
return _context42.stop();
|
|
18882
|
+
}
|
|
18883
|
+
}
|
|
18884
|
+
}, _callee42, null, [[2, 12]]);
|
|
18885
|
+
})));
|
|
18886
|
+
var RES_APPOINTMENT_DYNAMIC_DATA_LOAD = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_dynamicData_Load", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43() {
|
|
18887
|
+
var payload,
|
|
18888
|
+
_ref86,
|
|
18889
|
+
rejectWithValue,
|
|
18890
|
+
body,
|
|
18891
|
+
data,
|
|
18892
|
+
_args43 = arguments;
|
|
18893
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context43) {
|
|
18894
|
+
while (1) {
|
|
18895
|
+
switch (_context43.prev = _context43.next) {
|
|
18896
|
+
case 0:
|
|
18897
|
+
payload = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : "";
|
|
18898
|
+
_ref86 = _args43.length > 1 ? _args43[1] : undefined, rejectWithValue = _ref86.rejectWithValue;
|
|
18899
|
+
_context43.prev = 2;
|
|
18900
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18901
|
+
body = {
|
|
18902
|
+
db_name: process.env.REACT_APP_DATABASE_NAME,
|
|
18903
|
+
"filter": {
|
|
18904
|
+
"type": [payload],
|
|
18905
|
+
"tenantid": "",
|
|
18906
|
+
"facilityid": "",
|
|
18907
|
+
"lang": ""
|
|
18908
|
+
},
|
|
18909
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
18910
|
+
};
|
|
18911
|
+
_context43.next = 6;
|
|
18912
|
+
return fetchData({
|
|
18913
|
+
body: JSON.stringify(body)
|
|
18914
|
+
}, __baseUrl__$1);
|
|
18915
|
+
case 6:
|
|
18916
|
+
data = _context43.sent;
|
|
18917
|
+
return _context43.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18918
|
+
data: data
|
|
18919
|
+
}));
|
|
18920
|
+
case 10:
|
|
18921
|
+
_context43.prev = 10;
|
|
18922
|
+
_context43.t0 = _context43["catch"](2);
|
|
18923
|
+
return _context43.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18924
|
+
message: _context43.t0.message
|
|
18925
|
+
})));
|
|
18926
|
+
case 13:
|
|
18927
|
+
case "end":
|
|
18928
|
+
return _context43.stop();
|
|
18929
|
+
}
|
|
18930
|
+
}
|
|
18931
|
+
}, _callee43, null, [[2, 10]]);
|
|
18932
|
+
})));
|
|
18933
|
+
var RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_dynamicQueryidData_Load", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44() {
|
|
18934
|
+
var payload,
|
|
18935
|
+
_ref88,
|
|
18936
|
+
rejectWithValue,
|
|
18937
|
+
body,
|
|
18938
|
+
data,
|
|
18939
|
+
_args44 = arguments;
|
|
18940
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context44) {
|
|
18941
|
+
while (1) {
|
|
18942
|
+
switch (_context44.prev = _context44.next) {
|
|
18943
|
+
case 0:
|
|
18944
|
+
payload = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : "";
|
|
18945
|
+
_ref88 = _args44.length > 1 ? _args44[1] : undefined, rejectWithValue = _ref88.rejectWithValue;
|
|
18946
|
+
_context44.prev = 2;
|
|
18947
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18948
|
+
body = {
|
|
18949
|
+
db_name: process.env.REACT_APP_DATABASE_NAME,
|
|
18950
|
+
"queryid": payload
|
|
18951
|
+
};
|
|
18952
|
+
_context44.next = 6;
|
|
18953
|
+
return fetchData({
|
|
18954
|
+
body: JSON.stringify(body)
|
|
18955
|
+
}, __baseUrl__$1);
|
|
18956
|
+
case 6:
|
|
18957
|
+
data = _context44.sent;
|
|
18958
|
+
return _context44.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
18959
|
+
data: data
|
|
18960
|
+
}));
|
|
18961
|
+
case 10:
|
|
18962
|
+
_context44.prev = 10;
|
|
18963
|
+
_context44.t0 = _context44["catch"](2);
|
|
18964
|
+
return _context44.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
18965
|
+
message: _context44.t0.message
|
|
18966
|
+
})));
|
|
18967
|
+
case 13:
|
|
18968
|
+
case "end":
|
|
18969
|
+
return _context44.stop();
|
|
18970
|
+
}
|
|
18971
|
+
}
|
|
18972
|
+
}, _callee44, null, [[2, 10]]);
|
|
18973
|
+
})));
|
|
18974
|
+
var RES_APPOINTMENT_GENERALPRIORITY_LOAD = createAsyncThunk("resourceByAppointmentTypesSlice/res_appointment_generalpriority_Load", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45() {
|
|
18975
|
+
var payload,
|
|
18976
|
+
_ref90,
|
|
18977
|
+
rejectWithValue,
|
|
18978
|
+
_data$8,
|
|
18979
|
+
_data$8$APPPRIORITY,
|
|
18980
|
+
_data$8$APPPRIORITY$V,
|
|
18981
|
+
body,
|
|
18982
|
+
data,
|
|
18983
|
+
arry,
|
|
18984
|
+
_args45 = arguments;
|
|
18985
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context45) {
|
|
18986
|
+
while (1) {
|
|
18987
|
+
switch (_context45.prev = _context45.next) {
|
|
18988
|
+
case 0:
|
|
18989
|
+
payload = _args45.length > 0 && _args45[0] !== undefined ? _args45[0] : "";
|
|
18990
|
+
_ref90 = _args45.length > 1 ? _args45[1] : undefined, rejectWithValue = _ref90.rejectWithValue;
|
|
18991
|
+
_context45.prev = 2;
|
|
18992
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
18993
|
+
body = {
|
|
18994
|
+
db_name: process.env.REACT_APP_DATABASE_NAME,
|
|
18995
|
+
"filter": {
|
|
18996
|
+
"type": [payload],
|
|
18997
|
+
"tenantid": "",
|
|
18998
|
+
"facilityid": "",
|
|
18999
|
+
"lang": ""
|
|
19000
|
+
},
|
|
19001
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
19002
|
+
};
|
|
19003
|
+
_context45.next = 6;
|
|
19004
|
+
return fetchData({
|
|
19005
|
+
body: JSON.stringify(body)
|
|
19006
|
+
}, __baseUrl__$1);
|
|
19007
|
+
case 6:
|
|
19008
|
+
data = _context45.sent;
|
|
19009
|
+
arry = [];
|
|
19010
|
+
(_data$8 = data[0]) === null || _data$8 === void 0 ? void 0 : (_data$8$APPPRIORITY = _data$8.APPPRIORITY) === null || _data$8$APPPRIORITY === void 0 ? void 0 : (_data$8$APPPRIORITY$V = _data$8$APPPRIORITY.Value) === null || _data$8$APPPRIORITY$V === void 0 ? void 0 : _data$8$APPPRIORITY$V.map(function (item) {
|
|
19011
|
+
return arry.push({
|
|
19012
|
+
_id: item._id,
|
|
19013
|
+
value: item._id,
|
|
19014
|
+
label: item.display
|
|
19015
|
+
});
|
|
19016
|
+
});
|
|
19017
|
+
return _context45.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
19018
|
+
data: arry
|
|
19019
|
+
}));
|
|
19020
|
+
case 12:
|
|
19021
|
+
_context45.prev = 12;
|
|
19022
|
+
_context45.t0 = _context45["catch"](2);
|
|
19023
|
+
return _context45.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
19024
|
+
message: _context45.t0.message
|
|
19025
|
+
})));
|
|
19026
|
+
case 15:
|
|
19027
|
+
case "end":
|
|
19028
|
+
return _context45.stop();
|
|
19029
|
+
}
|
|
19030
|
+
}
|
|
19031
|
+
}, _callee45, null, [[2, 12]]);
|
|
19032
|
+
})));
|
|
18628
19033
|
var resourceByAppointmentTypesSlice = createSlice({
|
|
18629
19034
|
name: "resourceByAppointmentTypesSlice",
|
|
18630
19035
|
initialState: {
|
|
@@ -18667,7 +19072,12 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
18667
19072
|
res_upsert_appointment: _objectSpread2$1({}, defaultState.List),
|
|
18668
19073
|
res_update_appointment: _objectSpread2$1({}, defaultState.List),
|
|
18669
19074
|
res_appointment_single_read_qdm: _objectSpread2$1({}, defaultState.List),
|
|
18670
|
-
res_appointment_single_read: _objectSpread2$1({}, defaultState.List)
|
|
19075
|
+
res_appointment_single_read: _objectSpread2$1({}, defaultState.List),
|
|
19076
|
+
res_appointment_vitalCode: _objectSpread2$1({}, defaultState.List),
|
|
19077
|
+
res_appointment_bookingType: _objectSpread2$1({}, defaultState.List),
|
|
19078
|
+
res_appointment_dynamicData_Load: _objectSpread2$1({}, defaultState.List),
|
|
19079
|
+
res_appointment_dynamicQueryidData_Load: _objectSpread2$1({}, defaultState.List),
|
|
19080
|
+
res_appointment_generalpriority_Load: _objectSpread2$1({}, defaultState.List)
|
|
18671
19081
|
},
|
|
18672
19082
|
extraReducers: (_extraReducers$A = {}, _defineProperty(_extraReducers$A, RESOURCE_BY_APPOINTMRNT_TYPES.fulfilled, function (state, action) {
|
|
18673
19083
|
state.resource_appointment_type.loading = false, state.resource_appointment_type.error = false, state.resource_appointment_type = action.payload;
|
|
@@ -18909,6 +19319,36 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
18909
19319
|
state.res_appointment_single_read_qdm.loading = true, state.res_appointment_single_read_qdm.error = false, state.res_appointment_single_read_qdm.loading = true;
|
|
18910
19320
|
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_SINGLE_READ_QDM.rejected, function (state, action) {
|
|
18911
19321
|
state.res_appointment_single_read_qdm.loading = false, state.res_appointment_single_read_qdm.error = true, state.res_appointment_single_read_qdm = action.payload;
|
|
19322
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_VITAL_CODE.fulfilled, function (state, action) {
|
|
19323
|
+
state.res_appointment_vitalCode.loading = false, state.res_appointment_vitalCode.error = false, state.res_appointment_vitalCode = action.payload;
|
|
19324
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_VITAL_CODE.pending, function (state, action) {
|
|
19325
|
+
state.res_appointment_vitalCode.loading = true, state.res_appointment_vitalCode.error = false, state.res_appointment_vitalCode.loading = true;
|
|
19326
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_VITAL_CODE.rejected, function (state, action) {
|
|
19327
|
+
state.res_appointment_vitalCode.loading = false, state.res_appointment_vitalCode.error = true, state.res_appointment_vitalCode = action.payload;
|
|
19328
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_BOOKING_TYPE.fulfilled, function (state, action) {
|
|
19329
|
+
state.res_appointment_bookingType.loading = false, state.res_appointment_bookingType.error = false, state.res_appointment_bookingType = action.payload;
|
|
19330
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_BOOKING_TYPE.pending, function (state, action) {
|
|
19331
|
+
state.res_appointment_bookingType.loading = true, state.res_appointment_bookingType.error = false, state.res_appointment_bookingType.loading = true;
|
|
19332
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_BOOKING_TYPE.rejected, function (state, action) {
|
|
19333
|
+
state.res_appointment_bookingType.loading = false, state.res_appointment_bookingType.error = true, state.res_appointment_bookingType = action.payload;
|
|
19334
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_DYNAMIC_DATA_LOAD.fulfilled, function (state, action) {
|
|
19335
|
+
state.res_appointment_dynamicData_Load.loading = false, state.res_appointment_dynamicData_Load.error = false, state.res_appointment_dynamicData_Load = action.payload;
|
|
19336
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_DYNAMIC_DATA_LOAD.pending, function (state, action) {
|
|
19337
|
+
state.res_appointment_dynamicData_Load.loading = true, state.res_appointment_dynamicData_Load.error = false, state.res_appointment_dynamicData_Load.loading = true;
|
|
19338
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_DYNAMIC_DATA_LOAD.rejected, function (state, action) {
|
|
19339
|
+
state.res_appointment_dynamicData_Load.loading = false, state.res_appointment_dynamicData_Load.error = true, state.res_appointment_dynamicData_Load = action.payload;
|
|
19340
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD.fulfilled, function (state, action) {
|
|
19341
|
+
state.res_appointment_dynamicQueryidData_Load.loading = false, state.res_appointment_dynamicQueryidData_Load.error = false, state.res_appointment_dynamicQueryidData_Load = action.payload;
|
|
19342
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD.pending, function (state, action) {
|
|
19343
|
+
state.res_appointment_dynamicQueryidData_Load.loading = true, state.res_appointment_dynamicQueryidData_Load.error = false, state.res_appointment_dynamicQueryidData_Load.loading = true;
|
|
19344
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD.rejected, function (state, action) {
|
|
19345
|
+
state.res_appointment_dynamicQueryidData_Load.loading = false, state.res_appointment_dynamicQueryidData_Load.error = true, state.res_appointment_dynamicQueryidData_Load = action.payload;
|
|
19346
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_GENERALPRIORITY_LOAD.fulfilled, function (state, action) {
|
|
19347
|
+
state.res_appointment_generalpriority_Load.loading = false, state.res_appointment_generalpriority_Load.error = false, state.res_appointment_generalpriority_Load = action.payload;
|
|
19348
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_GENERALPRIORITY_LOAD.pending, function (state, action) {
|
|
19349
|
+
state.res_appointment_generalpriority_Load.loading = true, state.res_appointment_generalpriority_Load.error = false, state.res_appointment_generalpriority_Load.loading = true;
|
|
19350
|
+
}), _defineProperty(_extraReducers$A, RES_APPOINTMENT_GENERALPRIORITY_LOAD.rejected, function (state, action) {
|
|
19351
|
+
state.res_appointment_generalpriority_Load.loading = false, state.res_appointment_generalpriority_Load.error = true, state.res_appointment_generalpriority_Load = action.payload;
|
|
18912
19352
|
}), _extraReducers$A)
|
|
18913
19353
|
});
|
|
18914
19354
|
var resourceByAppointmentTypes = {
|
|
@@ -18951,7 +19391,12 @@ var resourceByAppointmentTypes = {
|
|
|
18951
19391
|
RES_UPSERT_APPOINTMENT: RES_UPSERT_APPOINTMENT,
|
|
18952
19392
|
RES_UPDATE_APPOINTMENT: RES_UPDATE_APPOINTMENT,
|
|
18953
19393
|
RES_APPOINTMENT_SINGLE_READ: RES_APPOINTMENT_SINGLE_READ,
|
|
18954
|
-
RES_APPOINTMENT_SINGLE_READ_QDM: RES_APPOINTMENT_SINGLE_READ_QDM
|
|
19394
|
+
RES_APPOINTMENT_SINGLE_READ_QDM: RES_APPOINTMENT_SINGLE_READ_QDM,
|
|
19395
|
+
RES_APPOINTMENT_VITAL_CODE: RES_APPOINTMENT_VITAL_CODE,
|
|
19396
|
+
RES_APPOINTMENT_BOOKING_TYPE: RES_APPOINTMENT_BOOKING_TYPE,
|
|
19397
|
+
RES_APPOINTMENT_DYNAMIC_DATA_LOAD: RES_APPOINTMENT_DYNAMIC_DATA_LOAD,
|
|
19398
|
+
RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD: RES_APPOINTMENT_DYNAMIC_QUERYDATA_LOAD,
|
|
19399
|
+
RES_APPOINTMENT_GENERALPRIORITY_LOAD: RES_APPOINTMENT_GENERALPRIORITY_LOAD
|
|
18955
19400
|
};
|
|
18956
19401
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
18957
19402
|
|
|
@@ -40140,7 +40585,7 @@ var SYMPTOM_AND_SPECIALTY_MASTERS = createAsyncThunk("symptomAndSpecialtySlice/s
|
|
|
40140
40585
|
_context5.next = 9;
|
|
40141
40586
|
return data_arr.result.map(function (val) {
|
|
40142
40587
|
arry.push({
|
|
40143
|
-
label: val.coding
|
|
40588
|
+
label: val.coding.display,
|
|
40144
40589
|
value: val._id
|
|
40145
40590
|
});
|
|
40146
40591
|
});
|