primary_care_admin_binder 0.1.164 → 0.1.166

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 +73 -55
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -12165,12 +12165,11 @@ var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
12165
12165
 
12166
12166
  var getLocationSort = function getLocationSort(sort) {
12167
12167
  switch (sort) {
12168
- case "Long Description":
12169
- return "longdesc";
12168
+ case "Facilities":
12169
+ return "managingorgname";
12170
12170
  case "Short Description":
12171
12171
  return "shortdesc";
12172
12172
  case "Location Type":
12173
- //return "document(document(LocationMaster.locationType)[0].coding)[0].display"
12174
12173
  return "locationType";
12175
12174
  case "Location ID":
12176
12175
  return "locationID";
@@ -12179,17 +12178,6 @@ var getLocationSort = function getLocationSort(sort) {
12179
12178
  }
12180
12179
  };
12181
12180
  var queries$n = {
12182
- // locationlist: (type,page,perPage,search,sort, direction) => {
12183
- // return {
12184
- // appcode: dbName,
12185
- // entity: "LocationMaster",
12186
- // limit: { "offset": page, "count": perPage },
12187
- // filter: `(LIKE(LocationMaster.shortdesc,'%${search ?? ''}%',true) || LIKE(LocationMaster.longdesc,'%${search ?? ''}%',true) || LIKE(LocationMaster.locationID,'%${search ?? ''}%',true) || LIKE(document(LocationMaster.locationRoletype).display,'%${search ?? ''}%',true) ) && LocationMaster.activestatus==true`,
12188
- // return_fields: `merge(LocationMaster,{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))},{TotalCount:count(( FOR locat IN LocationMaster FILTER ( LIKE(locat.shortdesc,'%${search ?? ''}%',true) || LIKE(locat.longdesc,'%${search ?? ''}%',true) || LIKE(locat.locationID,'%${search ?? ''}%',true) || LIKE(document(locat.locationRoletype).display,'%${search ?? ''}%',true) ) && locat.activestatus==true return locat._id ))})`,
12189
- // sort: `${getLocationSort(sort)} ${direction}`
12190
- // };
12191
- // },
12192
-
12193
12181
  locationlist: function locationlist(type, page, perPage, search, sort, direction) {
12194
12182
  return {
12195
12183
  appcode: dbName,
@@ -12208,9 +12196,6 @@ var queries$n = {
12208
12196
  locationlistupsert: function locationlistupsert(data) {
12209
12197
  var filter = {};
12210
12198
  if (data.isStatusChange) {
12211
- // extraJson = {
12212
- // _id: data._id,
12213
- // };
12214
12199
  filter = {
12215
12200
  filter: {
12216
12201
  _key: data._key
@@ -12226,20 +12211,9 @@ var queries$n = {
12226
12211
  }, filter), {}, {
12227
12212
  doc: {
12228
12213
  status: "".concat(data.status)
12229
- // ...extraJson,
12230
12214
  }
12231
12215
  })];
12232
12216
  },
12233
- // location_by_id: (id) => {
12234
- // return {
12235
- // appcode: dbName,
12236
- // entity: "LocationMaster",
12237
- // filter: `LocationMaster._key == '${id}'`,
12238
- // return_fields:
12239
- // "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})",
12240
- // };
12241
- // },
12242
-
12243
12217
  location_by_id: function location_by_id(id) {
12244
12218
  return {
12245
12219
  appcode: dbName,
@@ -12479,16 +12453,14 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12479
12453
  type = payload.type, page = payload.page, perPage = payload.perPage, search = payload.search, sort = payload.sort, direction = payload.direction;
12480
12454
  _context.n = 2;
12481
12455
  return fetchData({
12482
- body: JSON.stringify(queries$n.locationlist(type, page, perPage, search ? search : '', sort ? sort : "", direction ? "" : 'DESC'))
12483
- },
12484
- // __readDocumentUrl__
12485
- __baseUrl__$1);
12456
+ body: JSON.stringify(queries$n.locationlist(type, page, perPage, search ? search : '', sort ? sort : "", direction ? direction : 'DESC'))
12457
+ }, __baseUrl__$1);
12486
12458
  case 2:
12487
12459
  data = _context.v;
12488
12460
  arry = [];
12489
12461
  _context.n = 3;
12490
12462
  return data.map(function (val) {
12491
- var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4;
12463
+ var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4, _val$managingOrgID, _val$managingOrgID2;
12492
12464
  arry.push({
12493
12465
  location_id: val.locationID,
12494
12466
  location_type: val.locationType.length > 0 ? ((_val$locationType$ = val.locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : _val$locationType$.display) !== null ? (_val$locationType$2 = val.locationType[0]) === null || _val$locationType$2 === void 0 ? void 0 : _val$locationType$2.display : "-" : "-",
@@ -12498,6 +12470,8 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12498
12470
  location_type_key: (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4.coding) === null || _val$locationType4 === void 0 || (_val$locationType4 = _val$locationType4[0]) === null || _val$locationType4 === void 0 ? void 0 : _val$locationType4._key,
12499
12471
  long_description: val.longdesc,
12500
12472
  short_description: val.shortdesc,
12473
+ organization_name: (_val$managingOrgID = val.managingOrgID) === null || _val$managingOrgID === void 0 ? void 0 : _val$managingOrgID.name,
12474
+ organization_id: (_val$managingOrgID2 = val.managingOrgID) === null || _val$managingOrgID2 === void 0 ? void 0 : _val$managingOrgID2._id,
12501
12475
  _key: val._key,
12502
12476
  id: val.id,
12503
12477
  _id: val._id,
@@ -12538,7 +12512,6 @@ var LOCATION_LIST_UPSERT = createAsyncThunk("locationSlice/locationlistupsert",
12538
12512
  isStatusChange: payload.isStatusChange,
12539
12513
  _key: payload._key,
12540
12514
  status: payload.status
12541
- //status: payload.status,
12542
12515
  };
12543
12516
  queriesjson = queries$n.locationlistupsert(upsertkey);
12544
12517
  _context2.n = 2;
@@ -30027,7 +30000,7 @@ var getaliasdetails = function getaliasdetails(getaliaslist) {
30027
30000
  return dataList;
30028
30001
  };
30029
30002
  var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
30030
- var _data$specialtyDetail, _data$contactsettings, _data$address$, _data$address, _addr$city, _addr$district, _addr$state, _addr$postalCode, _addr$country, _data$contact$0$name$, _data$contact, _contactNameObj$prefi, _contactNameObj$suffi, _data$name, _data$entitycode, _data$ParentOrgID, _data$levelofcareid$d, _data$levelofcareid, _data$levelofcareid$l, _data$levelofcareid2, _data$gstcode, _data$contact$0$desig, _data$contact2, _getContact, _data$telecom, _data$active, _data$logo$0$fileid, _data$logo, _getpersondetails, _data$contact3, _data$isExternal, _data$OrgType$0$code, _data$OrgType, _getaliasdetails, _data$alias;
30003
+ var _data$specialtyDetail, _data$contactsettings, _data$nurseavailabity, _data$address$, _data$address, _addr$city, _addr$district, _addr$state, _addr$postalCode, _addr$country, _data$contact$0$name$, _data$contact, _contactNameObj$prefi, _contactNameObj$suffi, _data$name, _data$entitycode, _data$ParentOrgID, _data$levelofcareid$d, _data$levelofcareid, _data$levelofcareid$l, _data$levelofcareid2, _data$gstcode, _data$contact$0$desig, _data$contact2, _getContact, _data$telecom, _data$active, _data$logo$0$fileid, _data$logo, _getpersondetails, _data$contact3, _data$isExternal, _data$OrgType$0$code, _data$OrgType, _getaliasdetails, _data$alias;
30031
30004
  // Early return if data is falsy
30032
30005
  if (!data) {
30033
30006
  return {};
@@ -30056,6 +30029,24 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
30056
30029
  };
30057
30030
  });
30058
30031
 
30032
+ // Process nurse availability details
30033
+ var nurseavailabityArr = ((_data$nurseavailabity = data.nurseavailabity) !== null && _data$nurseavailabity !== void 0 ? _data$nurseavailabity : []).map(function (val) {
30034
+ var _val$remarks;
30035
+ var effFrom = val !== null && val !== void 0 && val.effFrom ? moment.unix(val.effFrom).local() : null;
30036
+ var effTo = val !== null && val !== void 0 && val.effTo ? moment.unix(val.effTo).local() : null;
30037
+ return {
30038
+ status: val !== null && val !== void 0 && val.status ? {
30039
+ label: val.status,
30040
+ value: val.status
30041
+ } : null,
30042
+ effFrom: effFrom ? effFrom.format("DD-MM-YYYY HH:mm") : "",
30043
+ effTo: effTo ? effTo.format("DD-MM-YYYY HH:mm") : "",
30044
+ remarks: (_val$remarks = val === null || val === void 0 ? void 0 : val.remarks) !== null && _val$remarks !== void 0 ? _val$remarks : "",
30045
+ fromDate: effFrom ? effFrom.toDate() : null,
30046
+ toDate: effTo ? effTo.toDate() : null
30047
+ };
30048
+ });
30049
+
30059
30050
  // Safely build address parts (avoiding undefined + ", " issues)
30060
30051
  var addr = (_data$address$ = data === null || data === void 0 || (_data$address = data.address) === null || _data$address === void 0 ? void 0 : _data$address[0]) !== null && _data$address$ !== void 0 ? _data$address$ : {};
30061
30052
  var addressParts = [addr.line, (_addr$city = addr.city) === null || _addr$city === void 0 ? void 0 : _addr$city.geogLevelName, (_addr$district = addr.district) === null || _addr$district === void 0 ? void 0 : _addr$district.geogLevelName, (_addr$state = addr.state) === null || _addr$state === void 0 ? void 0 : _addr$state.geogLevelName, (_addr$postalCode = addr.postalCode) === null || _addr$postalCode === void 0 ? void 0 : _addr$postalCode.geogLevelName, (_addr$country = addr.country) === null || _addr$country === void 0 ? void 0 : _addr$country.geogLevelName].filter(Boolean); // Remove falsy values
@@ -30088,14 +30079,15 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
30088
30079
  external: (_data$isExternal = data.isExternal) !== null && _data$isExternal !== void 0 ? _data$isExternal : false,
30089
30080
  orgEntityCode: (_data$OrgType$0$code = (_data$OrgType = data.OrgType) === null || _data$OrgType === void 0 || (_data$OrgType = _data$OrgType[0]) === null || _data$OrgType === void 0 ? void 0 : _data$OrgType.code) !== null && _data$OrgType$0$code !== void 0 ? _data$OrgType$0$code : '',
30090
30081
  alias: (_getaliasdetails = getaliasdetails(((_data$alias = data.alias) === null || _data$alias === void 0 ? void 0 : _data$alias.length) > 0 ? data.alias : null)) !== null && _getaliasdetails !== void 0 ? _getaliasdetails : null,
30091
- contactsettings: settingsArr
30082
+ contactsettings: settingsArr,
30083
+ nurseavailabity: nurseavailabityArr
30092
30084
  };
30093
30085
  return obj;
30094
30086
  };
30095
30087
 
30096
30088
  var generateJson$8 = {
30097
30089
  insert_json: function insert_json(data, key) {
30098
- var _data$Identification, _data$Alias, _data$Address, _data$Contact, _data$ContactPersonDe, _data$specialtyDetail, _data$ContactSettings, _data$ContactSettings2, _data$external, _data$ParentEntity, _data$ParentEntity2, _data$LevelOfCare, _data$imageDetails$, _data$imageDetails$2, _data$imageDetails$3, _data$imageDetails$4, _tenant$;
30090
+ var _data$Identification, _data$Alias, _data$Address, _data$Contact, _data$ContactPersonDe, _data$specialtyDetail, _data$ContactSettings, _data$ContactSettings2, _data$nurseavailabili, _data$external, _data$ParentEntity, _data$ParentEntity2, _data$LevelOfCare, _data$imageDetails$, _data$imageDetails$2, _data$imageDetails$3, _data$imageDetails$4, _tenant$;
30099
30091
  var identifierArr = data === null || data === void 0 || (_data$Identification = data.Identification) === null || _data$Identification === void 0 ? void 0 : _data$Identification.map(function (v, i) {
30100
30092
  var _v$use;
30101
30093
  if (v !== null && v !== void 0 && (_v$use = v.use) !== null && _v$use !== void 0 && _v$use.value) {
@@ -30213,6 +30205,15 @@ var generateJson$8 = {
30213
30205
  tenant: v === null || v === void 0 || (_v$tenant2 = v.tenant) === null || _v$tenant2 === void 0 ? void 0 : _v$tenant2.code
30214
30206
  };
30215
30207
  });
30208
+ var nurseavailabityArr = data === null || data === void 0 || (_data$nurseavailabili = data.nurseavailability) === null || _data$nurseavailabili === void 0 ? void 0 : _data$nurseavailabili.map(function (val, i) {
30209
+ var _ref, _val$status$value, _val$status, _val$remarks;
30210
+ return {
30211
+ status: (_ref = (_val$status$value = val === null || val === void 0 || (_val$status = val.status) === null || _val$status === void 0 ? void 0 : _val$status.value) !== null && _val$status$value !== void 0 ? _val$status$value : val === null || val === void 0 ? void 0 : val.status) !== null && _ref !== void 0 ? _ref : null,
30212
+ effFrom: val !== null && val !== void 0 && val.effFrom ? moment(val.effFrom, "DD-MM-YYYY HH:mm").unix() : null,
30213
+ effTo: val !== null && val !== void 0 && val.effTo ? moment(val.effTo, "DD-MM-YYYY HH:mm").unix() : null,
30214
+ remarks: (_val$remarks = val === null || val === void 0 ? void 0 : val.remarks) !== null && _val$remarks !== void 0 ? _val$remarks : ""
30215
+ };
30216
+ });
30216
30217
  var filter = {};
30217
30218
  var id = {
30218
30219
  id: 0
@@ -30227,7 +30228,7 @@ var generateJson$8 = {
30227
30228
  }
30228
30229
  return [_objectSpread2(_objectSpread2({
30229
30230
  appcode: dbName,
30230
- entity: "Organization",
30231
+ collection: "Organization",
30231
30232
  is_metadata: true,
30232
30233
  metadata_dbname: metaDatadbName$1,
30233
30234
  metadataId: metaDataId$1
@@ -30262,7 +30263,8 @@ var generateJson$8 = {
30262
30263
  entitycode: data === null || data === void 0 ? void 0 : data.EntityCode,
30263
30264
  contactsettings: ContactSettingsArr,
30264
30265
  tenantid: tenant === null || tenant === void 0 || (_tenant$ = tenant[0]) === null || _tenant$ === void 0 ? void 0 : _tenant$.tenant,
30265
- gstcode: data === null || data === void 0 ? void 0 : data.GstCode
30266
+ gstcode: data === null || data === void 0 ? void 0 : data.GstCode,
30267
+ nurseavailability: nurseavailabityArr
30266
30268
  })
30267
30269
  })];
30268
30270
  }
@@ -30273,7 +30275,7 @@ var unixToLocalDate = function unixToLocalDate(unixTimestamp) {
30273
30275
  };
30274
30276
  var generateReadJson$2 = {
30275
30277
  read_json: function read_json(data) {
30276
- var _data$identifier, _data$alias, _data$address, _data$telecom, _data$contact, _data$specialtyDetail2, _data$contactsettings, _data$ParentOrgID, _data$logo, _data$logo$0$fileid, _data$logo$0$filetype, _data$logo$0$objectid, _data$logo$0$fileName, _data$active, _data$OrgType, _data$OrgType$0$displ, _data$OrgType$0$_id, _data$OrgType$0$code, _data$levelofcareid$d, _data$levelofcareid$_, _data$entitycode, _data$name, _data$gstcode, _data$isExternal;
30278
+ var _data$identifier, _data$alias, _data$address, _data$telecom, _data$contact, _data$specialtyDetail2, _data$contactsettings, _data$ParentOrgID, _data$logo, _data$logo$0$fileid, _data$logo$0$filetype, _data$logo$0$objectid, _data$logo$0$fileName, _data$nurseavailabili2, _data$active, _data$OrgType, _data$OrgType$0$displ, _data$OrgType$0$_id, _data$OrgType$0$code, _data$levelofcareid$d, _data$levelofcareid$_, _data$entitycode, _data$name, _data$gstcode, _data$isExternal;
30277
30279
  var Parentget = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
30278
30280
  if (!data) {
30279
30281
  return {};
@@ -30495,6 +30497,21 @@ var generateReadJson$2 = {
30495
30497
  filename: (_data$logo$0$fileName = data.logo[0].fileName) !== null && _data$logo$0$fileName !== void 0 ? _data$logo$0$fileName : ""
30496
30498
  }] : null;
30497
30499
 
30500
+ // --- Nurse Availability ---
30501
+ var nurseavailabityArr = ((_data$nurseavailabili2 = data.nurseavailability) !== null && _data$nurseavailabili2 !== void 0 ? _data$nurseavailabili2 : []).map(function (val) {
30502
+ var _val$status2, _val$remarks2;
30503
+ var effFrom = unixToLocalDate(val === null || val === void 0 ? void 0 : val.effFrom);
30504
+ var effTo = unixToLocalDate(val === null || val === void 0 ? void 0 : val.effTo);
30505
+ return {
30506
+ status: (_val$status2 = val === null || val === void 0 ? void 0 : val.status) !== null && _val$status2 !== void 0 ? _val$status2 : "",
30507
+ effFrom: effFrom ? moment(effFrom).format("DD-MM-YYYY HH:mm") : "",
30508
+ effTo: effTo ? moment(effTo).format("DD-MM-YYYY HH:mm") : "",
30509
+ remarks: (_val$remarks2 = val === null || val === void 0 ? void 0 : val.remarks) !== null && _val$remarks2 !== void 0 ? _val$remarks2 : "",
30510
+ fromDate: effFrom,
30511
+ toDate: effTo
30512
+ };
30513
+ });
30514
+
30498
30515
  // --- Final Return Object ---
30499
30516
  return {
30500
30517
  _key: data === null || data === void 0 ? void 0 : data._key,
@@ -30519,6 +30536,7 @@ var generateReadJson$2 = {
30519
30536
  ContactPersonDetails_: ContactPersonDetailsArr,
30520
30537
  specialtyDetails: specialtyDetailsArr,
30521
30538
  contactsettings: ContactSettingsArr,
30539
+ nurseavailability: nurseavailabityArr,
30522
30540
  external: (_data$isExternal = data === null || data === void 0 ? void 0 : data.isExternal) !== null && _data$isExternal !== void 0 ? _data$isExternal : false,
30523
30541
  imageDetails_: imageDetails_
30524
30542
  };
@@ -42406,7 +42424,7 @@ var queries$2 = {
42406
42424
  };
42407
42425
  return [_objectSpread2(_objectSpread2({
42408
42426
  appcode: _dbName,
42409
- entity: "GMdefinition",
42427
+ collection: "GMdefinition",
42410
42428
  is_metadata: true
42411
42429
  }, filter), {}, {
42412
42430
  metadataId: metaDataId$1,
@@ -42419,7 +42437,7 @@ var queries$2 = {
42419
42437
  var _datas$general_type, _datas$general_name, _datas$additional_col2;
42420
42438
  return [_objectSpread2(_objectSpread2({
42421
42439
  appcode: _dbName,
42422
- entity: "GMdefinition",
42440
+ collection: "GMdefinition",
42423
42441
  is_metadata: true
42424
42442
  }, filter), {}, {
42425
42443
  metadataId: metaDataId$1,
@@ -42472,7 +42490,7 @@ var queries$2 = {
42472
42490
  // ]
42473
42491
  return [{
42474
42492
  appcode: _dbName,
42475
- entity: "CodeableConceptMaster",
42493
+ collection: "CodeableConceptMaster",
42476
42494
  is_metadata: true,
42477
42495
  metadataId: metaDataId$1,
42478
42496
  metadata_dbname: metaDatadbName$1,
@@ -42500,7 +42518,7 @@ var queries$2 = {
42500
42518
  var _edit_data$_key, _edit_data$code$trim, _edit_data$code, _edit_data$long_descr, _edit_data$short_desc, _edit_data$addition;
42501
42519
  return [{
42502
42520
  appcode: _dbName,
42503
- entity: "CodingMaster",
42521
+ collection: "CodingMaster",
42504
42522
  is_metadata: true,
42505
42523
  filter: {
42506
42524
  _key: (_edit_data$_key = edit_data === null || edit_data === void 0 ? void 0 : edit_data._key) !== null && _edit_data$_key !== void 0 ? _edit_data$_key : ""
@@ -42539,7 +42557,7 @@ var queries$2 = {
42539
42557
  // ]
42540
42558
  return [{
42541
42559
  appcode: _dbName,
42542
- entity: "CodeableConceptMaster",
42560
+ collection: "CodeableConceptMaster",
42543
42561
  is_metadata: true,
42544
42562
  metadataId: metaDataId$1,
42545
42563
  metadata_dbname: metaDatadbName$1,
@@ -43136,7 +43154,7 @@ var queries$1 = {
43136
43154
  status_update_practitioner: function status_update_practitioner(data) {
43137
43155
  return [{
43138
43156
  appcode: dbName,
43139
- entity: "CodeableConceptMaster",
43157
+ collection: "CodeableConceptMaster",
43140
43158
  filter: {
43141
43159
  _key: data._key
43142
43160
  },
@@ -43151,7 +43169,7 @@ var queries$1 = {
43151
43169
  status_update_symptom_and_specialty: function status_update_symptom_and_specialty(data) {
43152
43170
  return [{
43153
43171
  appcode: dbName,
43154
- entity: "SymptomsMapping",
43172
+ collection: "SymptomsMapping",
43155
43173
  filter: {
43156
43174
  _key: data._key
43157
43175
  },
@@ -43185,7 +43203,7 @@ var queries$1 = {
43185
43203
  };
43186
43204
  return [_objectSpread2(_objectSpread2({
43187
43205
  appcode: dbName,
43188
- entity: "SymptomsMapping"
43206
+ collection: "SymptomsMapping"
43189
43207
  }, filter), {}, {
43190
43208
  is_metadata: true,
43191
43209
  metadataId: metaDataId$1,
@@ -43202,7 +43220,7 @@ var queries$1 = {
43202
43220
  rule: parseJson(data === null || data === void 0 ? void 0 : data.rule),
43203
43221
  description: (_data$description = data === null || data === void 0 ? void 0 : data.description) !== null && _data$description !== void 0 ? _data$description : "",
43204
43222
  imageUrl: (_data$imageurl = data === null || data === void 0 ? void 0 : data.imageurl) !== null && _data$imageurl !== void 0 ? _data$imageurl : "",
43205
- guideline: (_data$guideline = data === null || data === void 0 ? void 0 : data.guideline) !== null && _data$guideline !== void 0 ? _data$guideline : null
43223
+ guideline: (_data$guideline = data === null || data === void 0 ? void 0 : data.guideline) !== null && _data$guideline !== void 0 ? _data$guideline : ""
43206
43224
  }
43207
43225
  })];
43208
43226
  },
@@ -43255,7 +43273,7 @@ var queries$1 = {
43255
43273
  }
43256
43274
  return [_objectSpread2(_objectSpread2({
43257
43275
  appcode: dbName,
43258
- entity: "CodeableConceptMaster",
43276
+ collection: "CodeableConceptMaster",
43259
43277
  is_metadata: true,
43260
43278
  mmetadataId: metaDataId$1,
43261
43279
  metadata_dbname: metaDatadbName$1
@@ -43288,7 +43306,7 @@ var queries$1 = {
43288
43306
  }
43289
43307
  return [_objectSpread2(_objectSpread2({
43290
43308
  appcode: dbName,
43291
- entity: "forms"
43309
+ collection: "forms"
43292
43310
  }, filter), {}, {
43293
43311
  is_metadata: false,
43294
43312
  doc: {
@@ -43769,7 +43787,7 @@ var queries = {
43769
43787
  encouterStatusChange: function encouterStatusChange(data) {
43770
43788
  return [{
43771
43789
  "appcode": dbName,
43772
- "entity": "AMPatientClass",
43790
+ "collection": "AMPatientClass",
43773
43791
  "filter": {
43774
43792
  _key: data._key
43775
43793
  },
@@ -44046,7 +44064,7 @@ var TARGET_REVENUE_DELETE = createAsyncThunk("targetRevenueSlice/targetRevenueDe
44046
44064
  _context4.p = 1;
44047
44065
  body = {
44048
44066
  appcode: dbName,
44049
- entity: "targetrevenue",
44067
+ collection: "targetrevenue",
44050
44068
  filter: "targetrevenue._id == '".concat(payload._id, "'"),
44051
44069
  metadataId: metaDataId$1,
44052
44070
  metadata_dbname: metaDatadbName$1,
@@ -44383,7 +44401,7 @@ var APPOINTMENT_DELETE = createAsyncThunk("appointmentApiSlice/deleteAppointment
44383
44401
  _context2.p = 1;
44384
44402
  body = [{
44385
44403
  appcode: dbName,
44386
- entity: "Appointment",
44404
+ collection: "Appointment",
44387
44405
  is_metadata: true,
44388
44406
  metadataId: metaDataId$1,
44389
44407
  metadata_dbname: metaDatadbName$1,
@@ -44434,7 +44452,7 @@ var APPOINTMENT_UPDATE = createAsyncThunk("appointmentApiSlice/updateAppointment
44434
44452
  // start end slotId
44435
44453
  body = [{
44436
44454
  appcode: dbName,
44437
- entity: "Appointment",
44455
+ collection: "Appointment",
44438
44456
  is_metadata: true,
44439
44457
  metadataId: metaDataId$1,
44440
44458
  metadata_dbname: metaDatadbName$1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.164",
3
+ "version": "0.1.166",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",