primary_care_admin_binder 0.1.60 → 0.1.61

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 +14 -14
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -15491,7 +15491,7 @@ var queries$i = {
15491
15491
  entity_type: "{\n \"db_name\":\"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }")
15492
15492
  },
15493
15493
  appointment_type_read: function appointment_type_read(page, perPage, search) {
15494
- return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type == 'APPTYPE' && (LIKE(CodeableConceptMaster.shortdesc,'%").concat(search, "%',true) || LIKE(CodeableConceptMaster.code,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true\",\n \"limit\" : { \"offset\" : ").concat(page, ", \"count\": ").concat(perPage, "},\n \"return_fields\": \"MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.activestatus==true && cnt.Type=='APPTYPE' RETURN cnt._key) ,coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }");
15494
+ return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \" CodeableConceptMaster.Type == 'APPTYPE' &&(LIKE(document(CodeableConceptMaster.coding[0]).code,'%").concat(search ? search : '', "%',true) ||LIKE(document(CodeableConceptMaster.coding[0]).shortdesc,'%").concat(search ? search : '', "%',true) || LIKE(document(CodeableConceptMaster.coding[0]).longdesc,'%").concat(search ? search : '', "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true\",\n \"limit\": {\n \"offset\": ").concat(page, ",\n \"count\": ").concat(perPage, "\n },\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)},{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='APPTYPE' filter cnt.activestatus==true RETURN cnt._key)})\"\n}");
15495
15495
  },
15496
15496
  upsert: function upsert(data) {
15497
15497
  var filter = {};
@@ -15604,13 +15604,14 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
15604
15604
  case 0:
15605
15605
  payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
15606
15606
  _ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
15607
- _context2.prev = 2;
15608
- _context2.next = 5;
15607
+ debugger;
15608
+ _context2.prev = 3;
15609
+ _context2.next = 6;
15609
15610
  return fetchData({
15610
15611
  body: queries$i.appointment_type_read(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '')
15611
15612
  }, __readDocumentUrl__);
15612
15613
 
15613
- case 5:
15614
+ case 6:
15614
15615
  data = _context2.sent;
15615
15616
  arry = [];
15616
15617
  data.result.map(function (val) {
@@ -15633,19 +15634,19 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
15633
15634
  data: arry
15634
15635
  }));
15635
15636
 
15636
- case 11:
15637
- _context2.prev = 11;
15638
- _context2.t0 = _context2["catch"](2);
15637
+ case 12:
15638
+ _context2.prev = 12;
15639
+ _context2.t0 = _context2["catch"](3);
15639
15640
  return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
15640
15641
  message: _context2.t0.message
15641
15642
  })));
15642
15643
 
15643
- case 14:
15644
+ case 15:
15644
15645
  case "end":
15645
15646
  return _context2.stop();
15646
15647
  }
15647
15648
  }
15648
- }, _callee2, null, [[2, 11]]);
15649
+ }, _callee2, null, [[3, 12]]);
15649
15650
  })));
15650
15651
  var CODEABLE_CONCEPT_MASTER_UPSERT = createAsyncThunk("availabilityManagementSlice/masterupsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
15651
15652
  var payload,
@@ -37051,13 +37052,12 @@ var queries$2 = {
37051
37052
  return {
37052
37053
  "db_name": dbName$1,
37053
37054
  "entity": "CodeableConceptMaster",
37054
- "sort": "document(CodeableConceptMaster.coding[0]).display",
37055
- "filter": "CodeableConceptMaster.Type == '".concat(type, "' && (LIKE(CodeableConceptMaster.shortdesc,'%").concat(search, "%',true) || LIKE(CodeableConceptMaster.longdesc,'%").concat(search, "%',true) || LIKE(CodeableConceptMaster.code,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true"),
37055
+ "filter": "CodeableConceptMaster.Type == '".concat(type, "' &&(LIKE(document(CodeableConceptMaster.coding[0]).code,'%").concat(search, "%',true) ||LIKE(document(CodeableConceptMaster.coding[0]).shortdesc,'%").concat(search, "%',true) || LIKE(document(CodeableConceptMaster.coding[0]).longdesc,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true"),
37056
37056
  "limit": {
37057
- "offset": page,
37058
- "count": perPage
37057
+ "offset": "".concat(page),
37058
+ "count": "".concat(perPage)
37059
37059
  },
37060
- "return_fields": "MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='".concat(type, "' filter cnt.activestatus==true RETURN cnt._key), coding:document(CodeableConceptMaster.coding)})")
37060
+ "return_fields": "MERGE(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)},{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='".concat(type, "' filter cnt.activestatus==true RETURN cnt._key)})")
37061
37061
  };
37062
37062
  },
37063
37063
  add_new_general_type: function add_new_general_type(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",