primarycare-binder 1.1.69 → 1.1.71

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 +11 -11
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -25287,6 +25287,7 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25287
25287
  defaultValue,
25288
25288
  months,
25289
25289
  orgid,
25290
+ stateValues,
25290
25291
  stateDatakey,
25291
25292
  orgData,
25292
25293
  component,
@@ -25301,8 +25302,9 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25301
25302
  payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
25302
25303
  _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
25303
25304
  _context4.prev = 2;
25304
- defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; // let stateValues = Object.keys(payload.dynamicValue);
25305
+ defaultValue = payload.defaultValue, months = payload.months, orgid = payload.orgid; //let stateValues = Object.keys(payload.dynamicValue);
25305
25306
 
25307
+ stateValues = [];
25306
25308
  stateDatakey = []; // stateValues.filter((val, i) => {
25307
25309
  // if (i % 2 === 0) {
25308
25310
  // stateDatakey.push(val);
@@ -25312,18 +25314,18 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25312
25314
  stateDatakey = Object.keys(payload.dynamicValue).filter(function (e) {
25313
25315
  return /^[A-Z0-9]+$/.exec(e);
25314
25316
  });
25315
- stateValues.filter(function (val, i) {
25317
+ stateValues === null || stateValues === void 0 ? void 0 : stateValues.filter(function (val, i) {
25316
25318
  // if (i % 2 === 0) {
25317
25319
  if (!(val.endsWith("uom") || val.endsWith("error") || val.endsWith("normalorabnormal"))) {
25318
25320
  stateDatakey.push(val);
25319
25321
  }
25320
25322
  });
25321
- _context4.next = 9;
25323
+ _context4.next = 10;
25322
25324
  return fetchData$3({
25323
25325
  body: vitalsQueries.getOrganizationId(payload.orgid)
25324
25326
  }, __readDocumentUrl__);
25325
25327
 
25326
- case 9:
25328
+ case 10:
25327
25329
  orgData = _context4.sent;
25328
25330
  component = [];
25329
25331
  stateDatakey.map(function (val) {
@@ -25346,22 +25348,20 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25346
25348
  encounterid: payload.encounterid,
25347
25349
  component: component
25348
25350
  };
25349
- _context4.next = 15;
25351
+ _context4.next = 16;
25350
25352
  return fetchData$3({
25351
25353
  body: JSON.stringify(vitalsQueries.savedPayload(payloadData, payload.editId))
25352
25354
  }, __uspsertUrl__);
25353
25355
 
25354
- case 15:
25356
+ case 16:
25355
25357
  saveddata = _context4.sent;
25356
25358
  return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
25357
25359
  data: saveddata
25358
25360
  }));
25359
25361
 
25360
- case 19:
25361
- _context4.prev = 19;
25362
+ case 20:
25363
+ _context4.prev = 20;
25362
25364
  _context4.t0 = _context4["catch"](2);
25363
- // ;
25364
- alert(_context4.t0.message);
25365
25365
  return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
25366
25366
  message: _context4.t0.message
25367
25367
  })));
@@ -25371,7 +25371,7 @@ var SAVE_VITALS = createAsyncThunk("VitalsApiSlice/saveVitals", /*#__PURE__*/_as
25371
25371
  return _context4.stop();
25372
25372
  }
25373
25373
  }
25374
- }, _callee4, null, [[2, 19]]);
25374
+ }, _callee4, null, [[2, 20]]);
25375
25375
  })));
25376
25376
  var GET_VITALS_BASED_ENCOUNTER = createAsyncThunk("VitalsApiSlice/vitalsBasedEncounter", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
25377
25377
  var payload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.69",
3
+ "version": "1.1.71",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",