primary_care_admin_binder 0.1.165 → 0.1.167

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 +207 -125
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -12165,12 +12165,13 @@ var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
12165
12165
 
12166
12166
  var getLocationSort = function getLocationSort(sort) {
12167
12167
  switch (sort) {
12168
+ case "Facilities":
12169
+ return "managingorgname";
12168
12170
  case "Long Description":
12169
- return "longdesc";
12171
+ return 'longdesc';
12170
12172
  case "Short Description":
12171
12173
  return "shortdesc";
12172
12174
  case "Location Type":
12173
- //return "document(document(LocationMaster.locationType)[0].coding)[0].display"
12174
12175
  return "locationType";
12175
12176
  case "Location ID":
12176
12177
  return "locationID";
@@ -12179,17 +12180,6 @@ var getLocationSort = function getLocationSort(sort) {
12179
12180
  }
12180
12181
  };
12181
12182
  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
12183
  locationlist: function locationlist(type, page, perPage, search, sort, direction) {
12194
12184
  return {
12195
12185
  appcode: dbName,
@@ -12208,9 +12198,6 @@ var queries$n = {
12208
12198
  locationlistupsert: function locationlistupsert(data) {
12209
12199
  var filter = {};
12210
12200
  if (data.isStatusChange) {
12211
- // extraJson = {
12212
- // _id: data._id,
12213
- // };
12214
12201
  filter = {
12215
12202
  filter: {
12216
12203
  _key: data._key
@@ -12226,20 +12213,9 @@ var queries$n = {
12226
12213
  }, filter), {}, {
12227
12214
  doc: {
12228
12215
  status: "".concat(data.status)
12229
- // ...extraJson,
12230
12216
  }
12231
12217
  })];
12232
12218
  },
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
12219
  location_by_id: function location_by_id(id) {
12244
12220
  return {
12245
12221
  appcode: dbName,
@@ -12309,7 +12285,7 @@ var workday_timeslotList = function workday_timeslotList(data) {
12309
12285
  return timeslot_Lists;
12310
12286
  };
12311
12287
  var generateJSON = function generateJSON(data, _key) {
12312
- var _data$overRideCard, _data$operationalStat, _data$operationalStat2, _data$locationType$la, _data$locationType, _data$locationRoleTyp, _data$locationRoleTyp2, _data$parentLocationI, _data$parentLocationI2, _data$speciality$labe, _data$speciality, _data$entityType$labe, _data$entityType, _data$formid$label, _data$formid, _data$typeofcare$labe, _data$typeofcare, _data$clinicalInstruc, _data$clinicDetails;
12288
+ var _data$overRideCard, _data$operationalStat, _data$operationalStat2, _data$locationType$la, _data$locationType, _data$entityName$valu, _data$entityName, _data$locationRoleTyp, _data$locationRoleTyp2, _data$parentLocationI, _data$parentLocationI2, _data$speciality$labe, _data$speciality, _data$entityType$labe, _data$entityType, _data$formid$label, _data$formid, _data$typeofcare$labe, _data$typeofcare, _data$clinicalInstruc, _data$clinicDetails, _data$photo$0$fileNam, _data$photo, _data$photo$0$fileid, _data$photo2, _data$photo$0$filetyp, _data$photo3, _data$photo$0$objecti, _data$photo4;
12313
12289
  var filter = {};
12314
12290
  if (_key) {
12315
12291
  filter = {
@@ -12427,7 +12403,7 @@ var generateJSON = function generateJSON(data, _key) {
12427
12403
  latitude: data.latitude,
12428
12404
  altitude: data.altitude
12429
12405
  }],
12430
- managingOrgID: data.entityName.value,
12406
+ managingOrgID: (_data$entityName$valu = (_data$entityName = data.entityName) === null || _data$entityName === void 0 ? void 0 : _data$entityName.value) !== null && _data$entityName$valu !== void 0 ? _data$entityName$valu : null,
12431
12407
  id: 0,
12432
12408
  locationRoletype: (_data$locationRoleTyp = data === null || data === void 0 || (_data$locationRoleTyp2 = data.locationRoleType) === null || _data$locationRoleTyp2 === void 0 ? void 0 : _data$locationRoleTyp2.label) !== null && _data$locationRoleTyp !== void 0 ? _data$locationRoleTyp : null,
12433
12409
  locationID: data.locationId,
@@ -12443,20 +12419,20 @@ var generateJSON = function generateJSON(data, _key) {
12443
12419
  photo: [{
12444
12420
  date: "",
12445
12421
  url: "",
12446
- fileName: data.photo[0].fileName,
12447
- fileid: data.photo[0].fileid,
12448
- filetype: data.photo[0].filetype,
12449
- objectid: data.photo[0].objectid
12422
+ fileName: (_data$photo$0$fileNam = (_data$photo = data.photo) === null || _data$photo === void 0 || (_data$photo = _data$photo[0]) === null || _data$photo === void 0 ? void 0 : _data$photo.fileName) !== null && _data$photo$0$fileNam !== void 0 ? _data$photo$0$fileNam : "",
12423
+ fileid: (_data$photo$0$fileid = (_data$photo2 = data.photo) === null || _data$photo2 === void 0 || (_data$photo2 = _data$photo2[0]) === null || _data$photo2 === void 0 ? void 0 : _data$photo2.fileid) !== null && _data$photo$0$fileid !== void 0 ? _data$photo$0$fileid : "",
12424
+ filetype: (_data$photo$0$filetyp = (_data$photo3 = data.photo) === null || _data$photo3 === void 0 || (_data$photo3 = _data$photo3[0]) === null || _data$photo3 === void 0 ? void 0 : _data$photo3.filetype) !== null && _data$photo$0$filetyp !== void 0 ? _data$photo$0$filetyp : "",
12425
+ objectid: (_data$photo$0$objecti = (_data$photo4 = data.photo) === null || _data$photo4 === void 0 || (_data$photo4 = _data$photo4[0]) === null || _data$photo4 === void 0 ? void 0 : _data$photo4.objectid) !== null && _data$photo$0$objecti !== void 0 ? _data$photo$0$objecti : ""
12450
12426
  }],
12451
12427
  pharmacy: [{
12452
- maxdaysforRtn: parseInt(data.maxDaysForReturn)
12428
+ maxdaysforRtn: data.maxDaysForReturn ? parseInt(data.maxDaysForReturn) : null
12453
12429
  }]
12454
12430
  }
12455
12431
  })];
12456
12432
  return json;
12457
12433
  };
12458
12434
 
12459
- var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
12435
+ var LOCATION_READ = createAsyncThunk("locationApiSlice/locationlist", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
12460
12436
  var payload,
12461
12437
  _ref2,
12462
12438
  rejectWithValue,
@@ -12479,16 +12455,13 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12479
12455
  type = payload.type, page = payload.page, perPage = payload.perPage, search = payload.search, sort = payload.sort, direction = payload.direction;
12480
12456
  _context.n = 2;
12481
12457
  return fetchData({
12482
- body: JSON.stringify(queries$n.locationlist(type, page, perPage, search ? search : '', sort ? sort : "", direction ? "" : 'DESC'))
12483
- },
12484
- // __readDocumentUrl__
12485
- __baseUrl__$1);
12458
+ body: JSON.stringify(queries$n.locationlist(type, page, perPage, search ? search : "", sort ? sort : "", direction ? direction : "DESC"))
12459
+ }, __baseUrl__$1);
12486
12460
  case 2:
12487
12461
  data = _context.v;
12488
12462
  arry = [];
12489
- _context.n = 3;
12490
- return data.map(function (val) {
12491
- var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4;
12463
+ data.map(function (val) {
12464
+ var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4, _val$managingOrgID, _val$managingOrgID2;
12492
12465
  arry.push({
12493
12466
  location_id: val.locationID,
12494
12467
  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 +12471,8 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12498
12471
  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
12472
  long_description: val.longdesc,
12500
12473
  short_description: val.shortdesc,
12474
+ organization_name: (_val$managingOrgID = val.managingOrgID) === null || _val$managingOrgID === void 0 ? void 0 : _val$managingOrgID.name,
12475
+ organization_id: (_val$managingOrgID2 = val.managingOrgID) === null || _val$managingOrgID2 === void 0 ? void 0 : _val$managingOrgID2._id,
12501
12476
  _key: val._key,
12502
12477
  id: val.id,
12503
12478
  _id: val._id,
@@ -12506,20 +12481,19 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12506
12481
  totalCount: val === null || val === void 0 ? void 0 : val.TotalCount
12507
12482
  });
12508
12483
  });
12509
- case 3:
12510
12484
  return _context.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
12511
12485
  data: arry
12512
12486
  }));
12513
- case 4:
12514
- _context.p = 4;
12487
+ case 3:
12488
+ _context.p = 3;
12515
12489
  _t = _context.v;
12516
12490
  return _context.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
12517
12491
  message: _t.message
12518
12492
  })));
12519
12493
  }
12520
- }, _callee, null, [[1, 4]]);
12494
+ }, _callee, null, [[1, 3]]);
12521
12495
  })));
12522
- var LOCATION_LIST_UPSERT = createAsyncThunk("locationSlice/locationlistupsert", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
12496
+ var LOCATION_LIST_UPSERT = createAsyncThunk("locationApiSlice/locationlistupsert", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
12523
12497
  var payload,
12524
12498
  _ref4,
12525
12499
  rejectWithValue,
@@ -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;
@@ -12602,25 +12575,55 @@ var locationSlice = createSlice({
12602
12575
  location_list_upsert: _objectSpread2({}, defaultState.List),
12603
12576
  location_insert: _objectSpread2({}, defaultState.List)
12604
12577
  },
12605
- extraReducers: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, LOCATION_READ.fulfilled, function (state, action) {
12606
- state.location_list.loading = false, state.location_list.error = false, state.location_list = action.payload;
12607
- }), LOCATION_READ.pending, function (state, action) {
12608
- state.location_list.loading = true, state.location_list.error = false, state.location_list.loading = true;
12609
- }), LOCATION_READ.rejected, function (state, action) {
12610
- state.location_list.loading = false, state.location_list.error = true, state.location_list = action.payload;
12611
- }), LOCATION_LIST_UPSERT.fulfilled, function (state, action) {
12612
- state.location_list_upsert.loading = false, state.location_list_upsert.error = false, state.location_list_upsert = action.payload;
12613
- }), LOCATION_LIST_UPSERT.pending, function (state, action) {
12614
- state.location_list_upsert.loading = true, state.location_list_upsert.error = false, state.location_list_upsert.loading = true;
12615
- }), LOCATION_LIST_UPSERT.rejected, function (state, action) {
12616
- state.location_list_upsert.loading = false, state.location_list_upsert.error = true, state.location_list_upsert = action.payload;
12617
- }), LOCATION_MASTER_INSERT.fulfilled, function (state, action) {
12618
- state.location_insert.loading = false, state.location_insert.error = false, state.location_insert = action.payload;
12619
- }), LOCATION_MASTER_INSERT.pending, function (state, action) {
12620
- state.location_insert.loading = true, state.location_insert.error = false, state.location_insert.loading = true;
12621
- }), LOCATION_MASTER_INSERT.rejected, function (state, action) {
12622
- state.location_insert.loading = false, state.location_insert.error = true, state.location_insert = action.payload;
12623
- })
12578
+ extraReducers: function extraReducers(builder) {
12579
+ // LOCATION MASTER READ
12580
+ builder.addCase(LOCATION_READ.fulfilled, function (state, action) {
12581
+ state.location_list.loading = false;
12582
+ state.location_list.error = false;
12583
+ state.location_list = action.payload;
12584
+ });
12585
+ builder.addCase(LOCATION_READ.pending, function (state) {
12586
+ state.location_list.loading = true;
12587
+ state.location_list.error = false;
12588
+ });
12589
+ builder.addCase(LOCATION_READ.rejected, function (state, action) {
12590
+ state.location_list.loading = false;
12591
+ state.location_list.error = true;
12592
+ state.location_list = action.payload;
12593
+ });
12594
+
12595
+ // LOCATION MASTER STATUS CHANGE
12596
+ builder.addCase(LOCATION_LIST_UPSERT.fulfilled, function (state, action) {
12597
+ state.location_list_upsert.loading = false;
12598
+ state.location_list_upsert.error = false;
12599
+ state.location_list_upsert = action.payload;
12600
+ });
12601
+ builder.addCase(LOCATION_LIST_UPSERT.pending, function (state) {
12602
+ state.location_list_upsert.loading = true;
12603
+ state.location_list_upsert.error = false;
12604
+ });
12605
+ builder.addCase(LOCATION_LIST_UPSERT.rejected, function (state, action) {
12606
+ state.location_list_upsert.loading = false;
12607
+ state.location_list_upsert.error = true;
12608
+ state.location_list_upsert = action.payload;
12609
+ });
12610
+
12611
+ // LOCATION MASTER INSERT / UPDATE
12612
+ builder.addCase(LOCATION_MASTER_INSERT.fulfilled, function (state, action) {
12613
+ state.location_insert.loading = false;
12614
+ state.location_insert.error = false;
12615
+ state.location_insert = action.payload;
12616
+ });
12617
+ builder.addCase(LOCATION_MASTER_INSERT.pending, function (state) {
12618
+ state.location_insert.loading = true;
12619
+ state.location_insert.error = false;
12620
+ });
12621
+ builder.addCase(LOCATION_MASTER_INSERT.rejected, function (state, action) {
12622
+ state.location_insert.loading = false;
12623
+ state.location_insert.error = true;
12624
+ state.location_insert = action.payload;
12625
+ });
12626
+ }
12624
12627
  });
12625
12628
  var locationActions$1 = {
12626
12629
  LOCATION_READ: LOCATION_READ,
@@ -29645,7 +29648,6 @@ var scheduleManagementSlice$1 = scheduleManagementSlice.reducer;
29645
29648
 
29646
29649
  var availability_management_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, availabilityManagementActions$1), holidayActions), resourceByAppointmentTypes), timeTableActions), scheduleManagementActions);
29647
29650
 
29648
- // import { dbName } from "../../qdm_query_ids";
29649
29651
  var queries$d = {
29650
29652
  getTreeStuct: function getTreeStuct(type) {
29651
29653
  return {
@@ -29681,14 +29683,6 @@ var queries$d = {
29681
29683
  };
29682
29684
  },
29683
29685
  getParentEntity: function getParentEntity(type) {
29684
- // return {
29685
- // appcode: dbName,
29686
- // entity: "Organization",
29687
- // sort: "Organization.name",
29688
- // filter: `Organization.activestatus==true AND Organization.active==true && Organization.isExternal==${type.isexternal} && Organization.OrgType === '${type.entityType}'`,
29689
- // return_fields:
29690
- // "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}",
29691
- // };
29692
29686
  return {
29693
29687
  db_name: dbName,
29694
29688
  entity: "Organization",
@@ -29745,16 +29739,6 @@ var queries$d = {
29745
29739
  }
29746
29740
  };
29747
29741
  },
29748
- //GET PARENT ORG NAME BY ID
29749
- // getParentOrgNameById: (_key) => {
29750
- // return {
29751
- // appcode: dbName,
29752
- // entity: "Organization",
29753
- // filter: `Organization.id == ${_key}`,
29754
- // return_fields:
29755
- // "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,parentorgid:Organization.ParentOrgID}",
29756
- // };
29757
- // },
29758
29742
  getParentOrgNameById: function getParentOrgNameById(_key) {
29759
29743
  return {
29760
29744
  appcode: dbName,
@@ -29771,7 +29755,7 @@ var queries$d = {
29771
29755
  upsertSatus: function upsertSatus(key, status) {
29772
29756
  return [{
29773
29757
  appcode: dbName,
29774
- entity: "Organization",
29758
+ collection: "Organization",
29775
29759
  is_metadata: true,
29776
29760
  metadata_dbname: metaDatadbName$1,
29777
29761
  metadataId: metaDataId$1,
@@ -29978,8 +29962,6 @@ var facilityObj = function facilityObj(data) {
29978
29962
  return arry;
29979
29963
  };
29980
29964
 
29981
- //JSON CONSTRUCTION FOR GET TREE DETAIL
29982
-
29983
29965
  var getpersondetails = function getpersondetails(contactlist) {
29984
29966
  var dataList = [];
29985
29967
  if ((contactlist === null || contactlist === void 0 ? void 0 : contactlist.length) > 0) {
@@ -30027,7 +30009,7 @@ var getaliasdetails = function getaliasdetails(getaliaslist) {
30027
30009
  return dataList;
30028
30010
  };
30029
30011
  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;
30012
+ var _data$specialtyDetail, _data$contactsettings, _ref3, _data$nurseavailabili, _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
30013
  // Early return if data is falsy
30032
30014
  if (!data) {
30033
30015
  return {};
@@ -30056,6 +30038,28 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
30056
30038
  };
30057
30039
  });
30058
30040
 
30041
+ // Process nurse availability details
30042
+ var nurseavailabityArr = ((_ref3 = (_data$nurseavailabili = data.nurseavailability) !== null && _data$nurseavailabili !== void 0 ? _data$nurseavailabili : data.nurseavailabity) !== null && _ref3 !== void 0 ? _ref3 : []).map(function (val) {
30043
+ var _val$remarks;
30044
+ var effFrom = val !== null && val !== void 0 && val.effFrom ? moment.unix(val.effFrom).local() : null;
30045
+ var effTo = val !== null && val !== void 0 && val.effTo ? moment.unix(val.effTo).local() : null;
30046
+ var statusObj = null;
30047
+ if (val !== null && val !== void 0 && val.status && _typeof(val.status) === 'object') {
30048
+ statusObj = {
30049
+ label: val.status.shortdesc,
30050
+ value: val.status._id
30051
+ };
30052
+ }
30053
+ return {
30054
+ status: statusObj,
30055
+ effFrom: effFrom ? effFrom.format("DD-MM-YYYY HH:mm") : "",
30056
+ effTo: effTo ? effTo.format("DD-MM-YYYY HH:mm") : "",
30057
+ remarks: (_val$remarks = val === null || val === void 0 ? void 0 : val.remarks) !== null && _val$remarks !== void 0 ? _val$remarks : "",
30058
+ fromDate: effFrom ? effFrom.toDate() : null,
30059
+ toDate: effTo ? effTo.toDate() : null
30060
+ };
30061
+ });
30062
+
30059
30063
  // Safely build address parts (avoiding undefined + ", " issues)
30060
30064
  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
30065
  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 +30092,15 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
30088
30092
  external: (_data$isExternal = data.isExternal) !== null && _data$isExternal !== void 0 ? _data$isExternal : false,
30089
30093
  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
30094
  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
30095
+ contactsettings: settingsArr,
30096
+ nurseavailability: nurseavailabityArr
30092
30097
  };
30093
30098
  return obj;
30094
30099
  };
30095
30100
 
30096
30101
  var generateJson$8 = {
30097
30102
  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$;
30103
+ 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
30104
  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
30105
  var _v$use;
30101
30106
  if (v !== null && v !== void 0 && (_v$use = v.use) !== null && _v$use !== void 0 && _v$use.value) {
@@ -30157,7 +30162,7 @@ var generateJson$8 = {
30157
30162
  var contactpersondetailsArr = data === null || data === void 0 || (_data$ContactPersonDe = data.ContactPersonDetails) === null || _data$ContactPersonDe === void 0 ? void 0 : _data$ContactPersonDe.map(function (val, i) {
30158
30163
  var _val$point, _val$use3, _val$prefix, _val$suffix, _val$designation;
30159
30164
  var telecomArr = [];
30160
- val === null || val === void 0 || (_val$point = val.point) === null || _val$point === void 0 ? void 0 : _val$point.map(function (v, i) {
30165
+ val === null || val === void 0 || (_val$point = val.point) === null || _val$point === void 0 || _val$point.map(function (v, i) {
30161
30166
  var _v$use3, _v$mode;
30162
30167
  if (v !== null && v !== void 0 && (_v$use3 = v.use) !== null && _v$use3 !== void 0 && _v$use3.value && v !== null && v !== void 0 && (_v$mode = v.mode) !== null && _v$mode !== void 0 && _v$mode.value && v !== null && v !== void 0 && v.number) {
30163
30168
  var _v$mode2, _v$use4, _v$priority, _v$code;
@@ -30213,6 +30218,15 @@ var generateJson$8 = {
30213
30218
  tenant: v === null || v === void 0 || (_v$tenant2 = v.tenant) === null || _v$tenant2 === void 0 ? void 0 : _v$tenant2.code
30214
30219
  };
30215
30220
  });
30221
+ var nurseavailabityArr = data === null || data === void 0 || (_data$nurseavailabili = data.nurseavailability) === null || _data$nurseavailabili === void 0 ? void 0 : _data$nurseavailabili.map(function (val, i) {
30222
+ var _ref, _val$status$value, _val$status, _val$remarks;
30223
+ return {
30224
+ 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,
30225
+ effFrom: val !== null && val !== void 0 && val.effFrom ? moment(val.effFrom, "DD-MM-YYYY HH:mm").unix() : null,
30226
+ effTo: val !== null && val !== void 0 && val.effTo ? moment(val.effTo, "DD-MM-YYYY HH:mm").unix() : null,
30227
+ remarks: (_val$remarks = val === null || val === void 0 ? void 0 : val.remarks) !== null && _val$remarks !== void 0 ? _val$remarks : ""
30228
+ };
30229
+ });
30216
30230
  var filter = {};
30217
30231
  var id = {
30218
30232
  id: 0
@@ -30227,7 +30241,7 @@ var generateJson$8 = {
30227
30241
  }
30228
30242
  return [_objectSpread2(_objectSpread2({
30229
30243
  appcode: dbName,
30230
- entity: "Organization",
30244
+ collection: "Organization",
30231
30245
  is_metadata: true,
30232
30246
  metadata_dbname: metaDatadbName$1,
30233
30247
  metadataId: metaDataId$1
@@ -30262,7 +30276,8 @@ var generateJson$8 = {
30262
30276
  entitycode: data === null || data === void 0 ? void 0 : data.EntityCode,
30263
30277
  contactsettings: ContactSettingsArr,
30264
30278
  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
30279
+ gstcode: data === null || data === void 0 ? void 0 : data.GstCode,
30280
+ nurseavailability: nurseavailabityArr
30266
30281
  })
30267
30282
  })];
30268
30283
  }
@@ -30273,7 +30288,7 @@ var unixToLocalDate = function unixToLocalDate(unixTimestamp) {
30273
30288
  };
30274
30289
  var generateReadJson$2 = {
30275
30290
  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;
30291
+ 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, _ref2, _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
30292
  var Parentget = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
30278
30293
  if (!data) {
30279
30294
  return {};
@@ -30495,6 +30510,27 @@ var generateReadJson$2 = {
30495
30510
  filename: (_data$logo$0$fileName = data.logo[0].fileName) !== null && _data$logo$0$fileName !== void 0 ? _data$logo$0$fileName : ""
30496
30511
  }] : null;
30497
30512
 
30513
+ // --- Nurse Availability ---
30514
+ var nurseavailabityArr = ((_ref2 = (_data$nurseavailabili2 = data.nurseavailability) !== null && _data$nurseavailabili2 !== void 0 ? _data$nurseavailabili2 : data.nurseavailabity) !== null && _ref2 !== void 0 ? _ref2 : []).map(function (val) {
30515
+ var _val$remarks2;
30516
+ var effFrom = unixToLocalDate(val === null || val === void 0 ? void 0 : val.effFrom);
30517
+ var effTo = unixToLocalDate(val === null || val === void 0 ? void 0 : val.effTo);
30518
+ if (val !== null && val !== void 0 && val.status && _typeof(val.status) === "object") {
30519
+ ({
30520
+ label: val.status.shortdesc,
30521
+ value: val.status._id
30522
+ });
30523
+ }
30524
+ return {
30525
+ status: _typeof(val === null || val === void 0 ? void 0 : val.status) === "object" ? val.status._id : "",
30526
+ effFrom: effFrom ? moment(effFrom).format("DD-MM-YYYY HH:mm") : "",
30527
+ effTo: effTo ? moment(effTo).format("DD-MM-YYYY HH:mm") : "",
30528
+ remarks: (_val$remarks2 = val === null || val === void 0 ? void 0 : val.remarks) !== null && _val$remarks2 !== void 0 ? _val$remarks2 : "",
30529
+ fromDate: effFrom,
30530
+ toDate: effTo
30531
+ };
30532
+ });
30533
+
30498
30534
  // --- Final Return Object ---
30499
30535
  return {
30500
30536
  _key: data === null || data === void 0 ? void 0 : data._key,
@@ -30519,6 +30555,7 @@ var generateReadJson$2 = {
30519
30555
  ContactPersonDetails_: ContactPersonDetailsArr,
30520
30556
  specialtyDetails: specialtyDetailsArr,
30521
30557
  contactsettings: ContactSettingsArr,
30558
+ nurseavailability: nurseavailabityArr,
30522
30559
  external: (_data$isExternal = data === null || data === void 0 ? void 0 : data.isExternal) !== null && _data$isExternal !== void 0 ? _data$isExternal : false,
30523
30560
  imageDetails_: imageDetails_
30524
30561
  };
@@ -30545,9 +30582,7 @@ var ORGANIZATION_TREE_READ = createAsyncThunk("organizationSlice/organizationTre
30545
30582
  _context.n = 2;
30546
30583
  return fetchData({
30547
30584
  body: JSON.stringify(queries$d.getTreeStuct(type))
30548
- },
30549
- // __readDocumentUrl__
30550
- __baseUrl__$1);
30585
+ }, __baseUrl__$1);
30551
30586
  case 2:
30552
30587
  data = _context.v;
30553
30588
  getJson = ReadTreeJson(data);
@@ -30918,9 +30953,7 @@ var ORGANIZATION_READ_DETAILS = createAsyncThunk("organizationSlice/organization
30918
30953
  _context9.n = 2;
30919
30954
  return fetchData({
30920
30955
  body: JSON.stringify(queries$d.getTreeDetails(_key))
30921
- },
30922
- // __readDocumentUrl__
30923
- __baseUrl__$1);
30956
+ }, __baseUrl__$1);
30924
30957
  case 2:
30925
30958
  data = _context9.v;
30926
30959
  parentOrgId = data === null || data === void 0 || (_data$5 = data[0]) === null || _data$5 === void 0 || (_data$5 = _data$5.ParentOrgID) === null || _data$5 === void 0 ? void 0 : _data$5[0];
@@ -30932,9 +30965,7 @@ var ORGANIZATION_READ_DETAILS = createAsyncThunk("organizationSlice/organization
30932
30965
  _context9.n = 3;
30933
30966
  return fetchData({
30934
30967
  body: JSON.stringify(queries$d.getParentOrgNameById(parentOrgId))
30935
- },
30936
- // __readDocumentUrl__
30937
- __baseUrl__$1);
30968
+ }, __baseUrl__$1);
30938
30969
  case 3:
30939
30970
  parentOrgName = _context9.v;
30940
30971
  case 4:
@@ -31850,9 +31881,7 @@ var ORG_FROM_GET = createAsyncThunk("organizationSlice/getOrganization", /*#__PU
31850
31881
  _context26.n = 2;
31851
31882
  return fetchData({
31852
31883
  body: JSON.stringify(queries$d.getParentEntityFull())
31853
- },
31854
- // __readDocumentUrl__
31855
- __baseUrl__$1);
31884
+ }, __baseUrl__$1);
31856
31885
  case 2:
31857
31886
  getParentEntityData = _context26.v;
31858
31887
  result = [];
@@ -31867,13 +31896,10 @@ var ORG_FROM_GET = createAsyncThunk("organizationSlice/getOrganization", /*#__PU
31867
31896
  _context26.n = 3;
31868
31897
  return fetchData({
31869
31898
  body: JSON.stringify(queries$d.getTreeDetails(key))
31870
- },
31871
- // __readDocumentUrl__
31872
- __baseUrl__$1);
31899
+ }, __baseUrl__$1);
31873
31900
  case 3:
31874
31901
  data = _context26.v;
31875
31902
  queriesjson = generateReadJson$2.read_json(data === null || data === void 0 ? void 0 : data[0], result);
31876
- console.log("queriesjson get treedetails", queriesjson);
31877
31903
  return _context26.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31878
31904
  data: queriesjson
31879
31905
  }));
@@ -31984,6 +32010,54 @@ var ORGANIZATION_GET_CONTACTDETAILROUNDOFFMODE = createAsyncThunk("organizationS
31984
32010
  }
31985
32011
  }, _callee28, null, [[1, 3]]);
31986
32012
  })));
32013
+ var ORG_NURSE_STATUS = createAsyncThunk("organizationSlice/orgNurseStatus", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29() {
32014
+ var _ref60,
32015
+ rejectWithValue,
32016
+ body,
32017
+ data,
32018
+ arry,
32019
+ _args29 = arguments,
32020
+ _t29;
32021
+ return _regenerator().w(function (_context29) {
32022
+ while (1) switch (_context29.p = _context29.n) {
32023
+ case 0:
32024
+ _ref60 = _args29.length > 1 ? _args29[1] : undefined, rejectWithValue = _ref60.rejectWithValue;
32025
+ _context29.p = 1;
32026
+ body = {
32027
+ appcode: dbName,
32028
+ filter: {
32029
+ type: "NURSEAVAILABILITY",
32030
+ status: true,
32031
+ code: "",
32032
+ sort: "shortdesc"
32033
+ },
32034
+ requestid: "b283129b-9841-419b-bdfc-de5105ebbad7"
32035
+ };
32036
+ _context29.n = 2;
32037
+ return fetchData({
32038
+ body: JSON.stringify(body)
32039
+ }, __baseUrl__$1);
32040
+ case 2:
32041
+ data = _context29.v;
32042
+ arry = [];
32043
+ data === null || data === void 0 || data.map(function (item) {
32044
+ return arry.push(_objectSpread2({
32045
+ label: item.shortdesc,
32046
+ value: item._id
32047
+ }, item));
32048
+ });
32049
+ return _context29.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
32050
+ data: arry
32051
+ }));
32052
+ case 3:
32053
+ _context29.p = 3;
32054
+ _t29 = _context29.v;
32055
+ return _context29.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
32056
+ message: _t29.message
32057
+ })));
32058
+ }
32059
+ }, _callee29, null, [[1, 3]]);
32060
+ })));
31987
32061
  var organizationSlice = createSlice({
31988
32062
  name: "organizationSlice",
31989
32063
  initialState: {
@@ -32016,7 +32090,8 @@ var organizationSlice = createSlice({
32016
32090
  orgSettingsTenant: _objectSpread2({}, defaultState.List),
32017
32091
  orgSettingsCurrency: _objectSpread2({}, defaultState.List),
32018
32092
  orgSettingsTimezone: _objectSpread2({}, defaultState.List),
32019
- orgContactDetailRoundoffmode: _objectSpread2({}, defaultState.List)
32093
+ orgContactDetailRoundoffmode: _objectSpread2({}, defaultState.List),
32094
+ orgNurseStatus: _objectSpread2({}, defaultState.List)
32020
32095
  },
32021
32096
  extraReducers: (_extraReducers$m = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$m, ORGANIZATION_TREE_READ.fulfilled, function (state, action) {
32022
32097
  state.organizationTreeList.loading = false, state.organizationTreeList.error = false, state.organizationTreeList = action.payload;
@@ -32198,6 +32273,12 @@ var organizationSlice = createSlice({
32198
32273
  state.orgContactDetailRoundoffmode.loading = true, state.orgContactDetailRoundoffmode.error = false, state.orgContactDetailRoundoffmode.loading = true;
32199
32274
  }), ORGANIZATION_GET_CONTACTDETAILROUNDOFFMODE.rejected, function (state, action) {
32200
32275
  state.orgContactDetailRoundoffmode.loading = false, state.orgContactDetailRoundoffmode.error = true, state.orgContactDetailRoundoffmode = action.payload;
32276
+ }), _defineProperty(_defineProperty(_defineProperty(_extraReducers$m, ORG_NURSE_STATUS.fulfilled, function (state, action) {
32277
+ state.orgNurseStatus.loading = false, state.orgNurseStatus.error = false, state.orgNurseStatus = action.payload;
32278
+ }), ORG_NURSE_STATUS.pending, function (state, action) {
32279
+ state.orgNurseStatus.loading = true, state.orgNurseStatus.error = false, state.orgNurseStatus.loading = true;
32280
+ }), ORG_NURSE_STATUS.rejected, function (state, action) {
32281
+ state.orgNurseStatus.loading = false, state.orgNurseStatus.error = true, state.orgNurseStatus = action.payload;
32201
32282
  }))
32202
32283
  });
32203
32284
  var organizationActions = {
@@ -32230,7 +32311,8 @@ var organizationActions = {
32230
32311
  ORGANIZATION_GET_CONTACTTENANT: ORGANIZATION_GET_CONTACTTENANT,
32231
32312
  ORGANIZATION_GET_CURRENCY: ORGANIZATION_GET_CURRENCY,
32232
32313
  ORGANIZATION_GET_TIMEZONE: ORGANIZATION_GET_TIMEZONE,
32233
- ORGANIZATION_GET_CONTACTDETAILROUNDOFFMODE: ORGANIZATION_GET_CONTACTDETAILROUNDOFFMODE
32314
+ ORGANIZATION_GET_CONTACTDETAILROUNDOFFMODE: ORGANIZATION_GET_CONTACTDETAILROUNDOFFMODE,
32315
+ ORG_NURSE_STATUS: ORG_NURSE_STATUS
32234
32316
  };
32235
32317
  var organizationSlice$1 = organizationSlice.reducer;
32236
32318
 
@@ -42406,7 +42488,7 @@ var queries$2 = {
42406
42488
  };
42407
42489
  return [_objectSpread2(_objectSpread2({
42408
42490
  appcode: _dbName,
42409
- entity: "GMdefinition",
42491
+ collection: "GMdefinition",
42410
42492
  is_metadata: true
42411
42493
  }, filter), {}, {
42412
42494
  metadataId: metaDataId$1,
@@ -42419,7 +42501,7 @@ var queries$2 = {
42419
42501
  var _datas$general_type, _datas$general_name, _datas$additional_col2;
42420
42502
  return [_objectSpread2(_objectSpread2({
42421
42503
  appcode: _dbName,
42422
- entity: "GMdefinition",
42504
+ collection: "GMdefinition",
42423
42505
  is_metadata: true
42424
42506
  }, filter), {}, {
42425
42507
  metadataId: metaDataId$1,
@@ -42472,7 +42554,7 @@ var queries$2 = {
42472
42554
  // ]
42473
42555
  return [{
42474
42556
  appcode: _dbName,
42475
- entity: "CodeableConceptMaster",
42557
+ collection: "CodeableConceptMaster",
42476
42558
  is_metadata: true,
42477
42559
  metadataId: metaDataId$1,
42478
42560
  metadata_dbname: metaDatadbName$1,
@@ -42500,7 +42582,7 @@ var queries$2 = {
42500
42582
  var _edit_data$_key, _edit_data$code$trim, _edit_data$code, _edit_data$long_descr, _edit_data$short_desc, _edit_data$addition;
42501
42583
  return [{
42502
42584
  appcode: _dbName,
42503
- entity: "CodingMaster",
42585
+ collection: "CodingMaster",
42504
42586
  is_metadata: true,
42505
42587
  filter: {
42506
42588
  _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 +42621,7 @@ var queries$2 = {
42539
42621
  // ]
42540
42622
  return [{
42541
42623
  appcode: _dbName,
42542
- entity: "CodeableConceptMaster",
42624
+ collection: "CodeableConceptMaster",
42543
42625
  is_metadata: true,
42544
42626
  metadataId: metaDataId$1,
42545
42627
  metadata_dbname: metaDatadbName$1,
@@ -43202,7 +43284,7 @@ var queries$1 = {
43202
43284
  rule: parseJson(data === null || data === void 0 ? void 0 : data.rule),
43203
43285
  description: (_data$description = data === null || data === void 0 ? void 0 : data.description) !== null && _data$description !== void 0 ? _data$description : "",
43204
43286
  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
43287
+ guideline: (_data$guideline = data === null || data === void 0 ? void 0 : data.guideline) !== null && _data$guideline !== void 0 ? _data$guideline : ""
43206
43288
  }
43207
43289
  })];
43208
43290
  },
@@ -43769,7 +43851,7 @@ var queries = {
43769
43851
  encouterStatusChange: function encouterStatusChange(data) {
43770
43852
  return [{
43771
43853
  "appcode": dbName,
43772
- "entity": "AMPatientClass",
43854
+ "collection": "AMPatientClass",
43773
43855
  "filter": {
43774
43856
  _key: data._key
43775
43857
  },
@@ -44046,7 +44128,7 @@ var TARGET_REVENUE_DELETE = createAsyncThunk("targetRevenueSlice/targetRevenueDe
44046
44128
  _context4.p = 1;
44047
44129
  body = {
44048
44130
  appcode: dbName,
44049
- entity: "targetrevenue",
44131
+ collection: "targetrevenue",
44050
44132
  filter: "targetrevenue._id == '".concat(payload._id, "'"),
44051
44133
  metadataId: metaDataId$1,
44052
44134
  metadata_dbname: metaDatadbName$1,
@@ -46441,7 +46523,7 @@ var drugUpsert = createAsyncThunk("drugReducer/upsert", /*#__PURE__*/function ()
46441
46523
  var _v$facility, _v$locationType;
46442
46524
  return {
46443
46525
  appcode: dbName,
46444
- entity: "CA_PerformingLocationforOrdLocn",
46526
+ collection: "CA_PerformingLocationforOrdLocn",
46445
46527
  is_metadata: true,
46446
46528
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
46447
46529
  doc: {
@@ -46515,7 +46597,7 @@ var drugUpdate = createAsyncThunk("drugReducer/update", /*#__PURE__*/function ()
46515
46597
  var _v$facility2, _v$locationType2;
46516
46598
  var Json = {
46517
46599
  appcode: dbName,
46518
- entity: "CA_PerformingLocationforOrdLocn",
46600
+ collection: "CA_PerformingLocationforOrdLocn",
46519
46601
  is_metadata: true,
46520
46602
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
46521
46603
  doc: {
@@ -46592,7 +46674,7 @@ var sigleRead = createAsyncThunk("drugReducer/singleread", /*#__PURE__*/function
46592
46674
  body = {};
46593
46675
  body = JSON.stringify({
46594
46676
  db_name: dbName,
46595
- entity: "CA_PerformingLocationforOrdLocn",
46677
+ collection: "CA_PerformingLocationforOrdLocn",
46596
46678
  filter: "CA_PerformingLocationforOrdLocn.performing_location_code == '".concat(LocationMasterId, "' && CA_PerformingLocationforOrdLocn.activestatus==true "),
46597
46679
  return_fields: "merge(CA_PerformingLocationforOrdLocn,{ordering_org:DOCUMENT(CA_PerformingLocationforOrdLocn.ordering_org)},{ordering_source_type:DOCUMENT(CA_PerformingLocationforOrdLocn.ordering_source_type)},{ordering_source_code:DOCUMENT(CA_PerformingLocationforOrdLocn.ordering_source_code)},{service_applicability:DOCUMENT(CA_PerformingLocationforOrdLocn.service_applicability)},{performing_org:DOCUMENT(CA_PerformingLocationforOrdLocn.performing_org)},{performing_location_role_type:DOCUMENT(CA_PerformingLocationforOrdLocn.performing_location_role_type)},{ performing_location_code:(for performing_location_code in document(TO_ARRAY(CA_PerformingLocationforOrdLocn.performing_location_code)) return merge(performing_location_code,{operationalStatus:(for operationalStatus in document(TO_ARRAY(performing_location_code.operationalStatus)) return merge(operationalStatus,{coding:document(operationalStatus.coding)}))},{specialty:(for specialty in document(TO_ARRAY(performing_location_code.specialty)) return merge(specialty,{coding:document(specialty.coding)}))}) ) })"
46598
46680
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.165",
3
+ "version": "0.1.167",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",