primarycare-binder 1.1.79 → 1.1.82

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 +182 -89
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8041,6 +8041,8 @@ var query_ids = {
8041
8041
  practioner: "177fc273-9a6c-4088-a5dd-8f85aeff4319",
8042
8042
  clinic: "177fc273-9a6c-4088-a5dd-8f85aeff4319"
8043
8043
  },
8044
+ "appointmentReducer/queueManagementDoctor": "d1c4d868-c413-44b9-b821-867b3b668c95",
8045
+ "appointmentReducer/queueManagementNurse": "025fd258-5e30-4bd6-9076-f5bd019ce95d",
8044
8046
  "appointmentReducer/queueManagement": "3a756831-94f1-4b24-8ea7-4700b0b0be31",
8045
8047
  "searhcApiSlice/masterSearch": "0f0e1609-e0ca-4757-b922-538491e3334a",
8046
8048
  "appointmentReducer/updateAppointmentStatus": "",
@@ -11983,6 +11985,16 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
11983
11985
  end,
11984
11986
  _payload$OrgID,
11985
11987
  OrgID,
11988
+ _payload$login,
11989
+ login,
11990
+ _payload$specialtyId,
11991
+ specialtyId,
11992
+ _payload$isDoctor,
11993
+ isDoctor,
11994
+ _payload$isNurse,
11995
+ isNurse,
11996
+ _payload$isFrontDesk,
11997
+ isFrontDesk,
11986
11998
  body,
11987
11999
  data,
11988
12000
  returnData,
@@ -11995,8 +12007,26 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
11995
12007
  payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
11996
12008
  _ref25 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
11997
12009
  _context12.prev = 2;
11998
- _payload$start2 = payload.start, start = _payload$start2 === void 0 ? 0 : _payload$start2, _payload$end = payload.end, end = _payload$end === void 0 ? 0 : _payload$end, _payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? 0 : _payload$OrgID;
11999
- body = {
12010
+ _payload$start2 = payload.start, start = _payload$start2 === void 0 ? 0 : _payload$start2, _payload$end = payload.end, end = _payload$end === void 0 ? 0 : _payload$end, _payload$OrgID = payload.OrgID, OrgID = _payload$OrgID === void 0 ? 0 : _payload$OrgID, _payload$login = payload.login, login = _payload$login === void 0 ? 0 : _payload$login, _payload$specialtyId = payload.specialtyId, specialtyId = _payload$specialtyId === void 0 ? 0 : _payload$specialtyId, _payload$isDoctor = payload.isDoctor, isDoctor = _payload$isDoctor === void 0 ? false : _payload$isDoctor, _payload$isNurse = payload.isNurse, isNurse = _payload$isNurse === void 0 ? false : _payload$isNurse, _payload$isFrontDesk = payload.isFrontDesk, isFrontDesk = _payload$isFrontDesk === void 0 ? false : _payload$isFrontDesk;
12011
+ body = isDoctor ? {
12012
+ db_name: dbName,
12013
+ queryid: query_ids["appointmentReducer/queueManagementDoctor"],
12014
+ filter: {
12015
+ start: start,
12016
+ end: end,
12017
+ OrgID: OrgID,
12018
+ login: login
12019
+ }
12020
+ } : isNurse ? {
12021
+ db_name: dbName,
12022
+ queryid: query_ids["appointmentReducer/queueManagementNurse"],
12023
+ filter: {
12024
+ start: start,
12025
+ end: end,
12026
+ OrgID: OrgID,
12027
+ specialtyId: specialtyId
12028
+ }
12029
+ } : {
12000
12030
  db_name: dbName,
12001
12031
  queryid: query_ids["appointmentReducer/queueManagement"],
12002
12032
  filter: {
@@ -12035,11 +12065,61 @@ var QUEUE_MANAGEMENT = createAsyncThunk("appointmentReducer/queueManagement", /*
12035
12065
  }
12036
12066
  }
12037
12067
  }, _callee12, null, [[2, 13]]);
12068
+ })));
12069
+ var GET_SPECIALITY_ID_BY_PRCTITIONER_ID = createAsyncThunk("appointmentReducer/getSpecialityIdByPractitionerId", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
12070
+ var payload,
12071
+ _ref27,
12072
+ rejectWithValue,
12073
+ _payload$practitioner2,
12074
+ practitionerId,
12075
+ body,
12076
+ data,
12077
+ _args13 = arguments;
12078
+
12079
+ return regeneratorRuntime.wrap(function _callee13$(_context13) {
12080
+ while (1) {
12081
+ switch (_context13.prev = _context13.next) {
12082
+ case 0:
12083
+ payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
12084
+ _ref27 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
12085
+ _context13.prev = 2;
12086
+ _payload$practitioner2 = payload.practitionerId, practitionerId = _payload$practitioner2 === void 0 ? 0 : _payload$practitioner2;
12087
+ body = {
12088
+ db_name: dbName,
12089
+ entity: "Practitioner",
12090
+ filter: "Practitioner.id == ".concat(practitionerId),
12091
+ return_fields: "document(first(DOCUMENT(Practitioner.practitioner_role[*])[*]).SpecialtyID).id"
12092
+ };
12093
+ _context13.next = 7;
12094
+ return fetchData$3({
12095
+ body: JSON.stringify(body)
12096
+ }, __readDocumentUrl__);
12097
+
12098
+ case 7:
12099
+ data = _context13.sent;
12100
+ debugger;
12101
+ return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12102
+ data: data
12103
+ }));
12104
+
12105
+ case 12:
12106
+ _context13.prev = 12;
12107
+ _context13.t0 = _context13["catch"](2);
12108
+ return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12109
+ message: _context13.t0.message
12110
+ })));
12111
+
12112
+ case 15:
12113
+ case "end":
12114
+ return _context13.stop();
12115
+ }
12116
+ }
12117
+ }, _callee13, null, [[2, 12]]);
12038
12118
  }))); // RECCURANCE_APPOINTMENT
12039
12119
 
12040
- var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
12120
+ var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppointment", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
12041
12121
  var payload,
12042
- _ref27,
12122
+ _ref29,
12043
12123
  rejectWithValue,
12044
12124
  _payload$start3,
12045
12125
  start,
@@ -12052,15 +12132,15 @@ var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppo
12052
12132
  queryId,
12053
12133
  body,
12054
12134
  data,
12055
- _args13 = arguments;
12135
+ _args14 = arguments;
12056
12136
 
12057
- return regeneratorRuntime.wrap(function _callee13$(_context13) {
12137
+ return regeneratorRuntime.wrap(function _callee14$(_context14) {
12058
12138
  while (1) {
12059
- switch (_context13.prev = _context13.next) {
12139
+ switch (_context14.prev = _context14.next) {
12060
12140
  case 0:
12061
- payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
12062
- _ref27 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
12063
- _context13.prev = 2;
12141
+ payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
12142
+ _ref29 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
12143
+ _context14.prev = 2;
12064
12144
  _payload$start3 = payload.start, start = _payload$start3 === void 0 ? [] : _payload$start3, _payload$practionerid = payload.practionerid, practionerid = _payload$practionerid === void 0 ? 0 : _payload$practionerid, _payload$clinicid = payload.clinicid, clinicid = _payload$clinicid === void 0 ? 0 : _payload$clinicid;
12065
12145
  date = start.map(function (d) {
12066
12146
  var startDate = new Date();
@@ -12091,35 +12171,35 @@ var RECCURANCE_APPOINTMENT = createAsyncThunk("appointmentReducer/reccuranceAppo
12091
12171
  date: date
12092
12172
  })
12093
12173
  };
12094
- _context13.next = 11;
12174
+ _context14.next = 11;
12095
12175
  return fetchData$3({
12096
12176
  body: JSON.stringify(body)
12097
12177
  });
12098
12178
 
12099
12179
  case 11:
12100
- data = _context13.sent;
12101
- return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12180
+ data = _context14.sent;
12181
+ return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12102
12182
  data: data
12103
12183
  }));
12104
12184
 
12105
12185
  case 15:
12106
- _context13.prev = 15;
12107
- _context13.t0 = _context13["catch"](2);
12108
- return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12109
- message: _context13.t0.message
12186
+ _context14.prev = 15;
12187
+ _context14.t0 = _context14["catch"](2);
12188
+ return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12189
+ message: _context14.t0.message
12110
12190
  })));
12111
12191
 
12112
12192
  case 18:
12113
12193
  case "end":
12114
- return _context13.stop();
12194
+ return _context14.stop();
12115
12195
  }
12116
12196
  }
12117
- }, _callee13, null, [[2, 15]]);
12197
+ }, _callee14, null, [[2, 15]]);
12118
12198
  }))); // UPDATE_APPOINTMENT_STATUS
12119
12199
 
12120
- var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppointmentStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
12200
+ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppointmentStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
12121
12201
  var payload,
12122
- _ref29,
12202
+ _ref31,
12123
12203
  rejectWithValue,
12124
12204
  _payload$appointmentI2,
12125
12205
  appointmentId,
@@ -12134,7 +12214,7 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12134
12214
  _encounterInfo$result,
12135
12215
  encounterCode,
12136
12216
  encounterInfo,
12137
- _ref30,
12217
+ _ref32,
12138
12218
  _id,
12139
12219
  _key,
12140
12220
  statushistory,
@@ -12142,15 +12222,15 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12142
12222
  appInfo,
12143
12223
  body,
12144
12224
  data,
12145
- _args14 = arguments;
12225
+ _args15 = arguments;
12146
12226
 
12147
- return regeneratorRuntime.wrap(function _callee14$(_context14) {
12227
+ return regeneratorRuntime.wrap(function _callee15$(_context15) {
12148
12228
  while (1) {
12149
- switch (_context14.prev = _context14.next) {
12229
+ switch (_context15.prev = _context15.next) {
12150
12230
  case 0:
12151
- payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
12152
- _ref29 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
12153
- _context14.prev = 2;
12231
+ payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
12232
+ _ref31 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref31.rejectWithValue;
12233
+ _context15.prev = 2;
12154
12234
  _payload$appointmentI2 = payload.appointmentId, appointmentId = _payload$appointmentI2 === void 0 ? 0 : _payload$appointmentI2, _payload$status = payload.status, status = _payload$status === void 0 ? "" : _payload$status, _payload$isCompleted = payload.isCompleted, isCompleted = _payload$isCompleted === void 0 ? false : _payload$isCompleted; // const appBody = {
12155
12235
  // db_name: dbName,
12156
12236
  // queryid: query_ids["appointmentReducer/readAppointment"],
@@ -12177,11 +12257,11 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12177
12257
  }
12178
12258
 
12179
12259
  if (!encounterStatus) {
12180
- _context14.next = 20;
12260
+ _context15.next = 20;
12181
12261
  break;
12182
12262
  }
12183
12263
 
12184
- _context14.next = 8;
12264
+ _context15.next = 8;
12185
12265
  return fetchData$3({
12186
12266
  body: JSON.stringify({
12187
12267
  db_name: dbName,
@@ -12192,9 +12272,9 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12192
12272
  }, __readDocumentUrl__);
12193
12273
 
12194
12274
  case 8:
12195
- encounterCode = _context14.sent;
12275
+ encounterCode = _context15.sent;
12196
12276
  encounterStatus = (_encounterCode$result = encounterCode === null || encounterCode === void 0 ? void 0 : (_encounterCode$result2 = encounterCode.result) === null || _encounterCode$result2 === void 0 ? void 0 : (_encounterCode$result3 = _encounterCode$result2[0]) === null || _encounterCode$result3 === void 0 ? void 0 : _encounterCode$result3._id) !== null && _encounterCode$result !== void 0 ? _encounterCode$result : "";
12197
- _context14.next = 12;
12277
+ _context15.next = 12;
12198
12278
  return fetchData$3({
12199
12279
  body: JSON.stringify({
12200
12280
  db_name: dbName,
@@ -12205,11 +12285,11 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12205
12285
  }, __readDocumentUrl__);
12206
12286
 
12207
12287
  case 12:
12208
- encounterInfo = _context14.sent;
12209
- _ref30 = (encounterInfo === null || encounterInfo === void 0 ? void 0 : (_encounterInfo$result = encounterInfo.result) === null || _encounterInfo$result === void 0 ? void 0 : _encounterInfo$result[0]) || {}, _id = _ref30._id, _key = _ref30._key, statushistory = _ref30.statushistory;
12288
+ encounterInfo = _context15.sent;
12289
+ _ref32 = (encounterInfo === null || encounterInfo === void 0 ? void 0 : (_encounterInfo$result = encounterInfo.result) === null || _encounterInfo$result === void 0 ? void 0 : _encounterInfo$result[0]) || {}, _id = _ref32._id, _key = _ref32._key, statushistory = _ref32.statushistory;
12210
12290
 
12211
12291
  if (!(_id && _key && statushistory && Array.isArray(statushistory))) {
12212
- _context14.next = 20;
12292
+ _context15.next = 20;
12213
12293
  break;
12214
12294
  }
12215
12295
 
@@ -12246,7 +12326,7 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12246
12326
  status: encounterStatus
12247
12327
  }
12248
12328
  }];
12249
- _context14.next = 20;
12329
+ _context15.next = 20;
12250
12330
  return fetchData$3({
12251
12331
  body: JSON.stringify(updateData)
12252
12332
  }, __uspsertUrl__);
@@ -12272,34 +12352,34 @@ var UPDATE_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/updateAppoi
12272
12352
  id: appointmentId
12273
12353
  }
12274
12354
  }];
12275
- _context14.next = 26;
12355
+ _context15.next = 26;
12276
12356
  return fetchData$3({
12277
12357
  body: JSON.stringify(body)
12278
12358
  }, __uspsertUrl__);
12279
12359
 
12280
12360
  case 26:
12281
- data = _context14.sent;
12282
- return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12361
+ data = _context15.sent;
12362
+ return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12283
12363
  data: data
12284
12364
  }));
12285
12365
 
12286
12366
  case 30:
12287
- _context14.prev = 30;
12288
- _context14.t0 = _context14["catch"](2);
12289
- return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12290
- message: _context14.t0.message
12367
+ _context15.prev = 30;
12368
+ _context15.t0 = _context15["catch"](2);
12369
+ return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12370
+ message: _context15.t0.message
12291
12371
  })));
12292
12372
 
12293
12373
  case 33:
12294
12374
  case "end":
12295
- return _context14.stop();
12375
+ return _context15.stop();
12296
12376
  }
12297
12377
  }
12298
- }, _callee14, null, [[2, 30]]);
12378
+ }, _callee15, null, [[2, 30]]);
12299
12379
  })));
12300
- var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApoointmentStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {
12380
+ var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApoointmentStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
12301
12381
  var payload,
12302
- _ref32,
12382
+ _ref34,
12303
12383
  rejectWithValue,
12304
12384
  _appData$,
12305
12385
  _payload$appointmentI3,
@@ -12312,15 +12392,15 @@ var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApooi
12312
12392
  insertObject,
12313
12393
  body,
12314
12394
  data,
12315
- _args15 = arguments;
12395
+ _args16 = arguments;
12316
12396
 
12317
- return regeneratorRuntime.wrap(function _callee15$(_context15) {
12397
+ return regeneratorRuntime.wrap(function _callee16$(_context16) {
12318
12398
  while (1) {
12319
- switch (_context15.prev = _context15.next) {
12399
+ switch (_context16.prev = _context16.next) {
12320
12400
  case 0:
12321
- payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
12322
- _ref32 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
12323
- _context15.prev = 2;
12401
+ payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
12402
+ _ref34 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
12403
+ _context16.prev = 2;
12324
12404
  _payload$appointmentI3 = payload.appointmentId, appointmentId = _payload$appointmentI3 === void 0 ? 0 : _payload$appointmentI3, _payload$reason = payload.reason, reason = _payload$reason === void 0 ? "" : _payload$reason;
12325
12405
  appBody = {
12326
12406
  db_name: dbName,
@@ -12329,17 +12409,17 @@ var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApooi
12329
12409
  appointment_id: appointmentId
12330
12410
  }
12331
12411
  };
12332
- _context15.next = 7;
12412
+ _context16.next = 7;
12333
12413
  return fetchData$3({
12334
12414
  body: JSON.stringify(appBody)
12335
12415
  });
12336
12416
 
12337
12417
  case 7:
12338
- appData = _context15.sent;
12418
+ appData = _context16.sent;
12339
12419
  appInfo = (appData === null || appData === void 0 ? void 0 : (_appData$ = appData[0]) === null || _appData$ === void 0 ? void 0 : _appData$[0]) || {};
12340
12420
 
12341
12421
  if (!(Object.keys(appInfo).length > 0)) {
12342
- _context15.next = 19;
12422
+ _context16.next = 19;
12343
12423
  break;
12344
12424
  }
12345
12425
 
@@ -12360,53 +12440,53 @@ var CANCEL_APPOINTMENT_STATUS = createAsyncThunk("appointmentReducer/cancelApooi
12360
12440
  id: appointmentId
12361
12441
  }
12362
12442
  }];
12363
- _context15.next = 17;
12443
+ _context16.next = 17;
12364
12444
  return fetchData$3({
12365
12445
  body: JSON.stringify(body)
12366
12446
  }, __uspsertUrl__);
12367
12447
 
12368
12448
  case 17:
12369
- data = _context15.sent;
12370
- return _context15.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12449
+ data = _context16.sent;
12450
+ return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12371
12451
  data: data
12372
12452
  }));
12373
12453
 
12374
12454
  case 19:
12375
- _context15.next = 24;
12455
+ _context16.next = 24;
12376
12456
  break;
12377
12457
 
12378
12458
  case 21:
12379
- _context15.prev = 21;
12380
- _context15.t0 = _context15["catch"](2);
12381
- return _context15.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12382
- message: _context15.t0.message
12459
+ _context16.prev = 21;
12460
+ _context16.t0 = _context16["catch"](2);
12461
+ return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12462
+ message: _context16.t0.message
12383
12463
  })));
12384
12464
 
12385
12465
  case 24:
12386
12466
  case "end":
12387
- return _context15.stop();
12467
+ return _context16.stop();
12388
12468
  }
12389
12469
  }
12390
- }, _callee15, null, [[2, 21]]);
12470
+ }, _callee16, null, [[2, 21]]);
12391
12471
  }))); // REASON_FOR_APPT_CANCEL_MODIFY
12392
12472
 
12393
- var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonForApptCancelModify", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {
12473
+ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonForApptCancelModify", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {
12394
12474
  var payload,
12395
- _ref34,
12475
+ _ref36,
12396
12476
  rejectWithValue,
12397
12477
  body,
12398
12478
  data,
12399
12479
  returnData,
12400
12480
  _data$result3,
12401
- _args16 = arguments;
12481
+ _args17 = arguments;
12402
12482
 
12403
- return regeneratorRuntime.wrap(function _callee16$(_context16) {
12483
+ return regeneratorRuntime.wrap(function _callee17$(_context17) {
12404
12484
  while (1) {
12405
- switch (_context16.prev = _context16.next) {
12485
+ switch (_context17.prev = _context17.next) {
12406
12486
  case 0:
12407
- payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
12408
- _ref34 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
12409
- _context16.prev = 2;
12487
+ payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
12488
+ _ref36 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
12489
+ _context17.prev = 2;
12410
12490
  body = {
12411
12491
  db_name: dbName,
12412
12492
  entity: "CodingMaster",
@@ -12414,13 +12494,13 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
12414
12494
  sort: "CodingMaster.display ASC",
12415
12495
  return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
12416
12496
  };
12417
- _context16.next = 6;
12497
+ _context17.next = 6;
12418
12498
  return fetchData$3({
12419
12499
  body: JSON.stringify(body)
12420
12500
  }, __readDocumentUrl__);
12421
12501
 
12422
12502
  case 6:
12423
- data = _context16.sent;
12503
+ data = _context17.sent;
12424
12504
  returnData = [];
12425
12505
 
12426
12506
  if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
@@ -12435,23 +12515,23 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
12435
12515
  });
12436
12516
  }
12437
12517
 
12438
- return _context16.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12518
+ return _context17.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12439
12519
  data: returnData
12440
12520
  }));
12441
12521
 
12442
12522
  case 12:
12443
- _context16.prev = 12;
12444
- _context16.t0 = _context16["catch"](2);
12445
- return _context16.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12446
- message: _context16.t0.message
12523
+ _context17.prev = 12;
12524
+ _context17.t0 = _context17["catch"](2);
12525
+ return _context17.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12526
+ message: _context17.t0.message
12447
12527
  })));
12448
12528
 
12449
12529
  case 15:
12450
12530
  case "end":
12451
- return _context16.stop();
12531
+ return _context17.stop();
12452
12532
  }
12453
12533
  }
12454
- }, _callee16, null, [[2, 12]]);
12534
+ }, _callee17, null, [[2, 12]]);
12455
12535
  }))); // APPOINTMENT CREATE INITIALSTATE
12456
12536
 
12457
12537
  var appointmentReducer = createSlice({
@@ -12475,7 +12555,8 @@ var appointmentReducer = createSlice({
12475
12555
  cancelupdateappintment: _objectSpread2({}, defaultState.Info),
12476
12556
  follow_up_appintment: _objectSpread2({}, defaultState.Info),
12477
12557
  reasonForApptCancelModify: _objectSpread2({}, defaultState.Info),
12478
- getReferralLocation: _objectSpread2({}, defaultState.List)
12558
+ getReferralLocation: _objectSpread2({}, defaultState.List),
12559
+ getSpecialityIdByPractitionerId: _objectSpread2({}, defaultState.Info)
12479
12560
  },
12480
12561
  extraReducers: (_extraReducers$D = {}, _defineProperty(_extraReducers$D, APPOINTMENT_CREATE.fulfilled, function (state, action) {
12481
12562
  var _action$payload;
@@ -12637,6 +12718,16 @@ var appointmentReducer = createSlice({
12637
12718
  var _action$payload32;
12638
12719
 
12639
12720
  state.getReferralLocation = (_action$payload32 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload32 !== void 0 ? _action$payload32 : [];
12721
+ }), _defineProperty(_extraReducers$D, GET_SPECIALITY_ID_BY_PRCTITIONER_ID.fulfilled, function (state, action) {
12722
+ var _action$payload33;
12723
+
12724
+ state.getSpecialityIdByPractitionerId = (_action$payload33 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload33 !== void 0 ? _action$payload33 : [];
12725
+ }), _defineProperty(_extraReducers$D, GET_SPECIALITY_ID_BY_PRCTITIONER_ID.pending, function (state, action) {
12726
+ state.getSpecialityIdByPractitionerId.loading = true;
12727
+ }), _defineProperty(_extraReducers$D, GET_SPECIALITY_ID_BY_PRCTITIONER_ID.rejected, function (state, action) {
12728
+ var _action$payload34;
12729
+
12730
+ state.getSpecialityIdByPractitionerId = (_action$payload34 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload34 !== void 0 ? _action$payload34 : [];
12640
12731
  }), _extraReducers$D)
12641
12732
  }); // end
12642
12733
  // APPOINTMENT ACTION LISTS
@@ -12657,7 +12748,8 @@ var appointmentActions = {
12657
12748
  CANCEL_APPOINTMENT_STATUS: CANCEL_APPOINTMENT_STATUS,
12658
12749
  GET__FOLLOW_UP_APPOINTMENT: GET__FOLLOW_UP_APPOINTMENT,
12659
12750
  REASON_FOR_APPT_CANCEL_MODIFY: REASON_FOR_APPT_CANCEL_MODIFY,
12660
- GET_REFERRAL_LOCATION: GET_REFERRAL_LOCATION
12751
+ GET_REFERRAL_LOCATION: GET_REFERRAL_LOCATION,
12752
+ GET_SPECIALITY_ID_BY_PRCTITIONER_ID: GET_SPECIALITY_ID_BY_PRCTITIONER_ID
12661
12753
  }; // end
12662
12754
  var appointmentReducer$1 = appointmentReducer.reducer;
12663
12755
 
@@ -16742,7 +16834,7 @@ var UPSERT_PERSON = createAsyncThunk("personApiSlice/upsertPerson", /*#__PURE__*
16742
16834
  }],
16743
16835
  telecom: [{
16744
16836
  system: "Phone",
16745
- value: phone,
16837
+ value: phone || "",
16746
16838
  // number
16747
16839
  use: "Mobile",
16748
16840
  // phone
@@ -16781,8 +16873,7 @@ var UPSERT_PERSON = createAsyncThunk("personApiSlice/upsertPerson", /*#__PURE__*
16781
16873
  body[0]["filter"] = {
16782
16874
  _key: updatedId
16783
16875
  };
16784
- delete body[0]["doc"]["Id"];
16785
- delete body[0]["doc"]["telecom"];
16876
+ delete body[0]["doc"]["Id"]; //delete body[0]["doc"]["telecom"];
16786
16877
  }
16787
16878
 
16788
16879
  _context.next = 10;
@@ -25501,7 +25592,9 @@ var GET_VITALS_JSON = createAsyncThunk("VitalsApiSlice/getvitalsjson", /*#__PURE
25501
25592
  var _val$obscode, _val$obscode2;
25502
25593
 
25503
25594
  if ((val === null || val === void 0 ? void 0 : (_val$obscode = val.obscode) === null || _val$obscode === void 0 ? void 0 : _val$obscode.VitalsCodesReferenceRanges.length) > 0 && (val === null || val === void 0 ? void 0 : (_val$obscode2 = val.obscode) === null || _val$obscode2 === void 0 ? void 0 : _val$obscode2.vitalscode)) {
25504
- return val.obscode;
25595
+ return _objectSpread2(_objectSpread2({}, val.obscode), {}, {
25596
+ mandatory: val.mandatoryYN
25597
+ });
25505
25598
  }
25506
25599
  });
25507
25600
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.79",
3
+ "version": "1.1.82",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",