primary_care_admin_binder 0.1.3 → 0.1.4

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 +565 -225
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -9451,7 +9451,7 @@ var query$a = {
9451
9451
  getAgeRange: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeRanges\",\n \"return_fields\": \"MERGE(AgeRanges, {AgeCategory: (FOR cat IN TO_ARRAY(AgeRanges.AgeCategory) RETURN MERGE(DOCUMENT(cat), {UOM:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(cat).UOM).coding) RETURN MERGE(DOCUMENT(DOCUMENT(cat).UOM),{coding:DOCUMENT(cod)} ) ) } ) ) } )\",\n \"sort\":\"AgeRanges.createddate\"\n }")
9452
9452
  };
9453
9453
 
9454
- var generateJson$a = function generateJson(data) {
9454
+ var generateJson$b = function generateJson(data) {
9455
9455
  var filter = {};
9456
9456
 
9457
9457
  if (data.editData) {
@@ -9516,7 +9516,7 @@ var UPSERT_AGE_RANGE = createAsyncThunk("ageRangeMasterApiSlice/save_age_range",
9516
9516
  _ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
9517
9517
  _context.prev = 2;
9518
9518
  dataList = payload.dataList;
9519
- queriesjson = generateJson$a(dataList);
9519
+ queriesjson = generateJson$b(dataList);
9520
9520
  _context.next = 7;
9521
9521
  return fetchData({
9522
9522
  body: JSON.stringify(queriesjson)
@@ -9724,7 +9724,7 @@ var query$9 = {
9724
9724
  getList: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\": \"VitalsMeasureCodes.createddate\",\n \"filter\": {\n \"VitalsMeasureCodes\":\"VitalsMeasureCodes.activestatus==true\"\n },\n \"return_fields\": \"VitalsMeasureCodes\"\n }")
9725
9725
  };
9726
9726
 
9727
- var generateJson$9 = function generateJson(data) {
9727
+ var generateJson$a = function generateJson(data) {
9728
9728
  var filter = {};
9729
9729
 
9730
9730
  if (data.edit_data) {
@@ -9809,7 +9809,7 @@ var UPSERT_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/save_measure_cod
9809
9809
  _ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
9810
9810
  _context2.prev = 2;
9811
9811
  dataList = payload.dataList;
9812
- queriesjson = generateJson$9(dataList);
9812
+ queriesjson = generateJson$a(dataList);
9813
9813
  _context2.next = 7;
9814
9814
  return fetchData({
9815
9815
  body: JSON.stringify(queriesjson)
@@ -15411,7 +15411,7 @@ var queries$h = {
15411
15411
  }
15412
15412
  };
15413
15413
 
15414
- var generateJson$8 = {
15414
+ var generateJson$9 = {
15415
15415
  insert_json: function insert_json(data, key) {
15416
15416
  var _data$TotNoOfResource, _data$generalInstruct, _data$ApptInstruction;
15417
15417
 
@@ -16088,7 +16088,7 @@ var RES_UPSERT_INSER_NEW = createAsyncThunk("resourceByAppointmentTypesSlice/res
16088
16088
  _ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
16089
16089
  _context11.prev = 2;
16090
16090
  state = payload.state, key = payload.key;
16091
- queriesjson = generateJson$8.insert_json(state, key);
16091
+ queriesjson = generateJson$9.insert_json(state, key);
16092
16092
  _context11.next = 7;
16093
16093
  return fetchData({
16094
16094
  body: JSON.stringify(queriesjson)
@@ -20159,7 +20159,7 @@ var queries$d = {
20159
20159
  }
20160
20160
  };
20161
20161
 
20162
- var generateJson$7 = function generateJson(data, _key) {
20162
+ var generateJson$8 = function generateJson(data, _key) {
20163
20163
  var _data$performingData, _data$orderingFacilit, _data$orderingFacilit2, _data$locationType$va, _data$locationType, _data$sourceLocation$, _data$sourceLocation, _data$ServiceApplicab, _data$ServiceApplicab2, _data$status;
20164
20164
 
20165
20165
  var filter = {};
@@ -20419,7 +20419,7 @@ var UPSERT_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/save_perf
20419
20419
  _ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
20420
20420
  _context5.prev = 2;
20421
20421
  list = payload.list, _key = payload._key;
20422
- queriesjson = generateJson$7(list, _key); // return
20422
+ queriesjson = generateJson$8(list, _key); // return
20423
20423
 
20424
20424
  console.log("recived", list);
20425
20425
  _context5.next = 8;
@@ -22107,7 +22107,7 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
22107
22107
  return obj;
22108
22108
  };
22109
22109
 
22110
- var generateJson$6 = {
22110
+ var generateJson$7 = {
22111
22111
  insert_json: function insert_json(data, key) {
22112
22112
  var _data$Identification, _data$Alias, _data$Address, _data$Contact, _data$ContactPersonDe, _data$specialtyDetail, _data$ParentEntity, _data$ParentEntity2, _data$LevelOfCare, _data$imageDetails$, _data$imageDetails$2, _data$imageDetails$3, _data$imageDetails$4;
22113
22113
 
@@ -23648,7 +23648,7 @@ var SET_ORGANIZATION = createAsyncThunk("organizationSlice/setOrganization", /*#
23648
23648
  _ref48 = _args24.length > 1 ? _args24[1] : undefined, rejectWithValue = _ref48.rejectWithValue;
23649
23649
  _context24.prev = 2;
23650
23650
  state = payload.state, key = payload.key;
23651
- queriesjson = generateJson$6.insert_json(state, key);
23651
+ queriesjson = generateJson$7.insert_json(state, key);
23652
23652
  _context24.next = 7;
23653
23653
  return fetchData({
23654
23654
  body: JSON.stringify(queriesjson)
@@ -24143,7 +24143,7 @@ var queries$b = {
24143
24143
  }
24144
24144
  };
24145
24145
 
24146
- var generateJson$5 = function generateJson(data) {
24146
+ var generateJson$6 = function generateJson(data) {
24147
24147
  var _data$status, _data$serviceDescript, _data$comment, _data$id, _data$speciality$valu, _data$speciality, _data$serviceCategory, _data$serviceCategory2, _data$serviceType$val, _data$serviceType, _data$serviceCode;
24148
24148
 
24149
24149
  var filter = {};
@@ -24760,7 +24760,7 @@ var HEALTH_CARE_SERVICE_INSERT = createAsyncThunk("organizationConfigApiSlice/sa
24760
24760
  _ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
24761
24761
  _context8.prev = 2;
24762
24762
  dataList = payload.dataList;
24763
- queriesjson = generateJson$5(dataList);
24763
+ queriesjson = generateJson$6(dataList);
24764
24764
  _context8.next = 7;
24765
24765
  return fetchData({
24766
24766
  body: JSON.stringify(queriesjson)
@@ -27856,7 +27856,7 @@ var user_actions = _objectSpread2({}, userActions);
27856
27856
 
27857
27857
  var user_management_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, roles_actions), repository_actions), permission_actions), person_actions), user_actions);
27858
27858
 
27859
- var generateJson$4 = function generateJson(data, _key) {
27859
+ var generateJson$5 = function generateJson(data, _key) {
27860
27860
  var _data$approvalData, _data$orderingFacilit, _data$orderingFacilit2, _data$ServiceApplicab, _data$ServiceApplicab2, _data$ruleType$_id, _data$ruleType, _data$PrivilegeType$_, _data$PrivilegeType, _data$status;
27861
27861
 
27862
27862
  var filter = {};
@@ -27917,7 +27917,7 @@ var UPSERT_ALERT = createAsyncThunk("alertRestictionsMasterSlice/save_alert", /*
27917
27917
  _ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
27918
27918
  _context.prev = 2;
27919
27919
  list = payload.list, _key = payload._key;
27920
- queriesjson = generateJson$4(list, _key); // return
27920
+ queriesjson = generateJson$5(list, _key); // return
27921
27921
 
27922
27922
  _context.next = 7;
27923
27923
  return fetchData({
@@ -28320,7 +28320,7 @@ var queries$5 = {
28320
28320
  }
28321
28321
  };
28322
28322
 
28323
- var generateJson$3 = {
28323
+ var generateJson$4 = {
28324
28324
  insert_json: function insert_json(data, key) {
28325
28325
  var _data$coversionData;
28326
28326
 
@@ -28595,7 +28595,7 @@ var UOM_CODE_INSERT = createAsyncThunk("drugRoutesSlice/drug_uom_code_insert", /
28595
28595
  _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
28596
28596
  _context4.prev = 2;
28597
28597
  data = payload.data, key = payload.key;
28598
- queriesjson = generateJson$3.insert_json(data, key);
28598
+ queriesjson = generateJson$4.insert_json(data, key);
28599
28599
  _context4.next = 7;
28600
28600
  return fetchData({
28601
28601
  body: JSON.stringify(queriesjson)
@@ -28845,7 +28845,7 @@ var queries$4 = {
28845
28845
  }
28846
28846
  };
28847
28847
 
28848
- var generateJson$2 = {
28848
+ var generateJson$3 = {
28849
28849
  insert_json: function insert_json(data, key) {
28850
28850
  var _data$frequencyDefini, _data$frequencyDefini2, _data$frequencyDefini3, _data$frequencyDescri, _data$frequencyDescri2, _data$frequencyDescri3, _data$frequencyDescri4, _data$frequencyDescri5, _data$frequencyDescri6, _data$frequencyDescri7, _data$frequencyDescri8, _data$frequencyDescri9, _data$frequencyDescri10, _data$frequencyDescri11, _data$frequencyDescri12, _data$frequencyDescri13, _data$frequencyDescri14, _data$frequencyDescri15;
28851
28851
 
@@ -29265,7 +29265,7 @@ var UOM_DRUG_FREQ_INSERT = createAsyncThunk("drugMasterFREQUENCYSlice/drug_uom_f
29265
29265
  _ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
29266
29266
  _context7.prev = 2;
29267
29267
  data = payload.data, key = payload.key;
29268
- queriesjson = generateJson$2.insert_json(data, key);
29268
+ queriesjson = generateJson$3.insert_json(data, key);
29269
29269
  _context7.next = 7;
29270
29270
  return fetchData({
29271
29271
  body: JSON.stringify(queriesjson)
@@ -29521,7 +29521,7 @@ var orderCategoty = {
29521
29521
  };
29522
29522
  }
29523
29523
  };
29524
- var dynamicMaster = {
29524
+ var dynamicMaster$1 = {
29525
29525
  orderDrugType: function orderDrugType(order_category) {
29526
29526
  return {
29527
29527
  db_name: "".concat(dbName),
@@ -29542,7 +29542,7 @@ var dynamicMaster = {
29542
29542
  }
29543
29543
  };
29544
29544
 
29545
- var generateJson$1 = function generateJson(data) {
29545
+ var generateJson$2 = function generateJson(data) {
29546
29546
  var _data$id, _data$orderSetCode, _data$shortdes, _data$longdes;
29547
29547
 
29548
29548
  var filter = {};
@@ -30177,7 +30177,7 @@ var ORDER_DRUG_MASTER = createAsyncThunk("orderSetMasterApiSlice/order_drug_mast
30177
30177
  order_category = payload.order_category;
30178
30178
  _context8.next = 6;
30179
30179
  return fetchData({
30180
- body: JSON.stringify(dynamicMaster.orderDrugType(order_category))
30180
+ body: JSON.stringify(dynamicMaster$1.orderDrugType(order_category))
30181
30181
  }, __readDocumentUrl__);
30182
30182
 
30183
30183
  case 6:
@@ -30231,7 +30231,7 @@ var ORDER_DRUG_CATALOG_MASTER = createAsyncThunk("orderSetMasterApiSlice/order_d
30231
30231
  order_category = payload.order_category, order_drug_type = payload.order_drug_type;
30232
30232
  _context9.next = 6;
30233
30233
  return fetchData({
30234
- body: JSON.stringify(dynamicMaster.orderDrugCatalog(order_category, order_drug_type))
30234
+ body: JSON.stringify(dynamicMaster$1.orderDrugCatalog(order_category, order_drug_type))
30235
30235
  }, __readDocumentUrl__);
30236
30236
 
30237
30237
  case 6:
@@ -30301,7 +30301,7 @@ var UPSERT_ORDER_SET = createAsyncThunk("orderSetMasterApiSlice/order_set_upsert
30301
30301
  _ref17 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
30302
30302
  _context10.prev = 2;
30303
30303
  dataList = payload.dataList;
30304
- queriesjson = generateJson$1(dataList);
30304
+ queriesjson = generateJson$2(dataList);
30305
30305
  _context10.next = 7;
30306
30306
  return fetchData({
30307
30307
  body: JSON.stringify(queriesjson)
@@ -30510,15 +30510,15 @@ var query$2 = {
30510
30510
  db_name: "".concat(dbName),
30511
30511
  entity: "CA_OrderSet_Applicability",
30512
30512
  filter: "CA_OrderSet_Applicability.Ordersetcode=='".concat(_id, "' && CA_OrderSet_Applicability.activestatus==true"),
30513
- return_fields: "merge(CA_OrderSet_Applicability,{Ordersetcode:merge(document(CA_OrderSet_Applicability.Ordersetcode),{components:document(document(CA_OrderSet_Applicability.Ordersetcode).components)}),diagnosisCode:document(CA_OrderSet_Applicability.diagnosisCode),practRoleId:merge(document(CA_OrderSet_Applicability.practRoleId),{name:document(document(CA_OrderSet_Applicability.practRoleId).name)}),practCode:document(CA_OrderSet_Applicability.practCode),specialty:document(CA_OrderSet_Applicability.specialty),locationCode:document(CA_OrderSet_Applicability.locationCode),locationType:document(CA_OrderSet_Applicability.locationType),organizationCode:document(CA_OrderSet_Applicability.organizationCode)})"
30513
+ return_fields: "merge(CA_OrderSet_Applicability,{Ordersetcode:merge(document(CA_OrderSet_Applicability.Ordersetcode),{components:document(document(CA_OrderSet_Applicability.Ordersetcode).components)}),diagnosisCode:document(CA_OrderSet_Applicability.diagnosisCode),practRoleId:merge(document(CA_OrderSet_Applicability.practRoleId),{name:document(document(CA_OrderSet_Applicability.practRoleId).name)}),practCode:document(CA_OrderSet_Applicability.practCode),specialty:document(CA_OrderSet_Applicability.specialty),locationCode:document(CA_OrderSet_Applicability.locationCode),locationType:document(CA_OrderSet_Applicability.locationType),organizationCode:document(CA_OrderSet_Applicability.organizationCode)},{diagGroup:document(CA_OrderSet_Applicability.diagGroup)})"
30514
30514
  };
30515
30515
  },
30516
- orderSetListById: function orderSetListById(_key) {
30516
+ orderSetApplicabilityById: function orderSetApplicabilityById(_key) {
30517
30517
  return {
30518
30518
  db_name: "".concat(dbName),
30519
- entity: "CA_OrderSet",
30520
- filter: "CA_OrderSet._key == '".concat(_key, "' && CA_OrderSet.activestatus == true"),
30521
- return_fields: "merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:merge(document(comp.orderCatalog),{ordertype:document(document(comp.orderCatalog).ordertype)},{ordercategory:document(document(comp.orderCatalog).ordercategory)}),IVDosDurUOM:document(comp.IVDosDurUOM),IVInfusRateUOM:document(comp.IVInfusRateUOM),IVInfusRateVolUOM:document(comp.IVInfusRateVolUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltFreqRateUnit:document(comp.dfltFreqRateUnit),dfltFreqValUnit:document(comp.dfltFreqValUnit),dfltOrderUOM:document(comp.dfltOrderUOM),route:document(comp.route),dosageFreqCode:document(comp.dosageFreqCode)}))})"
30519
+ entity: "CA_OrderSet_Applicability",
30520
+ filter: "CA_OrderSet_Applicability._key=='".concat(_key, "' && CA_OrderSet_Applicability.activestatus==true"),
30521
+ return_fields: "merge(CA_OrderSet_Applicability,{diagGroup:document(CA_OrderSet_Applicability.diagGroup),Ordersetcode:merge(document(CA_OrderSet_Applicability.Ordersetcode),{components:document(document(CA_OrderSet_Applicability.Ordersetcode).components)}),diagnosisCode:document(CA_OrderSet_Applicability.diagnosisCode),practRoleId:merge(document(CA_OrderSet_Applicability.practRoleId),{name:document(document(CA_OrderSet_Applicability.practRoleId).name)}),practCode:document(CA_OrderSet_Applicability.practCode),specialty:document(CA_OrderSet_Applicability.specialty),locationCode:document(CA_OrderSet_Applicability.locationCode),locationType:document(CA_OrderSet_Applicability.locationType),organizationCode:document(CA_OrderSet_Applicability.organizationCode)})"
30522
30522
  };
30523
30523
  },
30524
30524
  status_update_order_set_master: function status_update_order_set_master(data) {
@@ -30556,13 +30556,87 @@ var masterQuery = {
30556
30556
  //coding[0]?.display
30557
30557
  locationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='LOCATIONTYPE' && (lower(first(document(CodeableConceptMaster.coding)[*].display)) =='ward' || lower(first(document(CodeableConceptMaster.coding)[*].display)) == 'clinic' ) && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true \",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"first(document(CodeableConceptMaster.coding)[*].display)\"\n }")
30558
30558
  };
30559
+ var dynamicMaster = {
30560
+ orderSetAppPractitioner: function orderSetAppPractitioner(_id) {
30561
+ return {
30562
+ db_name: "".concat(dbName),
30563
+ entity: "Practitioner",
30564
+ filter: "Practitioner.practitioner_type=='".concat(_id, "' && Practitioner.activestatus==true && Practitioner.active == true"),
30565
+ return_fields: "merge (Practitioner,{name:(for hm in HumanNameMaster filter hm._id in Practitioner.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))})"
30566
+ };
30567
+ },
30568
+ orderSetAppDiagnosisGroup: function orderSetAppDiagnosisGroup(_id) {
30569
+ return {
30570
+ db_name: "".concat(dbName),
30571
+ entity: "Diagnosis",
30572
+ filter: "Diagnosis.termcode=='".concat(_id, "' && Diagnosis.icdcode == Diagnosis.parenticdcode && Diagnosis.activestatus==true"),
30573
+ return_fields: "KEEP(Diagnosis,'_id','id','_key','icdcode', 'icdname', 'parenticdcode', 'levelnumber')",
30574
+ sort: "Diagnosis.icdname"
30575
+ };
30576
+ },
30577
+ orderSetAppDiagnosisCode: function orderSetAppDiagnosisCode(_id, search) {
30578
+ return {
30579
+ db_name: "".concat(dbName),
30580
+ entity: "Diagnosis",
30581
+ filter: "((Diagnosis.icdcode != Diagnosis.parenticdcode && like (Diagnosis.icdname,'%".concat(search, "%',true)) || Diagnosis.parenticdcode=='").concat(_id, "') && Diagnosis.activestatus==true"),
30582
+ return_fields: "KEEP(Diagnosis,'_id','id','_key','icdcode', 'icdname', 'parenticdcode', 'levelnumber')",
30583
+ sort: "Diagnosis.icdname"
30584
+ };
30585
+ },
30586
+ orderSetAppLocation: function orderSetAppLocation(_id) {
30587
+ return {
30588
+ db_name: "".concat(dbName),
30589
+ entity: "LocationMaster",
30590
+ filter: "LocationMaster.locationType=='".concat(_id, "' && LocationMaster.activestatus==true && LocationMaster.status=='Active'"),
30591
+ return_fields: "KEEP(LocationMaster,'id','_id','key','locationID','longdesc','shortdesc')",
30592
+ sort: "LocationMaster.shortdesc"
30593
+ };
30594
+ }
30595
+ };
30596
+
30597
+ var generateJson$1 = function generateJson(data, orderSetKey) {
30598
+ var _data$id, _data$facility$value, _data$facility, _data$locationType$va, _data$locationType, _data$location$value, _data$location, _data$specialty$value, _data$specialty, _data$practitionerTyp, _data$practitionerTyp2, _data$practitioner$va, _data$practitioner, _data$codeSet$value, _data$codeSet, _data$diagnosisCode$v, _data$diagnosisCode, _data$diagnosisGroup$, _data$diagnosisGroup;
30599
+
30600
+ var filter = {};
30601
+
30602
+ if (data._key) {
30603
+ filter = {
30604
+ filter: {
30605
+ _key: data._key
30606
+ }
30607
+ };
30608
+ }
30609
+
30610
+ var arr = [_objectSpread2(_objectSpread2({
30611
+ db_name: dbName,
30612
+ entity: "CA_OrderSet_Applicability",
30613
+ is_metadata: true,
30614
+ metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
30615
+ }, filter), {}, {
30616
+ doc: {
30617
+ id: (_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : 0,
30618
+ organizationCode: (_data$facility$value = data === null || data === void 0 ? void 0 : (_data$facility = data.facility) === null || _data$facility === void 0 ? void 0 : _data$facility.value) !== null && _data$facility$value !== void 0 ? _data$facility$value : "",
30619
+ locationType: (_data$locationType$va = data === null || data === void 0 ? void 0 : (_data$locationType = data.locationType) === null || _data$locationType === void 0 ? void 0 : _data$locationType.value) !== null && _data$locationType$va !== void 0 ? _data$locationType$va : "",
30620
+ locationCode: (_data$location$value = data === null || data === void 0 ? void 0 : (_data$location = data.location) === null || _data$location === void 0 ? void 0 : _data$location.value) !== null && _data$location$value !== void 0 ? _data$location$value : "",
30621
+ specialty: (_data$specialty$value = data === null || data === void 0 ? void 0 : (_data$specialty = data.specialty) === null || _data$specialty === void 0 ? void 0 : _data$specialty.value) !== null && _data$specialty$value !== void 0 ? _data$specialty$value : "",
30622
+ practCode: (_data$practitionerTyp = data === null || data === void 0 ? void 0 : (_data$practitionerTyp2 = data.practitionerType) === null || _data$practitionerTyp2 === void 0 ? void 0 : _data$practitionerTyp2.value) !== null && _data$practitionerTyp !== void 0 ? _data$practitionerTyp : "",
30623
+ practRoleId: (_data$practitioner$va = data === null || data === void 0 ? void 0 : (_data$practitioner = data.practitioner) === null || _data$practitioner === void 0 ? void 0 : _data$practitioner.value) !== null && _data$practitioner$va !== void 0 ? _data$practitioner$va : "",
30624
+ healthcareService: "",
30625
+ diagcodeSet: (_data$codeSet$value = data === null || data === void 0 ? void 0 : (_data$codeSet = data.codeSet) === null || _data$codeSet === void 0 ? void 0 : _data$codeSet.value) !== null && _data$codeSet$value !== void 0 ? _data$codeSet$value : "",
30626
+ diagnosisCode: (_data$diagnosisCode$v = data === null || data === void 0 ? void 0 : (_data$diagnosisCode = data.diagnosisCode) === null || _data$diagnosisCode === void 0 ? void 0 : _data$diagnosisCode.value) !== null && _data$diagnosisCode$v !== void 0 ? _data$diagnosisCode$v : "",
30627
+ diagGroup: (_data$diagnosisGroup$ = data === null || data === void 0 ? void 0 : (_data$diagnosisGroup = data.diagnosisGroup) === null || _data$diagnosisGroup === void 0 ? void 0 : _data$diagnosisGroup.value) !== null && _data$diagnosisGroup$ !== void 0 ? _data$diagnosisGroup$ : "",
30628
+ Ordersetcode: orderSetKey !== null && orderSetKey !== void 0 ? orderSetKey : ""
30629
+ }
30630
+ })];
30631
+ return arr;
30632
+ };
30559
30633
 
30560
30634
  var generateReadJSON$1 = function generateReadJSON(data) {
30561
30635
  var arr = [];
30562
30636
 
30563
30637
  if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
30564
30638
  data === null || data === void 0 ? void 0 : data.map(function (val, i) {
30565
- var _val$Ordersetcode$_id, _val$Ordersetcode, _val$Ordersetcode$_ke, _val$Ordersetcode2, _val$Ordersetcode$id, _val$Ordersetcode3, _val$Ordersetcode$ord, _val$Ordersetcode4, _val$Ordersetcode$sho, _val$Ordersetcode5, _val$Ordersetcode$lon, _val$Ordersetcode6, _val$Ordersetcode$sta, _val$Ordersetcode7, _val$_id, _val$_key, _val$id, _val$locationCode, _val$locationCode2, _val$locationCode3, _val$locationCode4, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4, _val$diagnosisCode, _val$diagnosisCode2, _val$diagnosisCode3, _val$diagnosisCode4, _val$diagnosisCode5, _val$diagnosisCode6, _val$diagnosisCode7, _val$diagnosisCode8, _val$organizationCode, _val$organizationCode2, _val$organizationCode3, _val$organizationCode4, _val$practCode, _val$practCode2, _val$practCode3, _val$practCode4, _val$practRoleId, _val$practRoleId2, _val$practRoleId3, _val$practRoleId4, _val$practRoleId4$nam, _val$specialty, _val$specialty2, _val$specialty3, _val$specialty4;
30639
+ var _val$Ordersetcode$_id, _val$Ordersetcode, _val$Ordersetcode$_ke, _val$Ordersetcode2, _val$Ordersetcode$id, _val$Ordersetcode3, _val$Ordersetcode$ord, _val$Ordersetcode4, _val$Ordersetcode$sho, _val$Ordersetcode5, _val$Ordersetcode$lon, _val$Ordersetcode6, _val$Ordersetcode$sta, _val$Ordersetcode7, _val$_id, _val$_key, _val$id, _val$locationCode, _val$locationCode2, _val$locationCode3, _val$locationCode4, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4, _val$diagGroup, _val$diagGroup2, _val$diagGroup3, _val$diagGroup4, _val$diagnosisCode, _val$diagnosisCode2, _val$diagnosisCode3, _val$diagnosisCode4, _val$organizationCode, _val$organizationCode2, _val$organizationCode3, _val$organizationCode4, _val$practCode, _val$practCode2, _val$practCode3, _val$practCode4, _val$practRoleId, _val$practRoleId2, _val$practRoleId3, _val$practRoleId4, _val$practRoleId4$nam, _val$specialty, _val$specialty2, _val$specialty3, _val$specialty4;
30566
30640
 
30567
30641
  var obj = {
30568
30642
  //ORDER SET DETAILS
@@ -30585,14 +30659,14 @@ var generateReadJSON$1 = function generateReadJSON(data) {
30585
30659
  value: val === null || val === void 0 ? void 0 : (_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 ? void 0 : _val$locationType3._id,
30586
30660
  label: val === null || val === void 0 ? void 0 : (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 ? void 0 : _val$locationType4.display
30587
30661
  } : {},
30588
- diagnosisGroup: val !== null && val !== void 0 && (_val$diagnosisCode = val.diagnosisCode) !== null && _val$diagnosisCode !== void 0 && _val$diagnosisCode.icdname && val !== null && val !== void 0 && (_val$diagnosisCode2 = val.diagnosisCode) !== null && _val$diagnosisCode2 !== void 0 && _val$diagnosisCode2._id ? {
30662
+ diagnosisGroup: val !== null && val !== void 0 && (_val$diagGroup = val.diagGroup) !== null && _val$diagGroup !== void 0 && _val$diagGroup.icdname && val !== null && val !== void 0 && (_val$diagGroup2 = val.diagGroup) !== null && _val$diagGroup2 !== void 0 && _val$diagGroup2._id ? {
30663
+ value: val === null || val === void 0 ? void 0 : (_val$diagGroup3 = val.diagGroup) === null || _val$diagGroup3 === void 0 ? void 0 : _val$diagGroup3._id,
30664
+ label: val === null || val === void 0 ? void 0 : (_val$diagGroup4 = val.diagGroup) === null || _val$diagGroup4 === void 0 ? void 0 : _val$diagGroup4.icdname
30665
+ } : {},
30666
+ diagnosisCode: val !== null && val !== void 0 && (_val$diagnosisCode = val.diagnosisCode) !== null && _val$diagnosisCode !== void 0 && _val$diagnosisCode.icdname && val !== null && val !== void 0 && (_val$diagnosisCode2 = val.diagnosisCode) !== null && _val$diagnosisCode2 !== void 0 && _val$diagnosisCode2._id ? {
30589
30667
  value: val === null || val === void 0 ? void 0 : (_val$diagnosisCode3 = val.diagnosisCode) === null || _val$diagnosisCode3 === void 0 ? void 0 : _val$diagnosisCode3._id,
30590
30668
  label: val === null || val === void 0 ? void 0 : (_val$diagnosisCode4 = val.diagnosisCode) === null || _val$diagnosisCode4 === void 0 ? void 0 : _val$diagnosisCode4.icdname
30591
30669
  } : {},
30592
- diagnosisCode: val !== null && val !== void 0 && (_val$diagnosisCode5 = val.diagnosisCode) !== null && _val$diagnosisCode5 !== void 0 && _val$diagnosisCode5.icdname && val !== null && val !== void 0 && (_val$diagnosisCode6 = val.diagnosisCode) !== null && _val$diagnosisCode6 !== void 0 && _val$diagnosisCode6._id ? {
30593
- value: val === null || val === void 0 ? void 0 : (_val$diagnosisCode7 = val.diagnosisCode) === null || _val$diagnosisCode7 === void 0 ? void 0 : _val$diagnosisCode7._id,
30594
- label: val === null || val === void 0 ? void 0 : (_val$diagnosisCode8 = val.diagnosisCode) === null || _val$diagnosisCode8 === void 0 ? void 0 : _val$diagnosisCode8.icdname
30595
- } : {},
30596
30670
  diagcodeSet: val !== null && val !== void 0 && val.diagcodeSet ? {
30597
30671
  value: val === null || val === void 0 ? void 0 : val.diagcodeSet,
30598
30672
  label: val === null || val === void 0 ? void 0 : val.diagcodeSet
@@ -30620,6 +30694,53 @@ var generateReadJSON$1 = function generateReadJSON(data) {
30620
30694
 
30621
30695
  return arr;
30622
30696
  };
30697
+ var generateSingleReadJSON = function generateSingleReadJSON(data) {
30698
+ var _data$_id, _data$_key, _data$id, _data$locationCode, _data$locationCode2, _data$locationCode3, _data$locationCode4, _data$locationType, _data$locationType2, _data$locationType3, _data$locationType4, _data$diagGroup, _data$diagGroup2, _data$diagGroup3, _data$diagGroup4, _data$diagnosisCode, _data$diagnosisCode2, _data$diagnosisCode3, _data$diagnosisCode4, _data$organizationCod, _data$organizationCod2, _data$organizationCod3, _data$organizationCod4, _data$practCode, _data$practCode2, _data$practCode3, _data$practCode4, _data$practRoleId, _data$practRoleId2, _data$practRoleId3, _data$practRoleId4, _data$practRoleId4$na, _data$specialty, _data$specialty2, _data$specialty3, _data$specialty4;
30699
+
30700
+ var obj = {
30701
+ //ORDER APPLICABILITY DETAILS
30702
+ _id: (_data$_id = data === null || data === void 0 ? void 0 : data._id) !== null && _data$_id !== void 0 ? _data$_id : "",
30703
+ _key: (_data$_key = data === null || data === void 0 ? void 0 : data._key) !== null && _data$_key !== void 0 ? _data$_key : "",
30704
+ id: (_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : "",
30705
+ location: data !== null && data !== void 0 && (_data$locationCode = data.locationCode) !== null && _data$locationCode !== void 0 && _data$locationCode._id && data !== null && data !== void 0 && (_data$locationCode2 = data.locationCode) !== null && _data$locationCode2 !== void 0 && _data$locationCode2.longdesc ? {
30706
+ value: data === null || data === void 0 ? void 0 : (_data$locationCode3 = data.locationCode) === null || _data$locationCode3 === void 0 ? void 0 : _data$locationCode3._id,
30707
+ label: data === null || data === void 0 ? void 0 : (_data$locationCode4 = data.locationCode) === null || _data$locationCode4 === void 0 ? void 0 : _data$locationCode4.longdesc
30708
+ } : {},
30709
+ locationType: data !== null && data !== void 0 && (_data$locationType = data.locationType) !== null && _data$locationType !== void 0 && _data$locationType._id && data !== null && data !== void 0 && (_data$locationType2 = data.locationType) !== null && _data$locationType2 !== void 0 && _data$locationType2.display ? {
30710
+ value: data === null || data === void 0 ? void 0 : (_data$locationType3 = data.locationType) === null || _data$locationType3 === void 0 ? void 0 : _data$locationType3._id,
30711
+ label: data === null || data === void 0 ? void 0 : (_data$locationType4 = data.locationType) === null || _data$locationType4 === void 0 ? void 0 : _data$locationType4.display
30712
+ } : {},
30713
+ diagnosisGroup: data !== null && data !== void 0 && (_data$diagGroup = data.diagGroup) !== null && _data$diagGroup !== void 0 && _data$diagGroup.icdname && data !== null && data !== void 0 && (_data$diagGroup2 = data.diagGroup) !== null && _data$diagGroup2 !== void 0 && _data$diagGroup2._id ? {
30714
+ value: data === null || data === void 0 ? void 0 : (_data$diagGroup3 = data.diagGroup) === null || _data$diagGroup3 === void 0 ? void 0 : _data$diagGroup3._id,
30715
+ label: data === null || data === void 0 ? void 0 : (_data$diagGroup4 = data.diagGroup) === null || _data$diagGroup4 === void 0 ? void 0 : _data$diagGroup4.icdname
30716
+ } : {},
30717
+ diagnosisCode: data !== null && data !== void 0 && (_data$diagnosisCode = data.diagnosisCode) !== null && _data$diagnosisCode !== void 0 && _data$diagnosisCode.icdname && data !== null && data !== void 0 && (_data$diagnosisCode2 = data.diagnosisCode) !== null && _data$diagnosisCode2 !== void 0 && _data$diagnosisCode2._id ? {
30718
+ value: data === null || data === void 0 ? void 0 : (_data$diagnosisCode3 = data.diagnosisCode) === null || _data$diagnosisCode3 === void 0 ? void 0 : _data$diagnosisCode3._id,
30719
+ label: data === null || data === void 0 ? void 0 : (_data$diagnosisCode4 = data.diagnosisCode) === null || _data$diagnosisCode4 === void 0 ? void 0 : _data$diagnosisCode4.icdname
30720
+ } : {},
30721
+ codeSet: data !== null && data !== void 0 && data.diagcodeSet ? {
30722
+ value: data === null || data === void 0 ? void 0 : data.diagcodeSet,
30723
+ label: data === null || data === void 0 ? void 0 : data.diagcodeSet
30724
+ } : {},
30725
+ facility: data !== null && data !== void 0 && (_data$organizationCod = data.organizationCode) !== null && _data$organizationCod !== void 0 && _data$organizationCod.name && data !== null && data !== void 0 && (_data$organizationCod2 = data.organizationCode) !== null && _data$organizationCod2 !== void 0 && _data$organizationCod2._id ? {
30726
+ value: data === null || data === void 0 ? void 0 : (_data$organizationCod3 = data.organizationCode) === null || _data$organizationCod3 === void 0 ? void 0 : _data$organizationCod3._id,
30727
+ label: data === null || data === void 0 ? void 0 : (_data$organizationCod4 = data.organizationCode) === null || _data$organizationCod4 === void 0 ? void 0 : _data$organizationCod4.name
30728
+ } : {},
30729
+ practitionerType: data !== null && data !== void 0 && (_data$practCode = data.practCode) !== null && _data$practCode !== void 0 && _data$practCode.shortdesc && data !== null && data !== void 0 && (_data$practCode2 = data.practCode) !== null && _data$practCode2 !== void 0 && _data$practCode2._id ? {
30730
+ value: data === null || data === void 0 ? void 0 : (_data$practCode3 = data.practCode) === null || _data$practCode3 === void 0 ? void 0 : _data$practCode3._id,
30731
+ label: data === null || data === void 0 ? void 0 : (_data$practCode4 = data.practCode) === null || _data$practCode4 === void 0 ? void 0 : _data$practCode4.shortdesc
30732
+ } : {},
30733
+ practitioner: data !== null && data !== void 0 && (_data$practRoleId = data.practRoleId) !== null && _data$practRoleId !== void 0 && _data$practRoleId._id && data !== null && data !== void 0 && (_data$practRoleId2 = data.practRoleId) !== null && _data$practRoleId2 !== void 0 && _data$practRoleId2.name ? {
30734
+ value: data === null || data === void 0 ? void 0 : (_data$practRoleId3 = data.practRoleId) === null || _data$practRoleId3 === void 0 ? void 0 : _data$practRoleId3._id,
30735
+ label: data === null || data === void 0 ? void 0 : (_data$practRoleId4 = data.practRoleId) === null || _data$practRoleId4 === void 0 ? void 0 : (_data$practRoleId4$na = _data$practRoleId4.name[0]) === null || _data$practRoleId4$na === void 0 ? void 0 : _data$practRoleId4$na.text
30736
+ } : {},
30737
+ specialty: data !== null && data !== void 0 && (_data$specialty = data.specialty) !== null && _data$specialty !== void 0 && _data$specialty._id && data !== null && data !== void 0 && (_data$specialty2 = data.specialty) !== null && _data$specialty2 !== void 0 && _data$specialty2.shortdesc ? {
30738
+ value: data === null || data === void 0 ? void 0 : (_data$specialty3 = data.specialty) === null || _data$specialty3 === void 0 ? void 0 : _data$specialty3._id,
30739
+ label: data === null || data === void 0 ? void 0 : (_data$specialty4 = data.specialty) === null || _data$specialty4 === void 0 ? void 0 : _data$specialty4.shortdesc
30740
+ } : {}
30741
+ };
30742
+ return obj;
30743
+ };
30623
30744
 
30624
30745
  var _extraReducers$7;
30625
30746
  var fileds = [//"facilityName",
@@ -30640,14 +30761,13 @@ var loopMasters$1 = function loopMasters() {
30640
30761
  while (1) {
30641
30762
  switch (_context.prev = _context.next) {
30642
30763
  case 0:
30643
- debugger;
30644
- _context.next = 3;
30764
+ _context.next = 2;
30645
30765
  return fetchMaster$1(val, masterQuery[val]);
30646
30766
 
30647
- case 3:
30767
+ case 2:
30648
30768
  return _context.abrupt("return", _context.sent);
30649
30769
 
30650
- case 4:
30770
+ case 3:
30651
30771
  case "end":
30652
30772
  return _context.stop();
30653
30773
  }
@@ -30661,14 +30781,17 @@ var loopMasters$1 = function loopMasters() {
30661
30781
  }());
30662
30782
  es6Promise.Promise.all(calls).then(function (data) {
30663
30783
  var json = {};
30664
- data.map(function (val) {
30784
+ data.map(function (val, i) {
30665
30785
  var arr = [];
30666
- val.data.map(function (value) {
30786
+ val.data.map(function (value, i_) {
30667
30787
  if (fileds.includes(val.name)) {
30668
30788
  if (value.coding[0] !== null) {
30789
+ var _value$coding, _value$coding$, _value$coding2, _value$coding2$;
30790
+
30669
30791
  arr.push({
30670
- label: value.coding[0].display,
30671
- value: value.coding[0]._id
30792
+ label: value === null || value === void 0 ? void 0 : (_value$coding = value.coding) === null || _value$coding === void 0 ? void 0 : (_value$coding$ = _value$coding[0]) === null || _value$coding$ === void 0 ? void 0 : _value$coding$.display,
30793
+ value: value === null || value === void 0 ? void 0 : (_value$coding2 = value.coding) === null || _value$coding2 === void 0 ? void 0 : (_value$coding2$ = _value$coding2[0]) === null || _value$coding2$ === void 0 ? void 0 : _value$coding2$._id,
30794
+ _id: value === null || value === void 0 ? void 0 : value._id
30672
30795
  });
30673
30796
  }
30674
30797
  } else if ("facilityName" === val.name) {
@@ -30677,10 +30800,13 @@ var loopMasters$1 = function loopMasters() {
30677
30800
  value: value._id
30678
30801
  });
30679
30802
  } else if ("codeSet" === val.name) {
30680
- debugger; // arr.push({
30681
- // label: value.name,
30682
- // value: value._id,
30683
- // });
30803
+ var _val$data, _val$data2;
30804
+
30805
+ var obj = {
30806
+ value: val === null || val === void 0 ? void 0 : (_val$data = val.data) === null || _val$data === void 0 ? void 0 : _val$data[i_],
30807
+ label: val === null || val === void 0 ? void 0 : (_val$data2 = val.data) === null || _val$data2 === void 0 ? void 0 : _val$data2[i_]
30808
+ };
30809
+ arr.push(obj);
30684
30810
  }
30685
30811
  });
30686
30812
  json[val.name] = arr;
@@ -30765,212 +30891,74 @@ var GET_ORDER_SET_APPLICABILITY_LIST = createAsyncThunk("orderSetApplicabilitySl
30765
30891
  case 6:
30766
30892
  data = _context4.sent;
30767
30893
  readJSON = generateReadJSON$1(data !== null && data !== void 0 && data.result ? data === null || data === void 0 ? void 0 : data.result : null);
30768
- debugger;
30769
30894
  return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
30770
30895
  data: readJSON
30771
30896
  }));
30772
30897
 
30773
- case 12:
30774
- _context4.prev = 12;
30898
+ case 11:
30899
+ _context4.prev = 11;
30775
30900
  _context4.t0 = _context4["catch"](2);
30776
30901
  return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
30777
30902
  message: _context4.t0.message
30778
30903
  })));
30779
30904
 
30780
- case 15:
30905
+ case 14:
30781
30906
  case "end":
30782
30907
  return _context4.stop();
30783
30908
  }
30784
30909
  }
30785
- }, _callee4, null, [[2, 12]]);
30786
- }))); //ORDER_SET_APPLICABILITY_MASTER
30910
+ }, _callee4, null, [[2, 11]]);
30911
+ }))); //GET_ORDER_SET_APPLICABILITY_SINGLE_READ
30787
30912
 
30788
- var ORDER_SET_APPLICABILITY_MASTER = createAsyncThunk("orderSetApplicabilitySlice/order_set_applicability_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
30789
- var _ref7,
30913
+ var GET_ORDER_SET_APPLICABILITY_SINGLE_READ = createAsyncThunk("orderSetApplicabilitySlice/order_set_applicability_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
30914
+ var payload,
30915
+ _ref7,
30790
30916
  rejectWithValue,
30917
+ _data$result,
30918
+ _data$result2,
30919
+ _key,
30791
30920
  data,
30921
+ readJSON,
30792
30922
  _args5 = arguments;
30793
30923
 
30794
30924
  return regeneratorRuntime.wrap(function _callee5$(_context5) {
30795
30925
  while (1) {
30796
30926
  switch (_context5.prev = _context5.next) {
30797
30927
  case 0:
30928
+ payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
30798
30929
  _ref7 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
30799
30930
  _context5.prev = 2;
30800
- _context5.next = 5;
30801
- return loopMasters$1();
30931
+ _key = payload._key;
30932
+ _context5.next = 6;
30933
+ return fetchData({
30934
+ body: JSON.stringify(query$2.orderSetApplicabilityById(_key))
30935
+ }, __readDocumentUrl__);
30802
30936
 
30803
- case 5:
30937
+ case 6:
30804
30938
  data = _context5.sent;
30805
- return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
30806
- data: data
30939
+ readJSON = generateSingleReadJSON(data !== null && data !== void 0 && (_data$result = data.result) !== null && _data$result !== void 0 && _data$result[0] ? data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2[0] : null);
30940
+ return _context5.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
30941
+ data: readJSON
30807
30942
  }));
30808
30943
 
30809
- case 9:
30810
- _context5.prev = 9;
30944
+ case 11:
30945
+ _context5.prev = 11;
30811
30946
  _context5.t0 = _context5["catch"](2);
30812
30947
  return _context5.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
30813
30948
  message: _context5.t0.message
30814
30949
  })));
30815
30950
 
30816
- case 12:
30951
+ case 14:
30817
30952
  case "end":
30818
30953
  return _context5.stop();
30819
30954
  }
30820
30955
  }
30821
- }, _callee5, null, [[2, 9]]);
30822
- }))); // //ORDER_CATEGORY_MASTER
30823
- // const ORDER_CATEGORY_MASTER = createAsyncThunk(
30824
- // `orderSetApplicabilitySlice/order_category_master`,
30825
- // async (payload = {}, { rejectWithValue }) => {
30826
- // try {
30827
- // const data_arr = await fetchData(
30828
- // { body: JSON.stringify(orderCategoty.orderCategory()) },
30829
- // __readDocumentUrl__
30830
- // );
30831
- // let arry = [];
30832
- // await data_arr.result.map((val) => {
30833
- // arry.push({
30834
- // value: val._id,
30835
- // label: val.shortdesc,
30836
- // });
30837
- // });
30838
- // return {
30839
- // ...defaultState.List,
30840
- // data: arry,
30841
- // };
30842
- // } catch (error) {
30843
- // return rejectWithValue({
30844
- // ...defaultReject,
30845
- // message: error.message,
30846
- // });
30847
- // }
30848
- // }
30849
- // );
30850
- // //ORDER_DRUG_MASTER
30851
- // const ORDER_DRUG_MASTER = createAsyncThunk(
30852
- // `orderSetApplicabilitySlice/order_drug_master`,
30853
- // async (payload = {}, { rejectWithValue }) => {
30854
- // try {
30855
- // let { order_category } = payload;
30856
- // const data_arr = await fetchData(
30857
- // { body: JSON.stringify(dynamicMaster.orderDrugType(order_category)) },
30858
- // __readDocumentUrl__
30859
- // );
30860
- // let arry = [];
30861
- // await data_arr.result.map((val) => {
30862
- // arry.push({
30863
- // value: val._id,
30864
- // label: val.shortdesc,
30865
- // });
30866
- // });
30867
- // return {
30868
- // ...defaultState.List,
30869
- // data: arry,
30870
- // };
30871
- // } catch (error) {
30872
- // return rejectWithValue({
30873
- // ...defaultReject,
30874
- // message: error.message,
30875
- // });
30876
- // }
30877
- // }
30878
- // );
30879
- // //ORDER_DRUG_CATALOG_MASTER
30880
- // const ORDER_DRUG_CATALOG_MASTER = createAsyncThunk(
30881
- // `orderSetApplicabilitySlice/order_drug_catalog_master`,
30882
- // async (payload = {}, { rejectWithValue }) => {
30883
- // try {
30884
- // let { order_category, order_drug_type } = payload;
30885
- // const data_arr = await fetchData(
30886
- // {
30887
- // body: JSON.stringify(
30888
- // dynamicMaster.orderDrugCatalog(order_category, order_drug_type)
30889
- // ),
30890
- // },
30891
- // __readDocumentUrl__
30892
- // );
30893
- // let arry = [];
30894
- // await data_arr.result.map((val) => {
30895
- // arry.push({
30896
- // value: val._id,
30897
- // label: val.shortdesc,
30898
- // });
30899
- // });
30900
- // return {
30901
- // ...defaultState.List,
30902
- // data: arry,
30903
- // };
30904
- // } catch (error) {
30905
- // return rejectWithValue({
30906
- // ...defaultReject,
30907
- // message: error.message,
30908
- // });
30909
- // }
30910
- // }
30911
- // );
30912
- // //UPSERT_ORDER_SET
30913
- // const UPSERT_ORDER_SET = createAsyncThunk(
30914
- // `orderSetApplicabilitySlice/order_set_upsertS`,
30915
- // async (payload = {}, { rejectWithValue }) => {
30916
- // try {
30917
- // let { dataList } = payload;
30918
- // let queriesjson = generateJson(dataList);
30919
- // const data = await fetchData(
30920
- // { body: JSON.stringify(queriesjson) },
30921
- // __uspsertUrl__
30922
- // );
30923
- // return {
30924
- // ...defaultState.List,
30925
- // data,
30926
- // };
30927
- // } catch (error) {
30928
- // return rejectWithValue({
30929
- // ...defaultReject,
30930
- // message: error.message,
30931
- // });
30932
- // }
30933
- // }
30934
- // );
30935
- // //ORDER_SET_SINGLE_READ
30936
- // const ORDER_SET_SINGLE_READ = createAsyncThunk(
30937
- // `orderSetApplicabilitySlice/order_set_single_read`,
30938
- // async (payload = {}, { rejectWithValue, getState }) => {
30939
- // try {
30940
- // let { _key } = payload;
30941
- // let state = getState();
30942
- // let ccState = state.orderSetMasterSlice;
30943
- // const data = await fetchData(
30944
- // { body: JSON.stringify(query.orderSetListById(_key)) },
30945
- // __readDocumentUrl__
30946
- // );
30947
- // let readJSON = generateReadJSON(
30948
- // data.result[0] ? data.result[0] : null,
30949
- // ccState
30950
- // );
30951
- // return {
30952
- // ...defaultState.List,
30953
- // data: readJSON,
30954
- // };
30955
- // } catch (error) {
30956
- // {
30957
- // alert(error.message);
30958
- // }
30959
- // return rejectWithValue({
30960
- // ...defaultReject,
30961
- // message: error.message,
30962
- // });
30963
- // }
30964
- // }
30965
- // );
30966
- //DELETE_ORDER_SET_COMPONENT
30967
- //DELETE_ORDER_SET_APPLICABILITY
30956
+ }, _callee5, null, [[2, 11]]);
30957
+ }))); //ORDER_SET_APPLICABILITY_MASTER
30968
30958
 
30969
- var DELETE_ORDER_SET_APPLICABILITY = createAsyncThunk("orderSetApplicabilitySlice/order_set_applicability_delete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
30970
- var payload,
30971
- _ref9,
30959
+ var ORDER_SET_APPLICABILITY_MASTER = createAsyncThunk("orderSetApplicabilitySlice/order_set_applicability_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
30960
+ var _ref9,
30972
30961
  rejectWithValue,
30973
- _key,
30974
30962
  data,
30975
30963
  _args6 = arguments;
30976
30964
 
@@ -30978,41 +30966,351 @@ var DELETE_ORDER_SET_APPLICABILITY = createAsyncThunk("orderSetApplicabilitySlic
30978
30966
  while (1) {
30979
30967
  switch (_context6.prev = _context6.next) {
30980
30968
  case 0:
30981
- payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
30982
30969
  _ref9 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
30983
30970
  _context6.prev = 2;
30971
+ _context6.next = 5;
30972
+ return loopMasters$1();
30973
+
30974
+ case 5:
30975
+ data = _context6.sent;
30976
+ return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
30977
+ data: data
30978
+ }));
30979
+
30980
+ case 9:
30981
+ _context6.prev = 9;
30982
+ _context6.t0 = _context6["catch"](2);
30983
+ return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
30984
+ message: _context6.t0.message
30985
+ })));
30986
+
30987
+ case 12:
30988
+ case "end":
30989
+ return _context6.stop();
30990
+ }
30991
+ }
30992
+ }, _callee6, null, [[2, 9]]);
30993
+ }))); //ORDER_SET_APP_PRACTITIONER
30994
+
30995
+ var ORDER_SET_APP_PRACTITIONER = createAsyncThunk("orderSetApplicabilitySlice/order_set_app_practitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
30996
+ var payload,
30997
+ _ref11,
30998
+ rejectWithValue,
30999
+ _id,
31000
+ data_arr,
31001
+ arry,
31002
+ _args7 = arguments;
31003
+
31004
+ return regeneratorRuntime.wrap(function _callee7$(_context7) {
31005
+ while (1) {
31006
+ switch (_context7.prev = _context7.next) {
31007
+ case 0:
31008
+ payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
31009
+ _ref11 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref11.rejectWithValue;
31010
+ _context7.prev = 2;
31011
+ _id = payload._id;
31012
+ _context7.next = 6;
31013
+ return fetchData({
31014
+ body: JSON.stringify(dynamicMaster.orderSetAppPractitioner(_id))
31015
+ }, __readDocumentUrl__);
31016
+
31017
+ case 6:
31018
+ data_arr = _context7.sent;
31019
+ arry = [];
31020
+ _context7.next = 10;
31021
+ return data_arr.result.map(function (val) {
31022
+ var _val$_id, _val$name$0$text, _val$name, _val$name$;
31023
+
31024
+ arry.push({
31025
+ value: (_val$_id = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
31026
+ label: (_val$name$0$text = val === null || val === void 0 ? void 0 : (_val$name = val.name) === null || _val$name === void 0 ? void 0 : (_val$name$ = _val$name[0]) === null || _val$name$ === void 0 ? void 0 : _val$name$.text) !== null && _val$name$0$text !== void 0 ? _val$name$0$text : ""
31027
+ });
31028
+ });
31029
+
31030
+ case 10:
31031
+ return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31032
+ data: arry
31033
+ }));
31034
+
31035
+ case 13:
31036
+ _context7.prev = 13;
31037
+ _context7.t0 = _context7["catch"](2);
31038
+ return _context7.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31039
+ message: _context7.t0.message
31040
+ })));
31041
+
31042
+ case 16:
31043
+ case "end":
31044
+ return _context7.stop();
31045
+ }
31046
+ }
31047
+ }, _callee7, null, [[2, 13]]);
31048
+ }))); //ORDER_SET_APP_DIAGNOSIS_GROUP
31049
+
31050
+ var ORDER_SET_APP_DIAGNOSIS_GROUP = createAsyncThunk("orderSetApplicabilitySlice/order_set_app_diagnosis_group", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
31051
+ var payload,
31052
+ _ref13,
31053
+ rejectWithValue,
31054
+ _id,
31055
+ data_arr,
31056
+ arry,
31057
+ _args8 = arguments;
31058
+
31059
+ return regeneratorRuntime.wrap(function _callee8$(_context8) {
31060
+ while (1) {
31061
+ switch (_context8.prev = _context8.next) {
31062
+ case 0:
31063
+ payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
31064
+ _ref13 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
31065
+ _context8.prev = 2;
31066
+ _id = payload._id;
31067
+ _context8.next = 6;
31068
+ return fetchData({
31069
+ body: JSON.stringify(dynamicMaster.orderSetAppDiagnosisGroup(_id))
31070
+ }, __readDocumentUrl__);
31071
+
31072
+ case 6:
31073
+ data_arr = _context8.sent;
31074
+ arry = [];
31075
+ _context8.next = 10;
31076
+ return data_arr.result.map(function (val) {
31077
+ var _val$_id2, _val$icdcode;
31078
+
31079
+ arry.push({
31080
+ value: (_val$_id2 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : "",
31081
+ label: (_val$icdcode = val === null || val === void 0 ? void 0 : val.icdcode) !== null && _val$icdcode !== void 0 ? _val$icdcode : ""
31082
+ });
31083
+ });
31084
+
31085
+ case 10:
31086
+ return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31087
+ data: arry
31088
+ }));
31089
+
31090
+ case 13:
31091
+ _context8.prev = 13;
31092
+ _context8.t0 = _context8["catch"](2);
31093
+ return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31094
+ message: _context8.t0.message
31095
+ })));
31096
+
31097
+ case 16:
31098
+ case "end":
31099
+ return _context8.stop();
31100
+ }
31101
+ }
31102
+ }, _callee8, null, [[2, 13]]);
31103
+ }))); //ORDER_SET_APP_DIAGNOSIS_CODE
31104
+
31105
+ var ORDER_SET_APP_DIAGNOSIS_CODE = createAsyncThunk("orderSetApplicabilitySlice/order_set_app_diagnosis_code", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
31106
+ var payload,
31107
+ _ref15,
31108
+ rejectWithValue,
31109
+ _id,
31110
+ search,
31111
+ data_arr,
31112
+ arry,
31113
+ _args9 = arguments;
31114
+
31115
+ return regeneratorRuntime.wrap(function _callee9$(_context9) {
31116
+ while (1) {
31117
+ switch (_context9.prev = _context9.next) {
31118
+ case 0:
31119
+ payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
31120
+ _ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
31121
+ _context9.prev = 2;
31122
+ _id = payload._id, search = payload.search;
31123
+ _context9.next = 6;
31124
+ return fetchData({
31125
+ body: JSON.stringify(dynamicMaster.orderSetAppDiagnosisCode(_id, search))
31126
+ }, __readDocumentUrl__);
31127
+
31128
+ case 6:
31129
+ data_arr = _context9.sent;
31130
+ arry = [];
31131
+ _context9.next = 10;
31132
+ return data_arr.result.map(function (val) {
31133
+ var _val$_id3, _val$icdname;
31134
+
31135
+ arry.push({
31136
+ value: (_val$_id3 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id3 !== void 0 ? _val$_id3 : "",
31137
+ label: (_val$icdname = val === null || val === void 0 ? void 0 : val.icdname) !== null && _val$icdname !== void 0 ? _val$icdname : ""
31138
+ });
31139
+ });
31140
+
31141
+ case 10:
31142
+ return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31143
+ data: arry
31144
+ }));
31145
+
31146
+ case 13:
31147
+ _context9.prev = 13;
31148
+ _context9.t0 = _context9["catch"](2);
31149
+ return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31150
+ message: _context9.t0.message
31151
+ })));
31152
+
31153
+ case 16:
31154
+ case "end":
31155
+ return _context9.stop();
31156
+ }
31157
+ }
31158
+ }, _callee9, null, [[2, 13]]);
31159
+ }))); //ORDER_SET_APP_LOCATION
31160
+
31161
+ var ORDER_SET_APP_LOCATION = createAsyncThunk("orderSetApplicabilitySlice/order_set_app_location", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
31162
+ var payload,
31163
+ _ref17,
31164
+ rejectWithValue,
31165
+ _id,
31166
+ data_arr,
31167
+ arry,
31168
+ _args10 = arguments;
31169
+
31170
+ return regeneratorRuntime.wrap(function _callee10$(_context10) {
31171
+ while (1) {
31172
+ switch (_context10.prev = _context10.next) {
31173
+ case 0:
31174
+ payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
31175
+ _ref17 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
31176
+ _context10.prev = 2;
31177
+ _id = payload._id;
31178
+ _context10.next = 6;
31179
+ return fetchData({
31180
+ body: JSON.stringify(dynamicMaster.orderSetAppLocation(_id))
31181
+ }, __readDocumentUrl__);
31182
+
31183
+ case 6:
31184
+ data_arr = _context10.sent;
31185
+ arry = [];
31186
+ _context10.next = 10;
31187
+ return data_arr.result.map(function (val) {
31188
+ var _val$_id4, _val$shortdesc;
31189
+
31190
+ arry.push({
31191
+ value: (_val$_id4 = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id4 !== void 0 ? _val$_id4 : "",
31192
+ label: (_val$shortdesc = val === null || val === void 0 ? void 0 : val.shortdesc) !== null && _val$shortdesc !== void 0 ? _val$shortdesc : ""
31193
+ });
31194
+ });
31195
+
31196
+ case 10:
31197
+ return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31198
+ data: arry
31199
+ }));
31200
+
31201
+ case 13:
31202
+ _context10.prev = 13;
31203
+ _context10.t0 = _context10["catch"](2);
31204
+ return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31205
+ message: _context10.t0.message
31206
+ })));
31207
+
31208
+ case 16:
31209
+ case "end":
31210
+ return _context10.stop();
31211
+ }
31212
+ }
31213
+ }, _callee10, null, [[2, 13]]);
31214
+ }))); //DELETE_ORDER_SET_APPLICABILITY
31215
+
31216
+ var DELETE_ORDER_SET_APPLICABILITY = createAsyncThunk("orderSetApplicabilitySlice/order_set_applicability_delete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
31217
+ var payload,
31218
+ _ref19,
31219
+ rejectWithValue,
31220
+ _key,
31221
+ data,
31222
+ _args11 = arguments;
31223
+
31224
+ return regeneratorRuntime.wrap(function _callee11$(_context11) {
31225
+ while (1) {
31226
+ switch (_context11.prev = _context11.next) {
31227
+ case 0:
31228
+ payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
31229
+ _ref19 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
31230
+ _context11.prev = 2;
30984
31231
  _key = payload._key;
30985
- _context6.next = 6;
31232
+ _context11.next = 6;
30986
31233
  return fetchData({
30987
31234
  body: JSON.stringify(query$2.orderSetApplicabilityDelete(_key))
30988
31235
  }, __softDelete__);
30989
31236
 
30990
31237
  case 6:
30991
- data = _context6.sent;
30992
- return _context6.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31238
+ data = _context11.sent;
31239
+ return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
30993
31240
  data: data
30994
31241
  }));
30995
31242
 
30996
31243
  case 10:
30997
- _context6.prev = 10;
30998
- _context6.t0 = _context6["catch"](2);
30999
- return _context6.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31000
- message: _context6.t0.message
31244
+ _context11.prev = 10;
31245
+ _context11.t0 = _context11["catch"](2);
31246
+ return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31247
+ message: _context11.t0.message
31001
31248
  })));
31002
31249
 
31003
31250
  case 13:
31004
31251
  case "end":
31005
- return _context6.stop();
31252
+ return _context11.stop();
31006
31253
  }
31007
31254
  }
31008
- }, _callee6, null, [[2, 10]]);
31255
+ }, _callee11, null, [[2, 10]]);
31256
+ }))); //ORDER_SET_APPLICABILITY_UPSERT
31257
+
31258
+ var ORDER_SET_APPLICABILITY_UPSERT = createAsyncThunk("orderSetApplicabilitySlice/order_set_applicability_upsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
31259
+ var payload,
31260
+ _ref21,
31261
+ rejectWithValue,
31262
+ dataList,
31263
+ orderSetKey,
31264
+ queriesjson,
31265
+ data,
31266
+ _args12 = arguments;
31267
+
31268
+ return regeneratorRuntime.wrap(function _callee12$(_context12) {
31269
+ while (1) {
31270
+ switch (_context12.prev = _context12.next) {
31271
+ case 0:
31272
+ payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
31273
+ _ref21 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
31274
+ _context12.prev = 2;
31275
+ dataList = payload.dataList, orderSetKey = payload.orderSetKey;
31276
+ queriesjson = generateJson$1(dataList, orderSetKey);
31277
+ _context12.next = 7;
31278
+ return fetchData({
31279
+ body: JSON.stringify(queriesjson)
31280
+ }, __uspsertUrl__);
31281
+
31282
+ case 7:
31283
+ data = _context12.sent;
31284
+ return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
31285
+ data: data
31286
+ }));
31287
+
31288
+ case 11:
31289
+ _context12.prev = 11;
31290
+ _context12.t0 = _context12["catch"](2);
31291
+ return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
31292
+ message: _context12.t0.message
31293
+ })));
31294
+
31295
+ case 14:
31296
+ case "end":
31297
+ return _context12.stop();
31298
+ }
31299
+ }
31300
+ }, _callee12, null, [[2, 11]]);
31009
31301
  })));
31010
31302
  var orderSetApplicabilitySlice = createSlice({
31011
31303
  name: "orderSetApplicabilityApiSlice",
31012
31304
  initialState: {
31013
31305
  order_set_applicability_list: _objectSpread2({}, defaultState.List),
31306
+ order_set_applicability_single_read: _objectSpread2({}, defaultState.List),
31014
31307
  order_set_applicability_master: _objectSpread2({}, defaultState.List),
31015
- order_set_applicability_delete: _objectSpread2({}, defaultState.List)
31308
+ order_set_applicability_delete: _objectSpread2({}, defaultState.List),
31309
+ order_set_app_practitioner: _objectSpread2({}, defaultState.List),
31310
+ order_set_app_diagnosis_group: _objectSpread2({}, defaultState.List),
31311
+ order_set_app_diagnosis_code: _objectSpread2({}, defaultState.List),
31312
+ order_set_app_location: _objectSpread2({}, defaultState.List),
31313
+ order_set_applicability_upsert: _objectSpread2({}, defaultState.List)
31016
31314
  },
31017
31315
  extraReducers: (_extraReducers$7 = {}, _defineProperty(_extraReducers$7, GET_ORDER_SET_APPLICABILITY_LIST.fulfilled, function (state, action) {
31018
31316
  state.order_set_applicability_list.loading = false, state.order_set_applicability_list.error = false, state.order_set_applicability_list = action.payload;
@@ -31020,6 +31318,12 @@ var orderSetApplicabilitySlice = createSlice({
31020
31318
  state.order_set_applicability_list.loading = true, state.order_set_applicability_list.error = false, state.order_set_applicability_list.loading = true;
31021
31319
  }), _defineProperty(_extraReducers$7, GET_ORDER_SET_APPLICABILITY_LIST.rejected, function (state, action) {
31022
31320
  state.order_set_applicability_list.loading = false, state.order_set_applicability_list.error = true, state.order_set_applicability_list = action.payload;
31321
+ }), _defineProperty(_extraReducers$7, GET_ORDER_SET_APPLICABILITY_SINGLE_READ.fulfilled, function (state, action) {
31322
+ state.order_set_applicability_single_read.loading = false, state.order_set_applicability_single_read.error = false, state.order_set_applicability_single_read = action.payload;
31323
+ }), _defineProperty(_extraReducers$7, GET_ORDER_SET_APPLICABILITY_SINGLE_READ.pending, function (state, action) {
31324
+ state.order_set_applicability_single_read.loading = true, state.order_set_applicability_single_read.error = false, state.order_set_applicability_single_read.loading = true;
31325
+ }), _defineProperty(_extraReducers$7, GET_ORDER_SET_APPLICABILITY_SINGLE_READ.rejected, function (state, action) {
31326
+ state.order_set_applicability_single_read.loading = false, state.order_set_applicability_single_read.error = true, state.order_set_applicability_single_read = action.payload;
31023
31327
  }), _defineProperty(_extraReducers$7, ORDER_SET_APPLICABILITY_MASTER.fulfilled, function (state, action) {
31024
31328
  state.order_set_applicability_master.loading = false, state.order_set_applicability_master.error = false, state.order_set_applicability_master = action.payload;
31025
31329
  }), _defineProperty(_extraReducers$7, ORDER_SET_APPLICABILITY_MASTER.pending, function (state, action) {
@@ -31032,12 +31336,48 @@ var orderSetApplicabilitySlice = createSlice({
31032
31336
  state.order_set_applicability_delete.loading = true, state.order_set_applicability_delete.error = false, state.order_set_applicability_delete.loading = true;
31033
31337
  }), _defineProperty(_extraReducers$7, DELETE_ORDER_SET_APPLICABILITY.rejected, function (state, action) {
31034
31338
  state.order_set_applicability_delete.loading = false, state.order_set_applicability_delete.error = true, state.order_set_applicability_delete = action.payload;
31339
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_PRACTITIONER.fulfilled, function (state, action) {
31340
+ state.order_set_app_practitioner.loading = false, state.order_set_app_practitioner.error = false, state.order_set_app_practitioner = action.payload;
31341
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_PRACTITIONER.pending, function (state, action) {
31342
+ state.order_set_app_practitioner.loading = true, state.order_set_app_practitioner.error = false, state.order_set_app_practitioner.loading = true;
31343
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_PRACTITIONER.rejected, function (state, action) {
31344
+ state.order_set_app_practitioner.loading = false, state.order_set_app_practitioner.error = true, state.order_set_app_practitioner = action.payload;
31345
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_DIAGNOSIS_GROUP.fulfilled, function (state, action) {
31346
+ state.order_set_app_diagnosis_group.loading = false, state.order_set_app_diagnosis_group.error = false, state.order_set_app_diagnosis_group = action.payload;
31347
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_DIAGNOSIS_GROUP.pending, function (state, action) {
31348
+ state.order_set_app_diagnosis_group.loading = true, state.order_set_app_diagnosis_group.error = false, state.order_set_app_diagnosis_group.loading = true;
31349
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_DIAGNOSIS_GROUP.rejected, function (state, action) {
31350
+ state.order_set_app_diagnosis_group.loading = false, state.order_set_app_diagnosis_group.error = true, state.order_set_app_diagnosis_group = action.payload;
31351
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_DIAGNOSIS_CODE.fulfilled, function (state, action) {
31352
+ state.order_set_app_diagnosis_code.loading = false, state.order_set_app_diagnosis_code.error = false, state.order_set_app_diagnosis_code = action.payload;
31353
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_DIAGNOSIS_CODE.pending, function (state, action) {
31354
+ state.order_set_app_diagnosis_code.loading = true, state.order_set_app_diagnosis_code.error = false, state.order_set_app_diagnosis_code.loading = true;
31355
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_DIAGNOSIS_CODE.rejected, function (state, action) {
31356
+ state.order_set_app_diagnosis_code.loading = false, state.order_set_app_diagnosis_code.error = true, state.order_set_app_diagnosis_code = action.payload;
31357
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_LOCATION.fulfilled, function (state, action) {
31358
+ state.order_set_app_location.loading = false, state.order_set_app_location.error = false, state.order_set_app_location = action.payload;
31359
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_LOCATION.pending, function (state, action) {
31360
+ state.order_set_app_location.loading = true, state.order_set_app_location.error = false, state.order_set_app_location.loading = true;
31361
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APP_LOCATION.rejected, function (state, action) {
31362
+ state.order_set_app_location.loading = false, state.order_set_app_location.error = true, state.order_set_app_location = action.payload;
31363
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APPLICABILITY_UPSERT.fulfilled, function (state, action) {
31364
+ state.order_set_applicability_upsert.loading = false, state.order_set_applicability_upsert.error = false, state.order_set_applicability_upsert = action.payload;
31365
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APPLICABILITY_UPSERT.pending, function (state, action) {
31366
+ state.order_set_applicability_upsert.loading = true, state.order_set_applicability_upsert.error = false, state.order_set_applicability_upsert.loading = true;
31367
+ }), _defineProperty(_extraReducers$7, ORDER_SET_APPLICABILITY_UPSERT.rejected, function (state, action) {
31368
+ state.order_set_applicability_upsert.loading = false, state.order_set_applicability_upsert.error = true, state.order_set_applicability_upsert = action.payload;
31035
31369
  }), _extraReducers$7)
31036
31370
  });
31037
31371
  var orderSetApplicabilityActions = {
31038
31372
  GET_ORDER_SET_APPLICABILITY_LIST: GET_ORDER_SET_APPLICABILITY_LIST,
31373
+ GET_ORDER_SET_APPLICABILITY_SINGLE_READ: GET_ORDER_SET_APPLICABILITY_SINGLE_READ,
31039
31374
  ORDER_SET_APPLICABILITY_MASTER: ORDER_SET_APPLICABILITY_MASTER,
31040
- DELETE_ORDER_SET_APPLICABILITY: DELETE_ORDER_SET_APPLICABILITY
31375
+ DELETE_ORDER_SET_APPLICABILITY: DELETE_ORDER_SET_APPLICABILITY,
31376
+ ORDER_SET_APP_PRACTITIONER: ORDER_SET_APP_PRACTITIONER,
31377
+ ORDER_SET_APP_DIAGNOSIS_GROUP: ORDER_SET_APP_DIAGNOSIS_GROUP,
31378
+ ORDER_SET_APP_DIAGNOSIS_CODE: ORDER_SET_APP_DIAGNOSIS_CODE,
31379
+ ORDER_SET_APP_LOCATION: ORDER_SET_APP_LOCATION,
31380
+ ORDER_SET_APPLICABILITY_UPSERT: ORDER_SET_APPLICABILITY_UPSERT
31041
31381
  };
31042
31382
  var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
31043
31383
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",