primary_care_admin_binder 0.1.60 → 0.1.63

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 +15 -15
  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,
@@ -29104,7 +29105,7 @@ var queries$7 = {
29104
29105
  "offset": data === null || data === void 0 ? void 0 : data.page,
29105
29106
  "count": data === null || data === void 0 ? void 0 : data.perPage
29106
29107
  },
29107
- "return_fields": "merge(Person,{TotalCount:COUNT(FOR cnt IN Person RETURN cnt._key), name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank)}))},{photo:document(Person.photo)},{address:document(Person.address)},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})"
29108
+ "return_fields": "merge(Person,{TotalCount:count(( FOR prs IN Person FILTER ( LIKe(document(prs.name)[0].given,'%".concat(data.search ? data.search : '', "%',true) || LIKE(document(prs.telecom)[0].value,'%").concat(data.search ? data.search : '', "%',true) ) && prs.activestatus==true return prs._id )), name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank)}))},{photo:document(Person.photo)},{address:document(Person.address)},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})")
29108
29109
  };
29109
29110
  },
29110
29111
  person_delete: function person_delete(data) {
@@ -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.63",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",