primary_care_admin_binder 0.1.181 → 0.1.183

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 +174 -293
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8937,7 +8937,8 @@ var query_ids = {
8937
8937
  "holidaySinglereadqdm": "d7f170d0-f1f0-4f92-bec6-2171f5bbf358",
8938
8938
  "holidayEntityreadqdm": "80ccd827-16da-42f5-ac4d-e94b25834229",
8939
8939
  "holidaySinglereadSelectedqdm": "184fb879-244f-495e-a1dd-31f5eae6faf7",
8940
- "holiday_qdm": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f"
8940
+ "holiday_qdm": "e8a3d9b8-2503-47e2-9b02-b6abeebef45f",
8941
+ "diagnosis_status_update": "1a55da48-c204-4f45-b7a3-eceeea01c5e3"
8941
8942
  };
8942
8943
 
8943
8944
  var codingMasterTypes = ["ALTERNATEIDTYPE", "RELATIONSHIP", "NAMEPREFIX", "NAMESUFFIX", "GENDER", "USE", "PRACTTYPE", "LANGUAGE", "SPECIALTY", "ORGTYPE", "CONTACTSYSTEM", "PRIORITY", "ADDRESSTYPE", "PRACTROLE", "POSITION", "EMPSTATUS", "MARITALSTATUS"];
@@ -12691,10 +12692,15 @@ var queries$n = {
12691
12692
  }, doc)];
12692
12693
  },
12693
12694
  locationtree: function locationtree() {
12695
+ var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
12696
+ var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 50;
12694
12697
  return {
12695
12698
  appcode: dbName,
12696
12699
  requestid: "24f4da82-c4ae-40a4-b894-f7cf9dd398d1",
12697
- filter: {}
12700
+ filter: {
12701
+ offset: offset,
12702
+ limit: limit
12703
+ }
12698
12704
  };
12699
12705
  }
12700
12706
  };
@@ -13042,24 +13048,32 @@ var LOCATION_MASTER_INSERT = createAsyncThunk("locationApiSlice/locationinsert",
13042
13048
  }, _callee3, null, [[1, 3]]);
13043
13049
  })));
13044
13050
  var LOCATION_TREE_READ = createAsyncThunk("locationApiSlice/locationtree", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
13045
- var _ref8,
13051
+ var payload,
13052
+ _ref8,
13046
13053
  rejectWithValue,
13054
+ _payload$offset,
13055
+ offset,
13056
+ _payload$limit,
13057
+ limit,
13047
13058
  data,
13048
13059
  _args4 = arguments,
13049
13060
  _t4;
13050
13061
  return _regenerator().w(function (_context4) {
13051
13062
  while (1) switch (_context4.p = _context4.n) {
13052
13063
  case 0:
13064
+ payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
13053
13065
  _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
13054
13066
  _context4.p = 1;
13067
+ _payload$offset = payload.offset, offset = _payload$offset === void 0 ? 0 : _payload$offset, _payload$limit = payload.limit, limit = _payload$limit === void 0 ? 50 : _payload$limit;
13055
13068
  _context4.n = 2;
13056
13069
  return fetchData({
13057
- body: JSON.stringify(queries$n.locationtree())
13070
+ body: JSON.stringify(queries$n.locationtree(offset, limit))
13058
13071
  }, __baseUrl__$1);
13059
13072
  case 2:
13060
13073
  data = _context4.v;
13061
13074
  return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
13062
- data: data
13075
+ data: data,
13076
+ offset: offset
13063
13077
  }));
13064
13078
  case 3:
13065
13079
  _context4.p = 3;
@@ -13099,7 +13113,28 @@ var locationSlice = createSlice({
13099
13113
  builder.addCase(LOCATION_TREE_READ.fulfilled, function (state, action) {
13100
13114
  state.location_tree.loading = false;
13101
13115
  state.location_tree.error = false;
13102
- state.location_tree = action.payload;
13116
+ var isLoadMore = action.payload.offset > 0;
13117
+ if (isLoadMore) {
13118
+ var currentData = state.location_tree.data || [];
13119
+ var newData = action.payload.data || [];
13120
+ var mergedData = _toConsumableArray(currentData);
13121
+ newData.forEach(function (newOrgObj) {
13122
+ var orgName = Object.keys(newOrgObj)[0];
13123
+ var existingOrgIndex = mergedData.findIndex(function (org) {
13124
+ return Object.keys(org)[0] === orgName;
13125
+ });
13126
+ if (existingOrgIndex !== -1) {
13127
+ mergedData[existingOrgIndex][orgName] = [].concat(_toConsumableArray(mergedData[existingOrgIndex][orgName]), _toConsumableArray(newOrgObj[orgName]));
13128
+ } else {
13129
+ mergedData.push(newOrgObj);
13130
+ }
13131
+ });
13132
+ state.location_tree = _objectSpread2(_objectSpread2({}, action.payload), {}, {
13133
+ data: mergedData
13134
+ });
13135
+ } else {
13136
+ state.location_tree = action.payload;
13137
+ }
13103
13138
  });
13104
13139
  builder.addCase(LOCATION_TREE_READ.pending, function (state) {
13105
13140
  state.location_tree.loading = true;
@@ -22462,38 +22497,6 @@ var resourceByAppointmentTypes = {
22462
22497
  var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
22463
22498
 
22464
22499
  var queries$h = {
22465
- // drug_category_read: (page, perPage, search) => {
22466
- // return {
22467
- // appcode: dbName,
22468
- // entity: "DrugCategory",
22469
- // filter: `(LIKE(DrugCategory.drugcategory,'%${search}%',true) || LIKE(DrugCategory.shortdesc,'%${search}%',true) || LIKE(DrugCategory.longdesc,'%${search}%',true)) && DrugCategory.activestatus == true`,
22470
- // limit: { offset: page, count: perPage },
22471
- // return_fields:
22472
- // `MERGE(DrugCategory, { TotalCount:count( FOR drgcat IN DrugCategory FILTER ( LIKe(drgcat.drugcategory,'%${search}%',true) || LIKE(drgcat.shortdesc,'%${search}%',true) || LIKE(drgcat.longdesc,'%${search}%',true)) && drgcat.activestatus == true return drgcat._id ) })`,
22473
- // };
22474
- // },
22475
- // drug_type_read: (page, perPage, search) => {
22476
- // return {
22477
- // appcode: dbName,
22478
- // entity: "DrugType",
22479
- // filter: `(LIKE(DrugType.drugtype,'%${search}%',true) || LIKE(DrugType.shortdesc,'%${search}%',true) || LIKE(DrugType.longdesc,'%${search}%',true)) && DrugType.activestatus == true`,
22480
- // limit: { offset: page, count: perPage },
22481
- // sort: "DrugType.id",
22482
- // return_fields:
22483
- // `MERGE(DrugType, { TotalCount:count( FOR dtype IN DrugType FILTER ( LIKe(dtype.drugtype,'%${search}%',true) || LIKE(dtype.shortdesc,'%${search}%',true) || LIKE(dtype.longdesc,'%${search}%',true)) && dtype.activestatus == true return dtype._id ) })`,
22484
- // };
22485
- // },
22486
- // drug_dosage: (page, perPage,search) => {
22487
- // return {
22488
- // appcode: dbName,
22489
- // entity: "DosageForm",
22490
- // sort: "DosageForm.dosageform",
22491
- // filter: `(LIKE(DosageForm.dosageform,'%${search}%',true) || LIKE(DosageForm.UOM,'%${search}%',true) || LIKE(DosageForm.longdesc,'%${search}%',true)) && DosageForm.activestatus == true`,
22492
- // limit: { offset: page, count: perPage },
22493
- // return_fields:
22494
- // `MERGE(DosageForm, { TotalCount:count(FOR dsgform IN DosageForm FILTER ( LIKe(dsgform.dsgform,'%${search}%',true) || LIKE(dsgform.UOM,'%${search}%',true) || LIKE(dsgform.longdesc,'%${search}%',true) ) && dsgform.activestatus == true return dsgform._id ) })`,
22495
- // };
22496
- // },
22497
22500
  drug_category_read: function drug_category_read(page, perPage, search) {
22498
22501
  return {
22499
22502
  appcode: dbName,
@@ -22538,7 +22541,7 @@ var queries$h = {
22538
22541
  }
22539
22542
  return [_objectSpread2(_objectSpread2({
22540
22543
  appcode: dbName,
22541
- entity: "DosageForm",
22544
+ collection: "DosageForm",
22542
22545
  is_metadata: true
22543
22546
  }, filter), {}, {
22544
22547
  metadataId: metaDataId$1,
@@ -22555,7 +22558,7 @@ var queries$h = {
22555
22558
  status_update_drug_dosage: function status_update_drug_dosage(data) {
22556
22559
  return [{
22557
22560
  appcode: dbName,
22558
- entity: "DosageForm",
22561
+ collection: "DosageForm",
22559
22562
  filter: {
22560
22563
  _key: data._key
22561
22564
  },
@@ -22567,16 +22570,6 @@ var queries$h = {
22567
22570
  }
22568
22571
  }];
22569
22572
  },
22570
- // drug_class: (page, perPage, search) => {
22571
- // return {
22572
- // appcode: dbName,
22573
- // entity: "DrugClass",
22574
- // filter: `(LIKE(DrugClass.drugclass,'%${search}%',true) || LIKE(DrugClass.longdesc,'%${search}%',true) || LIKE(DrugClass.shortdesc,'%${search}%',true)) && DrugClass.activestatus == true`,
22575
- // limit: { offset: page, count: perPage },
22576
- // sort: "DrugClass.drugclass",
22577
- // return_fields: `MERGE(DrugClass, { TotalCount:count( FOR dc IN DrugClass FILTER ( LIKE(dc.drugclass,'%${search}%',true) || LIKE(dc.longdesc,'%${search}%',true) || LIKE(dc.shortdesc,'%${search}%',true)) && dc.activestatus == true return dc._id ) })`,
22578
- // };
22579
- // },
22580
22573
  drug_class: function drug_class(page, perPage, search) {
22581
22574
  return {
22582
22575
  appcode: dbName,
@@ -22599,13 +22592,12 @@ var queries$h = {
22599
22592
  }
22600
22593
  return [_objectSpread2(_objectSpread2({
22601
22594
  appcode: dbName,
22602
- entity: "DrugClass",
22595
+ collection: "DrugClass",
22603
22596
  is_metadata: true
22604
22597
  }, filter), {}, {
22605
22598
  metadataId: metaDataId$1,
22606
22599
  metadata_dbname: metaDatadbName$1,
22607
22600
  doc: {
22608
- // "id":0,
22609
22601
  drugclass: data.drug_class ? data.drug_class : "",
22610
22602
  shortdesc: data.short_description ? data.short_description : "",
22611
22603
  longdesc: data.long_description ? data.long_description : "",
@@ -22616,7 +22608,7 @@ var queries$h = {
22616
22608
  status_update_drug_class: function status_update_drug_class(data) {
22617
22609
  return [{
22618
22610
  appcode: dbName,
22619
- entity: "DrugClass",
22611
+ collection: "DrugClass",
22620
22612
  filter: {
22621
22613
  _key: data._key
22622
22614
  },
@@ -22628,16 +22620,6 @@ var queries$h = {
22628
22620
  }
22629
22621
  }];
22630
22622
  },
22631
- // drug_routes: (page, perPage, search) => {
22632
- // return {
22633
- // appcode: dbName,
22634
- // entity: "DrugRoutes",
22635
- // sort: "DrugRoutes.routecode",
22636
- // filter: `(LIKE(DrugRoutes.routecode,'%${search}%',true) || LIKE(DrugRoutes.UOM,'%${search}%',true) || LIKE(DrugRoutes.longdesc,'%${search}%',true)) && DrugRoutes.activestatus == true`,
22637
- // limit: { offset: page, count: perPage },
22638
- // return_fields: `MERGE(DrugRoutes, { TotalCount:count(FOR drgrout IN DrugRoutes FILTER ( LIKe(drgrout.routecode,'%${search}%',true) || LIKE(drgrout.UOM,'%${search}%',true) || LIKE(drgrout.longdesc,'%${search}%',true) ) && drgrout.activestatus == true return drgrout._id ) })`,
22639
- // };
22640
- // },
22641
22623
  drug_routes: function drug_routes(page, perPage, search) {
22642
22624
  return {
22643
22625
  appcode: dbName,
@@ -22652,7 +22634,7 @@ var queries$h = {
22652
22634
  status_update_drug_routes: function status_update_drug_routes(data) {
22653
22635
  return [{
22654
22636
  appcode: dbName,
22655
- entity: "DrugRoutes",
22637
+ collection: "DrugRoutes",
22656
22638
  filter: {
22657
22639
  _key: data._key
22658
22640
  },
@@ -22675,13 +22657,12 @@ var queries$h = {
22675
22657
  }
22676
22658
  return [_objectSpread2(_objectSpread2({
22677
22659
  appcode: dbName,
22678
- entity: "DrugRoutes",
22660
+ collection: "DrugRoutes",
22679
22661
  is_metadata: true
22680
22662
  }, filter), {}, {
22681
22663
  metadataId: metaDataId$1,
22682
22664
  metadata_dbname: metaDatadbName$1,
22683
22665
  doc: {
22684
- // "id":0,
22685
22666
  routecode: data.drug_routes ? data.drug_routes : "",
22686
22667
  routeadverb: data.route_adverb ? data.route_adverb : "",
22687
22668
  shortdesc: data.short_description ? data.short_description : "",
@@ -22987,9 +22968,7 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
22987
22968
  _context.n = 2;
22988
22969
  return fetchData({
22989
22970
  body: JSON.stringify(queries$h.drug_class(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 : ''))
22990
- },
22991
- // __readDocumentUrl__
22992
- __baseUrl__$1);
22971
+ }, __baseUrl__$1);
22993
22972
  case 2:
22994
22973
  data = _context.v;
22995
22974
  arry = [];
@@ -24423,7 +24402,7 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24423
24402
  }
24424
24403
  return [_objectSpread2(_objectSpread2({
24425
24404
  appcode: dbName,
24426
- entity: "DrugMaster",
24405
+ collection: "DrugMaster",
24427
24406
  is_metadata: true,
24428
24407
  metadataId: metaDataId$1,
24429
24408
  metadata_dbname: metaDatadbName$1
@@ -24433,35 +24412,22 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24433
24412
  DrugCode: data === null || data === void 0 ? void 0 : data.DrugCode,
24434
24413
  ShortDesc: data === null || data === void 0 ? void 0 : data.ShortDesc,
24435
24414
  LongDesc: data === null || data === void 0 ? void 0 : data.LongDesc,
24436
- // Charge: "boolean",
24437
24415
  DrugClass: data === null || data === void 0 ? void 0 : data.DrugClass,
24438
24416
  DrugType: data === null || data === void 0 ? void 0 : data.DrugType,
24439
24417
  DrugCategory: data === null || data === void 0 ? void 0 : data.DrugCategory,
24440
24418
  StrengthValuesPossible: data === null || data === void 0 ? void 0 : data.StrengthValuesPossible,
24441
- // TotalVolContent: "string",
24442
- // TotalVolContentUoM: "string",
24443
24419
  FormCode: data === null || data === void 0 ? void 0 : data.FormCode,
24444
24420
  DefaultRouteCode: data === null || data === void 0 ? void 0 : data.DefaultRouteCode,
24445
24421
  RoutesAllowed: data === null || data === void 0 ? void 0 : data.RoutesAllowed,
24446
24422
  DispenseviaprescriptionOnly: data === null || data === void 0 ? void 0 : data.DispenseviaprescriptionOnly,
24447
- // IVFluid: "boolean",
24448
- // DfltFluidCode: "string",
24449
- // DispenseAlternateDrug: "boolean",
24450
- // AlternateDrugs: "array",
24451
- // SpecialInstructionText: "array",
24452
24423
  CounsellingRequired: data === null || data === void 0 ? void 0 : data.CounsellingRequired,
24453
- // DrugImageID: "number",
24454
24424
  ApplicableForCompounding: data === null || data === void 0 ? void 0 : data.ApplicableForCompounding,
24455
24425
  Additive: data === null || data === void 0 ? void 0 : data.Additive,
24456
- // SourceOfDrugOrderCatalog: "string",
24457
24426
  DrugGenericId: data === null || data === void 0 ? void 0 : data.DrugGenericId,
24458
- // GenericIngrListId: "string",
24459
24427
  status: data === null || data === void 0 ? void 0 : data.status,
24460
- // statusactive: data?.status,
24461
24428
  DrugDispRules: data === null || data === void 0 ? void 0 : data.DrugDispRules,
24462
24429
  FrequencyRules: data === null || data === void 0 ? void 0 : data.FrequencyRules,
24463
24430
  mappedItems: data === null || data === void 0 ? void 0 : data.mappedItems,
24464
- // drugroutegenid: "string",
24465
24431
  codeStandard: data === null || data === void 0 ? void 0 : data.codeStandard,
24466
24432
  IsDispensible: data === null || data === void 0 ? void 0 : data.IsDispensible,
24467
24433
  entityLevelStatus: data === null || data === void 0 ? void 0 : data.entityLevelStatus,
@@ -24472,11 +24438,7 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24472
24438
  directiontaglocal: data === null || data === void 0 ? void 0 : data.directiontaglocal,
24473
24439
  drugSynonyms: data === null || data === void 0 ? void 0 : data.drugSynonyms,
24474
24440
  photo: data === null || data === void 0 ? void 0 : data.photo,
24475
- // baseStkUoM: "string",
24476
- // avgRate: "number",
24477
24441
  compondCompDTls: data === null || data === void 0 ? void 0 : data.compondCompDTls,
24478
- // privilegeID: "array",
24479
- // extDrugGenericId: "string",
24480
24442
  returnApplicable: data === null || data === void 0 ? void 0 : data.returnApplicable,
24481
24443
  returnPeriodVal: data === null || data === void 0 ? void 0 : data.returnPeriodVal,
24482
24444
  returnPeriodUOM: data === null || data === void 0 ? void 0 : data.returnPeriodUOM,
@@ -24497,7 +24459,7 @@ var GenerateAlertRestrictionUpsert$1 = function GenerateAlertRestrictionUpsert(d
24497
24459
  }
24498
24460
  return [_objectSpread2(_objectSpread2({
24499
24461
  appcode: dbName,
24500
- entity: "CA_OrderCatalogPrivilegeLevel",
24462
+ collection: "CA_OrderCatalogPrivilegeLevel",
24501
24463
  is_metadata: true,
24502
24464
  metadataId: metaDataId$1,
24503
24465
  metadata_dbname: metaDatadbName$1
@@ -24509,13 +24471,6 @@ var GenerateAlertRestrictionUpsert$1 = function GenerateAlertRestrictionUpsert(d
24509
24471
  order_catalog_criteria: data === null || data === void 0 ? void 0 : data.order_catalog_criteria,
24510
24472
  patient_criteria: data === null || data === void 0 ? void 0 : data.patient_criteria,
24511
24473
  pract_criteria: data === null || data === void 0 ? void 0 : data.pract_criteria,
24512
- // appr_leveles: [
24513
- // {
24514
- // appr_level: "string",
24515
- // appr_level_description: "string",
24516
- // approval_authority_criteria: "array",
24517
- // },
24518
- // ],
24519
24474
  rule_type: data === null || data === void 0 ? void 0 : data.rule_type,
24520
24475
  privilege_type: data === null || data === void 0 ? void 0 : data.privilege_type,
24521
24476
  status: data === null || data === void 0 ? void 0 : data.status,
@@ -25680,18 +25635,7 @@ var drugMasterActions = {
25680
25635
  };
25681
25636
  var drugMasterSlice$1 = drugMasterSlice.reducer;
25682
25637
 
25683
- // import { dbName } from "../../qdm_query_ids";
25684
25638
  var queries$f = {
25685
- // fullread: (page, perPage, search) => {
25686
- // return {
25687
- // appcode: dbName,
25688
- // entity: "DrugRouteDirection",
25689
- // sort: "DrugRouteDirection.RouteDirectionCode",
25690
- // filter: `(LIKE(DrugRouteDirection.RouteDirectionCode,'%${search}%',true) || LIKE(DrugRouteDirection.UOM,'%${search}%',true) || LIKE(DrugRouteDirection.longdesc,'%${search}%',true)) && DrugRouteDirection.activestatus == true`,
25691
- // limit: { offset: page, count: perPage },
25692
- // return_fields: `merge(DrugRouteDirection,{TotalCount:count(FOR drgroutdir IN DrugRouteDirection FILTER ( LIKe(drgroutdir.RouteDirectionCode,'%${search}%',true) || LIKE(drgroutdir.UOM,'%${search}%',true) || LIKE(drgroutdir.longdesc,'%${search}%',true) ) && drgroutdir.activestatus == true return drgroutdir ),DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})`,
25693
- // };
25694
- // },
25695
25639
  fullread: function fullread(page, perPage, search) {
25696
25640
  return {
25697
25641
  appcode: dbName,
@@ -25703,15 +25647,6 @@ var queries$f = {
25703
25647
  }
25704
25648
  };
25705
25649
  },
25706
- // DosageFormDropDown: () => {
25707
- // return {
25708
- // appcode: dbName,
25709
- // entity: "DosageForm",
25710
- // sort: "DosageForm.longdesc",
25711
- // filter: "DosageForm.activestatus == true && DosageForm.status == true",
25712
- // return_fields: "DosageForm",
25713
- // };
25714
- // },
25715
25650
  DosageFormDropDown: function DosageFormDropDown() {
25716
25651
  return {
25717
25652
  appcode: dbName,
@@ -25722,15 +25657,6 @@ var queries$f = {
25722
25657
  }
25723
25658
  };
25724
25659
  },
25725
- // RoutesDirectionActionDropDown: () => {
25726
- // return {
25727
- // appcode: dbName,
25728
- // entity: "CodingMaster",
25729
- // filter: `CodingMaster.Type== 'ROUTEDIRECTIONACTION' && CodingMaster.activestatus==true && CodingMaster.status==true`,
25730
- // return_fields:
25731
- // "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')",
25732
- // };
25733
- // },
25734
25660
  RoutesDirectionActionDropDown: function RoutesDirectionActionDropDown() {
25735
25661
  return {
25736
25662
  appcode: dbName,
@@ -25745,7 +25671,7 @@ var queries$f = {
25745
25671
  Insert: function Insert(data) {
25746
25672
  return [{
25747
25673
  appcode: dbName,
25748
- entity: "DrugRouteDirection",
25674
+ collection: "DrugRouteDirection",
25749
25675
  is_metadata: true,
25750
25676
  metadataId: metaDataId$1,
25751
25677
  metadata_dbname: metaDatadbName$1,
@@ -25763,7 +25689,7 @@ var queries$f = {
25763
25689
  StatusUpdate: function StatusUpdate(key, getstatus) {
25764
25690
  return [{
25765
25691
  appcode: dbName,
25766
- entity: "DrugRouteDirection",
25692
+ collection: "DrugRouteDirection",
25767
25693
  filter: {
25768
25694
  _key: key
25769
25695
  },
@@ -25778,7 +25704,7 @@ var queries$f = {
25778
25704
  UpdateORModify: function UpdateORModify(data) {
25779
25705
  return [{
25780
25706
  appcode: dbName,
25781
- entity: "DrugRouteDirection",
25707
+ collection: "DrugRouteDirection",
25782
25708
  filter: {
25783
25709
  _key: data.key
25784
25710
  },
@@ -25816,9 +25742,7 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
25816
25742
  _context.n = 2;
25817
25743
  return fetchData({
25818
25744
  body: JSON.stringify(queriesjson)
25819
- },
25820
- // __readDocumentUrl__
25821
- __baseUrl__$1);
25745
+ }, __baseUrl__$1);
25822
25746
  case 2:
25823
25747
  data = _context.v;
25824
25748
  arry = [];
@@ -25828,8 +25752,6 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
25828
25752
  arry.push({
25829
25753
  total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
25830
25754
  code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
25831
- // action_id: val?.Action?._id,
25832
- // action: val?.Action?.display,
25833
25755
  action: val === null || val === void 0 ? void 0 : val.Action,
25834
25756
  longDesc: val === null || val === void 0 ? void 0 : val.LongDesc,
25835
25757
  shortDesc: val === null || val === void 0 ? void 0 : val.ShortDesc,
@@ -25869,9 +25791,7 @@ var DRUG_ROUTES_DIRECTION_MASTER = createAsyncThunk("drugRoutesSlice/drug_routes
25869
25791
  _context2.n = 2;
25870
25792
  return fetchData({
25871
25793
  body: JSON.stringify(queriesjson)
25872
- },
25873
- // __readDocumentUrl__
25874
- __baseUrl__$1);
25794
+ }, __baseUrl__$1);
25875
25795
  case 2:
25876
25796
  data = _context2.v;
25877
25797
  arry = [];
@@ -25912,9 +25832,7 @@ var DRUG_ROUTES_DIRECTION_ACTION_MASTER = createAsyncThunk("drugRoutesSlice/drug
25912
25832
  _context3.n = 2;
25913
25833
  return fetchData({
25914
25834
  body: JSON.stringify(queriesjson)
25915
- },
25916
- // __readDocumentUrl__
25917
- __baseUrl__$1);
25835
+ }, __baseUrl__$1);
25918
25836
  case 2:
25919
25837
  data = _context3.v;
25920
25838
  arry = [];
@@ -25944,7 +25862,7 @@ var DRUG_ROUTES_DIRECTION_STATUS = createAsyncThunk("drugRoutesSlice/drug_routes
25944
25862
  rejectWithValue,
25945
25863
  data,
25946
25864
  queriesjson,
25947
- arry,
25865
+ Getdata,
25948
25866
  _args4 = arguments,
25949
25867
  _t4;
25950
25868
  return _regenerator().w(function (_context4) {
@@ -25960,10 +25878,9 @@ var DRUG_ROUTES_DIRECTION_STATUS = createAsyncThunk("drugRoutesSlice/drug_routes
25960
25878
  body: JSON.stringify(queriesjson)
25961
25879
  }, __uspsertUrl__);
25962
25880
  case 2:
25963
- _context4.v;
25964
- arry = [];
25881
+ Getdata = _context4.v;
25965
25882
  return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
25966
- data: arry
25883
+ data: Getdata
25967
25884
  }));
25968
25885
  case 3:
25969
25886
  _context4.p = 3;
@@ -26015,7 +25932,7 @@ var DRUG_ROUTES_DIRECTION_UPDATE = createAsyncThunk("drugRoutesSlice/drug_routes
26015
25932
  rejectWithValue,
26016
25933
  Senddata,
26017
25934
  queriesjson,
26018
- arry,
25935
+ Getdata,
26019
25936
  _args6 = arguments,
26020
25937
  _t6;
26021
25938
  return _regenerator().w(function (_context6) {
@@ -26031,10 +25948,9 @@ var DRUG_ROUTES_DIRECTION_UPDATE = createAsyncThunk("drugRoutesSlice/drug_routes
26031
25948
  body: JSON.stringify(queriesjson)
26032
25949
  }, __uspsertUrl__);
26033
25950
  case 2:
26034
- _context6.v;
26035
- arry = [];
25951
+ Getdata = _context6.v;
26036
25952
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
26037
- data: arry
25953
+ data: Getdata
26038
25954
  }));
26039
25955
  case 3:
26040
25956
  _context6.p = 3;
@@ -27320,14 +27236,14 @@ var ORDER_CATALOG_CODING_MASTERS = createAsyncThunk("orderCatalogApiSlice/order_
27320
27236
  _context5.p = 1;
27321
27237
  payload.type;
27322
27238
  body = {
27323
- "appcode": dbName,
27324
- "filter": {
27325
- "type": payload,
27326
- "tenantid": "",
27327
- "facilityid": "",
27328
- "lang": ""
27239
+ appcode: dbName,
27240
+ filter: {
27241
+ type: payload,
27242
+ tenantid: "",
27243
+ facilityid: "",
27244
+ lang: ""
27329
27245
  },
27330
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27246
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27331
27247
  };
27332
27248
  _context5.n = 2;
27333
27249
  return fetchData({
@@ -27364,8 +27280,8 @@ var ORDER_CATALOG_ATTRCODE = createAsyncThunk("orderCatalogApiSlice/order_catalo
27364
27280
  _context6.p = 1;
27365
27281
  payload.type;
27366
27282
  body = {
27367
- "appcode": dbName,
27368
- "requestid": "def95574-656e-40c7-928e-b544f2b2f801"
27283
+ appcode: dbName,
27284
+ requestid: "def95574-656e-40c7-928e-b544f2b2f801"
27369
27285
  };
27370
27286
  _context6.n = 2;
27371
27287
  return fetchData({
@@ -27418,8 +27334,8 @@ var ORDER_CATALOG_AGEGROUP = createAsyncThunk("orderCatalogApiSlice/order_catalo
27418
27334
  _context7.p = 1;
27419
27335
  payload.type;
27420
27336
  body = {
27421
- "appcode": dbName,
27422
- "requestid": "869e5895-b0e0-4657-ad31-6ed02294f691"
27337
+ appcode: dbName,
27338
+ requestid: "869e5895-b0e0-4657-ad31-6ed02294f691"
27423
27339
  };
27424
27340
  _context7.n = 2;
27425
27341
  return fetchData({
@@ -27463,8 +27379,8 @@ var ORDER_CATALOG_ORDERCATEGORY = createAsyncThunk("orderCatalogApiSlice/order_c
27463
27379
  _context8.p = 1;
27464
27380
  payload.type;
27465
27381
  body = {
27466
- "appcode": dbName,
27467
- "requestid": "df53fb0d-dd4c-4e65-9067-f5917563625b"
27382
+ appcode: dbName,
27383
+ requestid: "df53fb0d-dd4c-4e65-9067-f5917563625b"
27468
27384
  };
27469
27385
  _context8.n = 2;
27470
27386
  return fetchData({
@@ -27499,16 +27415,15 @@ var ORDER_CATALOG_GRPORIND = createAsyncThunk("orderCatalogApiSlice/order_catalo
27499
27415
  case 0:
27500
27416
  rejectWithValue = _ref12.rejectWithValue;
27501
27417
  _context9.p = 1;
27502
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
27503
27418
  body = {
27504
- "appcode": dbName,
27505
- "filter": {
27506
- "type": ["GRPORIND"],
27507
- "tenantid": "",
27508
- "facilityid": "",
27509
- "lang": ""
27419
+ appcode: dbName,
27420
+ filter: {
27421
+ type: ["GRPORIND"],
27422
+ tenantid: "",
27423
+ facilityid: "",
27424
+ lang: ""
27510
27425
  },
27511
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27426
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27512
27427
  };
27513
27428
  _context9.n = 2;
27514
27429
  return fetchData({
@@ -27548,16 +27463,15 @@ var ORDER_CATALOG_SERVICEITEM = createAsyncThunk("orderCatalogApiSlice/order_cat
27548
27463
  case 0:
27549
27464
  rejectWithValue = _ref14.rejectWithValue;
27550
27465
  _context0.p = 1;
27551
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
27552
27466
  body = {
27553
- "appcode": dbName,
27554
- "filter": {
27555
- "type": ["ORDERITEMSERVICE"],
27556
- "tenantid": "",
27557
- "facilityid": "",
27558
- "lang": ""
27467
+ appcode: dbName,
27468
+ filter: {
27469
+ type: ["ORDERITEMSERVICE"],
27470
+ tenantid: "",
27471
+ facilityid: "",
27472
+ lang: ""
27559
27473
  },
27560
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27474
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27561
27475
  };
27562
27476
  _context0.n = 2;
27563
27477
  return fetchData({
@@ -27606,13 +27520,7 @@ var ENTITY_NAME_DATA = createAsyncThunk("orderCatalogApiSlice/entity_name_data",
27606
27520
  _ref17 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
27607
27521
  _context1.p = 1;
27608
27522
  type = payload.type;
27609
- queriesjson = Query.entityTypeName(type); // let payloadData= {
27610
- // "appcode": dbName,
27611
- // "filter": {
27612
- // "Orgname":type
27613
- // },
27614
- // "requestid": "b0931347-d3eb-4627-b799-cc701cb8f6c9"
27615
- // }
27523
+ queriesjson = Query.entityTypeName(type);
27616
27524
  _context1.n = 2;
27617
27525
  return fetchData({
27618
27526
  body: JSON.stringify(queriesjson)
@@ -27814,11 +27722,11 @@ var RC_CHARGERATE_SEARCH = createAsyncThunk("orderCatalogApiSlice/rcchargeRateSe
27814
27722
  _context14.p = 1;
27815
27723
  search = payload.search;
27816
27724
  body = {
27817
- "appcode": dbName,
27818
- "filter": {
27819
- "rcChargecode": search
27725
+ appcode: dbName,
27726
+ filter: {
27727
+ rcChargecode: search
27820
27728
  },
27821
- "requestid": query_ids["rcChargeRateSearch"]
27729
+ requestid: query_ids["rcChargeRateSearch"]
27822
27730
  };
27823
27731
  _context14.n = 2;
27824
27732
  return fetchData({
@@ -27854,11 +27762,7 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
27854
27762
  payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
27855
27763
  _ref29 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
27856
27764
  _context15.p = 1;
27857
- list = payload.list, rcchargeCode = payload.rcchargeCode; // let SaveChargeCode =generateSaveChargeCode(list)
27858
- // const SaveChargeCodedata = fetchData(
27859
- // { body: JSON.stringify(SaveChargeCode) },
27860
- // __uspsertUrl__
27861
- // );
27765
+ list = payload.list, rcchargeCode = payload.rcchargeCode;
27862
27766
  body = generateSaveJSON(list, rcchargeCode);
27863
27767
  _context15.n = 2;
27864
27768
  return fetchData({
@@ -27895,9 +27799,6 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
27895
27799
  payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
27896
27800
  _ref31 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref31.rejectWithValue, _ref31.getState;
27897
27801
  _context16.p = 1;
27898
- // const { encounter_id } = payload;
27899
- // let state = getState();
27900
- // let ccState = state.DiagnosisMasterSlice;
27901
27802
  page = payload.page, perPage = payload.perPage, search = payload.search;
27902
27803
  _context16.n = 2;
27903
27804
  return fetchData({
@@ -37402,19 +37303,7 @@ var orderMasters = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
37402
37303
 
37403
37304
  var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasureCodeActions), vitalsApplicableActions), vitalsMasterSectionActions);
37404
37305
 
37405
- // import { dbName } from "../../qdm_query_ids";
37406
37306
  var queries$5 = {
37407
- // fullread: (page, perPage,search) => {
37408
- // return {
37409
- // appcode: dbName,
37410
- // entity: "DrugUOM",
37411
- // filter: `(LIKE(document(DrugUOM.UOMType).display,'%${search}%',true) || LIKE(DrugUOM.UOM,'%${search}%',true) || LIKE(DrugUOM.longdesc,'%${search}%',true) || LIKE(DrugUOM.shortdesc,'%${search}%',true) ) && DrugUOM.activestatus == true`,
37412
- // limit: { offset: page, count: perPage },
37413
- // sort: "DrugUOM.createddate",
37414
- // return_fields:
37415
- // `merge(DrugUOM,{TotalCount:count( FOR duom IN DrugUOM FILTER( LIKe(document(duom.UOMType).display,'%${search}%',true) || LIKE(duom.UOM,'%${search}%',true) || LIKE(duom.longdesc,'%${search}%',true) || LIKE(duom.shortdesc,'%${search}%',true) ) && duom.activestatus == true return duom._id ), UOMType:(for i in CodingMaster filter i._id == DrugUOM.UOMType return merge(i,{coding:document(i.coding)}))})`,
37416
- // };
37417
- // },
37418
37307
  fullread: function fullread(page, perPage, search) {
37419
37308
  return {
37420
37309
  appcode: dbName,
@@ -37426,17 +37315,6 @@ var queries$5 = {
37426
37315
  }
37427
37316
  };
37428
37317
  },
37429
- // DRUG_UOM_TYPE: () => {
37430
- // return {
37431
- // appcode: dbName,
37432
- // entity: "CodeableConceptMaster",
37433
- // sort: "document(CodeableConceptMaster.coding[0]).display",
37434
- // filter:
37435
- // "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'DRUGUOMTYPE' ",
37436
- // return_fields:
37437
- // "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})",
37438
- // };
37439
- // },
37440
37318
  DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
37441
37319
  return {
37442
37320
  appcode: dbName,
@@ -37448,26 +37326,6 @@ var queries$5 = {
37448
37326
  }
37449
37327
  };
37450
37328
  },
37451
- // To_UOM_code: (id, type) => {
37452
-
37453
- // return {
37454
- // appcode: dbName,
37455
- // entity: "DrugUOM",
37456
- // filter: `DrugUOM.activestatus == true && DrugUOM.UOMType == '${id}' && LOWER(DrugUOM.UOM) !=LOWER('${type}') && DrugUOM.status==true`,
37457
- // return_fields:
37458
- // "{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}",
37459
- // };
37460
- // },
37461
- // To_UOM_Read_line: (key) => {
37462
- // return {
37463
- // appcode: dbName,
37464
- // entity: "DrugUOM",
37465
- // filter: `DrugUOM.activestatus == true && DrugUOM._key == '${key}'`,
37466
- // return_fields:
37467
- // "merge(DrugUOM,{UOMType:document(DrugUOM.UOMType), ConversionMap:(for j in TO_ARRAY(DrugUOM.ConversionMap) return merge(j,{ConversionMap:document(j.ToUOMCode)}))})",
37468
- // };
37469
- // },
37470
-
37471
37329
  To_UOM_code: function To_UOM_code(id, type) {
37472
37330
  return {
37473
37331
  appcode: dbName,
@@ -37490,7 +37348,7 @@ var queries$5 = {
37490
37348
  To_UOM_UPDATE_STATUS: function To_UOM_UPDATE_STATUS(status, key) {
37491
37349
  return [{
37492
37350
  appcode: dbName,
37493
- entity: "DrugUOM",
37351
+ collection: "DrugUOM",
37494
37352
  filter: {
37495
37353
  _key: "".concat(key)
37496
37354
  },
@@ -37524,7 +37382,7 @@ var generateJson$5 = {
37524
37382
  });
37525
37383
  return [_objectSpread2(_objectSpread2({
37526
37384
  appcode: dbName,
37527
- entity: "DrugUOM",
37385
+ collection: "DrugUOM",
37528
37386
  is_metadata: true
37529
37387
  }, filter), {}, {
37530
37388
  metadataId: metaDataId$1,
@@ -37612,9 +37470,7 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
37612
37470
  _context.n = 2;
37613
37471
  return fetchData({
37614
37472
  body: JSON.stringify(queriesjson)
37615
- },
37616
- // __readDocumentUrl__
37617
- __baseUrl__$1);
37473
+ }, __baseUrl__$1);
37618
37474
  case 2:
37619
37475
  data = _context.v;
37620
37476
  arry = [];
@@ -37661,9 +37517,7 @@ var DRUG_UOM_TYPE_DROP_DOWN = createAsyncThunk("drugRoutesSlice/drug_uom_type_ma
37661
37517
  _context2.n = 2;
37662
37518
  return fetchData({
37663
37519
  body: JSON.stringify(queriesjson)
37664
- },
37665
- // __readDocumentUrl__
37666
- __baseUrl__$1);
37520
+ }, __baseUrl__$1);
37667
37521
  case 2:
37668
37522
  data = _context2.v;
37669
37523
  arry = [];
@@ -37710,18 +37564,13 @@ var TO_UDM_CODE_DROPDOWN = createAsyncThunk("drugRoutesSlice/drug_uom_code_maste
37710
37564
  _context3.n = 2;
37711
37565
  return fetchData({
37712
37566
  body: JSON.stringify(queriesjson)
37713
- },
37714
- // __readDocumentUrl__,
37715
- __baseUrl__$1);
37567
+ }, __baseUrl__$1);
37716
37568
  case 2:
37717
37569
  data = _context3.v;
37718
37570
  arry = [];
37719
37571
  data.map(function (val) {
37720
- // if (val?._key && val?.activestatus) {
37721
37572
  if (val !== null && val !== void 0 && val._id && val !== null && val !== void 0 && val.UOM) {
37722
37573
  arry.push({
37723
- // label: val?.coding[0]?.display,
37724
- // value: val?.coding[0]?._id,
37725
37574
  label: val === null || val === void 0 ? void 0 : val.UOM,
37726
37575
  value: val === null || val === void 0 ? void 0 : val._id
37727
37576
  });
@@ -37833,13 +37682,10 @@ var DRUG_UOM_LINE_READ = createAsyncThunk("drugRoutesSlice/drug_uom_read_line",
37833
37682
  _context6.n = 2;
37834
37683
  return fetchData({
37835
37684
  body: JSON.stringify(queriesjson)
37836
- },
37837
- // __readDocumentUrl__,
37838
- __baseUrl__$1);
37685
+ }, __baseUrl__$1);
37839
37686
  case 2:
37840
37687
  getdata = _context6.v;
37841
37688
  getreadJson = generateReadJson$1.read_json(getdata);
37842
- console.log("durg uom read getreadJson", getreadJson);
37843
37689
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
37844
37690
  data: getreadJson
37845
37691
  }));
@@ -41838,12 +41684,26 @@ var query$2 = {
41838
41684
  },
41839
41685
  metadataId: metaDataId$1,
41840
41686
  metadata_dbname: metaDatadbName$1,
41841
- doc: {
41842
- effTo: (_data$effTo = data === null || data === void 0 ? void 0 : data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null,
41843
- islastlevel: (_data$islastlevel = data === null || data === void 0 ? void 0 : data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
41844
- }
41687
+ doc: _objectSpread2(_objectSpread2(_objectSpread2({}, (data === null || data === void 0 ? void 0 : data.hasOwnProperty("effTo")) && {
41688
+ effTo: (_data$effTo = data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null
41689
+ }), (data === null || data === void 0 ? void 0 : data.hasOwnProperty("islastlevel")) && {
41690
+ islastlevel: (_data$islastlevel = data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
41691
+ }), (data === null || data === void 0 ? void 0 : data.hasOwnProperty("status")) && {
41692
+ status: data.status
41693
+ })
41845
41694
  }];
41846
41695
  },
41696
+ updateDiagnosisStatus: function updateDiagnosisStatus(data) {
41697
+ var _data$status;
41698
+ return {
41699
+ appcode: "".concat(dbName),
41700
+ requestid: query_ids.diagnosis_status_update,
41701
+ filter: {
41702
+ keys: (data === null || data === void 0 ? void 0 : data.keys) || [],
41703
+ status: (_data$status = data === null || data === void 0 ? void 0 : data.status) !== null && _data$status !== void 0 ? _data$status : false
41704
+ }
41705
+ };
41706
+ },
41847
41707
  searchList: function searchList(text) {
41848
41708
  var search = text ? text.replace(/\./g, "_") : "";
41849
41709
  return {
@@ -41999,12 +41859,46 @@ var SEARCH_LIST = createAsyncThunk("diagnosisMasterApiSlice/diagnosis_master_lis
41999
41859
  }
42000
41860
  }, _callee4, null, [[1, 3]]);
42001
41861
  })));
41862
+
41863
+ // UPDATE_DIAGNOSIS_STATUS
41864
+ var UPDATE_DIAGNOSIS_STATUS = createAsyncThunk("diagnosisMasterApiSlice/update_diagnosis_status", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
41865
+ var payload,
41866
+ _ref0,
41867
+ rejectWithValue,
41868
+ data,
41869
+ _args5 = arguments,
41870
+ _t5;
41871
+ return _regenerator().w(function (_context5) {
41872
+ while (1) switch (_context5.p = _context5.n) {
41873
+ case 0:
41874
+ payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
41875
+ _ref0 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref0.rejectWithValue;
41876
+ _context5.p = 1;
41877
+ _context5.n = 2;
41878
+ return fetchData({
41879
+ body: JSON.stringify(query$2.updateDiagnosisStatus(payload))
41880
+ }, __baseUrl__$1);
41881
+ case 2:
41882
+ data = _context5.v;
41883
+ return _context5.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
41884
+ data: data !== null && data !== void 0 ? data : null
41885
+ }));
41886
+ case 3:
41887
+ _context5.p = 3;
41888
+ _t5 = _context5.v;
41889
+ return _context5.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
41890
+ message: _t5.message
41891
+ })));
41892
+ }
41893
+ }, _callee5, null, [[1, 3]]);
41894
+ })));
42002
41895
  var diagnosisMasterSlice = createSlice({
42003
41896
  name: "diagnosisMasterApiSlice",
42004
41897
  initialState: {
42005
41898
  diagnosis_master_list: _objectSpread2({}, defaultState.List),
42006
41899
  diagnosis_master_list_child: _objectSpread2({}, defaultState.List),
42007
41900
  update_diagnosis_list: _objectSpread2({}, defaultState.List),
41901
+ update_diagnosis_status: _objectSpread2({}, defaultState.List),
42008
41902
  diagnosis_master_list_search: _objectSpread2({}, defaultState.List)
42009
41903
  },
42010
41904
  extraReducers: (_extraReducers$8 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$8, GET_DIAGNOSIS_LIST.fulfilled, function (state, action) {
@@ -42025,9 +41919,15 @@ var diagnosisMasterSlice = createSlice({
42025
41919
  state.update_diagnosis_list.loading = true, state.update_diagnosis_list.error = false, state.update_diagnosis_list.loading = true;
42026
41920
  }), UPDATE_DIAGNOSIS_LIST.rejected, function (state, action) {
42027
41921
  state.update_diagnosis_list.loading = false, state.update_diagnosis_list.error = true, state.update_diagnosis_list = action.payload;
41922
+ }), UPDATE_DIAGNOSIS_STATUS.fulfilled, function (state, action) {
41923
+ state.update_diagnosis_status.loading = false, state.update_diagnosis_status.error = false, state.update_diagnosis_status = action.payload;
41924
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$8, UPDATE_DIAGNOSIS_STATUS.pending, function (state, action) {
41925
+ state.update_diagnosis_status.loading = true, state.update_diagnosis_status.error = false, state.update_diagnosis_status.loading = true;
41926
+ }), UPDATE_DIAGNOSIS_STATUS.rejected, function (state, action) {
41927
+ state.update_diagnosis_status.loading = false, state.update_diagnosis_status.error = true, state.update_diagnosis_status = action.payload;
42028
41928
  }), SEARCH_LIST.fulfilled, function (state, action) {
42029
41929
  state.diagnosis_master_list_search.loading = false, state.diagnosis_master_list_search.error = false, state.diagnosis_master_list_search = action.payload;
42030
- }), _defineProperty(_defineProperty(_extraReducers$8, SEARCH_LIST.pending, function (state, action) {
41930
+ }), SEARCH_LIST.pending, function (state, action) {
42031
41931
  state.diagnosis_master_list_search.loading = true, state.diagnosis_master_list_search.error = false, state.diagnosis_master_list_search.loading = true;
42032
41932
  }), SEARCH_LIST.rejected, function (state, action) {
42033
41933
  state.diagnosis_master_list_search.loading = false, state.diagnosis_master_list_search.error = true, state.diagnosis_master_list_search = action.payload;
@@ -42037,6 +41937,7 @@ var diagnosisMasterActions = {
42037
41937
  GET_DIAGNOSIS_LIST: GET_DIAGNOSIS_LIST,
42038
41938
  GET_DIAGNOSIS_LIST_CHILD: GET_DIAGNOSIS_LIST_CHILD,
42039
41939
  UPDATE_DIAGNOSIS_LIST: UPDATE_DIAGNOSIS_LIST,
41940
+ UPDATE_DIAGNOSIS_STATUS: UPDATE_DIAGNOSIS_STATUS,
42040
41941
  SEARCH_LIST: SEARCH_LIST
42041
41942
  };
42042
41943
  var diagnosisMasterSlice$1 = diagnosisMasterSlice.reducer;
@@ -46291,7 +46192,7 @@ var GenerateUpsert = function GenerateUpsert(data) {
46291
46192
  }
46292
46193
  return [_objectSpread2(_objectSpread2({
46293
46194
  appcode: dbName,
46294
- entity: "DrugMaster",
46195
+ collection: "DrugMaster",
46295
46196
  is_metadata: true,
46296
46197
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03"
46297
46198
  }, filter), {}, {
@@ -46352,7 +46253,7 @@ var GenerateAlertRestrictionUpsert = function GenerateAlertRestrictionUpsert(dat
46352
46253
  }
46353
46254
  return [_objectSpread2(_objectSpread2({
46354
46255
  appcode: dbName,
46355
- entity: "CA_OrderCatalogPrivilegeLevel",
46256
+ collection: "CA_OrderCatalogPrivilegeLevel",
46356
46257
  is_metadata: true,
46357
46258
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03"
46358
46259
  }, filter), {}, {
@@ -46383,7 +46284,7 @@ var GenerateMappedItemUpsert = function GenerateMappedItemUpsert(data) {
46383
46284
  }
46384
46285
  return [_objectSpread2(_objectSpread2({
46385
46286
  appcode: dbName,
46386
- entity: "DrugMaster"
46287
+ collection: "DrugMaster"
46387
46288
  }, filter), {}, {
46388
46289
  is_metadata: true,
46389
46290
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
@@ -46481,9 +46382,7 @@ var DRUG_CATALOG_MASTER_SINGLE_READ = createAsyncThunk("drugCatalogMasterApiSlic
46481
46382
  _context2.n = 2;
46482
46383
  return fetchData({
46483
46384
  body: JSON.stringify(drugCatalogMasterQuery.drugCatalogMasterSingleRead(id))
46484
- },
46485
- // __readDocumentUrl__
46486
- __baseUrl__$1);
46385
+ }, __baseUrl__$1);
46487
46386
  case 2:
46488
46387
  data = _context2.v;
46489
46388
  return _context2.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -46658,9 +46557,7 @@ var fetchMaster = function fetchMaster(name, query, params) {
46658
46557
  _context6.n = 1;
46659
46558
  return fetchData({
46660
46559
  body: JSON.stringify(query(params))
46661
- },
46662
- // __readDocumentUrl__
46663
- __baseUrl__$1);
46560
+ }, __baseUrl__$1);
46664
46561
  case 1:
46665
46562
  data = _context6.v;
46666
46563
  resolve({
@@ -46854,9 +46751,7 @@ var DRUG_RULE__TYPE = createAsyncThunk("drugCatalogMasterApiSlice/drug_rule_type
46854
46751
  _context1.n = 2;
46855
46752
  return fetchData({
46856
46753
  body: JSON.stringify(drugCatalogMasterQuery.drugRuleType())
46857
- },
46858
- // __readDocumentUrl__
46859
- __baseUrl__$1);
46754
+ }, __baseUrl__$1);
46860
46755
  case 2:
46861
46756
  data = _context1.v;
46862
46757
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46905,9 +46800,7 @@ var DIRECTION_TAGS = createAsyncThunk("drugCatalogMasterApiSlice/direction_tags"
46905
46800
  _context10.n = 2;
46906
46801
  return fetchData({
46907
46802
  body: JSON.stringify(masterQuery.tags())
46908
- },
46909
- // __readDocumentUrl__
46910
- __baseUrl__$1);
46803
+ }, __baseUrl__$1);
46911
46804
  case 2:
46912
46805
  data = _context10.v;
46913
46806
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46956,9 +46849,7 @@ var DRUG_PRIVILEGE__TYPE = createAsyncThunk("drugCatalogMasterApiSlice/drug_priv
46956
46849
  _context11.n = 2;
46957
46850
  return fetchData({
46958
46851
  body: JSON.stringify(drugCatalogMasterQuery.drugPrivilegeType())
46959
- },
46960
- // __readDocumentUrl__
46961
- __baseUrl__$1);
46852
+ }, __baseUrl__$1);
46962
46853
  case 2:
46963
46854
  data = _context11.v;
46964
46855
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47007,9 +46898,7 @@ var DRUG_SERVICE_APPLICABILITY_TYPE = createAsyncThunk("drugCatalogMasterApiSlic
47007
46898
  _context12.n = 2;
47008
46899
  return fetchData({
47009
46900
  body: JSON.stringify(drugCatalogMasterQuery.drugServiceApplicabilityType())
47010
- },
47011
- // __readDocumentUrl__
47012
- __baseUrl__$1);
46901
+ }, __baseUrl__$1);
47013
46902
  case 2:
47014
46903
  data = _context12.v;
47015
46904
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47058,9 +46947,7 @@ var DRUG_FACILITY_OPTIONS = createAsyncThunk("drugCatalogMasterApiSlice/drug_fac
47058
46947
  _context13.n = 2;
47059
46948
  return fetchData({
47060
46949
  body: JSON.stringify(drugCatalogMasterQuery.drugFacilityOptions())
47061
- },
47062
- // __readDocumentUrl__
47063
- __baseUrl__$1);
46950
+ }, __baseUrl__$1);
47064
46951
  case 2:
47065
46952
  data = _context13.v;
47066
46953
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47109,9 +46996,7 @@ var DRUG_APPROVAL_WORKFLOW_OPTIONS = createAsyncThunk("drugCatalogMasterApiSlice
47109
46996
  _context14.n = 2;
47110
46997
  return fetchData({
47111
46998
  body: JSON.stringify(drugCatalogMasterQuery.drugApprovalWorkflowOptions())
47112
- },
47113
- // __readDocumentUrl__
47114
- __baseUrl__$1);
46999
+ }, __baseUrl__$1);
47115
47000
  case 2:
47116
47001
  data = _context14.v;
47117
47002
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47198,9 +47083,7 @@ var DRUG_ALERTS_RESTRICTIONS_SINGLE_READ = createAsyncThunk("drugCatalogMasterAp
47198
47083
  _context16.n = 2;
47199
47084
  return fetchData({
47200
47085
  body: JSON.stringify(drugCatalogMasterQuery.drugalertRestrictionSingleRead(id))
47201
- },
47202
- // __readDocumentUrl__
47203
- __baseUrl__$1);
47086
+ }, __baseUrl__$1);
47204
47087
  case 2:
47205
47088
  data = _context16.v;
47206
47089
  return _context16.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -47233,9 +47116,7 @@ var DRUG_MAPPED_DISPENSABLE_READ = createAsyncThunk("drugCatalogMasterApiSlice/d
47233
47116
  _context17.n = 2;
47234
47117
  return fetchData({
47235
47118
  body: JSON.stringify(drugCatalogMasterQuery.drugMappedDispensableRead(_id))
47236
- },
47237
- // __readDocumentUrl__
47238
- __baseUrl__$1);
47119
+ }, __baseUrl__$1);
47239
47120
  case 2:
47240
47121
  data = _context17.v;
47241
47122
  return _context17.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.181",
3
+ "version": "0.1.183",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",