primary_care_admin_binder 0.1.193 → 0.1.195

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 +253 -98
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -2394,7 +2394,6 @@ var _tenantId = "";
2394
2394
  * Builds all Binder URLs dynamically from runtime env
2395
2395
  */
2396
2396
  function getBinderUrls() {
2397
- var arangoApi = getBinderEnv("REACT_APP_ARANGO_API");
2398
2397
  var commonApi = getBinderEnv("REACT_APP_AIQOE_COMMON_API_URL");
2399
2398
  var keyClockApi = getBinderEnv("REACT_APP_KEY_CLOCK_API");
2400
2399
  var nifiApi = getBinderEnv("REACT_APP_NIFI_API");
@@ -2423,10 +2422,10 @@ function getBinderUrls() {
2423
2422
  return "".concat(commonApi, "/api/upsert_document");
2424
2423
  },
2425
2424
  updateUrl: function updateUrl() {
2426
- return "".concat(arangoApi, "/api/updatedocument");
2425
+ return "".concat(commonApi, "/api/updatedocument");
2427
2426
  },
2428
2427
  softDeleteUrl: function softDeleteUrl() {
2429
- return "".concat(arangoApi, "/api/soft_delete");
2428
+ return "".concat(commonApi, "/api/soft_delete");
2430
2429
  },
2431
2430
  // KeyClock / Appointment APIs
2432
2431
  createSlotUrl: function createSlotUrl() {
@@ -8531,7 +8530,7 @@ var queries$o = {
8531
8530
  }
8532
8531
  };
8533
8532
 
8534
- var _extraReducers$C;
8533
+ var _extraReducers$D;
8535
8534
  var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlist", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
8536
8535
  var payload,
8537
8536
  _ref2,
@@ -8831,7 +8830,7 @@ var practitionerSlice = createSlice({
8831
8830
  get_entity_by_id: _objectSpread2({}, defaultState.List),
8832
8831
  get_moh_user_detail: _objectSpread2({}, defaultState.List)
8833
8832
  },
8834
- extraReducers: (_extraReducers$C = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_ROLE_READ.fulfilled, function (state, action) {
8833
+ extraReducers: (_extraReducers$D = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$D, PRACTITIONER_ROLE_READ.fulfilled, function (state, action) {
8835
8834
  state.practitioner_role_list.loading = false, state.practitioner_role_list.error = false, state.practitioner_role_list = action.payload;
8836
8835
  }), PRACTITIONER_ROLE_READ.pending, function (state, action) {
8837
8836
  state.practitioner_role_list.loading = true, state.practitioner_role_list.error = false, state.practitioner_role_list.loading = true;
@@ -8851,7 +8850,7 @@ var practitionerSlice = createSlice({
8851
8850
  state.practitioner_list.loading = false, state.practitioner_list.error = true, state.practitioner_list = action.payload;
8852
8851
  }), PRACTITIONER_UPSERT.fulfilled, function (state, action) {
8853
8852
  state.practitioner_upsert.loading = false, state.practitioner_upsert.error = false, state.practitioner_upsert = action.payload;
8854
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_UPSERT.pending, function (state, action) {
8853
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$D, PRACTITIONER_UPSERT.pending, function (state, action) {
8855
8854
  state.practitioner_upsert.loading = true, state.practitioner_upsert.error = false, state.practitioner_upsert.loading = true;
8856
8855
  }), PRACTITIONER_UPSERT.rejected, function (state, action) {
8857
8856
  state.practitioner_upsert.loading = false, state.practitioner_upsert.error = true, state.practitioner_upsert = action.payload;
@@ -8871,7 +8870,7 @@ var practitionerSlice = createSlice({
8871
8870
  state.get_moh_user_detail.loading = false, state.get_moh_user_detail.error = false, state.get_moh_user_detail = action.payload;
8872
8871
  }), GET_MOH_USER_DETAIL.pending, function (state, action) {
8873
8872
  state.get_moh_user_detail.loading = true, state.get_moh_user_detail.error = false, state.get_moh_user_detail.loading = true;
8874
- }), _defineProperty(_extraReducers$C, GET_MOH_USER_DETAIL.rejected, function (state, action) {
8873
+ }), _defineProperty(_extraReducers$D, GET_MOH_USER_DETAIL.rejected, function (state, action) {
8875
8874
  state.get_moh_user_detail.loading = false, state.get_moh_user_detail.error = true, state.get_moh_user_detail = action.payload;
8876
8875
  }))
8877
8876
  });
@@ -8911,6 +8910,8 @@ var query_ids = {
8911
8910
  "signInApiSlice/SearchPractioner": "2fef3beb-6f38-48b0-955f-90f88dab2822",
8912
8911
  "VitalReadSearch": "8eefa71f-d48c-44a4-b5e1-e8271eb734d5",
8913
8912
  "VitalRead": "eebb32ae-0a5f-49b4-9484-41111ec83fa3",
8913
+ "vitalapplicable": "720ac9df-9d9f-4f68-aea1-88c964deb9ec",
8914
+ "vitalEntity": "3265e287-5a0e-482d-a2e9-d6ee96e83c9a",
8914
8915
  "getQDMDataType": "14a1a710-c539-494f-a405-49ca98c5950d",
8915
8916
  "generalMasterSearch": "92774963-ed7d-4bb7-a2fc-35e71668956b",
8916
8917
  "rcChargeRateSearch": "b6adb851-754e-4c7d-964f-b217e33945dd",
@@ -8930,6 +8931,7 @@ var query_ids = {
8930
8931
  "vitalsEdit": "3f69846f-8758-498e-ab5e-a6f590dc5416",
8931
8932
  "ageRanges": "e1002f54-d214-4f8d-b535-28bcc67a3926",
8932
8933
  "vitalsMeasureCodesList": "2ef8a78f-086c-4ebe-a5ef-2be95c26f2fe",
8934
+ "vitalsMeasureCodesEdit": "56d35dfc-d649-4de0-b8cf-8449068c01ec",
8933
8935
  "vitalsApplicableList": "7d5ed06f-91a4-4822-b409-9b189e49f439",
8934
8936
  "vitalsApplicableEdit": "a27804ae-8f06-471a-9216-e846860e8b8a",
8935
8937
  "ageCategory": "313b0701-3354-4421-8951-488f8daec57b",
@@ -8948,7 +8950,9 @@ var query_ids = {
8948
8950
  "coding_master_query": "95931016-caf1-413c-8bf5-96f05c5709fb",
8949
8951
  "location_list": "1482a15c-4eb0-48f8-9ce3-8a95f89dbdd0",
8950
8952
  "location_by_id": "134481f2-3c15-4165-8aec-1f92d99f3f2d",
8951
- "location_tree": "24f4da82-c4ae-40a4-b894-f7cf9dd398d1"
8953
+ "location_tree": "24f4da82-c4ae-40a4-b894-f7cf9dd398d1",
8954
+ "unitAllowed": "e94769bb-a05a-4c59-a5bc-3fff83602cc7",
8955
+ "category": "7282cb77-7516-4c1f-9e8a-d81760fd064a"
8952
8956
  };
8953
8957
 
8954
8958
  var codingMasterTypes = ["ALTERNATEIDTYPE", "RELATIONSHIP", "NAMEPREFIX", "NAMESUFFIX", "GENDER", "USE", "PRACTTYPE", "LANGUAGE", "SPECIALTY", "ORGTYPE", "CONTACTSYSTEM", "PRIORITY", "ADDRESSTYPE", "PRACTROLE", "POSITION", "EMPSTATUS", "MARITALSTATUS"];
@@ -9402,7 +9406,7 @@ var generateReadJSON$5 = function generateReadJSON(data) {
9402
9406
  return json;
9403
9407
  };
9404
9408
 
9405
- var _extraReducers$B;
9409
+ var _extraReducers$C;
9406
9410
  var loopMasters$9 = function loopMasters() {
9407
9411
  return new es6Promise.Promise(/*#__PURE__*/function () {
9408
9412
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(resolve, reject) {
@@ -9819,7 +9823,7 @@ var practitionerMasterSlice = createSlice({
9819
9823
  practitioner_city_master: _objectSpread2({}, defaultState.List),
9820
9824
  practitioner_pincode_master: _objectSpread2({}, defaultState.List)
9821
9825
  },
9822
- extraReducers: (_extraReducers$B = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$B, PRACTITIONER_MASTERS.fulfilled, function (state, action) {
9826
+ extraReducers: (_extraReducers$C = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_MASTERS.fulfilled, function (state, action) {
9823
9827
  state.practitioner_masters.loading = false, state.practitioner_masters.error = false, state.practitioner_masters = action.payload;
9824
9828
  }), PRACTITIONER_MASTERS.pending, function (state, action) {
9825
9829
  state.practitioner_masters.loading = true, state.practitioner_masters.error = false, state.practitioner_masters.loading = true;
@@ -9839,7 +9843,7 @@ var practitionerMasterSlice = createSlice({
9839
9843
  state.practitioner_country_master.loading = false, state.practitioner_country_master.error = true, state.practitioner_country_master = action.payload;
9840
9844
  }), PRACTITIONER_STATE_MASTER.fulfilled, function (state, action) {
9841
9845
  state.practitioner_state_master.loading = false, state.practitioner_state_master.error = false, state.practitioner_state_master = action.payload;
9842
- }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$B, PRACTITIONER_STATE_MASTER.pending, function (state, action) {
9846
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$C, PRACTITIONER_STATE_MASTER.pending, function (state, action) {
9843
9847
  state.practitioner_state_master.loading = true, state.practitioner_state_master.error = false, state.practitioner_state_master.loading = true;
9844
9848
  }), PRACTITIONER_STATE_MASTER.rejected, function (state, action) {
9845
9849
  state.practitioner_state_master.loading = false, state.practitioner_state_master.error = true, state.practitioner_state_master = action.payload;
@@ -9859,7 +9863,7 @@ var practitionerMasterSlice = createSlice({
9859
9863
  state.practitioner_pincode_master.loading = false, state.practitioner_pincode_master.error = false, state.practitioner_pincode_master = action.payload;
9860
9864
  }), PRACTITIONER_PINCODE_MASTER.pending, function (state, action) {
9861
9865
  state.practitioner_pincode_master.loading = true, state.practitioner_pincode_master.error = false, state.practitioner_pincode_master.loading = true;
9862
- }), _defineProperty(_extraReducers$B, PRACTITIONER_PINCODE_MASTER.rejected, function (state, action) {
9866
+ }), _defineProperty(_extraReducers$C, PRACTITIONER_PINCODE_MASTER.rejected, function (state, action) {
9863
9867
  state.practitioner_pincode_master.loading = false, state.practitioner_pincode_master.error = true, state.practitioner_pincode_master = action.payload;
9864
9868
  }))
9865
9869
  });
@@ -9972,7 +9976,7 @@ var query$c = {
9972
9976
  }
9973
9977
  };
9974
9978
 
9975
- var _extraReducers$A;
9979
+ var _extraReducers$B;
9976
9980
  var UPSERT_AGE_RANGE = createAsyncThunk("ageRangeMasterApiSlice/save_age_range", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9977
9981
  var payload,
9978
9982
  _ref2,
@@ -10118,7 +10122,7 @@ var ageRangeMasterSlice = createSlice({
10118
10122
  save_age_range: _objectSpread2({}, defaultState.Info),
10119
10123
  update_age_range: _objectSpread2({}, defaultState.Info)
10120
10124
  },
10121
- extraReducers: (_extraReducers$A = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$A, UNIT_UOM.fulfilled, function (state, action) {
10125
+ extraReducers: (_extraReducers$B = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$B, UNIT_UOM.fulfilled, function (state, action) {
10122
10126
  state.unit_uom_list.loading = false, state.unit_uom_list.error = false, state.unit_uom_list = action.payload;
10123
10127
  }), UNIT_UOM.pending, function (state, action) {
10124
10128
  state.unit_uom_list.loading = true, state.unit_uom_list.error = false, state.unit_uom_list.loading = true;
@@ -10138,7 +10142,7 @@ var ageRangeMasterSlice = createSlice({
10138
10142
  state.save_age_range.loading = false, state.save_age_range.error = true, state.save_age_range = action.payload;
10139
10143
  }), UPDATE_AGE_RANGE.fulfilled, function (state, action) {
10140
10144
  state.update_age_range.loading = false, state.update_age_range.error = false, state.update_age_range = action.payload;
10141
- }), _defineProperty(_defineProperty(_extraReducers$A, UPDATE_AGE_RANGE.pending, function (state, action) {
10145
+ }), _defineProperty(_defineProperty(_extraReducers$B, UPDATE_AGE_RANGE.pending, function (state, action) {
10142
10146
  state.update_age_range.loading = true, state.update_age_range.error = false, state.update_age_range.loading = true;
10143
10147
  }), UPDATE_AGE_RANGE.rejected, function (state, action) {
10144
10148
  state.update_age_range.loading = false, state.update_age_range.error = true, state.update_age_range = action.payload;
@@ -10163,6 +10167,18 @@ var query$b = {
10163
10167
  },
10164
10168
  requestid: query_ids.vitalsMeasureCodesList
10165
10169
  };
10170
+ },
10171
+ editMeasureCode: function editMeasureCode(id) {
10172
+ var str = String(id || "");
10173
+ var idx = str.lastIndexOf("/");
10174
+ var key = idx !== -1 ? str.slice(idx + 1) : str;
10175
+ return {
10176
+ appcode: dbName,
10177
+ filter: {
10178
+ _id: [key || id]
10179
+ },
10180
+ requestid: query_ids.vitalsMeasureCodesEdit
10181
+ };
10166
10182
  }
10167
10183
  };
10168
10184
 
@@ -10192,6 +10208,7 @@ var generateJson$b = function generateJson(data) {
10192
10208
  })];
10193
10209
  };
10194
10210
 
10211
+ var _extraReducers$A;
10195
10212
  var GET_VITALS_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/age_range_list", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
10196
10213
  var payload,
10197
10214
  _ref2,
@@ -10337,14 +10354,58 @@ var UPDATE_MEASURE_CODE_STATUS = createAsyncThunk("ageRangeMasterApiSlice/update
10337
10354
  }
10338
10355
  }, _callee3, null, [[1, 3]]);
10339
10356
  })));
10357
+ var EDIT_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/edit_measure_code", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
10358
+ var payload,
10359
+ _ref8,
10360
+ rejectWithValue,
10361
+ id,
10362
+ data,
10363
+ rawList,
10364
+ _data$0$result,
10365
+ _data$,
10366
+ _data$result,
10367
+ _args4 = arguments,
10368
+ _t4;
10369
+ return _regenerator().w(function (_context4) {
10370
+ while (1) switch (_context4.p = _context4.n) {
10371
+ case 0:
10372
+ payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
10373
+ _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
10374
+ _context4.p = 1;
10375
+ id = payload.id;
10376
+ _context4.n = 2;
10377
+ return fetchData({
10378
+ body: JSON.stringify(query$b.editMeasureCode(id))
10379
+ }, __readQdmQueries__);
10380
+ case 2:
10381
+ data = _context4.v;
10382
+ rawList = [];
10383
+ if (Array.isArray(data)) {
10384
+ rawList = (_data$0$result = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.result) !== null && _data$0$result !== void 0 ? _data$0$result : data;
10385
+ } else if (data) {
10386
+ rawList = (_data$result = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result !== void 0 ? _data$result : [data];
10387
+ }
10388
+ return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
10389
+ data: rawList
10390
+ }));
10391
+ case 3:
10392
+ _context4.p = 3;
10393
+ _t4 = _context4.v;
10394
+ return _context4.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
10395
+ message: _t4.message
10396
+ })));
10397
+ }
10398
+ }, _callee4, null, [[1, 3]]);
10399
+ })));
10340
10400
  var vitalsMeasureCodeSlice = createSlice({
10341
10401
  name: "measureCodeApiSlice",
10342
10402
  initialState: {
10343
10403
  meadure_code_list: _objectSpread2({}, defaultState.List),
10344
10404
  save_measure_code: _objectSpread2({}, defaultState.Info),
10345
- update_measure_status: _objectSpread2({}, defaultState.Info)
10405
+ update_measure_status: _objectSpread2({}, defaultState.Info),
10406
+ edit_measure_code: _objectSpread2({}, defaultState.List)
10346
10407
  },
10347
- extraReducers: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, GET_VITALS_MEASURE_CODE.fulfilled, function (state, action) {
10408
+ extraReducers: (_extraReducers$A = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$A, GET_VITALS_MEASURE_CODE.fulfilled, function (state, action) {
10348
10409
  state.meadure_code_list.loading = false, state.meadure_code_list.error = false, state.meadure_code_list = action.payload;
10349
10410
  }), GET_VITALS_MEASURE_CODE.pending, function (state, action) {
10350
10411
  state.meadure_code_list.loading = true, state.meadure_code_list.error = false, state.meadure_code_list.loading = true;
@@ -10362,20 +10423,31 @@ var vitalsMeasureCodeSlice = createSlice({
10362
10423
  state.update_measure_status.loading = true, state.update_measure_status.error = false, state.update_measure_status.loading = true;
10363
10424
  }), UPDATE_MEASURE_CODE_STATUS.rejected, function (state, action) {
10364
10425
  state.update_measure_status.loading = false, state.update_measure_status.error = true, state.update_measure_status = action.payload;
10365
- })
10426
+ }), EDIT_MEASURE_CODE.fulfilled, function (state, action) {
10427
+ state.edit_measure_code.loading = false, state.edit_measure_code.error = false, state.edit_measure_code = action.payload;
10428
+ }), _defineProperty(_defineProperty(_extraReducers$A, EDIT_MEASURE_CODE.pending, function (state, action) {
10429
+ state.edit_measure_code.loading = true, state.edit_measure_code.error = false, state.edit_measure_code.loading = true;
10430
+ }), EDIT_MEASURE_CODE.rejected, function (state, action) {
10431
+ state.edit_measure_code.loading = false, state.edit_measure_code.error = true, state.edit_measure_code = action.payload;
10432
+ }))
10366
10433
  });
10367
10434
  var vitalsMeasureCodeActions = {
10368
10435
  GET_VITALS_MEASURE_CODE: GET_VITALS_MEASURE_CODE,
10369
10436
  UPSERT_MEASURE_CODE: UPSERT_MEASURE_CODE,
10370
- UPDATE_MEASURE_CODE_STATUS: UPDATE_MEASURE_CODE_STATUS
10437
+ UPDATE_MEASURE_CODE_STATUS: UPDATE_MEASURE_CODE_STATUS,
10438
+ EDIT_MEASURE_CODE: EDIT_MEASURE_CODE
10371
10439
  };
10372
10440
  var vitalsMeasureCodeSlice$1 = vitalsMeasureCodeSlice.reducer;
10373
10441
 
10374
10442
  var query$a = {
10375
10443
  entityName: function entityName(data) {
10444
+ var _ref, _ref2, _ref3, _ref4, _data$list;
10445
+ var typeVal = _typeof(data) === "object" && data !== null ? (_ref = (_ref2 = (_ref3 = (_ref4 = (_data$list = data.list) !== null && _data$list !== void 0 ? _data$list : data.type) !== null && _ref4 !== void 0 ? _ref4 : data.orgType) !== null && _ref3 !== void 0 ? _ref3 : data.value) !== null && _ref2 !== void 0 ? _ref2 : data.label) !== null && _ref !== void 0 ? _ref : "" : String(data || "");
10376
10446
  return {
10377
10447
  appcode: _dbName,
10448
+ requestid: query_ids.vitalEntity,
10378
10449
  filter: {
10450
+ orgType: typeVal,
10379
10451
  activestatus: true
10380
10452
  }
10381
10453
  };
@@ -10389,7 +10461,7 @@ var query$a = {
10389
10461
  facilityid: "",
10390
10462
  lang: ""
10391
10463
  },
10392
- requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
10464
+ requestid: qdm_query_ids.gmLoadQuery
10393
10465
  };
10394
10466
  },
10395
10467
  gender: function gender() {
@@ -10401,16 +10473,19 @@ var query$a = {
10401
10473
  facilityid: "",
10402
10474
  lang: ""
10403
10475
  },
10404
- requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
10476
+ requestid: qdm_query_ids.gmLoadQuery
10405
10477
  };
10406
10478
  },
10407
10479
  specialityCodeOrgId: function specialityCodeOrgId(data) {
10408
10480
  return {
10409
10481
  appcode: _dbName,
10410
10482
  filter: {
10411
- id: data.id,
10412
- activestatus: true
10413
- }
10483
+ type: ["SPECIALTY"],
10484
+ tenantid: "",
10485
+ facilityid: "",
10486
+ lang: ""
10487
+ },
10488
+ requestid: qdm_query_ids.gmLoadQuery
10414
10489
  };
10415
10490
  },
10416
10491
  specialityCode: function specialityCode() {
@@ -10422,17 +10497,34 @@ var query$a = {
10422
10497
  facilityid: "",
10423
10498
  lang: ""
10424
10499
  },
10425
- requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
10500
+ requestid: qdm_query_ids.gmLoadQuery
10501
+ };
10502
+ },
10503
+ diagnosis: function diagnosis() {
10504
+ return {
10505
+ appcode: _dbName,
10506
+ filter: {
10507
+ activestatus: true
10508
+ },
10509
+ requestid: query_ids["diagnosisList"]
10426
10510
  };
10427
10511
  },
10428
- diagnosis: "{\n \"appcode\": \"".concat(_dbName, "\",\n \"filter\": {\n \"activestatus\": true\n }\n }"),
10429
10512
  ageRanges: function ageRanges() {
10430
10513
  return {
10431
10514
  appcode: _dbName,
10432
10515
  requestid: query_ids["ageRanges"]
10433
10516
  };
10434
10517
  },
10435
- vitalcode: "{\n \"appcode\": \"".concat(_dbName, "\",\n \"filter\": {\n \"activestatus\": true,\n \"status\": true\n }\n }"),
10518
+ vitalcode: function vitalcode() {
10519
+ return {
10520
+ appcode: _dbName,
10521
+ filter: {
10522
+ activestatus: true,
10523
+ status: true
10524
+ },
10525
+ requestid: query_ids["vitalapplicable"]
10526
+ };
10527
+ },
10436
10528
  ageCategory: function ageCategory(ageRangeId) {
10437
10529
  var str = String(ageRangeId || "");
10438
10530
  var idx = str.lastIndexOf("/");
@@ -10901,6 +10993,8 @@ var GET_ENTITY_TYPE_VITALAPP = createAsyncThunk("vitalApplicableApiSlice/entityT
10901
10993
  var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
10902
10994
  var _ref7,
10903
10995
  rejectWithValue,
10996
+ queryObj,
10997
+ bodyPayload,
10904
10998
  data,
10905
10999
  resultList,
10906
11000
  arr,
@@ -10911,9 +11005,11 @@ var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE
10911
11005
  case 0:
10912
11006
  _ref7 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
10913
11007
  _context3.p = 1;
11008
+ queryObj = typeof query$a.vitalcode === "function" ? query$a.vitalcode() : query$a.vitalcode;
11009
+ bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
10914
11010
  _context3.n = 2;
10915
11011
  return fetchData({
10916
- body: query$a.vitalcode
11012
+ body: bodyPayload
10917
11013
  }, __readQdmQueries__);
10918
11014
  case 2:
10919
11015
  data = _context3.v;
@@ -11447,10 +11543,14 @@ var EDIT_VITAL_APPLICABLE = createAsyncThunk("vitalsApplicableSlice/editvitalApp
11447
11543
  }, _callee11, null, [[1, 3]]);
11448
11544
  })));
11449
11545
  var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialityCodeOrgid", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
11450
- var _ref29,
11546
+ var payload,
11547
+ _ref29,
11451
11548
  rejectWithValue,
11452
- _query$ageRanges,
11453
- specialtyQuery,
11549
+ _ref30,
11550
+ _data$0$SPECIALTY$Val2,
11551
+ _data$6,
11552
+ queryObj,
11553
+ bodyPayload,
11454
11554
  data,
11455
11555
  resultList,
11456
11556
  arr,
@@ -11459,22 +11559,18 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
11459
11559
  return _regenerator().w(function (_context12) {
11460
11560
  while (1) switch (_context12.p = _context12.n) {
11461
11561
  case 0:
11562
+ payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
11462
11563
  _ref29 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
11463
11564
  _context12.p = 1;
11464
- specialtyQuery = JSON.stringify({
11465
- appcode: ((_query$ageRanges = query$a.ageRanges()) === null || _query$ageRanges === void 0 ? void 0 : _query$ageRanges.appcode) || dbName,
11466
- filter: {
11467
- Type: "SPECIALTY",
11468
- activestatus: true
11469
- }
11470
- });
11565
+ queryObj = typeof query$a.specialityCodeOrgId === "function" ? query$a.specialityCodeOrgId(payload) : typeof query$a.specialityCode === "function" ? query$a.specialityCode() : query$a.specialityCode;
11566
+ bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
11471
11567
  _context12.n = 2;
11472
11568
  return fetchData({
11473
- body: specialtyQuery
11569
+ body: bodyPayload
11474
11570
  }, __readQdmQueries__);
11475
11571
  case 2:
11476
11572
  data = _context12.v;
11477
- resultList = Array.isArray(data === null || data === void 0 ? void 0 : data.result) ? data.result : Array.isArray(data) ? data : [];
11573
+ resultList = (_ref30 = (_data$0$SPECIALTY$Val2 = (_data$6 = data[0]) === null || _data$6 === void 0 || (_data$6 = _data$6.SPECIALTY) === null || _data$6 === void 0 ? void 0 : _data$6.Value) !== null && _data$0$SPECIALTY$Val2 !== void 0 ? _data$0$SPECIALTY$Val2 : data === null || data === void 0 ? void 0 : data.result) !== null && _ref30 !== void 0 ? _ref30 : Array.isArray(data) ? data : [];
11478
11574
  arr = [];
11479
11575
  resultList.forEach(function (val) {
11480
11576
  if (!val) return;
@@ -11629,10 +11725,15 @@ var query$9 = {
11629
11725
  facilityid: "",
11630
11726
  lang: ""
11631
11727
  },
11632
- requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
11728
+ requestid: query_ids["gmLoadQuery"]
11729
+ };
11730
+ },
11731
+ unitAllowed: function unitAllowed() {
11732
+ return {
11733
+ appcode: _dbName,
11734
+ requestid: query_ids["unitAllowed"]
11633
11735
  };
11634
11736
  },
11635
- unitAllowed: "{\n \"appcode\": \"".concat(_dbName, "\",\n \"filter\": {\n \"activestatus\": true,\n \"status\": true\n }\n }"),
11636
11737
  referenceUnitAllowed: function referenceUnitAllowed() {
11637
11738
  return {
11638
11739
  appcode: _dbName,
@@ -11642,7 +11743,7 @@ var query$9 = {
11642
11743
  facilityid: "",
11643
11744
  lang: ""
11644
11745
  },
11645
- requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
11746
+ requestid: query_ids["gmLoadQuery"]
11646
11747
  };
11647
11748
  },
11648
11749
  referenceCodeableConcepts: function referenceCodeableConcepts() {
@@ -11654,7 +11755,7 @@ var query$9 = {
11654
11755
  facilityid: "",
11655
11756
  lang: ""
11656
11757
  },
11657
- requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
11758
+ requestid: query_ids["gmLoadQuery"]
11658
11759
  };
11659
11760
  },
11660
11761
  ageRanges: function ageRanges() {
@@ -11675,14 +11776,20 @@ var query$9 = {
11675
11776
  requestid: query_ids.ageCategory
11676
11777
  };
11677
11778
  },
11678
- category: "{\n \"appcode\": \"".concat(_dbName, "\",\n \"filter\": {\n \"activestatus\": true\n }\n }"),
11779
+ category: function category() {
11780
+ return {
11781
+ appcode: _dbName,
11782
+ requestid: query_ids["category"]
11783
+ };
11784
+ },
11679
11785
  defaultUnit: function defaultUnit(AllowedUnit) {
11786
+ var unitsArr = Array.isArray(AllowedUnit) ? AllowedUnit : AllowedUnit ? [AllowedUnit] : [];
11680
11787
  return {
11681
11788
  appcode: _dbName,
11682
11789
  filter: {
11683
- units: AllowedUnit,
11684
- activestatus: true
11685
- }
11790
+ _id: unitsArr
11791
+ },
11792
+ requestid: query_ids["vitalsMeasureCodesEdit"]
11686
11793
  };
11687
11794
  },
11688
11795
  VitalReadSearch: function VitalReadSearch(page, perPage, search) {
@@ -12049,8 +12156,14 @@ var REFERENCE_UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/refer
12049
12156
  var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
12050
12157
  var _ref8,
12051
12158
  rejectWithValue,
12159
+ _ref9,
12160
+ _data$0$result,
12161
+ _data$3,
12162
+ queryObj,
12163
+ bodyPayload,
12052
12164
  data,
12053
12165
  arr,
12166
+ resultData,
12054
12167
  _args3 = arguments,
12055
12168
  _t3;
12056
12169
  return _regenerator().w(function (_context3) {
@@ -12058,17 +12171,24 @@ var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /
12058
12171
  case 0:
12059
12172
  _ref8 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
12060
12173
  _context3.p = 1;
12174
+ queryObj = typeof query$9.unitAllowed === "function" ? query$9.unitAllowed() : query$9.unitAllowed;
12175
+ bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
12061
12176
  _context3.n = 2;
12062
12177
  return fetchData({
12063
- body: query$9.unitAllowed
12064
- }, __readQdmQueries__);
12178
+ body: bodyPayload
12179
+ }, __baseUrl__$1);
12065
12180
  case 2:
12066
12181
  data = _context3.v;
12067
12182
  arr = [];
12068
- data && data.result.map(function (val) {
12183
+ resultData = (_ref9 = (_data$0$result = (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : _data$3.result) !== null && _data$0$result !== void 0 ? _data$0$result : data === null || data === void 0 ? void 0 : data.result) !== null && _ref9 !== void 0 ? _ref9 : Array.isArray(data) ? data : [];
12184
+ (resultData || []).map(function (val) {
12185
+ var _ref0, _ref1, _val$_id;
12186
+ if (!val) return;
12187
+ var idVal = String((_ref0 = (_ref1 = (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : val.id) !== null && _ref1 !== void 0 ? _ref1 : val._key) !== null && _ref0 !== void 0 ? _ref0 : "");
12069
12188
  arr.push({
12070
- value: String(val._id),
12071
- label: val.ObsValMeasCode || val.obsvalmeascode
12189
+ _id: idVal,
12190
+ value: idVal,
12191
+ label: val.ObsValMeasCode || val.obsvalmeascode || val.display || ""
12072
12192
  });
12073
12193
  });
12074
12194
  return _context3.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -12084,12 +12204,12 @@ var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /
12084
12204
  }, _callee3, null, [[1, 3]]);
12085
12205
  })));
12086
12206
  var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerangesCode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
12087
- var _ref0,
12207
+ var _ref11,
12088
12208
  rejectWithValue,
12089
12209
  data,
12090
12210
  result,
12091
- _data$0$result,
12092
- _data$3,
12211
+ _data$0$result2,
12212
+ _data$4,
12093
12213
  _data$result,
12094
12214
  getRawId,
12095
12215
  arr,
@@ -12098,7 +12218,7 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
12098
12218
  return _regenerator().w(function (_context4) {
12099
12219
  while (1) switch (_context4.p = _context4.n) {
12100
12220
  case 0:
12101
- _ref0 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref0.rejectWithValue;
12221
+ _ref11 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref11.rejectWithValue;
12102
12222
  _context4.p = 1;
12103
12223
  _context4.n = 2;
12104
12224
  return fetchData({
@@ -12108,7 +12228,7 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
12108
12228
  data = _context4.v;
12109
12229
  result = [];
12110
12230
  if (Array.isArray(data)) {
12111
- result = (_data$0$result = (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : _data$3.result) !== null && _data$0$result !== void 0 ? _data$0$result : data; // case 2, else case 3
12231
+ result = (_data$0$result2 = (_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : _data$4.result) !== null && _data$0$result2 !== void 0 ? _data$0$result2 : data; // case 2, else case 3
12112
12232
  } else {
12113
12233
  result = (_data$result = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result !== void 0 ? _data$result : []; // case 1
12114
12234
  }
@@ -12144,13 +12264,17 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
12144
12264
  })));
12145
12265
  var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice/referenceCategory", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
12146
12266
  var payload,
12147
- _ref10,
12267
+ _ref13,
12148
12268
  rejectWithValue,
12149
12269
  getState,
12150
12270
  ageRangeId,
12151
12271
  state,
12152
12272
  ccState,
12273
+ categoryQueryObj,
12274
+ categoryBodyPayload,
12153
12275
  category,
12276
+ codeableConceptsObj,
12277
+ codeableConceptsPayload,
12154
12278
  codeableConcepts,
12155
12279
  data,
12156
12280
  categoryResult,
@@ -12162,8 +12286,8 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
12162
12286
  _codeableConcepts$,
12163
12287
  _codeableConcepts$res,
12164
12288
  dataResult,
12165
- _data$0$result2,
12166
- _data$4,
12289
+ _data$0$result3,
12290
+ _data$5,
12167
12291
  _data$result2,
12168
12292
  res,
12169
12293
  _args5 = arguments,
@@ -12172,20 +12296,24 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
12172
12296
  while (1) switch (_context5.p = _context5.n) {
12173
12297
  case 0:
12174
12298
  payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
12175
- _ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue, getState = _ref10.getState;
12299
+ _ref13 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref13.rejectWithValue, getState = _ref13.getState;
12176
12300
  _context5.p = 1;
12177
12301
  ageRangeId = payload.ageRangeId;
12178
12302
  state = getState();
12179
12303
  ccState = state.vitalsMasterSectionSlice;
12304
+ categoryQueryObj = typeof query$9.category === "function" ? query$9.category() : query$9.category;
12305
+ categoryBodyPayload = typeof categoryQueryObj === "string" ? categoryQueryObj : JSON.stringify(categoryQueryObj);
12180
12306
  _context5.n = 2;
12181
12307
  return fetchData({
12182
- body: query$9.category
12183
- }, __readQdmQueries__);
12308
+ body: categoryBodyPayload
12309
+ }, __baseUrl__$1);
12184
12310
  case 2:
12185
12311
  category = _context5.v;
12312
+ codeableConceptsObj = typeof query$9.referenceCodeableConcepts === "function" ? query$9.referenceCodeableConcepts() : query$9.referenceCodeableConcepts;
12313
+ codeableConceptsPayload = typeof codeableConceptsObj === "string" ? codeableConceptsObj : JSON.stringify(codeableConceptsObj);
12186
12314
  _context5.n = 3;
12187
12315
  return fetchData({
12188
- body: query$9.referenceCodeableConcepts
12316
+ body: codeableConceptsPayload
12189
12317
  }, __readQdmQueries__);
12190
12318
  case 3:
12191
12319
  codeableConcepts = _context5.v;
@@ -12215,7 +12343,7 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
12215
12343
  }
12216
12344
  dataResult = [];
12217
12345
  if (Array.isArray(data)) {
12218
- dataResult = (_data$0$result2 = (_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : _data$4.result) !== null && _data$0$result2 !== void 0 ? _data$0$result2 : data;
12346
+ dataResult = (_data$0$result3 = (_data$5 = data[0]) === null || _data$5 === void 0 ? void 0 : _data$5.result) !== null && _data$0$result3 !== void 0 ? _data$0$result3 : data;
12219
12347
  } else {
12220
12348
  dataResult = (_data$result2 = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result2 !== void 0 ? _data$result2 : [];
12221
12349
  }
@@ -12238,18 +12366,22 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
12238
12366
  })));
12239
12367
  var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
12240
12368
  var payload,
12241
- _ref12,
12369
+ _ref15,
12242
12370
  rejectWithValue,
12243
12371
  AllowedUnit,
12244
12372
  data,
12245
12373
  arr,
12374
+ resultList,
12375
+ _data$6,
12376
+ inner,
12377
+ _inner,
12246
12378
  _args6 = arguments,
12247
12379
  _t6;
12248
12380
  return _regenerator().w(function (_context6) {
12249
12381
  while (1) switch (_context6.p = _context6.n) {
12250
12382
  case 0:
12251
12383
  payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
12252
- _ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
12384
+ _ref15 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
12253
12385
  _context6.p = 1;
12254
12386
  AllowedUnit = payload.AllowedUnit;
12255
12387
  _context6.n = 2;
@@ -12259,10 +12391,29 @@ var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /
12259
12391
  case 2:
12260
12392
  data = _context6.v;
12261
12393
  arr = [];
12262
- data && data.result.map(function (val) {
12394
+ resultList = [];
12395
+ if (Array.isArray(data)) {
12396
+ if (((_data$6 = data[0]) === null || _data$6 === void 0 ? void 0 : _data$6.result) !== undefined) {
12397
+ inner = data[0].result;
12398
+ resultList = Array.isArray(inner) ? inner : [inner];
12399
+ } else {
12400
+ resultList = data;
12401
+ }
12402
+ } else if ((data === null || data === void 0 ? void 0 : data.result) !== undefined) {
12403
+ _inner = data.result;
12404
+ resultList = Array.isArray(_inner) ? _inner : [_inner];
12405
+ } else if (data) {
12406
+ resultList = [data];
12407
+ }
12408
+ (resultList || []).forEach(function (val) {
12409
+ var _ref16, _ref17, _val$_id2;
12410
+ if (!val) return;
12411
+ var idVal = String((_ref16 = (_ref17 = (_val$_id2 = val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : val.id) !== null && _ref17 !== void 0 ? _ref17 : val._key) !== null && _ref16 !== void 0 ? _ref16 : "");
12412
+ var labelVal = String(val.ObsValMeasCode || val.obsvalmeascode || val.display || val.shortdesc || idVal);
12263
12413
  arr.push({
12264
- value: String(val._id),
12265
- label: val.ObsValMeasCode || val.obsvalmeascode
12414
+ _id: idVal,
12415
+ value: idVal,
12416
+ label: labelVal
12266
12417
  });
12267
12418
  });
12268
12419
  return _context6.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -12279,7 +12430,7 @@ var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /
12279
12430
  })));
12280
12431
  var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalmaster", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
12281
12432
  var payload,
12282
- _ref14,
12433
+ _ref19,
12283
12434
  rejectWithValue,
12284
12435
  list,
12285
12436
  body,
@@ -12290,7 +12441,7 @@ var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalm
12290
12441
  while (1) switch (_context7.p = _context7.n) {
12291
12442
  case 0:
12292
12443
  payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
12293
- _ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
12444
+ _ref19 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
12294
12445
  _context7.p = 1;
12295
12446
  list = payload.list;
12296
12447
  body = generateJSON$1(list);
@@ -12314,7 +12465,7 @@ var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalm
12314
12465
  })));
12315
12466
  var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterread", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
12316
12467
  var payload,
12317
- _ref16,
12468
+ _ref21,
12318
12469
  rejectWithValue,
12319
12470
  page,
12320
12471
  perPage,
@@ -12327,7 +12478,7 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
12327
12478
  while (1) switch (_context8.p = _context8.n) {
12328
12479
  case 0:
12329
12480
  payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
12330
- _ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
12481
+ _ref21 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
12331
12482
  _context8.p = 1;
12332
12483
  page = payload.page, perPage = payload.perPage, search = payload.search;
12333
12484
  _context8.n = 2;
@@ -12351,7 +12502,7 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
12351
12502
  })));
12352
12503
  var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterUpdate", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
12353
12504
  var payload,
12354
- _ref18,
12505
+ _ref23,
12355
12506
  rejectWithValue,
12356
12507
  editId,
12357
12508
  status,
@@ -12363,7 +12514,7 @@ var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/v
12363
12514
  while (1) switch (_context9.p = _context9.n) {
12364
12515
  case 0:
12365
12516
  payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
12366
- _ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
12517
+ _ref23 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
12367
12518
  _context9.p = 1;
12368
12519
  editId = payload.editId, status = payload.status;
12369
12520
  body = generateUpdateJSON$1(editId, status);
@@ -12387,7 +12538,7 @@ var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/v
12387
12538
  })));
12388
12539
  var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMasterDelete", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
12389
12540
  var payload,
12390
- _ref20,
12541
+ _ref25,
12391
12542
  rejectWithValue,
12392
12543
  id,
12393
12544
  data,
@@ -12397,7 +12548,7 @@ var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMas
12397
12548
  while (1) switch (_context0.p = _context0.n) {
12398
12549
  case 0:
12399
12550
  payload = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : {};
12400
- _ref20 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
12551
+ _ref25 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
12401
12552
  _context0.p = 1;
12402
12553
  id = payload.id;
12403
12554
  _context0.n = 2;
@@ -12419,12 +12570,12 @@ var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMas
12419
12570
  }, _callee0, null, [[1, 3]]);
12420
12571
  })));
12421
12572
  var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalMaster", /*#__PURE__*/function () {
12422
- var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(payload, _ref21) {
12423
- var rejectWithValue, getState, body, data, state, ccState, category, categoryResult, _category$0$result2, _category$2, _category$result2, rawList, resVal, firstKey, innerVal, res, _t1;
12573
+ var _ref27 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(payload, _ref26) {
12574
+ var rejectWithValue, getState, body, data, state, ccState, categoryQueryObj, categoryBodyPayload, category, categoryResult, _category$0$result2, _category$2, _category$result2, rawList, resVal, firstKey, innerVal, res, _t1;
12424
12575
  return _regenerator().w(function (_context1) {
12425
12576
  while (1) switch (_context1.p = _context1.n) {
12426
12577
  case 0:
12427
- rejectWithValue = _ref21.rejectWithValue, getState = _ref21.getState;
12578
+ rejectWithValue = _ref26.rejectWithValue, getState = _ref26.getState;
12428
12579
  _context1.p = 1;
12429
12580
  body = JSON.stringify({
12430
12581
  appcode: dbName,
@@ -12441,10 +12592,12 @@ var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalM
12441
12592
  data = _context1.v;
12442
12593
  state = getState();
12443
12594
  ccState = state.vitalsMasterSectionSlice;
12595
+ categoryQueryObj = typeof query$9.category === "function" ? query$9.category() : query$9.category;
12596
+ categoryBodyPayload = typeof categoryQueryObj === "string" ? categoryQueryObj : JSON.stringify(categoryQueryObj);
12444
12597
  _context1.n = 3;
12445
12598
  return fetchData({
12446
- body: query$9.category
12447
- }, __readQdmQueries__);
12599
+ body: categoryBodyPayload
12600
+ }, __baseUrl__$1);
12448
12601
  case 3:
12449
12602
  category = _context1.v;
12450
12603
  categoryResult = [];
@@ -12488,14 +12641,14 @@ var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalM
12488
12641
  }, _callee1, null, [[1, 4]]);
12489
12642
  }));
12490
12643
  return function (_x, _x2) {
12491
- return _ref22.apply(this, arguments);
12644
+ return _ref27.apply(this, arguments);
12492
12645
  };
12493
12646
  }());
12494
12647
  var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforVitalType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
12495
12648
  var payload,
12496
- _ref24,
12649
+ _ref29,
12497
12650
  rejectWithValue,
12498
- _data$5,
12651
+ _data$7,
12499
12652
  body,
12500
12653
  data,
12501
12654
  arry,
@@ -12505,7 +12658,7 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
12505
12658
  while (1) switch (_context10.p = _context10.n) {
12506
12659
  case 0:
12507
12660
  payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : "";
12508
- _ref24 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
12661
+ _ref29 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
12509
12662
  _context10.p = 1;
12510
12663
  // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
12511
12664
  body = {
@@ -12525,7 +12678,7 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
12525
12678
  case 2:
12526
12679
  data = _context10.v;
12527
12680
  arry = [];
12528
- (_data$5 = data[0]) === null || _data$5 === void 0 || (_data$5 = _data$5.OBSERVATIONTYPE) === null || _data$5 === void 0 || (_data$5 = _data$5.Value) === null || _data$5 === void 0 || _data$5.map(function (item) {
12681
+ (_data$7 = data[0]) === null || _data$7 === void 0 || (_data$7 = _data$7.OBSERVATIONTYPE) === null || _data$7 === void 0 || (_data$7 = _data$7.Value) === null || _data$7 === void 0 || _data$7.map(function (item) {
12529
12682
  return arry.push({
12530
12683
  _id: item._id,
12531
12684
  value: item._id,
@@ -12546,9 +12699,9 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
12546
12699
  })));
12547
12700
  var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforLoadType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
12548
12701
  var payload,
12549
- _ref26,
12702
+ _ref31,
12550
12703
  rejectWithValue,
12551
- _data$6,
12704
+ _data$8,
12552
12705
  body,
12553
12706
  data,
12554
12707
  arry,
@@ -12558,7 +12711,7 @@ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/g
12558
12711
  while (1) switch (_context11.p = _context11.n) {
12559
12712
  case 0:
12560
12713
  payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : "";
12561
- _ref26 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
12714
+ _ref31 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref31.rejectWithValue;
12562
12715
  _context11.p = 1;
12563
12716
  // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
12564
12717
  body = {
@@ -12578,7 +12731,7 @@ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/g
12578
12731
  case 2:
12579
12732
  data = _context11.v;
12580
12733
  arry = [];
12581
- (_data$6 = data[0]) === null || _data$6 === void 0 || (_data$6 = _data$6.RULEQUERYORGM) === null || _data$6 === void 0 || (_data$6 = _data$6.Value) === null || _data$6 === void 0 || _data$6.map(function (item) {
12734
+ (_data$8 = data[0]) === null || _data$8 === void 0 || (_data$8 = _data$8.RULEQUERYORGM) === null || _data$8 === void 0 || (_data$8 = _data$8.Value) === null || _data$8 === void 0 || _data$8.map(function (item) {
12582
12735
  return arry.push({
12583
12736
  _id: item._id,
12584
12737
  value: item._id,
@@ -12599,9 +12752,9 @@ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/g
12599
12752
  })));
12600
12753
  var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforControlType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
12601
12754
  var payload,
12602
- _ref28,
12755
+ _ref33,
12603
12756
  rejectWithValue,
12604
- _data$7,
12757
+ _data$9,
12605
12758
  body,
12606
12759
  data,
12607
12760
  arry,
@@ -12611,7 +12764,7 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
12611
12764
  while (1) switch (_context12.p = _context12.n) {
12612
12765
  case 0:
12613
12766
  payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : "";
12614
- _ref28 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
12767
+ _ref33 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref33.rejectWithValue;
12615
12768
  _context12.p = 1;
12616
12769
  // const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
12617
12770
  body = {
@@ -12631,7 +12784,7 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
12631
12784
  case 2:
12632
12785
  data = _context12.v;
12633
12786
  arry = [];
12634
- (_data$7 = data[0]) === null || _data$7 === void 0 || (_data$7 = _data$7.RESULTREPORTDATATYPE) === null || _data$7 === void 0 || (_data$7 = _data$7.Value) === null || _data$7 === void 0 || _data$7.map(function (item) {
12787
+ (_data$9 = data[0]) === null || _data$9 === void 0 || (_data$9 = _data$9.RESULTREPORTDATATYPE) === null || _data$9 === void 0 || (_data$9 = _data$9.Value) === null || _data$9 === void 0 || _data$9.map(function (item) {
12635
12788
  return arry.push({
12636
12789
  _id: item._id,
12637
12790
  value: item._id,
@@ -15899,11 +16052,13 @@ var masterQuery$7 = {
15899
16052
  // },
15900
16053
 
15901
16054
  locationMasterEntityName: function locationMasterEntityName(type) {
16055
+ var _ref, _ref2, _ref3, _ref4, _type$type;
16056
+ var typeVal = _typeof(type) === "object" && type !== null ? (_ref = (_ref2 = (_ref3 = (_ref4 = (_type$type = type.type) !== null && _type$type !== void 0 ? _type$type : type.list) !== null && _ref4 !== void 0 ? _ref4 : type.orgType) !== null && _ref3 !== void 0 ? _ref3 : type.value) !== null && _ref2 !== void 0 ? _ref2 : type.label) !== null && _ref !== void 0 ? _ref : "" : String(type || "");
15902
16057
  return {
15903
16058
  appcode: _dbName,
15904
16059
  requestid: "3265e287-5a0e-482d-a2e9-d6ee96e83c9a",
15905
16060
  filter: {
15906
- orgType: type,
16061
+ orgType: typeVal,
15907
16062
  activestatus: true
15908
16063
  }
15909
16064
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.193",
3
+ "version": "0.1.195",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",