primary_care_admin_binder 0.1.123 → 0.1.124

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +81 -9
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -11278,7 +11278,8 @@ var query_ids = {
11278
11278
  "getQDMDataType": "14a1a710-c539-494f-a405-49ca98c5950d",
11279
11279
  "generalMasterSearch": "92774963-ed7d-4bb7-a2fc-35e71668956b",
11280
11280
  "rcChargeRateSearch": "b6adb851-754e-4c7d-964f-b217e33945dd",
11281
- "resOrderCatalogVitalCode": "493389da-6789-4ed0-89e4-a2d546025f1e"
11281
+ "resOrderCatalogVitalCode": "493389da-6789-4ed0-89e4-a2d546025f1e",
11282
+ "gmLoadQuery": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
11282
11283
  };
11283
11284
 
11284
11285
  var query$9 = {
@@ -11374,7 +11375,7 @@ var categoryJson = function categoryJson(data, state, agecategory) {
11374
11375
 
11375
11376
  //for saving/upsert Json
11376
11377
  var generateJSON$1 = function generateJSON(data) {
11377
- var _data$obstype, _data$resultreport;
11378
+ var _data$obstype, _data$resultreport, _data$loadtype;
11378
11379
  var unit_arr = data.unitAllowed.map(function (v) {
11379
11380
  return v.value;
11380
11381
  });
@@ -11405,6 +11406,7 @@ var generateJSON$1 = function generateJSON(data) {
11405
11406
  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 : "",
11406
11407
  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 : "",
11407
11408
  resultcodeset: data !== null && data !== void 0 && data.resultcodeset ? data === null || data === void 0 ? void 0 : data.resultcodeset : "",
11409
+ loadtype: data !== null && data !== void 0 && data.loadtype ? data === null || data === void 0 ? void 0 : (_data$loadtype = data.loadtype) === null || _data$loadtype === void 0 ? void 0 : _data$loadtype._id : "",
11408
11410
  VitalsCodesReferenceRanges: data.reference.length > 0 ? generateCodeReference(data.reference) : []
11409
11411
  }
11410
11412
  })];
@@ -11485,6 +11487,9 @@ var generateReadResJson = function generateReadResJson(data, state, ageCategory)
11485
11487
  obstype: v.obstype ? state.getGeneralDataforVitalType.data.find(function (sys) {
11486
11488
  return v.obstype.indexOf(sys.value) > -1;
11487
11489
  }) : "",
11490
+ loadtype: v.loadtype ? state.getGeneralDataforLoadType.data.find(function (sys) {
11491
+ return v.loadtype.indexOf(sys.value) > -1;
11492
+ }) : "",
11488
11493
  resultcodeset: v.resultcodeset,
11489
11494
  resultreport: v.resultreport ? state.getGeneralDataforControlType.data.find(function (sys) {
11490
11495
  return v.resultreport.indexOf(sys.value) > -1;
@@ -12088,13 +12093,13 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
12088
12093
  }
12089
12094
  }, _callee12, null, [[2, 12]]);
12090
12095
  })));
12091
- var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforControlType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
12096
+ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforLoadType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
12092
12097
  var payload,
12093
12098
  _ref26,
12094
12099
  rejectWithValue,
12095
12100
  _data$2,
12096
- _data$2$RESULTREPORTD,
12097
- _data$2$RESULTREPORTD2,
12101
+ _data$2$RULEQUERYORGM,
12102
+ _data$2$RULEQUERYORGM2,
12098
12103
  body,
12099
12104
  data,
12100
12105
  arry,
@@ -12115,7 +12120,7 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
12115
12120
  "facilityid": "",
12116
12121
  "lang": ""
12117
12122
  },
12118
- "queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
12123
+ "queryid": query_ids["gmLoadQuery"]
12119
12124
  };
12120
12125
  _context13.next = 6;
12121
12126
  return fetchData({
@@ -12124,7 +12129,7 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
12124
12129
  case 6:
12125
12130
  data = _context13.sent;
12126
12131
  arry = [];
12127
- (_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) {
12132
+ (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$RULEQUERYORGM = _data$2.RULEQUERYORGM) === null || _data$2$RULEQUERYORGM === void 0 ? void 0 : (_data$2$RULEQUERYORGM2 = _data$2$RULEQUERYORGM.Value) === null || _data$2$RULEQUERYORGM2 === void 0 ? void 0 : _data$2$RULEQUERYORGM2.map(function (item) {
12128
12133
  return arry.push({
12129
12134
  _id: item._id,
12130
12135
  value: item._id,
@@ -12147,6 +12152,65 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
12147
12152
  }
12148
12153
  }, _callee13, null, [[2, 12]]);
12149
12154
  })));
12155
+ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforControlType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
12156
+ var payload,
12157
+ _ref28,
12158
+ rejectWithValue,
12159
+ _data$3,
12160
+ _data$3$RESULTREPORTD,
12161
+ _data$3$RESULTREPORTD2,
12162
+ body,
12163
+ data,
12164
+ arry,
12165
+ _args14 = arguments;
12166
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
12167
+ while (1) {
12168
+ switch (_context14.prev = _context14.next) {
12169
+ case 0:
12170
+ payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : "";
12171
+ _ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
12172
+ _context14.prev = 2;
12173
+ // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
12174
+ body = {
12175
+ "db_name": dbName$1,
12176
+ "filter": {
12177
+ "type": [payload],
12178
+ "tenantid": "",
12179
+ "facilityid": "",
12180
+ "lang": ""
12181
+ },
12182
+ "queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
12183
+ };
12184
+ _context14.next = 6;
12185
+ return fetchData({
12186
+ body: JSON.stringify(body)
12187
+ }, __baseUrl__$1);
12188
+ case 6:
12189
+ data = _context14.sent;
12190
+ arry = [];
12191
+ (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$RESULTREPORTD = _data$3.RESULTREPORTDATATYPE) === null || _data$3$RESULTREPORTD === void 0 ? void 0 : (_data$3$RESULTREPORTD2 = _data$3$RESULTREPORTD.Value) === null || _data$3$RESULTREPORTD2 === void 0 ? void 0 : _data$3$RESULTREPORTD2.map(function (item) {
12192
+ return arry.push({
12193
+ _id: item._id,
12194
+ value: item._id,
12195
+ label: item.display
12196
+ });
12197
+ });
12198
+ return _context14.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
12199
+ data: arry
12200
+ }));
12201
+ case 12:
12202
+ _context14.prev = 12;
12203
+ _context14.t0 = _context14["catch"](2);
12204
+ return _context14.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
12205
+ message: _context14.t0.message
12206
+ })));
12207
+ case 15:
12208
+ case "end":
12209
+ return _context14.stop();
12210
+ }
12211
+ }
12212
+ }, _callee14, null, [[2, 12]]);
12213
+ })));
12150
12214
  var vitalsMasterSectionSlice = createSlice({
12151
12215
  name: "vitalsMasterSectionApiSlice",
12152
12216
  initialState: {
@@ -12162,7 +12226,8 @@ var vitalsMasterSectionSlice = createSlice({
12162
12226
  delete_vital_master: _objectSpread2$1({}, defaultState.List),
12163
12227
  edit_vital_master: _objectSpread2$1({}, defaultState.List),
12164
12228
  getGeneralDataforVitalType: _objectSpread2$1({}, defaultState.List),
12165
- getGeneralDataforControlType: _objectSpread2$1({}, defaultState.List)
12229
+ getGeneralDataforControlType: _objectSpread2$1({}, defaultState.List),
12230
+ getGeneralDataforLoadType: _objectSpread2$1({}, defaultState.List)
12166
12231
  },
12167
12232
  extraReducers: (_extraReducers$I = {}, _defineProperty(_extraReducers$I, MASTER_GENDER.fulfilled, function (state, action) {
12168
12233
  state.master_gender.loading = false, state.master_gender.error = false, state.master_gender = action.payload;
@@ -12242,6 +12307,12 @@ var vitalsMasterSectionSlice = createSlice({
12242
12307
  state.getGeneralDataforControlType.loading = true, state.getGeneralDataforControlType.error = false, state.getGeneralDataforControlType.loading = true;
12243
12308
  }), _defineProperty(_extraReducers$I, GET_GENERAL_DATA_CONTROL_TYPE.rejected, function (state, action) {
12244
12309
  state.getGeneralDataforControlType.loading = false, state.getGeneralDataforControlType.error = true, state.getGeneralDataforControlType = action.payload;
12310
+ }), _defineProperty(_extraReducers$I, GET_GENERAL_DATA_LOAD_TYPE.fulfilled, function (state, action) {
12311
+ state.getGeneralDataforLoadType.loading = false, state.getGeneralDataforLoadType.error = false, state.getGeneralDataforLoadType = action.payload;
12312
+ }), _defineProperty(_extraReducers$I, GET_GENERAL_DATA_LOAD_TYPE.pending, function (state, action) {
12313
+ state.getGeneralDataforLoadType.loading = true, state.getGeneralDataforLoadType.error = false, state.getGeneralDataforLoadType.loading = true;
12314
+ }), _defineProperty(_extraReducers$I, GET_GENERAL_DATA_LOAD_TYPE.rejected, function (state, action) {
12315
+ state.getGeneralDataforLoadType.loading = false, state.getGeneralDataforLoadType.error = true, state.getGeneralDataforLoadType = action.payload;
12245
12316
  }), _extraReducers$I)
12246
12317
  });
12247
12318
  var vitalsMasterSectionActions = {
@@ -12257,7 +12328,8 @@ var vitalsMasterSectionActions = {
12257
12328
  DELETE_VITAL_MASTER: DELETE_VITAL_MASTER,
12258
12329
  EDIT_VITAL_MASTER: EDIT_VITAL_MASTER,
12259
12330
  GET_GENERAL_DATA_VITAL_TYPE: GET_GENERAL_DATA_VITAL_TYPE,
12260
- GET_GENERAL_DATA_CONTROL_TYPE: GET_GENERAL_DATA_CONTROL_TYPE
12331
+ GET_GENERAL_DATA_CONTROL_TYPE: GET_GENERAL_DATA_CONTROL_TYPE,
12332
+ GET_GENERAL_DATA_LOAD_TYPE: GET_GENERAL_DATA_LOAD_TYPE
12261
12333
  };
12262
12334
  var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
12263
12335
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.123",
3
+ "version": "0.1.124",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",