primary_care_admin_binder 0.1.181 → 0.1.182

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 +135 -288
  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"];
@@ -22462,38 +22463,6 @@ var resourceByAppointmentTypes = {
22462
22463
  var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
22463
22464
 
22464
22465
  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
22466
  drug_category_read: function drug_category_read(page, perPage, search) {
22498
22467
  return {
22499
22468
  appcode: dbName,
@@ -22538,7 +22507,7 @@ var queries$h = {
22538
22507
  }
22539
22508
  return [_objectSpread2(_objectSpread2({
22540
22509
  appcode: dbName,
22541
- entity: "DosageForm",
22510
+ collection: "DosageForm",
22542
22511
  is_metadata: true
22543
22512
  }, filter), {}, {
22544
22513
  metadataId: metaDataId$1,
@@ -22555,7 +22524,7 @@ var queries$h = {
22555
22524
  status_update_drug_dosage: function status_update_drug_dosage(data) {
22556
22525
  return [{
22557
22526
  appcode: dbName,
22558
- entity: "DosageForm",
22527
+ collection: "DosageForm",
22559
22528
  filter: {
22560
22529
  _key: data._key
22561
22530
  },
@@ -22567,16 +22536,6 @@ var queries$h = {
22567
22536
  }
22568
22537
  }];
22569
22538
  },
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
22539
  drug_class: function drug_class(page, perPage, search) {
22581
22540
  return {
22582
22541
  appcode: dbName,
@@ -22599,13 +22558,12 @@ var queries$h = {
22599
22558
  }
22600
22559
  return [_objectSpread2(_objectSpread2({
22601
22560
  appcode: dbName,
22602
- entity: "DrugClass",
22561
+ collection: "DrugClass",
22603
22562
  is_metadata: true
22604
22563
  }, filter), {}, {
22605
22564
  metadataId: metaDataId$1,
22606
22565
  metadata_dbname: metaDatadbName$1,
22607
22566
  doc: {
22608
- // "id":0,
22609
22567
  drugclass: data.drug_class ? data.drug_class : "",
22610
22568
  shortdesc: data.short_description ? data.short_description : "",
22611
22569
  longdesc: data.long_description ? data.long_description : "",
@@ -22616,7 +22574,7 @@ var queries$h = {
22616
22574
  status_update_drug_class: function status_update_drug_class(data) {
22617
22575
  return [{
22618
22576
  appcode: dbName,
22619
- entity: "DrugClass",
22577
+ collection: "DrugClass",
22620
22578
  filter: {
22621
22579
  _key: data._key
22622
22580
  },
@@ -22628,16 +22586,6 @@ var queries$h = {
22628
22586
  }
22629
22587
  }];
22630
22588
  },
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
22589
  drug_routes: function drug_routes(page, perPage, search) {
22642
22590
  return {
22643
22591
  appcode: dbName,
@@ -22652,7 +22600,7 @@ var queries$h = {
22652
22600
  status_update_drug_routes: function status_update_drug_routes(data) {
22653
22601
  return [{
22654
22602
  appcode: dbName,
22655
- entity: "DrugRoutes",
22603
+ collection: "DrugRoutes",
22656
22604
  filter: {
22657
22605
  _key: data._key
22658
22606
  },
@@ -22675,13 +22623,12 @@ var queries$h = {
22675
22623
  }
22676
22624
  return [_objectSpread2(_objectSpread2({
22677
22625
  appcode: dbName,
22678
- entity: "DrugRoutes",
22626
+ collection: "DrugRoutes",
22679
22627
  is_metadata: true
22680
22628
  }, filter), {}, {
22681
22629
  metadataId: metaDataId$1,
22682
22630
  metadata_dbname: metaDatadbName$1,
22683
22631
  doc: {
22684
- // "id":0,
22685
22632
  routecode: data.drug_routes ? data.drug_routes : "",
22686
22633
  routeadverb: data.route_adverb ? data.route_adverb : "",
22687
22634
  shortdesc: data.short_description ? data.short_description : "",
@@ -22987,9 +22934,7 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
22987
22934
  _context.n = 2;
22988
22935
  return fetchData({
22989
22936
  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);
22937
+ }, __baseUrl__$1);
22993
22938
  case 2:
22994
22939
  data = _context.v;
22995
22940
  arry = [];
@@ -24423,7 +24368,7 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24423
24368
  }
24424
24369
  return [_objectSpread2(_objectSpread2({
24425
24370
  appcode: dbName,
24426
- entity: "DrugMaster",
24371
+ collection: "DrugMaster",
24427
24372
  is_metadata: true,
24428
24373
  metadataId: metaDataId$1,
24429
24374
  metadata_dbname: metaDatadbName$1
@@ -24433,35 +24378,22 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24433
24378
  DrugCode: data === null || data === void 0 ? void 0 : data.DrugCode,
24434
24379
  ShortDesc: data === null || data === void 0 ? void 0 : data.ShortDesc,
24435
24380
  LongDesc: data === null || data === void 0 ? void 0 : data.LongDesc,
24436
- // Charge: "boolean",
24437
24381
  DrugClass: data === null || data === void 0 ? void 0 : data.DrugClass,
24438
24382
  DrugType: data === null || data === void 0 ? void 0 : data.DrugType,
24439
24383
  DrugCategory: data === null || data === void 0 ? void 0 : data.DrugCategory,
24440
24384
  StrengthValuesPossible: data === null || data === void 0 ? void 0 : data.StrengthValuesPossible,
24441
- // TotalVolContent: "string",
24442
- // TotalVolContentUoM: "string",
24443
24385
  FormCode: data === null || data === void 0 ? void 0 : data.FormCode,
24444
24386
  DefaultRouteCode: data === null || data === void 0 ? void 0 : data.DefaultRouteCode,
24445
24387
  RoutesAllowed: data === null || data === void 0 ? void 0 : data.RoutesAllowed,
24446
24388
  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
24389
  CounsellingRequired: data === null || data === void 0 ? void 0 : data.CounsellingRequired,
24453
- // DrugImageID: "number",
24454
24390
  ApplicableForCompounding: data === null || data === void 0 ? void 0 : data.ApplicableForCompounding,
24455
24391
  Additive: data === null || data === void 0 ? void 0 : data.Additive,
24456
- // SourceOfDrugOrderCatalog: "string",
24457
24392
  DrugGenericId: data === null || data === void 0 ? void 0 : data.DrugGenericId,
24458
- // GenericIngrListId: "string",
24459
24393
  status: data === null || data === void 0 ? void 0 : data.status,
24460
- // statusactive: data?.status,
24461
24394
  DrugDispRules: data === null || data === void 0 ? void 0 : data.DrugDispRules,
24462
24395
  FrequencyRules: data === null || data === void 0 ? void 0 : data.FrequencyRules,
24463
24396
  mappedItems: data === null || data === void 0 ? void 0 : data.mappedItems,
24464
- // drugroutegenid: "string",
24465
24397
  codeStandard: data === null || data === void 0 ? void 0 : data.codeStandard,
24466
24398
  IsDispensible: data === null || data === void 0 ? void 0 : data.IsDispensible,
24467
24399
  entityLevelStatus: data === null || data === void 0 ? void 0 : data.entityLevelStatus,
@@ -24472,11 +24404,7 @@ var GenerateUpsert$1 = function GenerateUpsert(data) {
24472
24404
  directiontaglocal: data === null || data === void 0 ? void 0 : data.directiontaglocal,
24473
24405
  drugSynonyms: data === null || data === void 0 ? void 0 : data.drugSynonyms,
24474
24406
  photo: data === null || data === void 0 ? void 0 : data.photo,
24475
- // baseStkUoM: "string",
24476
- // avgRate: "number",
24477
24407
  compondCompDTls: data === null || data === void 0 ? void 0 : data.compondCompDTls,
24478
- // privilegeID: "array",
24479
- // extDrugGenericId: "string",
24480
24408
  returnApplicable: data === null || data === void 0 ? void 0 : data.returnApplicable,
24481
24409
  returnPeriodVal: data === null || data === void 0 ? void 0 : data.returnPeriodVal,
24482
24410
  returnPeriodUOM: data === null || data === void 0 ? void 0 : data.returnPeriodUOM,
@@ -24497,7 +24425,7 @@ var GenerateAlertRestrictionUpsert$1 = function GenerateAlertRestrictionUpsert(d
24497
24425
  }
24498
24426
  return [_objectSpread2(_objectSpread2({
24499
24427
  appcode: dbName,
24500
- entity: "CA_OrderCatalogPrivilegeLevel",
24428
+ collection: "CA_OrderCatalogPrivilegeLevel",
24501
24429
  is_metadata: true,
24502
24430
  metadataId: metaDataId$1,
24503
24431
  metadata_dbname: metaDatadbName$1
@@ -24509,13 +24437,6 @@ var GenerateAlertRestrictionUpsert$1 = function GenerateAlertRestrictionUpsert(d
24509
24437
  order_catalog_criteria: data === null || data === void 0 ? void 0 : data.order_catalog_criteria,
24510
24438
  patient_criteria: data === null || data === void 0 ? void 0 : data.patient_criteria,
24511
24439
  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
24440
  rule_type: data === null || data === void 0 ? void 0 : data.rule_type,
24520
24441
  privilege_type: data === null || data === void 0 ? void 0 : data.privilege_type,
24521
24442
  status: data === null || data === void 0 ? void 0 : data.status,
@@ -25680,18 +25601,7 @@ var drugMasterActions = {
25680
25601
  };
25681
25602
  var drugMasterSlice$1 = drugMasterSlice.reducer;
25682
25603
 
25683
- // import { dbName } from "../../qdm_query_ids";
25684
25604
  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
25605
  fullread: function fullread(page, perPage, search) {
25696
25606
  return {
25697
25607
  appcode: dbName,
@@ -25703,15 +25613,6 @@ var queries$f = {
25703
25613
  }
25704
25614
  };
25705
25615
  },
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
25616
  DosageFormDropDown: function DosageFormDropDown() {
25716
25617
  return {
25717
25618
  appcode: dbName,
@@ -25722,15 +25623,6 @@ var queries$f = {
25722
25623
  }
25723
25624
  };
25724
25625
  },
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
25626
  RoutesDirectionActionDropDown: function RoutesDirectionActionDropDown() {
25735
25627
  return {
25736
25628
  appcode: dbName,
@@ -25745,7 +25637,7 @@ var queries$f = {
25745
25637
  Insert: function Insert(data) {
25746
25638
  return [{
25747
25639
  appcode: dbName,
25748
- entity: "DrugRouteDirection",
25640
+ collection: "DrugRouteDirection",
25749
25641
  is_metadata: true,
25750
25642
  metadataId: metaDataId$1,
25751
25643
  metadata_dbname: metaDatadbName$1,
@@ -25763,7 +25655,7 @@ var queries$f = {
25763
25655
  StatusUpdate: function StatusUpdate(key, getstatus) {
25764
25656
  return [{
25765
25657
  appcode: dbName,
25766
- entity: "DrugRouteDirection",
25658
+ collection: "DrugRouteDirection",
25767
25659
  filter: {
25768
25660
  _key: key
25769
25661
  },
@@ -25778,7 +25670,7 @@ var queries$f = {
25778
25670
  UpdateORModify: function UpdateORModify(data) {
25779
25671
  return [{
25780
25672
  appcode: dbName,
25781
- entity: "DrugRouteDirection",
25673
+ collection: "DrugRouteDirection",
25782
25674
  filter: {
25783
25675
  _key: data.key
25784
25676
  },
@@ -25816,9 +25708,7 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
25816
25708
  _context.n = 2;
25817
25709
  return fetchData({
25818
25710
  body: JSON.stringify(queriesjson)
25819
- },
25820
- // __readDocumentUrl__
25821
- __baseUrl__$1);
25711
+ }, __baseUrl__$1);
25822
25712
  case 2:
25823
25713
  data = _context.v;
25824
25714
  arry = [];
@@ -25828,8 +25718,6 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
25828
25718
  arry.push({
25829
25719
  total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
25830
25720
  code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
25831
- // action_id: val?.Action?._id,
25832
- // action: val?.Action?.display,
25833
25721
  action: val === null || val === void 0 ? void 0 : val.Action,
25834
25722
  longDesc: val === null || val === void 0 ? void 0 : val.LongDesc,
25835
25723
  shortDesc: val === null || val === void 0 ? void 0 : val.ShortDesc,
@@ -25869,9 +25757,7 @@ var DRUG_ROUTES_DIRECTION_MASTER = createAsyncThunk("drugRoutesSlice/drug_routes
25869
25757
  _context2.n = 2;
25870
25758
  return fetchData({
25871
25759
  body: JSON.stringify(queriesjson)
25872
- },
25873
- // __readDocumentUrl__
25874
- __baseUrl__$1);
25760
+ }, __baseUrl__$1);
25875
25761
  case 2:
25876
25762
  data = _context2.v;
25877
25763
  arry = [];
@@ -25912,9 +25798,7 @@ var DRUG_ROUTES_DIRECTION_ACTION_MASTER = createAsyncThunk("drugRoutesSlice/drug
25912
25798
  _context3.n = 2;
25913
25799
  return fetchData({
25914
25800
  body: JSON.stringify(queriesjson)
25915
- },
25916
- // __readDocumentUrl__
25917
- __baseUrl__$1);
25801
+ }, __baseUrl__$1);
25918
25802
  case 2:
25919
25803
  data = _context3.v;
25920
25804
  arry = [];
@@ -25944,7 +25828,7 @@ var DRUG_ROUTES_DIRECTION_STATUS = createAsyncThunk("drugRoutesSlice/drug_routes
25944
25828
  rejectWithValue,
25945
25829
  data,
25946
25830
  queriesjson,
25947
- arry,
25831
+ Getdata,
25948
25832
  _args4 = arguments,
25949
25833
  _t4;
25950
25834
  return _regenerator().w(function (_context4) {
@@ -25960,10 +25844,9 @@ var DRUG_ROUTES_DIRECTION_STATUS = createAsyncThunk("drugRoutesSlice/drug_routes
25960
25844
  body: JSON.stringify(queriesjson)
25961
25845
  }, __uspsertUrl__);
25962
25846
  case 2:
25963
- _context4.v;
25964
- arry = [];
25847
+ Getdata = _context4.v;
25965
25848
  return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
25966
- data: arry
25849
+ data: Getdata
25967
25850
  }));
25968
25851
  case 3:
25969
25852
  _context4.p = 3;
@@ -26015,7 +25898,7 @@ var DRUG_ROUTES_DIRECTION_UPDATE = createAsyncThunk("drugRoutesSlice/drug_routes
26015
25898
  rejectWithValue,
26016
25899
  Senddata,
26017
25900
  queriesjson,
26018
- arry,
25901
+ Getdata,
26019
25902
  _args6 = arguments,
26020
25903
  _t6;
26021
25904
  return _regenerator().w(function (_context6) {
@@ -26031,10 +25914,9 @@ var DRUG_ROUTES_DIRECTION_UPDATE = createAsyncThunk("drugRoutesSlice/drug_routes
26031
25914
  body: JSON.stringify(queriesjson)
26032
25915
  }, __uspsertUrl__);
26033
25916
  case 2:
26034
- _context6.v;
26035
- arry = [];
25917
+ Getdata = _context6.v;
26036
25918
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
26037
- data: arry
25919
+ data: Getdata
26038
25920
  }));
26039
25921
  case 3:
26040
25922
  _context6.p = 3;
@@ -27320,14 +27202,14 @@ var ORDER_CATALOG_CODING_MASTERS = createAsyncThunk("orderCatalogApiSlice/order_
27320
27202
  _context5.p = 1;
27321
27203
  payload.type;
27322
27204
  body = {
27323
- "appcode": dbName,
27324
- "filter": {
27325
- "type": payload,
27326
- "tenantid": "",
27327
- "facilityid": "",
27328
- "lang": ""
27205
+ appcode: dbName,
27206
+ filter: {
27207
+ type: payload,
27208
+ tenantid: "",
27209
+ facilityid: "",
27210
+ lang: ""
27329
27211
  },
27330
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27212
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27331
27213
  };
27332
27214
  _context5.n = 2;
27333
27215
  return fetchData({
@@ -27364,8 +27246,8 @@ var ORDER_CATALOG_ATTRCODE = createAsyncThunk("orderCatalogApiSlice/order_catalo
27364
27246
  _context6.p = 1;
27365
27247
  payload.type;
27366
27248
  body = {
27367
- "appcode": dbName,
27368
- "requestid": "def95574-656e-40c7-928e-b544f2b2f801"
27249
+ appcode: dbName,
27250
+ requestid: "def95574-656e-40c7-928e-b544f2b2f801"
27369
27251
  };
27370
27252
  _context6.n = 2;
27371
27253
  return fetchData({
@@ -27418,8 +27300,8 @@ var ORDER_CATALOG_AGEGROUP = createAsyncThunk("orderCatalogApiSlice/order_catalo
27418
27300
  _context7.p = 1;
27419
27301
  payload.type;
27420
27302
  body = {
27421
- "appcode": dbName,
27422
- "requestid": "869e5895-b0e0-4657-ad31-6ed02294f691"
27303
+ appcode: dbName,
27304
+ requestid: "869e5895-b0e0-4657-ad31-6ed02294f691"
27423
27305
  };
27424
27306
  _context7.n = 2;
27425
27307
  return fetchData({
@@ -27463,8 +27345,8 @@ var ORDER_CATALOG_ORDERCATEGORY = createAsyncThunk("orderCatalogApiSlice/order_c
27463
27345
  _context8.p = 1;
27464
27346
  payload.type;
27465
27347
  body = {
27466
- "appcode": dbName,
27467
- "requestid": "df53fb0d-dd4c-4e65-9067-f5917563625b"
27348
+ appcode: dbName,
27349
+ requestid: "df53fb0d-dd4c-4e65-9067-f5917563625b"
27468
27350
  };
27469
27351
  _context8.n = 2;
27470
27352
  return fetchData({
@@ -27499,16 +27381,15 @@ var ORDER_CATALOG_GRPORIND = createAsyncThunk("orderCatalogApiSlice/order_catalo
27499
27381
  case 0:
27500
27382
  rejectWithValue = _ref12.rejectWithValue;
27501
27383
  _context9.p = 1;
27502
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
27503
27384
  body = {
27504
- "appcode": dbName,
27505
- "filter": {
27506
- "type": ["GRPORIND"],
27507
- "tenantid": "",
27508
- "facilityid": "",
27509
- "lang": ""
27385
+ appcode: dbName,
27386
+ filter: {
27387
+ type: ["GRPORIND"],
27388
+ tenantid: "",
27389
+ facilityid: "",
27390
+ lang: ""
27510
27391
  },
27511
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27392
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27512
27393
  };
27513
27394
  _context9.n = 2;
27514
27395
  return fetchData({
@@ -27548,16 +27429,15 @@ var ORDER_CATALOG_SERVICEITEM = createAsyncThunk("orderCatalogApiSlice/order_cat
27548
27429
  case 0:
27549
27430
  rejectWithValue = _ref14.rejectWithValue;
27550
27431
  _context0.p = 1;
27551
- // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
27552
27432
  body = {
27553
- "appcode": dbName,
27554
- "filter": {
27555
- "type": ["ORDERITEMSERVICE"],
27556
- "tenantid": "",
27557
- "facilityid": "",
27558
- "lang": ""
27433
+ appcode: dbName,
27434
+ filter: {
27435
+ type: ["ORDERITEMSERVICE"],
27436
+ tenantid: "",
27437
+ facilityid: "",
27438
+ lang: ""
27559
27439
  },
27560
- "requestid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27440
+ requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
27561
27441
  };
27562
27442
  _context0.n = 2;
27563
27443
  return fetchData({
@@ -27606,13 +27486,7 @@ var ENTITY_NAME_DATA = createAsyncThunk("orderCatalogApiSlice/entity_name_data",
27606
27486
  _ref17 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
27607
27487
  _context1.p = 1;
27608
27488
  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
- // }
27489
+ queriesjson = Query.entityTypeName(type);
27616
27490
  _context1.n = 2;
27617
27491
  return fetchData({
27618
27492
  body: JSON.stringify(queriesjson)
@@ -27814,11 +27688,11 @@ var RC_CHARGERATE_SEARCH = createAsyncThunk("orderCatalogApiSlice/rcchargeRateSe
27814
27688
  _context14.p = 1;
27815
27689
  search = payload.search;
27816
27690
  body = {
27817
- "appcode": dbName,
27818
- "filter": {
27819
- "rcChargecode": search
27691
+ appcode: dbName,
27692
+ filter: {
27693
+ rcChargecode: search
27820
27694
  },
27821
- "requestid": query_ids["rcChargeRateSearch"]
27695
+ requestid: query_ids["rcChargeRateSearch"]
27822
27696
  };
27823
27697
  _context14.n = 2;
27824
27698
  return fetchData({
@@ -27854,11 +27728,7 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
27854
27728
  payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
27855
27729
  _ref29 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
27856
27730
  _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
- // );
27731
+ list = payload.list, rcchargeCode = payload.rcchargeCode;
27862
27732
  body = generateSaveJSON(list, rcchargeCode);
27863
27733
  _context15.n = 2;
27864
27734
  return fetchData({
@@ -27895,9 +27765,6 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
27895
27765
  payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
27896
27766
  _ref31 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref31.rejectWithValue, _ref31.getState;
27897
27767
  _context16.p = 1;
27898
- // const { encounter_id } = payload;
27899
- // let state = getState();
27900
- // let ccState = state.DiagnosisMasterSlice;
27901
27768
  page = payload.page, perPage = payload.perPage, search = payload.search;
27902
27769
  _context16.n = 2;
27903
27770
  return fetchData({
@@ -37402,19 +37269,7 @@ var orderMasters = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
37402
37269
 
37403
37270
  var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasureCodeActions), vitalsApplicableActions), vitalsMasterSectionActions);
37404
37271
 
37405
- // import { dbName } from "../../qdm_query_ids";
37406
37272
  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
37273
  fullread: function fullread(page, perPage, search) {
37419
37274
  return {
37420
37275
  appcode: dbName,
@@ -37426,17 +37281,6 @@ var queries$5 = {
37426
37281
  }
37427
37282
  };
37428
37283
  },
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
37284
  DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
37441
37285
  return {
37442
37286
  appcode: dbName,
@@ -37448,26 +37292,6 @@ var queries$5 = {
37448
37292
  }
37449
37293
  };
37450
37294
  },
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
37295
  To_UOM_code: function To_UOM_code(id, type) {
37472
37296
  return {
37473
37297
  appcode: dbName,
@@ -37490,7 +37314,7 @@ var queries$5 = {
37490
37314
  To_UOM_UPDATE_STATUS: function To_UOM_UPDATE_STATUS(status, key) {
37491
37315
  return [{
37492
37316
  appcode: dbName,
37493
- entity: "DrugUOM",
37317
+ collection: "DrugUOM",
37494
37318
  filter: {
37495
37319
  _key: "".concat(key)
37496
37320
  },
@@ -37524,7 +37348,7 @@ var generateJson$5 = {
37524
37348
  });
37525
37349
  return [_objectSpread2(_objectSpread2({
37526
37350
  appcode: dbName,
37527
- entity: "DrugUOM",
37351
+ collection: "DrugUOM",
37528
37352
  is_metadata: true
37529
37353
  }, filter), {}, {
37530
37354
  metadataId: metaDataId$1,
@@ -37612,9 +37436,7 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
37612
37436
  _context.n = 2;
37613
37437
  return fetchData({
37614
37438
  body: JSON.stringify(queriesjson)
37615
- },
37616
- // __readDocumentUrl__
37617
- __baseUrl__$1);
37439
+ }, __baseUrl__$1);
37618
37440
  case 2:
37619
37441
  data = _context.v;
37620
37442
  arry = [];
@@ -37661,9 +37483,7 @@ var DRUG_UOM_TYPE_DROP_DOWN = createAsyncThunk("drugRoutesSlice/drug_uom_type_ma
37661
37483
  _context2.n = 2;
37662
37484
  return fetchData({
37663
37485
  body: JSON.stringify(queriesjson)
37664
- },
37665
- // __readDocumentUrl__
37666
- __baseUrl__$1);
37486
+ }, __baseUrl__$1);
37667
37487
  case 2:
37668
37488
  data = _context2.v;
37669
37489
  arry = [];
@@ -37710,18 +37530,13 @@ var TO_UDM_CODE_DROPDOWN = createAsyncThunk("drugRoutesSlice/drug_uom_code_maste
37710
37530
  _context3.n = 2;
37711
37531
  return fetchData({
37712
37532
  body: JSON.stringify(queriesjson)
37713
- },
37714
- // __readDocumentUrl__,
37715
- __baseUrl__$1);
37533
+ }, __baseUrl__$1);
37716
37534
  case 2:
37717
37535
  data = _context3.v;
37718
37536
  arry = [];
37719
37537
  data.map(function (val) {
37720
- // if (val?._key && val?.activestatus) {
37721
37538
  if (val !== null && val !== void 0 && val._id && val !== null && val !== void 0 && val.UOM) {
37722
37539
  arry.push({
37723
- // label: val?.coding[0]?.display,
37724
- // value: val?.coding[0]?._id,
37725
37540
  label: val === null || val === void 0 ? void 0 : val.UOM,
37726
37541
  value: val === null || val === void 0 ? void 0 : val._id
37727
37542
  });
@@ -37833,13 +37648,10 @@ var DRUG_UOM_LINE_READ = createAsyncThunk("drugRoutesSlice/drug_uom_read_line",
37833
37648
  _context6.n = 2;
37834
37649
  return fetchData({
37835
37650
  body: JSON.stringify(queriesjson)
37836
- },
37837
- // __readDocumentUrl__,
37838
- __baseUrl__$1);
37651
+ }, __baseUrl__$1);
37839
37652
  case 2:
37840
37653
  getdata = _context6.v;
37841
37654
  getreadJson = generateReadJson$1.read_json(getdata);
37842
- console.log("durg uom read getreadJson", getreadJson);
37843
37655
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
37844
37656
  data: getreadJson
37845
37657
  }));
@@ -41838,12 +41650,26 @@ var query$2 = {
41838
41650
  },
41839
41651
  metadataId: metaDataId$1,
41840
41652
  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
- }
41653
+ doc: _objectSpread2(_objectSpread2(_objectSpread2({}, (data === null || data === void 0 ? void 0 : data.hasOwnProperty("effTo")) && {
41654
+ effTo: (_data$effTo = data.effTo) !== null && _data$effTo !== void 0 ? _data$effTo : null
41655
+ }), (data === null || data === void 0 ? void 0 : data.hasOwnProperty("islastlevel")) && {
41656
+ islastlevel: (_data$islastlevel = data.islastlevel) !== null && _data$islastlevel !== void 0 ? _data$islastlevel : false
41657
+ }), (data === null || data === void 0 ? void 0 : data.hasOwnProperty("status")) && {
41658
+ status: data.status
41659
+ })
41845
41660
  }];
41846
41661
  },
41662
+ updateDiagnosisStatus: function updateDiagnosisStatus(data) {
41663
+ var _data$status;
41664
+ return {
41665
+ appcode: "".concat(dbName),
41666
+ requestid: query_ids.diagnosis_status_update,
41667
+ filter: {
41668
+ keys: (data === null || data === void 0 ? void 0 : data.keys) || [],
41669
+ status: (_data$status = data === null || data === void 0 ? void 0 : data.status) !== null && _data$status !== void 0 ? _data$status : false
41670
+ }
41671
+ };
41672
+ },
41847
41673
  searchList: function searchList(text) {
41848
41674
  var search = text ? text.replace(/\./g, "_") : "";
41849
41675
  return {
@@ -41999,12 +41825,46 @@ var SEARCH_LIST = createAsyncThunk("diagnosisMasterApiSlice/diagnosis_master_lis
41999
41825
  }
42000
41826
  }, _callee4, null, [[1, 3]]);
42001
41827
  })));
41828
+
41829
+ // UPDATE_DIAGNOSIS_STATUS
41830
+ var UPDATE_DIAGNOSIS_STATUS = createAsyncThunk("diagnosisMasterApiSlice/update_diagnosis_status", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
41831
+ var payload,
41832
+ _ref0,
41833
+ rejectWithValue,
41834
+ data,
41835
+ _args5 = arguments,
41836
+ _t5;
41837
+ return _regenerator().w(function (_context5) {
41838
+ while (1) switch (_context5.p = _context5.n) {
41839
+ case 0:
41840
+ payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
41841
+ _ref0 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref0.rejectWithValue;
41842
+ _context5.p = 1;
41843
+ _context5.n = 2;
41844
+ return fetchData({
41845
+ body: JSON.stringify(query$2.updateDiagnosisStatus(payload))
41846
+ }, __baseUrl__$1);
41847
+ case 2:
41848
+ data = _context5.v;
41849
+ return _context5.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
41850
+ data: data !== null && data !== void 0 ? data : null
41851
+ }));
41852
+ case 3:
41853
+ _context5.p = 3;
41854
+ _t5 = _context5.v;
41855
+ return _context5.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
41856
+ message: _t5.message
41857
+ })));
41858
+ }
41859
+ }, _callee5, null, [[1, 3]]);
41860
+ })));
42002
41861
  var diagnosisMasterSlice = createSlice({
42003
41862
  name: "diagnosisMasterApiSlice",
42004
41863
  initialState: {
42005
41864
  diagnosis_master_list: _objectSpread2({}, defaultState.List),
42006
41865
  diagnosis_master_list_child: _objectSpread2({}, defaultState.List),
42007
41866
  update_diagnosis_list: _objectSpread2({}, defaultState.List),
41867
+ update_diagnosis_status: _objectSpread2({}, defaultState.List),
42008
41868
  diagnosis_master_list_search: _objectSpread2({}, defaultState.List)
42009
41869
  },
42010
41870
  extraReducers: (_extraReducers$8 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$8, GET_DIAGNOSIS_LIST.fulfilled, function (state, action) {
@@ -42025,9 +41885,15 @@ var diagnosisMasterSlice = createSlice({
42025
41885
  state.update_diagnosis_list.loading = true, state.update_diagnosis_list.error = false, state.update_diagnosis_list.loading = true;
42026
41886
  }), UPDATE_DIAGNOSIS_LIST.rejected, function (state, action) {
42027
41887
  state.update_diagnosis_list.loading = false, state.update_diagnosis_list.error = true, state.update_diagnosis_list = action.payload;
41888
+ }), UPDATE_DIAGNOSIS_STATUS.fulfilled, function (state, action) {
41889
+ state.update_diagnosis_status.loading = false, state.update_diagnosis_status.error = false, state.update_diagnosis_status = action.payload;
41890
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$8, UPDATE_DIAGNOSIS_STATUS.pending, function (state, action) {
41891
+ state.update_diagnosis_status.loading = true, state.update_diagnosis_status.error = false, state.update_diagnosis_status.loading = true;
41892
+ }), UPDATE_DIAGNOSIS_STATUS.rejected, function (state, action) {
41893
+ state.update_diagnosis_status.loading = false, state.update_diagnosis_status.error = true, state.update_diagnosis_status = action.payload;
42028
41894
  }), SEARCH_LIST.fulfilled, function (state, action) {
42029
41895
  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) {
41896
+ }), SEARCH_LIST.pending, function (state, action) {
42031
41897
  state.diagnosis_master_list_search.loading = true, state.diagnosis_master_list_search.error = false, state.diagnosis_master_list_search.loading = true;
42032
41898
  }), SEARCH_LIST.rejected, function (state, action) {
42033
41899
  state.diagnosis_master_list_search.loading = false, state.diagnosis_master_list_search.error = true, state.diagnosis_master_list_search = action.payload;
@@ -42037,6 +41903,7 @@ var diagnosisMasterActions = {
42037
41903
  GET_DIAGNOSIS_LIST: GET_DIAGNOSIS_LIST,
42038
41904
  GET_DIAGNOSIS_LIST_CHILD: GET_DIAGNOSIS_LIST_CHILD,
42039
41905
  UPDATE_DIAGNOSIS_LIST: UPDATE_DIAGNOSIS_LIST,
41906
+ UPDATE_DIAGNOSIS_STATUS: UPDATE_DIAGNOSIS_STATUS,
42040
41907
  SEARCH_LIST: SEARCH_LIST
42041
41908
  };
42042
41909
  var diagnosisMasterSlice$1 = diagnosisMasterSlice.reducer;
@@ -46291,7 +46158,7 @@ var GenerateUpsert = function GenerateUpsert(data) {
46291
46158
  }
46292
46159
  return [_objectSpread2(_objectSpread2({
46293
46160
  appcode: dbName,
46294
- entity: "DrugMaster",
46161
+ collection: "DrugMaster",
46295
46162
  is_metadata: true,
46296
46163
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03"
46297
46164
  }, filter), {}, {
@@ -46352,7 +46219,7 @@ var GenerateAlertRestrictionUpsert = function GenerateAlertRestrictionUpsert(dat
46352
46219
  }
46353
46220
  return [_objectSpread2(_objectSpread2({
46354
46221
  appcode: dbName,
46355
- entity: "CA_OrderCatalogPrivilegeLevel",
46222
+ collection: "CA_OrderCatalogPrivilegeLevel",
46356
46223
  is_metadata: true,
46357
46224
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03"
46358
46225
  }, filter), {}, {
@@ -46383,7 +46250,7 @@ var GenerateMappedItemUpsert = function GenerateMappedItemUpsert(data) {
46383
46250
  }
46384
46251
  return [_objectSpread2(_objectSpread2({
46385
46252
  appcode: dbName,
46386
- entity: "DrugMaster"
46253
+ collection: "DrugMaster"
46387
46254
  }, filter), {}, {
46388
46255
  is_metadata: true,
46389
46256
  metadataId: "88b23ef1-7199-4503-b631-2de82ace6e03",
@@ -46481,9 +46348,7 @@ var DRUG_CATALOG_MASTER_SINGLE_READ = createAsyncThunk("drugCatalogMasterApiSlic
46481
46348
  _context2.n = 2;
46482
46349
  return fetchData({
46483
46350
  body: JSON.stringify(drugCatalogMasterQuery.drugCatalogMasterSingleRead(id))
46484
- },
46485
- // __readDocumentUrl__
46486
- __baseUrl__$1);
46351
+ }, __baseUrl__$1);
46487
46352
  case 2:
46488
46353
  data = _context2.v;
46489
46354
  return _context2.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -46658,9 +46523,7 @@ var fetchMaster = function fetchMaster(name, query, params) {
46658
46523
  _context6.n = 1;
46659
46524
  return fetchData({
46660
46525
  body: JSON.stringify(query(params))
46661
- },
46662
- // __readDocumentUrl__
46663
- __baseUrl__$1);
46526
+ }, __baseUrl__$1);
46664
46527
  case 1:
46665
46528
  data = _context6.v;
46666
46529
  resolve({
@@ -46854,9 +46717,7 @@ var DRUG_RULE__TYPE = createAsyncThunk("drugCatalogMasterApiSlice/drug_rule_type
46854
46717
  _context1.n = 2;
46855
46718
  return fetchData({
46856
46719
  body: JSON.stringify(drugCatalogMasterQuery.drugRuleType())
46857
- },
46858
- // __readDocumentUrl__
46859
- __baseUrl__$1);
46720
+ }, __baseUrl__$1);
46860
46721
  case 2:
46861
46722
  data = _context1.v;
46862
46723
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46905,9 +46766,7 @@ var DIRECTION_TAGS = createAsyncThunk("drugCatalogMasterApiSlice/direction_tags"
46905
46766
  _context10.n = 2;
46906
46767
  return fetchData({
46907
46768
  body: JSON.stringify(masterQuery.tags())
46908
- },
46909
- // __readDocumentUrl__
46910
- __baseUrl__$1);
46769
+ }, __baseUrl__$1);
46911
46770
  case 2:
46912
46771
  data = _context10.v;
46913
46772
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -46956,9 +46815,7 @@ var DRUG_PRIVILEGE__TYPE = createAsyncThunk("drugCatalogMasterApiSlice/drug_priv
46956
46815
  _context11.n = 2;
46957
46816
  return fetchData({
46958
46817
  body: JSON.stringify(drugCatalogMasterQuery.drugPrivilegeType())
46959
- },
46960
- // __readDocumentUrl__
46961
- __baseUrl__$1);
46818
+ }, __baseUrl__$1);
46962
46819
  case 2:
46963
46820
  data = _context11.v;
46964
46821
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47007,9 +46864,7 @@ var DRUG_SERVICE_APPLICABILITY_TYPE = createAsyncThunk("drugCatalogMasterApiSlic
47007
46864
  _context12.n = 2;
47008
46865
  return fetchData({
47009
46866
  body: JSON.stringify(drugCatalogMasterQuery.drugServiceApplicabilityType())
47010
- },
47011
- // __readDocumentUrl__
47012
- __baseUrl__$1);
46867
+ }, __baseUrl__$1);
47013
46868
  case 2:
47014
46869
  data = _context12.v;
47015
46870
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47058,9 +46913,7 @@ var DRUG_FACILITY_OPTIONS = createAsyncThunk("drugCatalogMasterApiSlice/drug_fac
47058
46913
  _context13.n = 2;
47059
46914
  return fetchData({
47060
46915
  body: JSON.stringify(drugCatalogMasterQuery.drugFacilityOptions())
47061
- },
47062
- // __readDocumentUrl__
47063
- __baseUrl__$1);
46916
+ }, __baseUrl__$1);
47064
46917
  case 2:
47065
46918
  data = _context13.v;
47066
46919
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47109,9 +46962,7 @@ var DRUG_APPROVAL_WORKFLOW_OPTIONS = createAsyncThunk("drugCatalogMasterApiSlice
47109
46962
  _context14.n = 2;
47110
46963
  return fetchData({
47111
46964
  body: JSON.stringify(drugCatalogMasterQuery.drugApprovalWorkflowOptions())
47112
- },
47113
- // __readDocumentUrl__
47114
- __baseUrl__$1);
46965
+ }, __baseUrl__$1);
47115
46966
  case 2:
47116
46967
  data = _context14.v;
47117
46968
  if (!((data === null || data === void 0 ? void 0 : data.length) > 0)) {
@@ -47198,9 +47049,7 @@ var DRUG_ALERTS_RESTRICTIONS_SINGLE_READ = createAsyncThunk("drugCatalogMasterAp
47198
47049
  _context16.n = 2;
47199
47050
  return fetchData({
47200
47051
  body: JSON.stringify(drugCatalogMasterQuery.drugalertRestrictionSingleRead(id))
47201
- },
47202
- // __readDocumentUrl__
47203
- __baseUrl__$1);
47052
+ }, __baseUrl__$1);
47204
47053
  case 2:
47205
47054
  data = _context16.v;
47206
47055
  return _context16.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -47233,9 +47082,7 @@ var DRUG_MAPPED_DISPENSABLE_READ = createAsyncThunk("drugCatalogMasterApiSlice/d
47233
47082
  _context17.n = 2;
47234
47083
  return fetchData({
47235
47084
  body: JSON.stringify(drugCatalogMasterQuery.drugMappedDispensableRead(_id))
47236
- },
47237
- // __readDocumentUrl__
47238
- __baseUrl__$1);
47085
+ }, __baseUrl__$1);
47239
47086
  case 2:
47240
47087
  data = _context17.v;
47241
47088
  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.182",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",