primarycare-binder 1.1.17 → 1.1.18

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 CHANGED
@@ -11540,6 +11540,8 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
11540
11540
  var payload,
11541
11541
  _ref23,
11542
11542
  rejectWithValue,
11543
+ _data$result2,
11544
+ _data$result2$,
11543
11545
  _payload$org_id,
11544
11546
  org_id,
11545
11547
  body,
@@ -11559,7 +11561,7 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
11559
11561
  db_name: dbName,
11560
11562
  entity: "ResourcebyApptType",
11561
11563
  filter: "ResourcebyApptType.organization_id=='".concat(org_id, "' AND lower(document(ResourcebyApptType.ApptTypeCode).display)=='consultation' AND ResourcebyApptType.status==true AND ResourcebyApptType.activestatus==true"),
11562
- return_fields: "{generalInstruction:(FOR gn IN TO_ARRAY(ResourcebyApptType.generalInstruction) RETURN MERGE(gn,{fcode:DOCUMENT(gn.fcode)})),appointmentInstruction:(FOR ai IN TO_ARRAY(ResourcebyApptType.ApptInstructions) RETURN MERGE(ai,{AppInstructionCriteria:DOCUMENT(ai.AppInstructionCriteria)}))}"
11564
+ return_fields: "{orgContact: (let orgInfo = Document(ResourcebyApptType.organization_id) let contact = orgInfo.contact[0] return Document(contact.telecom)[0].value)[0], generalInstruction:(FOR gn IN TO_ARRAY(ResourcebyApptType.generalInstruction) RETURN MERGE(gn,{fcode:DOCUMENT(gn.fcode)})),appointmentInstruction:(FOR ai IN TO_ARRAY(ResourcebyApptType.ApptInstructions) RETURN MERGE(ai,{AppInstructionCriteria:DOCUMENT(ai.AppInstructionCriteria)}))}"
11563
11565
  };
11564
11566
  _context11.next = 7;
11565
11567
  return fetchData$3({
@@ -11592,7 +11594,8 @@ var GENERAL_INSTRUCTION = createAsyncThunk("appointmentReducer/generalInstructio
11592
11594
  return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
11593
11595
  data: {
11594
11596
  appointmentInstruction: _toConsumableArray(returnData.appointmentInstruction),
11595
- generalInstruction: _toConsumableArray(returnData.generalInstruction)
11597
+ generalInstruction: _toConsumableArray(returnData.generalInstruction),
11598
+ orgContact: data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : (_data$result2$ = _data$result2[0]) === null || _data$result2$ === void 0 ? void 0 : _data$result2$.orgContact
11596
11599
  }
11597
11600
  }));
11598
11601
 
@@ -12052,7 +12055,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
12052
12055
  body,
12053
12056
  data,
12054
12057
  returnData,
12055
- _data$result2,
12058
+ _data$result3,
12056
12059
  _args16 = arguments;
12057
12060
 
12058
12061
  return regeneratorRuntime.wrap(function _callee16$(_context16) {
@@ -12078,7 +12081,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/reasonF
12078
12081
  returnData = [];
12079
12082
 
12080
12083
  if (Array.isArray(data === null || data === void 0 ? void 0 : data.result)) {
12081
- data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (_) {
12084
+ data === null || data === void 0 ? void 0 : (_data$result3 = data.result) === null || _data$result3 === void 0 ? void 0 : _data$result3.map(function (_) {
12082
12085
  returnData.push({
12083
12086
  title: _ === null || _ === void 0 ? void 0 : _.display,
12084
12087
  value: _ === null || _ === void 0 ? void 0 : _.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",