primary_care_admin_binder 0.0.26 → 0.0.30
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.
- package/dist/index.cjs.js +1669 -624
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2198,7 +2198,7 @@ var defaultState = {
|
|
|
2198
2198
|
var dbName = "primarycare";
|
|
2199
2199
|
var ruleDBName = "RuleBuilder";
|
|
2200
2200
|
var metadataId = "04ecb73d-f048-44ce-8563-c9be015812dd";
|
|
2201
|
-
"".concat(process.env.REACT_APP_ARANGO_API, "/api/read_qdmqueries");
|
|
2201
|
+
var __baseUrl__$1 = "".concat(process.env.REACT_APP_ARANGO_API, "/api/read_qdmqueries");
|
|
2202
2202
|
var __uspsertUrl__ = "".concat(process.env.REACT_APP_ARANGO_API, "/api/upsert_document");
|
|
2203
2203
|
var __update__ = "".concat(process.env.REACT_APP_ARANGO_API, "/api/updatedocument");
|
|
2204
2204
|
var __readDocumentUrl__ = "".concat(process.env.REACT_APP_ARANGO_API, "/api/read_documents");
|
|
@@ -8356,7 +8356,7 @@ var generateJSON$2 = function generateJSON(data, _key) {
|
|
|
8356
8356
|
return json;
|
|
8357
8357
|
};
|
|
8358
8358
|
|
|
8359
|
-
var _extraReducers$
|
|
8359
|
+
var _extraReducers$o;
|
|
8360
8360
|
var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlist", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
8361
8361
|
var payload,
|
|
8362
8362
|
_ref2,
|
|
@@ -8613,37 +8613,37 @@ var practitionerSlice = createSlice({
|
|
|
8613
8613
|
practitioner_upsert: _objectSpread2({}, defaultState.List),
|
|
8614
8614
|
practitioner_status_update: _objectSpread2({}, defaultState.List)
|
|
8615
8615
|
},
|
|
8616
|
-
extraReducers: (_extraReducers$
|
|
8616
|
+
extraReducers: (_extraReducers$o = {}, _defineProperty(_extraReducers$o, PRACTITIONER_ROLE_READ.fulfilled, function (state, action) {
|
|
8617
8617
|
state.practitioner_role_list.loading = false, state.practitioner_role_list.error = false, state.practitioner_role_list = action.payload;
|
|
8618
|
-
}), _defineProperty(_extraReducers$
|
|
8618
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_ROLE_READ.pending, function (state, action) {
|
|
8619
8619
|
state.practitioner_role_list.loading = true, state.practitioner_role_list.error = false, state.practitioner_role_list.loading = true;
|
|
8620
|
-
}), _defineProperty(_extraReducers$
|
|
8620
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_ROLE_READ.rejected, function (state, action) {
|
|
8621
8621
|
state.practitioner_role_list.loading = false, state.practitioner_role_list.error = true, state.practitioner_role_list = action.payload;
|
|
8622
|
-
}), _defineProperty(_extraReducers$
|
|
8622
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_ROLE_UPSERT.fulfilled, function (state, action) {
|
|
8623
8623
|
state.practitioner_role_upsert.loading = false, state.practitioner_role_upsert.error = false, state.practitioner_role_upsert = action.payload;
|
|
8624
|
-
}), _defineProperty(_extraReducers$
|
|
8624
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_ROLE_UPSERT.pending, function (state, action) {
|
|
8625
8625
|
state.practitioner_role_upsert.loading = true, state.practitioner_role_upsert.error = false, state.practitioner_role_upsert.loading = true;
|
|
8626
|
-
}), _defineProperty(_extraReducers$
|
|
8626
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_ROLE_UPSERT.rejected, function (state, action) {
|
|
8627
8627
|
state.practitioner_role_upsert.loading = false, state.practitioner_role_upsert.error = true, state.practitioner_role_upsert = action.payload;
|
|
8628
|
-
}), _defineProperty(_extraReducers$
|
|
8628
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_LIST_READ.fulfilled, function (state, action) {
|
|
8629
8629
|
state.practitioner_list.loading = false, state.practitioner_list.error = false, state.practitioner_list = action.payload;
|
|
8630
|
-
}), _defineProperty(_extraReducers$
|
|
8630
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_LIST_READ.pending, function (state, action) {
|
|
8631
8631
|
state.practitioner_list.loading = true, state.practitioner_list.error = false, state.practitioner_list.loading = true;
|
|
8632
|
-
}), _defineProperty(_extraReducers$
|
|
8632
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_LIST_READ.rejected, function (state, action) {
|
|
8633
8633
|
state.practitioner_list.loading = false, state.practitioner_list.error = true, state.practitioner_list = action.payload;
|
|
8634
|
-
}), _defineProperty(_extraReducers$
|
|
8634
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_UPSERT.fulfilled, function (state, action) {
|
|
8635
8635
|
state.practitioner_upsert.loading = false, state.practitioner_upsert.error = false, state.practitioner_upsert = action.payload;
|
|
8636
|
-
}), _defineProperty(_extraReducers$
|
|
8636
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_UPSERT.pending, function (state, action) {
|
|
8637
8637
|
state.practitioner_upsert.loading = true, state.practitioner_upsert.error = false, state.practitioner_upsert.loading = true;
|
|
8638
|
-
}), _defineProperty(_extraReducers$
|
|
8638
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_UPSERT.rejected, function (state, action) {
|
|
8639
8639
|
state.practitioner_upsert.loading = false, state.practitioner_upsert.error = true, state.practitioner_upsert = action.payload;
|
|
8640
|
-
}), _defineProperty(_extraReducers$
|
|
8640
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
8641
8641
|
state.practitioner_status_update.loading = false, state.practitioner_status_update.error = false, state.practitioner_status_update = action.payload;
|
|
8642
|
-
}), _defineProperty(_extraReducers$
|
|
8642
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_STATUS_CHANGE.pending, function (state, action) {
|
|
8643
8643
|
state.practitioner_status_update.loading = true, state.practitioner_status_update.error = false, state.practitioner_status_update.loading = true;
|
|
8644
|
-
}), _defineProperty(_extraReducers$
|
|
8644
|
+
}), _defineProperty(_extraReducers$o, PRACTITIONER_STATUS_CHANGE.rejected, function (state, action) {
|
|
8645
8645
|
state.practitioner_status_update.loading = false, state.practitioner_status_update.error = true, state.practitioner_status_update = action.payload;
|
|
8646
|
-
}), _extraReducers$
|
|
8646
|
+
}), _extraReducers$o)
|
|
8647
8647
|
});
|
|
8648
8648
|
var practitionerActions$1 = {
|
|
8649
8649
|
PRACTITIONER_ROLE_READ: PRACTITIONER_ROLE_READ,
|
|
@@ -9006,7 +9006,7 @@ var generateReadJSON$1 = function generateReadJSON(data, masters) {
|
|
|
9006
9006
|
return json;
|
|
9007
9007
|
};
|
|
9008
9008
|
|
|
9009
|
-
var _extraReducers$
|
|
9009
|
+
var _extraReducers$n;
|
|
9010
9010
|
var location = ["nationality", "city", "district", "state", "country"];
|
|
9011
9011
|
|
|
9012
9012
|
var loopMasters$3 = function loopMasters() {
|
|
@@ -9224,19 +9224,19 @@ var practitionerMasterSlice = createSlice({
|
|
|
9224
9224
|
practitioner_masters: _objectSpread2({}, defaultState.Info),
|
|
9225
9225
|
practitionerbyid: _objectSpread2({}, defaultState.Info)
|
|
9226
9226
|
},
|
|
9227
|
-
extraReducers: (_extraReducers$
|
|
9227
|
+
extraReducers: (_extraReducers$n = {}, _defineProperty(_extraReducers$n, PRACTITIONER_MASTERS.fulfilled, function (state, action) {
|
|
9228
9228
|
state.practitioner_masters.loading = false, state.practitioner_masters.error = false, state.practitioner_masters = action.payload;
|
|
9229
|
-
}), _defineProperty(_extraReducers$
|
|
9229
|
+
}), _defineProperty(_extraReducers$n, PRACTITIONER_MASTERS.pending, function (state, action) {
|
|
9230
9230
|
state.practitioner_masters.loading = true, state.practitioner_masters.error = false, state.practitioner_masters.loading = true;
|
|
9231
|
-
}), _defineProperty(_extraReducers$
|
|
9231
|
+
}), _defineProperty(_extraReducers$n, PRACTITIONER_MASTERS.rejected, function (state, action) {
|
|
9232
9232
|
state.practitioner_masters.loading = false, state.practitioner_masters.error = true, state.practitioner_masters = action.payload;
|
|
9233
|
-
}), _defineProperty(_extraReducers$
|
|
9233
|
+
}), _defineProperty(_extraReducers$n, PRACTITIONER_GET_BY_ID.fulfilled, function (state, action) {
|
|
9234
9234
|
state.practitionerbyid.loading = false, state.practitionerbyid.error = false, state.practitionerbyid = action.payload;
|
|
9235
|
-
}), _defineProperty(_extraReducers$
|
|
9235
|
+
}), _defineProperty(_extraReducers$n, PRACTITIONER_GET_BY_ID.pending, function (state, action) {
|
|
9236
9236
|
state.practitionerbyid.loading = true, state.practitionerbyid.error = false, state.practitionerbyid.loading = true;
|
|
9237
|
-
}), _defineProperty(_extraReducers$
|
|
9237
|
+
}), _defineProperty(_extraReducers$n, PRACTITIONER_GET_BY_ID.rejected, function (state, action) {
|
|
9238
9238
|
state.practitionerbyid.loading = false, state.practitionerbyid.error = true, state.practitionerbyid = action.payload;
|
|
9239
|
-
}), _extraReducers$
|
|
9239
|
+
}), _extraReducers$n)
|
|
9240
9240
|
});
|
|
9241
9241
|
var practitionerMasterActions = {
|
|
9242
9242
|
PRACTITIONER_MASTERS: PRACTITIONER_MASTERS,
|
|
@@ -9244,7 +9244,7 @@ var practitionerMasterActions = {
|
|
|
9244
9244
|
};
|
|
9245
9245
|
var practitionerMasterSlice$1 = practitionerMasterSlice.reducer;
|
|
9246
9246
|
|
|
9247
|
-
var query$
|
|
9247
|
+
var query$5 = {
|
|
9248
9248
|
unitUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='VITALSUOM'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
9249
9249
|
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 }")
|
|
9250
9250
|
};
|
|
@@ -9296,7 +9296,7 @@ var generateCategory = function generateCategory(data) {
|
|
|
9296
9296
|
return arr;
|
|
9297
9297
|
};
|
|
9298
9298
|
|
|
9299
|
-
var _extraReducers$
|
|
9299
|
+
var _extraReducers$m;
|
|
9300
9300
|
var UPSERT_AGE_RANGE = createAsyncThunk("ageRangeMasterApiSlice/save_age_range", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
9301
9301
|
var payload,
|
|
9302
9302
|
_ref2,
|
|
@@ -9408,7 +9408,7 @@ var UNIT_UOM = createAsyncThunk("ageRangeMasterApiSlice/unit_uom_list", /*#__PUR
|
|
|
9408
9408
|
_context3.prev = 2;
|
|
9409
9409
|
_context3.next = 5;
|
|
9410
9410
|
return fetchData({
|
|
9411
|
-
body: query$
|
|
9411
|
+
body: query$5.unitUom
|
|
9412
9412
|
}, __readDocumentUrl__);
|
|
9413
9413
|
|
|
9414
9414
|
case 5:
|
|
@@ -9453,7 +9453,7 @@ var GET_AGE_RANGE_MASTER = createAsyncThunk("ageRangeMasterApiSlice/age_range_li
|
|
|
9453
9453
|
_context4.prev = 2;
|
|
9454
9454
|
_context4.next = 5;
|
|
9455
9455
|
return fetchData({
|
|
9456
|
-
body: query$
|
|
9456
|
+
body: query$5.getAgeRange
|
|
9457
9457
|
}, __readDocumentUrl__);
|
|
9458
9458
|
|
|
9459
9459
|
case 5:
|
|
@@ -9484,31 +9484,31 @@ var ageRangeMasterSlice = createSlice({
|
|
|
9484
9484
|
save_age_range: _objectSpread2({}, defaultState.Info),
|
|
9485
9485
|
update_age_range: _objectSpread2({}, defaultState.Info)
|
|
9486
9486
|
},
|
|
9487
|
-
extraReducers: (_extraReducers$
|
|
9487
|
+
extraReducers: (_extraReducers$m = {}, _defineProperty(_extraReducers$m, UNIT_UOM.fulfilled, function (state, action) {
|
|
9488
9488
|
state.unit_uom_list.loading = false, state.unit_uom_list.error = false, state.unit_uom_list = action.payload;
|
|
9489
|
-
}), _defineProperty(_extraReducers$
|
|
9489
|
+
}), _defineProperty(_extraReducers$m, UNIT_UOM.pending, function (state, action) {
|
|
9490
9490
|
state.unit_uom_list.loading = true, state.unit_uom_list.error = false, state.unit_uom_list.loading = true;
|
|
9491
|
-
}), _defineProperty(_extraReducers$
|
|
9491
|
+
}), _defineProperty(_extraReducers$m, UNIT_UOM.rejected, function (state, action) {
|
|
9492
9492
|
state.unit_uom_list.loading = false, state.unit_uom_list.error = true, state.unit_uom_list = action.payload;
|
|
9493
|
-
}), _defineProperty(_extraReducers$
|
|
9493
|
+
}), _defineProperty(_extraReducers$m, GET_AGE_RANGE_MASTER.fulfilled, function (state, action) {
|
|
9494
9494
|
state.age_range_list.loading = false, state.age_range_list.error = false, state.age_range_list = action.payload;
|
|
9495
|
-
}), _defineProperty(_extraReducers$
|
|
9495
|
+
}), _defineProperty(_extraReducers$m, GET_AGE_RANGE_MASTER.pending, function (state, action) {
|
|
9496
9496
|
state.age_range_list.loading = true, state.age_range_list.error = false, state.age_range_list.loading = true;
|
|
9497
|
-
}), _defineProperty(_extraReducers$
|
|
9497
|
+
}), _defineProperty(_extraReducers$m, GET_AGE_RANGE_MASTER.rejected, function (state, action) {
|
|
9498
9498
|
state.age_range_list.loading = false, state.age_range_list.error = true, state.age_range_list = action.payload;
|
|
9499
|
-
}), _defineProperty(_extraReducers$
|
|
9499
|
+
}), _defineProperty(_extraReducers$m, UPSERT_AGE_RANGE.fulfilled, function (state, action) {
|
|
9500
9500
|
state.save_age_range.loading = false, state.save_age_range.error = false, state.save_age_range = action.payload;
|
|
9501
|
-
}), _defineProperty(_extraReducers$
|
|
9501
|
+
}), _defineProperty(_extraReducers$m, UPSERT_AGE_RANGE.pending, function (state, action) {
|
|
9502
9502
|
state.save_age_range.loading = true, state.save_age_range.error = false, state.save_age_range.loading = true;
|
|
9503
|
-
}), _defineProperty(_extraReducers$
|
|
9503
|
+
}), _defineProperty(_extraReducers$m, UPSERT_AGE_RANGE.rejected, function (state, action) {
|
|
9504
9504
|
state.save_age_range.loading = false, state.save_age_range.error = true, state.save_age_range = action.payload;
|
|
9505
|
-
}), _defineProperty(_extraReducers$
|
|
9505
|
+
}), _defineProperty(_extraReducers$m, UPDATE_AGE_RANGE.fulfilled, function (state, action) {
|
|
9506
9506
|
state.update_age_range.loading = false, state.update_age_range.error = false, state.update_age_range = action.payload;
|
|
9507
|
-
}), _defineProperty(_extraReducers$
|
|
9507
|
+
}), _defineProperty(_extraReducers$m, UPDATE_AGE_RANGE.pending, function (state, action) {
|
|
9508
9508
|
state.update_age_range.loading = true, state.update_age_range.error = false, state.update_age_range.loading = true;
|
|
9509
|
-
}), _defineProperty(_extraReducers$
|
|
9509
|
+
}), _defineProperty(_extraReducers$m, UPDATE_AGE_RANGE.rejected, function (state, action) {
|
|
9510
9510
|
state.update_age_range.loading = false, state.update_age_range.error = true, state.update_age_range = action.payload;
|
|
9511
|
-
}), _extraReducers$
|
|
9511
|
+
}), _extraReducers$m)
|
|
9512
9512
|
});
|
|
9513
9513
|
var ageRangeMasterActions = {
|
|
9514
9514
|
UNIT_UOM: UNIT_UOM,
|
|
@@ -9518,7 +9518,7 @@ var ageRangeMasterActions = {
|
|
|
9518
9518
|
};
|
|
9519
9519
|
var ageRangeMasterSlice$1 = ageRangeMasterSlice.reducer;
|
|
9520
9520
|
|
|
9521
|
-
var query$
|
|
9521
|
+
var query$4 = {
|
|
9522
9522
|
getList: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"filter\": {\n \"VitalsMeasureCodes\":\"VitalsMeasureCodes.activestatus==true\"\n },\n \"return_fields\": \"VitalsMeasureCodes\"\n }")
|
|
9523
9523
|
};
|
|
9524
9524
|
|
|
@@ -9548,7 +9548,7 @@ var generateJson$5 = function generateJson(data) {
|
|
|
9548
9548
|
})];
|
|
9549
9549
|
};
|
|
9550
9550
|
|
|
9551
|
-
var _extraReducers$
|
|
9551
|
+
var _extraReducers$l;
|
|
9552
9552
|
var GET_VITALS_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/age_range_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
9553
9553
|
var _ref2,
|
|
9554
9554
|
rejectWithValue,
|
|
@@ -9563,7 +9563,7 @@ var GET_VITALS_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/age_range_li
|
|
|
9563
9563
|
_context.prev = 2;
|
|
9564
9564
|
_context.next = 5;
|
|
9565
9565
|
return fetchData({
|
|
9566
|
-
body: query$
|
|
9566
|
+
body: query$4.getList
|
|
9567
9567
|
}, __readDocumentUrl__);
|
|
9568
9568
|
|
|
9569
9569
|
case 5:
|
|
@@ -9690,25 +9690,25 @@ var vitalsMeasureCodeSlice = createSlice({
|
|
|
9690
9690
|
save_measure_code: _objectSpread2({}, defaultState.Info),
|
|
9691
9691
|
update_measure_status: _objectSpread2({}, defaultState.Info)
|
|
9692
9692
|
},
|
|
9693
|
-
extraReducers: (_extraReducers$
|
|
9693
|
+
extraReducers: (_extraReducers$l = {}, _defineProperty(_extraReducers$l, GET_VITALS_MEASURE_CODE.fulfilled, function (state, action) {
|
|
9694
9694
|
state.meadure_code_list.loading = false, state.meadure_code_list.error = false, state.meadure_code_list = action.payload;
|
|
9695
|
-
}), _defineProperty(_extraReducers$
|
|
9695
|
+
}), _defineProperty(_extraReducers$l, GET_VITALS_MEASURE_CODE.pending, function (state, action) {
|
|
9696
9696
|
state.meadure_code_list.loading = true, state.meadure_code_list.error = false, state.meadure_code_list.loading = true;
|
|
9697
|
-
}), _defineProperty(_extraReducers$
|
|
9697
|
+
}), _defineProperty(_extraReducers$l, GET_VITALS_MEASURE_CODE.rejected, function (state, action) {
|
|
9698
9698
|
state.meadure_code_list.loading = false, state.meadure_code_list.error = true, state.meadure_code_list = action.payload;
|
|
9699
|
-
}), _defineProperty(_extraReducers$
|
|
9699
|
+
}), _defineProperty(_extraReducers$l, UPSERT_MEASURE_CODE.fulfilled, function (state, action) {
|
|
9700
9700
|
state.save_measure_code.loading = false, state.save_measure_code.error = false, state.save_measure_code = action.payload;
|
|
9701
|
-
}), _defineProperty(_extraReducers$
|
|
9701
|
+
}), _defineProperty(_extraReducers$l, UPSERT_MEASURE_CODE.pending, function (state, action) {
|
|
9702
9702
|
state.save_measure_code.loading = true, state.save_measure_code.error = false, state.save_measure_code.loading = true;
|
|
9703
|
-
}), _defineProperty(_extraReducers$
|
|
9703
|
+
}), _defineProperty(_extraReducers$l, UPSERT_MEASURE_CODE.rejected, function (state, action) {
|
|
9704
9704
|
state.save_measure_code.loading = false, state.save_measure_code.error = true, state.save_measure_code = action.payload;
|
|
9705
|
-
}), _defineProperty(_extraReducers$
|
|
9705
|
+
}), _defineProperty(_extraReducers$l, UPDATE_MEASURE_CODE_STATUS.fulfilled, function (state, action) {
|
|
9706
9706
|
state.update_measure_status.loading = false, state.update_measure_status.error = false, state.update_measure_status = action.payload;
|
|
9707
|
-
}), _defineProperty(_extraReducers$
|
|
9707
|
+
}), _defineProperty(_extraReducers$l, UPDATE_MEASURE_CODE_STATUS.pending, function (state, action) {
|
|
9708
9708
|
state.update_measure_status.loading = true, state.update_measure_status.error = false, state.update_measure_status.loading = true;
|
|
9709
|
-
}), _defineProperty(_extraReducers$
|
|
9709
|
+
}), _defineProperty(_extraReducers$l, UPDATE_MEASURE_CODE_STATUS.rejected, function (state, action) {
|
|
9710
9710
|
state.update_measure_status.loading = false, state.update_measure_status.error = true, state.update_measure_status = action.payload;
|
|
9711
|
-
}), _extraReducers$
|
|
9711
|
+
}), _extraReducers$l)
|
|
9712
9712
|
});
|
|
9713
9713
|
var vitalsMeasureCodeActions = {
|
|
9714
9714
|
GET_VITALS_MEASURE_CODE: GET_VITALS_MEASURE_CODE,
|
|
@@ -9717,7 +9717,7 @@ var vitalsMeasureCodeActions = {
|
|
|
9717
9717
|
};
|
|
9718
9718
|
var vitalsMeasureCodeSlice$1 = vitalsMeasureCodeSlice.reducer;
|
|
9719
9719
|
|
|
9720
|
-
var query$
|
|
9720
|
+
var query$3 = {
|
|
9721
9721
|
entityName: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"'Hospital' IN Organization.OrgType && Organization.activestatus==true\",\n \"return_fields\": \"{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}\"\n }"),
|
|
9722
9722
|
entityType: "{ \n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
9723
9723
|
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
@@ -9928,7 +9928,7 @@ var generateApplicableTable = function generateApplicableTable(table, state) {
|
|
|
9928
9928
|
return arr;
|
|
9929
9929
|
};
|
|
9930
9930
|
|
|
9931
|
-
var _extraReducers$
|
|
9931
|
+
var _extraReducers$k;
|
|
9932
9932
|
var GET_ENTITY_NAME = createAsyncThunk("vitalApplicableApiSlice/entityName", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
9933
9933
|
var _ref2,
|
|
9934
9934
|
rejectWithValue,
|
|
@@ -9944,7 +9944,7 @@ var GET_ENTITY_NAME = createAsyncThunk("vitalApplicableApiSlice/entityName", /*#
|
|
|
9944
9944
|
_context.prev = 2;
|
|
9945
9945
|
_context.next = 5;
|
|
9946
9946
|
return fetchData({
|
|
9947
|
-
body: query$
|
|
9947
|
+
body: query$3.entityName
|
|
9948
9948
|
}, __readDocumentUrl__);
|
|
9949
9949
|
|
|
9950
9950
|
case 5:
|
|
@@ -9989,7 +9989,7 @@ var GET_ENTITY_TYPE_VITALAPP = createAsyncThunk("vitalApplicableApiSlice/entityT
|
|
|
9989
9989
|
_context2.prev = 2;
|
|
9990
9990
|
_context2.next = 5;
|
|
9991
9991
|
return fetchData({
|
|
9992
|
-
body: query$
|
|
9992
|
+
body: query$3.entityType
|
|
9993
9993
|
}, __readDocumentUrl__);
|
|
9994
9994
|
|
|
9995
9995
|
case 5:
|
|
@@ -10034,7 +10034,7 @@ var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE
|
|
|
10034
10034
|
_context3.prev = 2;
|
|
10035
10035
|
_context3.next = 5;
|
|
10036
10036
|
return fetchData({
|
|
10037
|
-
body: query$
|
|
10037
|
+
body: query$3.vitalcode
|
|
10038
10038
|
}, __readDocumentUrl__);
|
|
10039
10039
|
|
|
10040
10040
|
case 5:
|
|
@@ -10079,7 +10079,7 @@ var GENDER = createAsyncThunk("vitalApplicableApiSlice/gender", /*#__PURE__*/_as
|
|
|
10079
10079
|
_context4.prev = 2;
|
|
10080
10080
|
_context4.next = 5;
|
|
10081
10081
|
return fetchData({
|
|
10082
|
-
body: query$
|
|
10082
|
+
body: query$3.gender
|
|
10083
10083
|
}, __readDocumentUrl__);
|
|
10084
10084
|
|
|
10085
10085
|
case 5:
|
|
@@ -10124,7 +10124,7 @@ var SPECIALITY_CODE = createAsyncThunk("vitalApplicableApiSlice/specialityCode",
|
|
|
10124
10124
|
_context5.prev = 2;
|
|
10125
10125
|
_context5.next = 5;
|
|
10126
10126
|
return fetchData({
|
|
10127
|
-
body: query$
|
|
10127
|
+
body: query$3.specialityCode
|
|
10128
10128
|
}, __readDocumentUrl__);
|
|
10129
10129
|
|
|
10130
10130
|
case 5:
|
|
@@ -10169,7 +10169,7 @@ var DIAGNOSIS = createAsyncThunk("vitalApplicableApiSlice/diagnosis", /*#__PURE_
|
|
|
10169
10169
|
_context6.prev = 2;
|
|
10170
10170
|
_context6.next = 5;
|
|
10171
10171
|
return fetchData({
|
|
10172
|
-
body: query$
|
|
10172
|
+
body: query$3.diagnosis
|
|
10173
10173
|
}, __readDocumentUrl__);
|
|
10174
10174
|
|
|
10175
10175
|
case 5:
|
|
@@ -10218,7 +10218,7 @@ var DIAGNOSIS_MASTERS = createAsyncThunk("vitalApplicableApiSlice/diagnosisMaste
|
|
|
10218
10218
|
input_text = payload.input_text;
|
|
10219
10219
|
_context7.next = 6;
|
|
10220
10220
|
return fetchData({
|
|
10221
|
-
body: JSON.stringify(query$
|
|
10221
|
+
body: JSON.stringify(query$3.Diagnosis(input_text))
|
|
10222
10222
|
}, __readDocumentUrl__);
|
|
10223
10223
|
|
|
10224
10224
|
case 6:
|
|
@@ -10263,7 +10263,7 @@ var AGE_RANGES_CODE = createAsyncThunk("vitalApplicableApiSlice/agerangesCode",
|
|
|
10263
10263
|
_context8.prev = 2;
|
|
10264
10264
|
_context8.next = 5;
|
|
10265
10265
|
return fetchData({
|
|
10266
|
-
body: query$
|
|
10266
|
+
body: query$3.ageRanges
|
|
10267
10267
|
}, __readDocumentUrl__);
|
|
10268
10268
|
|
|
10269
10269
|
case 5:
|
|
@@ -10312,7 +10312,7 @@ var AGE_RANGES_CATEGORY = createAsyncThunk("vitalApplicableApiSlice/agerangesCat
|
|
|
10312
10312
|
ageRangeId = payload.ageRangeId;
|
|
10313
10313
|
_context9.next = 6;
|
|
10314
10314
|
return fetchData({
|
|
10315
|
-
body: JSON.stringify(query$
|
|
10315
|
+
body: JSON.stringify(query$3.ageCategory(ageRangeId))
|
|
10316
10316
|
}, __readDocumentUrl__);
|
|
10317
10317
|
|
|
10318
10318
|
case 6:
|
|
@@ -10408,7 +10408,7 @@ var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsappl
|
|
|
10408
10408
|
|
|
10409
10409
|
_context11.next = 7;
|
|
10410
10410
|
return fetchData({
|
|
10411
|
-
body: query$
|
|
10411
|
+
body: query$3.VitalApplicableRead
|
|
10412
10412
|
}, __readDocumentUrl__);
|
|
10413
10413
|
|
|
10414
10414
|
case 7:
|
|
@@ -10500,7 +10500,7 @@ var EDIT_VITAL_APPLICABLE = createAsyncThunk("vitalsApplicableSlice/editvitalApp
|
|
|
10500
10500
|
ccState = state.vitalsApplicableSlice;
|
|
10501
10501
|
_context13.next = 8;
|
|
10502
10502
|
return fetchData({
|
|
10503
|
-
body: JSON.stringify(query$
|
|
10503
|
+
body: JSON.stringify(query$3.editVitalApplicable(id))
|
|
10504
10504
|
}, __readDocumentUrl__);
|
|
10505
10505
|
|
|
10506
10506
|
case 8:
|
|
@@ -10546,7 +10546,7 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
|
|
|
10546
10546
|
};
|
|
10547
10547
|
_context14.next = 7;
|
|
10548
10548
|
return fetchData({
|
|
10549
|
-
body: JSON.stringify(query$
|
|
10549
|
+
body: JSON.stringify(query$3.specialityCodeOrgId(orgId))
|
|
10550
10550
|
}, __readDocumentUrl__);
|
|
10551
10551
|
|
|
10552
10552
|
case 7:
|
|
@@ -10594,91 +10594,91 @@ var vitalsApplicableSlice = createSlice({
|
|
|
10594
10594
|
edit_vital_applicable: _objectSpread2({}, defaultState.List),
|
|
10595
10595
|
speciality_code_org: _objectSpread2({}, defaultState.List)
|
|
10596
10596
|
},
|
|
10597
|
-
extraReducers: (_extraReducers$
|
|
10597
|
+
extraReducers: (_extraReducers$k = {}, _defineProperty(_extraReducers$k, GET_ENTITY_NAME.fulfilled, function (state, action) {
|
|
10598
10598
|
state.entity_name.loading = false, state.entity_name.error = false, state.entity_name = action.payload;
|
|
10599
|
-
}), _defineProperty(_extraReducers$
|
|
10599
|
+
}), _defineProperty(_extraReducers$k, GET_ENTITY_NAME.pending, function (state, action) {
|
|
10600
10600
|
state.entity_name.loading = true, state.entity_name.error = false, state.entity_name.loading = true;
|
|
10601
|
-
}), _defineProperty(_extraReducers$
|
|
10601
|
+
}), _defineProperty(_extraReducers$k, GET_ENTITY_NAME.rejected, function (state, action) {
|
|
10602
10602
|
state.entity_name.loading = false, state.entity_name.error = true, state.entity_name = action.payload;
|
|
10603
|
-
}), _defineProperty(_extraReducers$
|
|
10603
|
+
}), _defineProperty(_extraReducers$k, GET_ENTITY_TYPE_VITALAPP.fulfilled, function (state, action) {
|
|
10604
10604
|
state.entity_type.loading = false, state.entity_type.error = false, state.entity_type = action.payload;
|
|
10605
|
-
}), _defineProperty(_extraReducers$
|
|
10605
|
+
}), _defineProperty(_extraReducers$k, GET_ENTITY_TYPE_VITALAPP.pending, function (state, action) {
|
|
10606
10606
|
state.entity_type.loading = true, state.entity_type.error = false, state.entity_type.loading = true;
|
|
10607
|
-
}), _defineProperty(_extraReducers$
|
|
10607
|
+
}), _defineProperty(_extraReducers$k, GET_ENTITY_TYPE_VITALAPP.rejected, function (state, action) {
|
|
10608
10608
|
state.entity_type.loading = false, state.entity_type.error = true, state.entity_type = action.payload;
|
|
10609
|
-
}), _defineProperty(_extraReducers$
|
|
10609
|
+
}), _defineProperty(_extraReducers$k, GENDER.fulfilled, function (state, action) {
|
|
10610
10610
|
state.gender.loading = false, state.gender.error = false, state.gender = action.payload;
|
|
10611
|
-
}), _defineProperty(_extraReducers$
|
|
10611
|
+
}), _defineProperty(_extraReducers$k, GENDER.pending, function (state, action) {
|
|
10612
10612
|
state.gender.loading = true, state.gender.error = false, state.gender.loading = true;
|
|
10613
|
-
}), _defineProperty(_extraReducers$
|
|
10613
|
+
}), _defineProperty(_extraReducers$k, GENDER.rejected, function (state, action) {
|
|
10614
10614
|
state.gender.loading = false, state.gender.error = true, state.gender = action.payload;
|
|
10615
|
-
}), _defineProperty(_extraReducers$
|
|
10615
|
+
}), _defineProperty(_extraReducers$k, SPECIALITY_CODE.fulfilled, function (state, action) {
|
|
10616
10616
|
state.speciality_code.loading = false, state.speciality_code.error = false, state.speciality_code = action.payload;
|
|
10617
|
-
}), _defineProperty(_extraReducers$
|
|
10617
|
+
}), _defineProperty(_extraReducers$k, SPECIALITY_CODE.pending, function (state, action) {
|
|
10618
10618
|
state.speciality_code.loading = true, state.speciality_code.error = false, state.speciality_code.loading = true;
|
|
10619
|
-
}), _defineProperty(_extraReducers$
|
|
10619
|
+
}), _defineProperty(_extraReducers$k, SPECIALITY_CODE.rejected, function (state, action) {
|
|
10620
10620
|
state.speciality_code.loading = false, state.speciality_code.error = true, state.speciality_code = action.payload;
|
|
10621
|
-
}), _defineProperty(_extraReducers$
|
|
10621
|
+
}), _defineProperty(_extraReducers$k, DIAGNOSIS.fulfilled, function (state, action) {
|
|
10622
10622
|
state.dignosis.loading = false, state.dignosis.error = false, state.dignosis = action.payload;
|
|
10623
|
-
}), _defineProperty(_extraReducers$
|
|
10623
|
+
}), _defineProperty(_extraReducers$k, DIAGNOSIS.pending, function (state, action) {
|
|
10624
10624
|
state.dignosis.loading = true, state.dignosis.error = false, state.dignosis.loading = true;
|
|
10625
|
-
}), _defineProperty(_extraReducers$
|
|
10625
|
+
}), _defineProperty(_extraReducers$k, DIAGNOSIS.rejected, function (state, action) {
|
|
10626
10626
|
state.dignosis.loading = false, state.dignosis.error = true, state.dignosis = action.payload;
|
|
10627
|
-
}), _defineProperty(_extraReducers$
|
|
10627
|
+
}), _defineProperty(_extraReducers$k, DIAGNOSIS_MASTERS.fulfilled, function (state, action) {
|
|
10628
10628
|
state.dignosis_master.loading = false, state.dignosis_master.error = false, state.dignosis_master = action.payload;
|
|
10629
|
-
}), _defineProperty(_extraReducers$
|
|
10629
|
+
}), _defineProperty(_extraReducers$k, DIAGNOSIS_MASTERS.pending, function (state, action) {
|
|
10630
10630
|
state.dignosis_master.loading = true, state.dignosis_master.error = false, state.dignosis_master.loading = true;
|
|
10631
|
-
}), _defineProperty(_extraReducers$
|
|
10631
|
+
}), _defineProperty(_extraReducers$k, DIAGNOSIS_MASTERS.rejected, function (state, action) {
|
|
10632
10632
|
state.dignosis_master.loading = false, state.dignosis_master.error = true, state.dignosis_master = action.payload;
|
|
10633
|
-
}), _defineProperty(_extraReducers$
|
|
10633
|
+
}), _defineProperty(_extraReducers$k, AGE_RANGES_CODE.fulfilled, function (state, action) {
|
|
10634
10634
|
state.ageranges_code.loading = false, state.ageranges_code.error = false, state.ageranges_code = action.payload;
|
|
10635
|
-
}), _defineProperty(_extraReducers$
|
|
10635
|
+
}), _defineProperty(_extraReducers$k, AGE_RANGES_CODE.pending, function (state, action) {
|
|
10636
10636
|
state.ageranges_code.loading = true, state.ageranges_code.error = false, state.ageranges_code.loading = true;
|
|
10637
|
-
}), _defineProperty(_extraReducers$
|
|
10637
|
+
}), _defineProperty(_extraReducers$k, AGE_RANGES_CODE.rejected, function (state, action) {
|
|
10638
10638
|
state.ageranges_code.loading = false, state.ageranges_code.error = true, state.ageranges_code = action.payload;
|
|
10639
|
-
}), _defineProperty(_extraReducers$
|
|
10639
|
+
}), _defineProperty(_extraReducers$k, AGE_RANGES_CATEGORY.fulfilled, function (state, action) {
|
|
10640
10640
|
state.ageranges_category.loading = false, state.ageranges_category.error = false, state.ageranges_category = action.payload;
|
|
10641
|
-
}), _defineProperty(_extraReducers$
|
|
10641
|
+
}), _defineProperty(_extraReducers$k, AGE_RANGES_CATEGORY.pending, function (state, action) {
|
|
10642
10642
|
state.ageranges_category.loading = true, state.ageranges_category.error = false, state.ageranges_category.loading = true;
|
|
10643
|
-
}), _defineProperty(_extraReducers$
|
|
10643
|
+
}), _defineProperty(_extraReducers$k, AGE_RANGES_CATEGORY.rejected, function (state, action) {
|
|
10644
10644
|
state.ageranges_category.loading = false, state.ageranges_category.error = true, state.ageranges_category = action.payload;
|
|
10645
|
-
}), _defineProperty(_extraReducers$
|
|
10645
|
+
}), _defineProperty(_extraReducers$k, VITAL_CODE.fulfilled, function (state, action) {
|
|
10646
10646
|
state.vital_code.loading = false, state.vital_code.error = false, state.vital_code = action.payload;
|
|
10647
|
-
}), _defineProperty(_extraReducers$
|
|
10647
|
+
}), _defineProperty(_extraReducers$k, VITAL_CODE.pending, function (state, action) {
|
|
10648
10648
|
state.vital_code.loading = true, state.vital_code.error = false, state.vital_code.loading = true;
|
|
10649
|
-
}), _defineProperty(_extraReducers$
|
|
10649
|
+
}), _defineProperty(_extraReducers$k, VITAL_CODE.rejected, function (state, action) {
|
|
10650
10650
|
state.vital_code.loading = false, state.vital_code.error = true, state.vital_code = action.payload;
|
|
10651
|
-
}), _defineProperty(_extraReducers$
|
|
10651
|
+
}), _defineProperty(_extraReducers$k, SAVE_VITAL_APPLICABLE.fulfilled, function (state, action) {
|
|
10652
10652
|
state.save_vital_applicable.loading = false, state.save_vital_applicable.error = false, state.save_vital_applicable = action.payload;
|
|
10653
|
-
}), _defineProperty(_extraReducers$
|
|
10653
|
+
}), _defineProperty(_extraReducers$k, SAVE_VITAL_APPLICABLE.pending, function (state, action) {
|
|
10654
10654
|
state.save_vital_applicable.loading = true, state.save_vital_applicable.error = false, state.save_vital_applicable.loading = true;
|
|
10655
|
-
}), _defineProperty(_extraReducers$
|
|
10655
|
+
}), _defineProperty(_extraReducers$k, SAVE_VITAL_APPLICABLE.rejected, function (state, action) {
|
|
10656
10656
|
state.save_vital_applicable.loading = false, state.save_vital_applicable.error = true, state.save_vital_applicable = action.payload;
|
|
10657
|
-
}), _defineProperty(_extraReducers$
|
|
10657
|
+
}), _defineProperty(_extraReducers$k, READ_VITAL_APPLICABLE.fulfilled, function (state, action) {
|
|
10658
10658
|
state.read_vital_applicable.loading = false, state.read_vital_applicable.error = false, state.read_vital_applicable = action.payload;
|
|
10659
|
-
}), _defineProperty(_extraReducers$
|
|
10659
|
+
}), _defineProperty(_extraReducers$k, READ_VITAL_APPLICABLE.pending, function (state, action) {
|
|
10660
10660
|
state.read_vital_applicable.loading = true, state.read_vital_applicable.error = false, state.read_vital_applicable.loading = true;
|
|
10661
|
-
}), _defineProperty(_extraReducers$
|
|
10661
|
+
}), _defineProperty(_extraReducers$k, READ_VITAL_APPLICABLE.rejected, function (state, action) {
|
|
10662
10662
|
state.read_vital_applicable.loading = false, state.read_vital_applicable.error = true, state.read_vital_applicable = action.payload;
|
|
10663
|
-
}), _defineProperty(_extraReducers$
|
|
10663
|
+
}), _defineProperty(_extraReducers$k, UPDATE_VITAL_APPLICABLE_STATUS.fulfilled, function (state, action) {
|
|
10664
10664
|
state.update_applicable_status.loading = false, state.update_applicable_status.error = false, state.update_applicable_status = action.payload;
|
|
10665
|
-
}), _defineProperty(_extraReducers$
|
|
10665
|
+
}), _defineProperty(_extraReducers$k, UPDATE_VITAL_APPLICABLE_STATUS.pending, function (state, action) {
|
|
10666
10666
|
state.update_applicable_status.loading = true, state.update_applicable_status.error = false, state.update_applicable_status.loading = true;
|
|
10667
|
-
}), _defineProperty(_extraReducers$
|
|
10667
|
+
}), _defineProperty(_extraReducers$k, UPDATE_VITAL_APPLICABLE_STATUS.rejected, function (state, action) {
|
|
10668
10668
|
state.update_applicable_status.loading = false, state.update_applicable_status.error = true, state.update_applicable_status = action.payload;
|
|
10669
|
-
}), _defineProperty(_extraReducers$
|
|
10669
|
+
}), _defineProperty(_extraReducers$k, EDIT_VITAL_APPLICABLE.fulfilled, function (state, action) {
|
|
10670
10670
|
state.edit_vital_applicable.loading = false, state.edit_vital_applicable.error = false, state.edit_vital_applicable = action.payload;
|
|
10671
|
-
}), _defineProperty(_extraReducers$
|
|
10671
|
+
}), _defineProperty(_extraReducers$k, EDIT_VITAL_APPLICABLE.pending, function (state, action) {
|
|
10672
10672
|
state.edit_vital_applicable.loading = true, state.edit_vital_applicable.error = false, state.edit_vital_applicable.loading = true;
|
|
10673
|
-
}), _defineProperty(_extraReducers$
|
|
10673
|
+
}), _defineProperty(_extraReducers$k, EDIT_VITAL_APPLICABLE.rejected, function (state, action) {
|
|
10674
10674
|
state.edit_vital_applicable.loading = false, state.edit_vital_applicable.error = true, state.edit_vital_applicable = action.payload;
|
|
10675
|
-
}), _defineProperty(_extraReducers$
|
|
10675
|
+
}), _defineProperty(_extraReducers$k, SPECIALITY_CODE_ORG_ID.fulfilled, function (state, action) {
|
|
10676
10676
|
state.speciality_code_org.loading = false, state.speciality_code_org.error = false, state.speciality_code_org = action.payload;
|
|
10677
|
-
}), _defineProperty(_extraReducers$
|
|
10677
|
+
}), _defineProperty(_extraReducers$k, SPECIALITY_CODE_ORG_ID.pending, function (state, action) {
|
|
10678
10678
|
state.speciality_code_org.loading = true, state.speciality_code_org.error = false, state.speciality_code_org.loading = true;
|
|
10679
|
-
}), _defineProperty(_extraReducers$
|
|
10679
|
+
}), _defineProperty(_extraReducers$k, SPECIALITY_CODE_ORG_ID.rejected, function (state, action) {
|
|
10680
10680
|
state.speciality_code_org.loading = false, state.speciality_code_org.error = true, state.speciality_code_org = action.payload;
|
|
10681
|
-
}), _extraReducers$
|
|
10681
|
+
}), _extraReducers$k)
|
|
10682
10682
|
});
|
|
10683
10683
|
var vitalsApplicableActions = {
|
|
10684
10684
|
GET_ENTITY_NAME: GET_ENTITY_NAME,
|
|
@@ -10698,7 +10698,7 @@ var vitalsApplicableActions = {
|
|
|
10698
10698
|
};
|
|
10699
10699
|
var vitalsApplicableSlice$1 = vitalsApplicableSlice.reducer;
|
|
10700
10700
|
|
|
10701
|
-
var query$
|
|
10701
|
+
var query$2 = {
|
|
10702
10702
|
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
10703
10703
|
unitAllowed: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"filter\": \"VitalsMeasureCodes.activestatus==true\",\n \"return_fields\": \"VitalsMeasureCodes\"\n }"),
|
|
10704
10704
|
referenceUnitAllowed: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='VITALSUOM'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
@@ -10930,7 +10930,7 @@ var generateReference = function generateReference(ref, state, ageCategory) {
|
|
|
10930
10930
|
return Object.values(obj);
|
|
10931
10931
|
};
|
|
10932
10932
|
|
|
10933
|
-
var _extraReducers$
|
|
10933
|
+
var _extraReducers$j;
|
|
10934
10934
|
var MASTER_GENDER = createAsyncThunk("vitalsMasterSectionApiSlice/gender", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
10935
10935
|
var _ref2,
|
|
10936
10936
|
rejectWithValue,
|
|
@@ -10946,7 +10946,7 @@ var MASTER_GENDER = createAsyncThunk("vitalsMasterSectionApiSlice/gender", /*#__
|
|
|
10946
10946
|
_context.prev = 2;
|
|
10947
10947
|
_context.next = 5;
|
|
10948
10948
|
return fetchData({
|
|
10949
|
-
body: query$
|
|
10949
|
+
body: query$2.gender
|
|
10950
10950
|
}, __readDocumentUrl__);
|
|
10951
10951
|
|
|
10952
10952
|
case 5:
|
|
@@ -10991,7 +10991,7 @@ var REFERENCE_UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/refer
|
|
|
10991
10991
|
_context2.prev = 2;
|
|
10992
10992
|
_context2.next = 5;
|
|
10993
10993
|
return fetchData({
|
|
10994
|
-
body: query$
|
|
10994
|
+
body: query$2.referenceUnitAllowed
|
|
10995
10995
|
}, __readDocumentUrl__);
|
|
10996
10996
|
|
|
10997
10997
|
case 5:
|
|
@@ -11036,7 +11036,7 @@ var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /
|
|
|
11036
11036
|
_context3.prev = 2;
|
|
11037
11037
|
_context3.next = 5;
|
|
11038
11038
|
return fetchData({
|
|
11039
|
-
body: query$
|
|
11039
|
+
body: query$2.unitAllowed
|
|
11040
11040
|
}, __readDocumentUrl__);
|
|
11041
11041
|
|
|
11042
11042
|
case 5:
|
|
@@ -11081,7 +11081,7 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
|
|
|
11081
11081
|
_context4.prev = 2;
|
|
11082
11082
|
_context4.next = 5;
|
|
11083
11083
|
return fetchData({
|
|
11084
|
-
body: query$
|
|
11084
|
+
body: query$2.ageRanges
|
|
11085
11085
|
}, __readDocumentUrl__);
|
|
11086
11086
|
|
|
11087
11087
|
case 5:
|
|
@@ -11136,14 +11136,14 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
|
|
|
11136
11136
|
ccState = state.vitalsMasterSectionSlice;
|
|
11137
11137
|
_context5.next = 8;
|
|
11138
11138
|
return fetchData({
|
|
11139
|
-
body: query$
|
|
11139
|
+
body: query$2.category
|
|
11140
11140
|
}, __readDocumentUrl__);
|
|
11141
11141
|
|
|
11142
11142
|
case 8:
|
|
11143
11143
|
category = _context5.sent;
|
|
11144
11144
|
_context5.next = 11;
|
|
11145
11145
|
return fetchData({
|
|
11146
|
-
body: JSON.stringify(query$
|
|
11146
|
+
body: JSON.stringify(query$2.ageCategory(ageRangeId))
|
|
11147
11147
|
}, __readDocumentUrl__);
|
|
11148
11148
|
|
|
11149
11149
|
case 11:
|
|
@@ -11186,7 +11186,7 @@ var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /
|
|
|
11186
11186
|
AllowedUnit = payload.AllowedUnit;
|
|
11187
11187
|
_context6.next = 6;
|
|
11188
11188
|
return fetchData({
|
|
11189
|
-
body: JSON.stringify(query$
|
|
11189
|
+
body: JSON.stringify(query$2.defaultUnit(AllowedUnit))
|
|
11190
11190
|
}, __readDocumentUrl__);
|
|
11191
11191
|
|
|
11192
11192
|
case 6:
|
|
@@ -11275,7 +11275,7 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
|
|
|
11275
11275
|
_context8.prev = 2;
|
|
11276
11276
|
_context8.next = 5;
|
|
11277
11277
|
return fetchData({
|
|
11278
|
-
body: query$
|
|
11278
|
+
body: query$2.VitalRead
|
|
11279
11279
|
}, __readDocumentUrl__);
|
|
11280
11280
|
|
|
11281
11281
|
case 5:
|
|
@@ -11361,7 +11361,7 @@ var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMas
|
|
|
11361
11361
|
id = payload.id;
|
|
11362
11362
|
_context10.next = 6;
|
|
11363
11363
|
return fetchData({
|
|
11364
|
-
body: query$
|
|
11364
|
+
body: query$2.deleteVitalMaster(id)
|
|
11365
11365
|
}, __softDelete__);
|
|
11366
11366
|
|
|
11367
11367
|
case 6:
|
|
@@ -11409,14 +11409,14 @@ var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalM
|
|
|
11409
11409
|
ccState = state.vitalsMasterSectionSlice;
|
|
11410
11410
|
_context11.next = 8;
|
|
11411
11411
|
return fetchData({
|
|
11412
|
-
body: query$
|
|
11412
|
+
body: query$2.category
|
|
11413
11413
|
}, __readDocumentUrl__);
|
|
11414
11414
|
|
|
11415
11415
|
case 8:
|
|
11416
11416
|
category = _context11.sent;
|
|
11417
11417
|
_context11.next = 11;
|
|
11418
11418
|
return fetchData({
|
|
11419
|
-
body: JSON.stringify(query$
|
|
11419
|
+
body: JSON.stringify(query$2.editVitalmaster(id))
|
|
11420
11420
|
}, __readDocumentUrl__);
|
|
11421
11421
|
|
|
11422
11422
|
case 11:
|
|
@@ -11455,73 +11455,73 @@ var vitalsMasterSectionSlice = createSlice({
|
|
|
11455
11455
|
delete_vital_master: _objectSpread2({}, defaultState.List),
|
|
11456
11456
|
edit_vital_master: _objectSpread2({}, defaultState.List)
|
|
11457
11457
|
},
|
|
11458
|
-
extraReducers: (_extraReducers$
|
|
11458
|
+
extraReducers: (_extraReducers$j = {}, _defineProperty(_extraReducers$j, MASTER_GENDER.fulfilled, function (state, action) {
|
|
11459
11459
|
state.master_gender.loading = false, state.master_gender.error = false, state.master_gender = action.payload;
|
|
11460
|
-
}), _defineProperty(_extraReducers$
|
|
11460
|
+
}), _defineProperty(_extraReducers$j, MASTER_GENDER.pending, function (state, action) {
|
|
11461
11461
|
state.master_gender.loading = true, state.master_gender.error = false, state.master_gender.loading = true;
|
|
11462
|
-
}), _defineProperty(_extraReducers$
|
|
11462
|
+
}), _defineProperty(_extraReducers$j, MASTER_GENDER.rejected, function (state, action) {
|
|
11463
11463
|
state.master_gender.loading = false, state.master_gender.error = true, state.master_gender = action.payload;
|
|
11464
|
-
}), _defineProperty(_extraReducers$
|
|
11464
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_UNIT_ALLOWED.fulfilled, function (state, action) {
|
|
11465
11465
|
state.reference_unit_allowed.loading = false, state.reference_unit_allowed.error = false, state.reference_unit_allowed = action.payload;
|
|
11466
|
-
}), _defineProperty(_extraReducers$
|
|
11466
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_UNIT_ALLOWED.pending, function (state, action) {
|
|
11467
11467
|
state.reference_unit_allowed.loading = true, state.reference_unit_allowed.error = false, state.reference_unit_allowed.loading = true;
|
|
11468
|
-
}), _defineProperty(_extraReducers$
|
|
11468
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_UNIT_ALLOWED.rejected, function (state, action) {
|
|
11469
11469
|
state.reference_unit_allowed.loading = false, state.reference_unit_allowed.error = true, state.reference_unit_allowed = action.payload;
|
|
11470
|
-
}), _defineProperty(_extraReducers$
|
|
11470
|
+
}), _defineProperty(_extraReducers$j, UNIT_ALLOWED.fulfilled, function (state, action) {
|
|
11471
11471
|
state.unit_allowed.loading = false, state.unit_allowed.error = false, state.unit_allowed = action.payload;
|
|
11472
|
-
}), _defineProperty(_extraReducers$
|
|
11472
|
+
}), _defineProperty(_extraReducers$j, UNIT_ALLOWED.pending, function (state, action) {
|
|
11473
11473
|
state.unit_allowed.loading = true, state.unit_allowed.error = false, state.unit_allowed.loading = true;
|
|
11474
|
-
}), _defineProperty(_extraReducers$
|
|
11474
|
+
}), _defineProperty(_extraReducers$j, UNIT_ALLOWED.rejected, function (state, action) {
|
|
11475
11475
|
state.unit_allowed.loading = false, state.unit_allowed.error = true, state.unit_allowed = action.payload;
|
|
11476
|
-
}), _defineProperty(_extraReducers$
|
|
11476
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_AGERANGES.fulfilled, function (state, action) {
|
|
11477
11477
|
state.reference_ageranges.loading = false, state.reference_ageranges.error = false, state.reference_ageranges = action.payload;
|
|
11478
|
-
}), _defineProperty(_extraReducers$
|
|
11478
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_AGERANGES.pending, function (state, action) {
|
|
11479
11479
|
state.reference_ageranges.loading = true, state.reference_ageranges.error = false, state.reference_ageranges.loading = true;
|
|
11480
|
-
}), _defineProperty(_extraReducers$
|
|
11480
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_AGERANGES.rejected, function (state, action) {
|
|
11481
11481
|
state.reference_ageranges.loading = false, state.reference_ageranges.error = true, state.reference_ageranges = action.payload;
|
|
11482
|
-
}), _defineProperty(_extraReducers$
|
|
11482
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_AGERANGES_CATEGORY.fulfilled, function (state, action) {
|
|
11483
11483
|
state.reference_agerange_category.loading = false, state.reference_agerange_category.error = false, state.reference_agerange_category = action.payload;
|
|
11484
|
-
}), _defineProperty(_extraReducers$
|
|
11484
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_AGERANGES_CATEGORY.pending, function (state, action) {
|
|
11485
11485
|
state.reference_agerange_category.loading = true, state.reference_agerange_category.error = false, state.reference_agerange_category.loading = true;
|
|
11486
|
-
}), _defineProperty(_extraReducers$
|
|
11486
|
+
}), _defineProperty(_extraReducers$j, REFERENCE_AGERANGES_CATEGORY.rejected, function (state, action) {
|
|
11487
11487
|
state.reference_agerange_category.loading = false, state.reference_agerange_category.error = true, state.reference_agerange_category = action.payload;
|
|
11488
|
-
}), _defineProperty(_extraReducers$
|
|
11488
|
+
}), _defineProperty(_extraReducers$j, DEFAULT_UNIT.fulfilled, function (state, action) {
|
|
11489
11489
|
state.default_unit.loading = false, state.default_unit.error = false, state.default_unit = action.payload;
|
|
11490
|
-
}), _defineProperty(_extraReducers$
|
|
11490
|
+
}), _defineProperty(_extraReducers$j, DEFAULT_UNIT.pending, function (state, action) {
|
|
11491
11491
|
state.default_unit.loading = true, state.default_unit.error = false, state.default_unit.loading = true;
|
|
11492
|
-
}), _defineProperty(_extraReducers$
|
|
11492
|
+
}), _defineProperty(_extraReducers$j, DEFAULT_UNIT.rejected, function (state, action) {
|
|
11493
11493
|
state.default_unit.loading = false, state.default_unit.error = true, state.default_unit = action.payload;
|
|
11494
|
-
}), _defineProperty(_extraReducers$
|
|
11494
|
+
}), _defineProperty(_extraReducers$j, SAVE_VITAL_MASTER.fulfilled, function (state, action) {
|
|
11495
11495
|
state.save_vital_master.loading = false, state.save_vital_master.error = false, state.save_vital_master = action.payload;
|
|
11496
|
-
}), _defineProperty(_extraReducers$
|
|
11496
|
+
}), _defineProperty(_extraReducers$j, SAVE_VITAL_MASTER.pending, function (state, action) {
|
|
11497
11497
|
state.save_vital_master.loading = true, state.save_vital_master.error = false, state.save_vital_master.loading = true;
|
|
11498
|
-
}), _defineProperty(_extraReducers$
|
|
11498
|
+
}), _defineProperty(_extraReducers$j, SAVE_VITAL_MASTER.rejected, function (state, action) {
|
|
11499
11499
|
state.save_vital_master.loading = false, state.save_vital_master.error = true, state.save_vital_master = action.payload;
|
|
11500
|
-
}), _defineProperty(_extraReducers$
|
|
11500
|
+
}), _defineProperty(_extraReducers$j, READ_VITAL_MASTER.fulfilled, function (state, action) {
|
|
11501
11501
|
state.vital_master_read.loading = false, state.vital_master_read.error = false, state.vital_master_read = action.payload;
|
|
11502
|
-
}), _defineProperty(_extraReducers$
|
|
11502
|
+
}), _defineProperty(_extraReducers$j, READ_VITAL_MASTER.pending, function (state, action) {
|
|
11503
11503
|
state.vital_master_read.loading = true, state.vital_master_read.error = false, state.vital_master_read.loading = true;
|
|
11504
|
-
}), _defineProperty(_extraReducers$
|
|
11504
|
+
}), _defineProperty(_extraReducers$j, READ_VITAL_MASTER.rejected, function (state, action) {
|
|
11505
11505
|
state.vital_master_read.loading = false, state.vital_master_read.error = true, state.vital_master_read = action.payload;
|
|
11506
|
-
}), _defineProperty(_extraReducers$
|
|
11506
|
+
}), _defineProperty(_extraReducers$j, UPDATE_VITAL_MASTER_STATUS.fulfilled, function (state, action) {
|
|
11507
11507
|
state.update_master_status.loading = false, state.update_master_status.error = false, state.update_master_status = action.payload;
|
|
11508
|
-
}), _defineProperty(_extraReducers$
|
|
11508
|
+
}), _defineProperty(_extraReducers$j, UPDATE_VITAL_MASTER_STATUS.pending, function (state, action) {
|
|
11509
11509
|
state.update_master_status.loading = true, state.update_master_status.error = false, state.update_master_status.loading = true;
|
|
11510
|
-
}), _defineProperty(_extraReducers$
|
|
11510
|
+
}), _defineProperty(_extraReducers$j, UPDATE_VITAL_MASTER_STATUS.rejected, function (state, action) {
|
|
11511
11511
|
state.update_master_status.loading = false, state.update_master_status.error = true, state.update_master_status = action.payload;
|
|
11512
|
-
}), _defineProperty(_extraReducers$
|
|
11512
|
+
}), _defineProperty(_extraReducers$j, DELETE_VITAL_MASTER.fulfilled, function (state, action) {
|
|
11513
11513
|
state.delete_vital_master.loading = false, state.delete_vital_master.error = false, state.delete_vital_master = action.payload;
|
|
11514
|
-
}), _defineProperty(_extraReducers$
|
|
11514
|
+
}), _defineProperty(_extraReducers$j, DELETE_VITAL_MASTER.pending, function (state, action) {
|
|
11515
11515
|
state.delete_vital_master.loading = true, state.delete_vital_master.error = false, state.delete_vital_master.loading = true;
|
|
11516
|
-
}), _defineProperty(_extraReducers$
|
|
11516
|
+
}), _defineProperty(_extraReducers$j, DELETE_VITAL_MASTER.rejected, function (state, action) {
|
|
11517
11517
|
state.delete_vital_master.loading = false, state.delete_vital_master.error = true, state.delete_vital_master = action.payload;
|
|
11518
|
-
}), _defineProperty(_extraReducers$
|
|
11518
|
+
}), _defineProperty(_extraReducers$j, EDIT_VITAL_MASTER.fulfilled, function (state, action) {
|
|
11519
11519
|
state.edit_vital_master.loading = false, state.edit_vital_master.error = false, state.edit_vital_master = action.payload;
|
|
11520
|
-
}), _defineProperty(_extraReducers$
|
|
11520
|
+
}), _defineProperty(_extraReducers$j, EDIT_VITAL_MASTER.pending, function (state, action) {
|
|
11521
11521
|
state.edit_vital_master.loading = true, state.edit_vital_master.error = false, state.edit_vital_master.loading = true;
|
|
11522
|
-
}), _defineProperty(_extraReducers$
|
|
11522
|
+
}), _defineProperty(_extraReducers$j, EDIT_VITAL_MASTER.rejected, function (state, action) {
|
|
11523
11523
|
state.edit_vital_master.loading = false, state.edit_vital_master.error = true, state.edit_vital_master = action.payload;
|
|
11524
|
-
}), _extraReducers$
|
|
11524
|
+
}), _extraReducers$j)
|
|
11525
11525
|
});
|
|
11526
11526
|
var vitalsMasterSectionActions = {
|
|
11527
11527
|
MASTER_GENDER: MASTER_GENDER,
|
|
@@ -11847,7 +11847,7 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
11847
11847
|
return json;
|
|
11848
11848
|
};
|
|
11849
11849
|
|
|
11850
|
-
var _extraReducers$
|
|
11850
|
+
var _extraReducers$i;
|
|
11851
11851
|
var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
11852
11852
|
var payload,
|
|
11853
11853
|
_ref2,
|
|
@@ -12016,25 +12016,25 @@ var locationSlice = createSlice({
|
|
|
12016
12016
|
location_list_upsert: _objectSpread2({}, defaultState.List),
|
|
12017
12017
|
location_insert: _objectSpread2({}, defaultState.List)
|
|
12018
12018
|
},
|
|
12019
|
-
extraReducers: (_extraReducers$
|
|
12019
|
+
extraReducers: (_extraReducers$i = {}, _defineProperty(_extraReducers$i, LOCATION_READ.fulfilled, function (state, action) {
|
|
12020
12020
|
state.location_list.loading = false, state.location_list.error = false, state.location_list = action.payload;
|
|
12021
|
-
}), _defineProperty(_extraReducers$
|
|
12021
|
+
}), _defineProperty(_extraReducers$i, LOCATION_READ.pending, function (state, action) {
|
|
12022
12022
|
state.location_list.loading = true, state.location_list.error = false, state.location_list.loading = true;
|
|
12023
|
-
}), _defineProperty(_extraReducers$
|
|
12023
|
+
}), _defineProperty(_extraReducers$i, LOCATION_READ.rejected, function (state, action) {
|
|
12024
12024
|
state.location_list.loading = false, state.location_list.error = true, state.location_list = action.payload;
|
|
12025
|
-
}), _defineProperty(_extraReducers$
|
|
12025
|
+
}), _defineProperty(_extraReducers$i, LOCATION_LIST_UPSERT.fulfilled, function (state, action) {
|
|
12026
12026
|
state.location_list_upsert.loading = false, state.location_list_upsert.error = false, state.location_list_upsert = action.payload;
|
|
12027
|
-
}), _defineProperty(_extraReducers$
|
|
12027
|
+
}), _defineProperty(_extraReducers$i, LOCATION_LIST_UPSERT.pending, function (state, action) {
|
|
12028
12028
|
state.location_list_upsert.loading = true, state.location_list_upsert.error = false, state.location_list_upsert.loading = true;
|
|
12029
|
-
}), _defineProperty(_extraReducers$
|
|
12029
|
+
}), _defineProperty(_extraReducers$i, LOCATION_LIST_UPSERT.rejected, function (state, action) {
|
|
12030
12030
|
state.location_list_upsert.loading = false, state.location_list_upsert.error = true, state.location_list_upsert = action.payload;
|
|
12031
|
-
}), _defineProperty(_extraReducers$
|
|
12031
|
+
}), _defineProperty(_extraReducers$i, LOCATION_MASTER_INSERT.fulfilled, function (state, action) {
|
|
12032
12032
|
state.location_insert.loading = false, state.location_insert.error = false, state.location_insert = action.payload;
|
|
12033
|
-
}), _defineProperty(_extraReducers$
|
|
12033
|
+
}), _defineProperty(_extraReducers$i, LOCATION_MASTER_INSERT.pending, function (state, action) {
|
|
12034
12034
|
state.location_insert.loading = true, state.location_insert.error = false, state.location_insert.loading = true;
|
|
12035
|
-
}), _defineProperty(_extraReducers$
|
|
12035
|
+
}), _defineProperty(_extraReducers$i, LOCATION_MASTER_INSERT.rejected, function (state, action) {
|
|
12036
12036
|
state.location_insert.loading = false, state.location_insert.error = true, state.location_insert = action.payload;
|
|
12037
|
-
}), _extraReducers$
|
|
12037
|
+
}), _extraReducers$i)
|
|
12038
12038
|
});
|
|
12039
12039
|
var locationActions$1 = {
|
|
12040
12040
|
LOCATION_READ: LOCATION_READ,
|
|
@@ -12052,12 +12052,21 @@ var masterQuery$2 = {
|
|
|
12052
12052
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
12053
12053
|
};
|
|
12054
12054
|
},
|
|
12055
|
-
locationMasterEntityName: function locationMasterEntityName() {
|
|
12055
|
+
locationMasterEntityName: function locationMasterEntityName(type) {
|
|
12056
|
+
// return {
|
|
12057
|
+
// db_name: dbName,
|
|
12058
|
+
// entity: "Organization",
|
|
12059
|
+
// filter:
|
|
12060
|
+
// `'${type}' IN Organization.OrgType AND Organization.activestatus==true`,
|
|
12061
|
+
// return_fields:
|
|
12062
|
+
// "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}",
|
|
12063
|
+
// }
|
|
12064
|
+
debugger;
|
|
12056
12065
|
return {
|
|
12057
|
-
db_name: dbName,
|
|
12058
|
-
entity: "Organization",
|
|
12059
|
-
filter: "
|
|
12060
|
-
return_fields: "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}"
|
|
12066
|
+
"db_name": dbName,
|
|
12067
|
+
"entity": "Organization",
|
|
12068
|
+
"filter": "Organization.OrgType==['".concat(type, "'] && Organization.activestatus==true"),
|
|
12069
|
+
"return_fields": "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}"
|
|
12061
12070
|
};
|
|
12062
12071
|
},
|
|
12063
12072
|
locationMasterLocationType: function locationMasterLocationType() {
|
|
@@ -12432,6 +12441,7 @@ var generateReadJSON = function generateReadJSON(data, state) {
|
|
|
12432
12441
|
toTime: ""
|
|
12433
12442
|
}]
|
|
12434
12443
|
}];
|
|
12444
|
+
debugger;
|
|
12435
12445
|
var json = {
|
|
12436
12446
|
entityType: data.managingOrgEntityType && data.managingOrgEntityType.length > 0 ? state.location_masters_entitytype.data.find(function (sys) {
|
|
12437
12447
|
return data.managingOrgEntityType.indexOf(sys.label) > -1;
|
|
@@ -12439,8 +12449,11 @@ var generateReadJSON = function generateReadJSON(data, state) {
|
|
|
12439
12449
|
label: "",
|
|
12440
12450
|
value: ""
|
|
12441
12451
|
},
|
|
12452
|
+
// entityName: data.managingOrgID,
|
|
12442
12453
|
entityName: data.managingOrgID && Array.isArray(data.managingOrgID) && data.managingOrgID.length > 0 ? state.location_masters_entityname.data.find(function (sys) {
|
|
12443
|
-
|
|
12454
|
+
var _data$managingOrgID, _data$managingOrgID$;
|
|
12455
|
+
|
|
12456
|
+
return ((_data$managingOrgID = data.managingOrgID) === null || _data$managingOrgID === void 0 ? void 0 : (_data$managingOrgID$ = _data$managingOrgID[0]) === null || _data$managingOrgID$ === void 0 ? void 0 : _data$managingOrgID$._id.indexOf(sys.label)) > -1;
|
|
12444
12457
|
}) : {
|
|
12445
12458
|
label: "",
|
|
12446
12459
|
value: ""
|
|
@@ -12500,7 +12513,7 @@ var generateReadJSON = function generateReadJSON(data, state) {
|
|
|
12500
12513
|
return json;
|
|
12501
12514
|
};
|
|
12502
12515
|
|
|
12503
|
-
var _extraReducers$
|
|
12516
|
+
var _extraReducers$h;
|
|
12504
12517
|
var LOCATION_MASTERS_ENTITYTYPE = createAsyncThunk("locationMasterSlice/location_masters_entitytype", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
12505
12518
|
var _ref2,
|
|
12506
12519
|
rejectWithValue,
|
|
@@ -12524,10 +12537,11 @@ var LOCATION_MASTERS_ENTITYTYPE = createAsyncThunk("locationMasterSlice/location
|
|
|
12524
12537
|
arry = [];
|
|
12525
12538
|
_context.next = 9;
|
|
12526
12539
|
return data_arr.result.map(function (val) {
|
|
12527
|
-
arry.push({
|
|
12540
|
+
arry.push(_objectSpread2({
|
|
12528
12541
|
value: val.coding[0].display,
|
|
12529
|
-
label: val._id
|
|
12530
|
-
|
|
12542
|
+
label: val._id,
|
|
12543
|
+
id: val.id
|
|
12544
|
+
}, val));
|
|
12531
12545
|
});
|
|
12532
12546
|
|
|
12533
12547
|
case 9:
|
|
@@ -12550,8 +12564,10 @@ var LOCATION_MASTERS_ENTITYTYPE = createAsyncThunk("locationMasterSlice/location
|
|
|
12550
12564
|
}, _callee, null, [[2, 12]]);
|
|
12551
12565
|
})));
|
|
12552
12566
|
var LOCATION_MASTERS_ENTITYNAME = createAsyncThunk("locationMasterSlice/location_masters_entityname", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
12553
|
-
var
|
|
12567
|
+
var payload,
|
|
12568
|
+
_ref4,
|
|
12554
12569
|
rejectWithValue,
|
|
12570
|
+
type,
|
|
12555
12571
|
data_arr,
|
|
12556
12572
|
arry,
|
|
12557
12573
|
_args2 = arguments;
|
|
@@ -12560,43 +12576,46 @@ var LOCATION_MASTERS_ENTITYNAME = createAsyncThunk("locationMasterSlice/location
|
|
|
12560
12576
|
while (1) {
|
|
12561
12577
|
switch (_context2.prev = _context2.next) {
|
|
12562
12578
|
case 0:
|
|
12579
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
12563
12580
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
12564
12581
|
_context2.prev = 2;
|
|
12565
|
-
|
|
12582
|
+
type = payload.type;
|
|
12583
|
+
_context2.next = 6;
|
|
12566
12584
|
return fetchData({
|
|
12567
|
-
body: JSON.stringify(masterQuery$2.locationMasterEntityName())
|
|
12585
|
+
body: JSON.stringify(masterQuery$2.locationMasterEntityName(type))
|
|
12568
12586
|
}, __readDocumentUrl__);
|
|
12569
12587
|
|
|
12570
|
-
case
|
|
12588
|
+
case 6:
|
|
12571
12589
|
data_arr = _context2.sent;
|
|
12572
12590
|
arry = [];
|
|
12573
|
-
|
|
12591
|
+
debugger;
|
|
12592
|
+
_context2.next = 11;
|
|
12574
12593
|
return data_arr.result.map(function (val) {
|
|
12575
|
-
arry.push({
|
|
12594
|
+
arry.push(_objectSpread2({
|
|
12576
12595
|
value: val.name,
|
|
12577
12596
|
label: val._id,
|
|
12578
12597
|
id: val.id
|
|
12579
|
-
});
|
|
12598
|
+
}, val));
|
|
12580
12599
|
});
|
|
12581
12600
|
|
|
12582
|
-
case
|
|
12601
|
+
case 11:
|
|
12583
12602
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12584
12603
|
data: arry
|
|
12585
12604
|
}));
|
|
12586
12605
|
|
|
12587
|
-
case
|
|
12588
|
-
_context2.prev =
|
|
12606
|
+
case 14:
|
|
12607
|
+
_context2.prev = 14;
|
|
12589
12608
|
_context2.t0 = _context2["catch"](2);
|
|
12590
12609
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12591
12610
|
message: _context2.t0.message
|
|
12592
12611
|
})));
|
|
12593
12612
|
|
|
12594
|
-
case
|
|
12613
|
+
case 17:
|
|
12595
12614
|
case "end":
|
|
12596
12615
|
return _context2.stop();
|
|
12597
12616
|
}
|
|
12598
12617
|
}
|
|
12599
|
-
}, _callee2, null, [[2,
|
|
12618
|
+
}, _callee2, null, [[2, 14]]);
|
|
12600
12619
|
})));
|
|
12601
12620
|
var LOCATION_MASTERS_LOCATIONTYPE = createAsyncThunk("locationMasterSlice/location_masters_locationtype", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
12602
12621
|
var _ref6,
|
|
@@ -13105,79 +13124,79 @@ var locationMasterSlice = createSlice({
|
|
|
13105
13124
|
location_masters_priority: _objectSpread2({}, defaultState.List),
|
|
13106
13125
|
locationmasterbyid: _objectSpread2({}, defaultState.List)
|
|
13107
13126
|
},
|
|
13108
|
-
extraReducers: (_extraReducers$
|
|
13127
|
+
extraReducers: (_extraReducers$h = {}, _defineProperty(_extraReducers$h, LOCATION_MASTERS_ENTITYTYPE.fulfilled, function (state, action) {
|
|
13109
13128
|
state.location_masters_entitytype.loading = false, state.location_masters_entitytype.error = false, state.location_masters_entitytype = action.payload;
|
|
13110
|
-
}), _defineProperty(_extraReducers$
|
|
13129
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_ENTITYTYPE.pending, function (state, action) {
|
|
13111
13130
|
state.location_masters_entitytype.loading = true, state.location_masters_entitytype.error = false, state.location_masters_entitytype.loading = true;
|
|
13112
|
-
}), _defineProperty(_extraReducers$
|
|
13131
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_ENTITYTYPE.rejected, function (state, action) {
|
|
13113
13132
|
state.location_masters_entitytype.loading = false, state.location_masters_entitytype.error = true, state.location_masters_entitytype = action.payload;
|
|
13114
|
-
}), _defineProperty(_extraReducers$
|
|
13133
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_ENTITYNAME.fulfilled, function (state, action) {
|
|
13115
13134
|
state.location_masters_entityname.loading = false, state.location_masters_entityname.error = false, state.location_masters_entityname = action.payload;
|
|
13116
|
-
}), _defineProperty(_extraReducers$
|
|
13135
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_ENTITYNAME.pending, function (state, action) {
|
|
13117
13136
|
state.location_masters_entityname.loading = true, state.location_masters_entityname.error = false, state.location_masters_entityname.loading = true;
|
|
13118
|
-
}), _defineProperty(_extraReducers$
|
|
13137
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_ENTITYNAME.rejected, function (state, action) {
|
|
13119
13138
|
state.location_masters_entityname.loading = false, state.location_masters_entityname.error = true, state.location_masters_entityname = action.payload;
|
|
13120
|
-
}), _defineProperty(_extraReducers$
|
|
13139
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_LOCATIONTYPE.fulfilled, function (state, action) {
|
|
13121
13140
|
state.location_masters_locationtype.loading = false, state.location_masters_locationtype.error = false, state.location_masters_locationtype = action.payload;
|
|
13122
|
-
}), _defineProperty(_extraReducers$
|
|
13141
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_LOCATIONTYPE.pending, function (state, action) {
|
|
13123
13142
|
state.location_masters_locationtype.loading = true, state.location_masters_locationtype.error = false, state.location_masters_locationtype.loading = true;
|
|
13124
|
-
}), _defineProperty(_extraReducers$
|
|
13143
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_LOCATIONTYPE.rejected, function (state, action) {
|
|
13125
13144
|
state.location_masters_locationtype.loading = false, state.location_masters_locationtype.error = true, state.location_masters_locationtype = action.payload;
|
|
13126
|
-
}), _defineProperty(_extraReducers$
|
|
13145
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_OPERATIONALSTATUS.fulfilled, function (state, action) {
|
|
13127
13146
|
state.location_masters_operationalstatus.loading = false, state.location_masters_operationalstatus.error = false, state.location_masters_operationalstatus = action.payload;
|
|
13128
|
-
}), _defineProperty(_extraReducers$
|
|
13147
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_OPERATIONALSTATUS.pending, function (state, action) {
|
|
13129
13148
|
state.location_masters_operationalstatus.loading = true, state.location_masters_operationalstatus.error = false, state.location_masters_operationalstatus.loading = true;
|
|
13130
|
-
}), _defineProperty(_extraReducers$
|
|
13149
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_OPERATIONALSTATUS.rejected, function (state, action) {
|
|
13131
13150
|
state.location_masters_operationalstatus.loading = false, state.location_masters_operationalstatus.error = true, state.location_masters_operationalstatus = action.payload;
|
|
13132
|
-
}), _defineProperty(_extraReducers$
|
|
13151
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION.fulfilled, function (state, action) {
|
|
13133
13152
|
state.location_masters_parent_location_id.loading = false, state.location_masters_parent_location_id.error = false, state.location_masters_parent_location_id = action.payload;
|
|
13134
|
-
}), _defineProperty(_extraReducers$
|
|
13153
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION.pending, function (state, action) {
|
|
13135
13154
|
state.location_masters_parent_location_id.loading = true, state.location_masters_parent_location_id.error = false, state.location_masters_parent_location_id.loading = true;
|
|
13136
|
-
}), _defineProperty(_extraReducers$
|
|
13155
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION.rejected, function (state, action) {
|
|
13137
13156
|
state.location_masters_parent_location_id.loading = false, state.location_masters_parent_location_id.error = true, state.location_masters_parent_location_id = action.payload;
|
|
13138
|
-
}), _defineProperty(_extraReducers$
|
|
13157
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_LOCATIONROLETYPE.fulfilled, function (state, action) {
|
|
13139
13158
|
state.location_masters_locationroletype.loading = false, state.location_masters_locationroletype.error = false, state.location_masters_locationroletype = action.payload;
|
|
13140
|
-
}), _defineProperty(_extraReducers$
|
|
13159
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_LOCATIONROLETYPE.pending, function (state, action) {
|
|
13141
13160
|
state.location_masters_locationroletype.loading = true, state.location_masters_locationroletype.error = false, state.location_masters_locationroletype.loading = true;
|
|
13142
|
-
}), _defineProperty(_extraReducers$
|
|
13161
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTERS_LOCATIONROLETYPE.rejected, function (state, action) {
|
|
13143
13162
|
state.location_masters_locationroletype.loading = false, state.location_masters_locationroletype.error = true, state.location_masters_locationroletype = action.payload;
|
|
13144
|
-
}), _defineProperty(_extraReducers$
|
|
13163
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_SPECIALITY.fulfilled, function (state, action) {
|
|
13145
13164
|
state.location_masters_speciality.loading = false, state.location_masters_speciality.error = false, state.location_masters_speciality = action.payload;
|
|
13146
|
-
}), _defineProperty(_extraReducers$
|
|
13165
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_SPECIALITY.pending, function (state, action) {
|
|
13147
13166
|
state.location_masters_speciality.loading = true, state.location_masters_speciality.error = false, state.location_masters_speciality.loading = true;
|
|
13148
|
-
}), _defineProperty(_extraReducers$
|
|
13167
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_SPECIALITY.rejected, function (state, action) {
|
|
13149
13168
|
state.location_masters_speciality.loading = false, state.location_masters_speciality.error = true, state.location_masters_speciality = action.payload;
|
|
13150
|
-
}), _defineProperty(_extraReducers$
|
|
13169
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_CONTACTMODE.fulfilled, function (state, action) {
|
|
13151
13170
|
state.location_masters_contactmode.loading = false, state.location_masters_contactmode.error = false, state.location_masters_contactmode = action.payload;
|
|
13152
|
-
}), _defineProperty(_extraReducers$
|
|
13171
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_CONTACTMODE.pending, function (state, action) {
|
|
13153
13172
|
state.location_masters_contactmode.loading = true, state.location_masters_contactmode.error = false, state.location_masters_contactmode.loading = true;
|
|
13154
|
-
}), _defineProperty(_extraReducers$
|
|
13173
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_CONTACTMODE.rejected, function (state, action) {
|
|
13155
13174
|
state.location_masters_contactmode.loading = false, state.location_masters_contactmode.error = true, state.location_masters_contactmode = action.payload;
|
|
13156
|
-
}), _defineProperty(_extraReducers$
|
|
13175
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_ISD.fulfilled, function (state, action) {
|
|
13157
13176
|
state.location_masters_isd.loading = false, state.location_masters_isd.error = false, state.location_masters_isd = action.payload;
|
|
13158
|
-
}), _defineProperty(_extraReducers$
|
|
13177
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_ISD.pending, function (state, action) {
|
|
13159
13178
|
state.location_masters_isd.loading = true, state.location_masters_isd.error = false, state.location_masters_isd.loading = true;
|
|
13160
|
-
}), _defineProperty(_extraReducers$
|
|
13179
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_ISD.rejected, function (state, action) {
|
|
13161
13180
|
state.location_masters_isd.loading = false, state.location_masters_isd.error = true, state.location_masters_isd = action.payload;
|
|
13162
|
-
}), _defineProperty(_extraReducers$
|
|
13181
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_USE.fulfilled, function (state, action) {
|
|
13163
13182
|
state.location_masters_use.loading = false, state.location_masters_use.error = false, state.location_masters_use = action.payload;
|
|
13164
|
-
}), _defineProperty(_extraReducers$
|
|
13183
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_USE.pending, function (state, action) {
|
|
13165
13184
|
state.location_masters_use.loading = true, state.location_masters_use.error = false, state.location_masters_use.loading = true;
|
|
13166
|
-
}), _defineProperty(_extraReducers$
|
|
13185
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_USE.rejected, function (state, action) {
|
|
13167
13186
|
state.location_masters_use.loading = false, state.location_masters_use.error = true, state.location_masters_use = action.payload;
|
|
13168
|
-
}), _defineProperty(_extraReducers$
|
|
13187
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
13169
13188
|
state.location_masters_priority.loading = false, state.location_masters_priority.error = false, state.location_masters_priority = action.payload;
|
|
13170
|
-
}), _defineProperty(_extraReducers$
|
|
13189
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_PRIORITY.pending, function (state, action) {
|
|
13171
13190
|
state.location_masters_priority.loading = true, state.location_masters_priority.error = false, state.location_masters_priority.loading = true;
|
|
13172
|
-
}), _defineProperty(_extraReducers$
|
|
13191
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_PRIORITY.rejected, function (state, action) {
|
|
13173
13192
|
state.location_masters_priority.loading = false, state.location_masters_priority.error = true, state.location_masters_priority = action.payload;
|
|
13174
|
-
}), _defineProperty(_extraReducers$
|
|
13193
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_GET_BY_ID.fulfilled, function (state, action) {
|
|
13175
13194
|
state.locationmasterbyid.loading = false, state.locationmasterbyid.error = false, state.locationmasterbyid = action.payload;
|
|
13176
|
-
}), _defineProperty(_extraReducers$
|
|
13195
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_GET_BY_ID.pending, function (state, action) {
|
|
13177
13196
|
state.locationmasterbyid.loading = true, state.locationmasterbyid.error = false, state.locationmasterbyid.loading = true;
|
|
13178
|
-
}), _defineProperty(_extraReducers$
|
|
13197
|
+
}), _defineProperty(_extraReducers$h, LOCATION_MASTER_GET_BY_ID.rejected, function (state, action) {
|
|
13179
13198
|
state.locationmasterbyid.loading = false, state.locationmasterbyid.error = true, state.locationmasterbyid = action.payload;
|
|
13180
|
-
}), _extraReducers$
|
|
13199
|
+
}), _extraReducers$h)
|
|
13181
13200
|
});
|
|
13182
13201
|
var locationMasterActions = {
|
|
13183
13202
|
LOCATION_MASTERS_ENTITYTYPE: LOCATION_MASTERS_ENTITYTYPE,
|
|
@@ -13275,7 +13294,7 @@ var queries$a = {
|
|
|
13275
13294
|
}
|
|
13276
13295
|
};
|
|
13277
13296
|
|
|
13278
|
-
var _extraReducers$
|
|
13297
|
+
var _extraReducers$g;
|
|
13279
13298
|
var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
13280
13299
|
var _ref2,
|
|
13281
13300
|
rejectWithValue,
|
|
@@ -13533,37 +13552,37 @@ var ordertypeSlice = createSlice({
|
|
|
13533
13552
|
updateset_orrder_table: _objectSpread2({}, defaultState.List),
|
|
13534
13553
|
insert_order_type: _objectSpread2({}, defaultState.List)
|
|
13535
13554
|
},
|
|
13536
|
-
extraReducers: (_extraReducers$
|
|
13555
|
+
extraReducers: (_extraReducers$g = {}, _defineProperty(_extraReducers$g, ORDERTYPEREAD.fulfilled, function (state, action) {
|
|
13537
13556
|
state.order_type_read.loading = false, state.order_type_read.error = false, state.order_type_read = action.payload;
|
|
13538
|
-
}), _defineProperty(_extraReducers$
|
|
13557
|
+
}), _defineProperty(_extraReducers$g, ORDERTYPEREAD.pending, function (state, action) {
|
|
13539
13558
|
state.order_type_read.loading = true, state.order_type_read.error = false, state.order_type_read.loading = true;
|
|
13540
|
-
}), _defineProperty(_extraReducers$
|
|
13559
|
+
}), _defineProperty(_extraReducers$g, ORDERTYPEREAD.rejected, function (state, action) {
|
|
13541
13560
|
state.order_type_read.loading = false, state.order_type_read.error = true, state.order_type_read = action.payload;
|
|
13542
|
-
}), _defineProperty(_extraReducers$
|
|
13561
|
+
}), _defineProperty(_extraReducers$g, ORDERCATEGORYMASTER.fulfilled, function (state, action) {
|
|
13543
13562
|
state.order_category_master.loading = false, state.order_category_master.error = false, state.order_category_master = action.payload;
|
|
13544
|
-
}), _defineProperty(_extraReducers$
|
|
13563
|
+
}), _defineProperty(_extraReducers$g, ORDERCATEGORYMASTER.pending, function (state, action) {
|
|
13545
13564
|
state.order_category_master.loading = true, state.order_category_master.error = false, state.order_category_master.loading = true;
|
|
13546
|
-
}), _defineProperty(_extraReducers$
|
|
13565
|
+
}), _defineProperty(_extraReducers$g, ORDERCATEGORYMASTER.rejected, function (state, action) {
|
|
13547
13566
|
state.order_category_master.loading = false, state.order_category_master.error = true, state.order_category_master = action.payload;
|
|
13548
|
-
}), _defineProperty(_extraReducers$
|
|
13567
|
+
}), _defineProperty(_extraReducers$g, UPDATEORDERTABLESTATE.fulfilled, function (state, action) {
|
|
13549
13568
|
state.update_orrder_table_state.loading = false, state.update_orrder_table_state.error = false, state.update_orrder_table_state = action.payload;
|
|
13550
|
-
}), _defineProperty(_extraReducers$
|
|
13569
|
+
}), _defineProperty(_extraReducers$g, UPDATEORDERTABLESTATE.pending, function (state, action) {
|
|
13551
13570
|
state.update_orrder_table_state.loading = true, state.update_orrder_table_state.error = false, state.update_orrder_table_state.loading = true;
|
|
13552
|
-
}), _defineProperty(_extraReducers$
|
|
13571
|
+
}), _defineProperty(_extraReducers$g, UPDATEORDERTABLESTATE.rejected, function (state, action) {
|
|
13553
13572
|
state.update_orrder_table_state.loading = false, state.update_orrder_table_state.error = true, state.update_orrder_table_state = action.payload;
|
|
13554
|
-
}), _defineProperty(_extraReducers$
|
|
13573
|
+
}), _defineProperty(_extraReducers$g, UPDATESETORDERTABLE.fulfilled, function (state, action) {
|
|
13555
13574
|
state.updateset_orrder_table.loading = false, state.updateset_orrder_table.error = false, state.updateset_orrder_table = action.payload;
|
|
13556
|
-
}), _defineProperty(_extraReducers$
|
|
13575
|
+
}), _defineProperty(_extraReducers$g, UPDATESETORDERTABLE.pending, function (state, action) {
|
|
13557
13576
|
state.updateset_orrder_table.loading = true, state.updateset_orrder_table.error = false, state.updateset_orrder_table.loading = true;
|
|
13558
|
-
}), _defineProperty(_extraReducers$
|
|
13577
|
+
}), _defineProperty(_extraReducers$g, UPDATESETORDERTABLE.rejected, function (state, action) {
|
|
13559
13578
|
state.updateset_orrder_table.loading = false, state.updateset_orrder_table.error = true, state.updateset_orrder_table = action.payload;
|
|
13560
|
-
}), _defineProperty(_extraReducers$
|
|
13579
|
+
}), _defineProperty(_extraReducers$g, INSERTORDERTABLE.fulfilled, function (state, action) {
|
|
13561
13580
|
state.insert_order_type.loading = false, state.insert_order_type.error = false, state.insert_order_type = action.payload;
|
|
13562
|
-
}), _defineProperty(_extraReducers$
|
|
13581
|
+
}), _defineProperty(_extraReducers$g, INSERTORDERTABLE.pending, function (state, action) {
|
|
13563
13582
|
state.insert_order_type.loading = true, state.insert_order_type.error = false, state.insert_order_type.loading = true;
|
|
13564
|
-
}), _defineProperty(_extraReducers$
|
|
13583
|
+
}), _defineProperty(_extraReducers$g, INSERTORDERTABLE.rejected, function (state, action) {
|
|
13565
13584
|
state.insert_order_type.loading = false, state.insert_order_type.error = true, state.insert_order_type = action.payload;
|
|
13566
|
-
}), _extraReducers$
|
|
13585
|
+
}), _extraReducers$g)
|
|
13567
13586
|
});
|
|
13568
13587
|
var ordertypeActions$1 = {
|
|
13569
13588
|
ORDERTYPEREAD: ORDERTYPEREAD,
|
|
@@ -13652,7 +13671,7 @@ var queries$9 = {
|
|
|
13652
13671
|
}
|
|
13653
13672
|
};
|
|
13654
13673
|
|
|
13655
|
-
var _extraReducers$
|
|
13674
|
+
var _extraReducers$f;
|
|
13656
13675
|
var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
13657
13676
|
var _ref2,
|
|
13658
13677
|
rejectWithValue,
|
|
@@ -13847,31 +13866,31 @@ var ordernatureSlice = createSlice({
|
|
|
13847
13866
|
updateset_orrder_nature_table: _objectSpread2({}, defaultState.List),
|
|
13848
13867
|
insert_order_nature_type: _objectSpread2({}, defaultState.List)
|
|
13849
13868
|
},
|
|
13850
|
-
extraReducers: (_extraReducers$
|
|
13869
|
+
extraReducers: (_extraReducers$f = {}, _defineProperty(_extraReducers$f, ORDERNATUREREAD.fulfilled, function (state, action) {
|
|
13851
13870
|
state.order_nature_read.loading = false, state.order_nature_read.error = false, state.order_nature_read = action.payload;
|
|
13852
|
-
}), _defineProperty(_extraReducers$
|
|
13871
|
+
}), _defineProperty(_extraReducers$f, ORDERNATUREREAD.pending, function (state, action) {
|
|
13853
13872
|
state.order_nature_read.loading = true, state.order_nature_read.error = false, state.order_nature_read.loading = true;
|
|
13854
|
-
}), _defineProperty(_extraReducers$
|
|
13873
|
+
}), _defineProperty(_extraReducers$f, ORDERNATUREREAD.rejected, function (state, action) {
|
|
13855
13874
|
state.order_nature_read.loading = false, state.order_nature_read.error = true, state.order_nature_read = action.payload;
|
|
13856
|
-
}), _defineProperty(_extraReducers$
|
|
13875
|
+
}), _defineProperty(_extraReducers$f, UPDATEORDERNATURETABLESTATE.fulfilled, function (state, action) {
|
|
13857
13876
|
state.update_orrder_nature_table_state.loading = false, state.update_orrder_nature_table_state.error = false, state.update_orrder_nature_table_state = action.payload;
|
|
13858
|
-
}), _defineProperty(_extraReducers$
|
|
13877
|
+
}), _defineProperty(_extraReducers$f, UPDATEORDERNATURETABLESTATE.pending, function (state, action) {
|
|
13859
13878
|
state.update_orrder_nature_table_state.loading = true, state.update_orrder_nature_table_state.error = false, state.update_orrder_nature_table_state.loading = true;
|
|
13860
|
-
}), _defineProperty(_extraReducers$
|
|
13879
|
+
}), _defineProperty(_extraReducers$f, UPDATEORDERNATURETABLESTATE.rejected, function (state, action) {
|
|
13861
13880
|
state.update_orrder_nature_table_state.loading = false, state.update_orrder_nature_table_state.error = true, state.update_orrder_nature_table_state = action.payload;
|
|
13862
|
-
}), _defineProperty(_extraReducers$
|
|
13881
|
+
}), _defineProperty(_extraReducers$f, UPDATESETORDERNATURETABLE.fulfilled, function (state, action) {
|
|
13863
13882
|
state.updateset_orrder_nature_table.loading = false, state.updateset_orrder_nature_table.error = false, state.updateset_orrder_nature_table = action.payload;
|
|
13864
|
-
}), _defineProperty(_extraReducers$
|
|
13883
|
+
}), _defineProperty(_extraReducers$f, UPDATESETORDERNATURETABLE.pending, function (state, action) {
|
|
13865
13884
|
state.updateset_orrder_nature_table.loading = true, state.updateset_orrder_nature_table.error = false, state.updateset_orrder_nature_table.loading = true;
|
|
13866
|
-
}), _defineProperty(_extraReducers$
|
|
13885
|
+
}), _defineProperty(_extraReducers$f, UPDATESETORDERNATURETABLE.rejected, function (state, action) {
|
|
13867
13886
|
state.updateset_orrder_nature_table.loading = false, state.updateset_orrder_nature_table.error = true, state.updateset_orrder_nature_table = action.payload;
|
|
13868
|
-
}), _defineProperty(_extraReducers$
|
|
13887
|
+
}), _defineProperty(_extraReducers$f, INSERTORDERNATURETABLE.fulfilled, function (state, action) {
|
|
13869
13888
|
state.insert_order_nature_type.loading = false, state.insert_order_nature_type.error = false, state.insert_order_nature_type = action.payload;
|
|
13870
|
-
}), _defineProperty(_extraReducers$
|
|
13889
|
+
}), _defineProperty(_extraReducers$f, INSERTORDERNATURETABLE.pending, function (state, action) {
|
|
13871
13890
|
state.insert_order_nature_type.loading = true, state.insert_order_nature_type.error = false, state.insert_order_nature_type.loading = true;
|
|
13872
|
-
}), _defineProperty(_extraReducers$
|
|
13891
|
+
}), _defineProperty(_extraReducers$f, INSERTORDERNATURETABLE.rejected, function (state, action) {
|
|
13873
13892
|
state.insert_order_nature_type.loading = false, state.insert_order_nature_type.error = true, state.insert_order_nature_type = action.payload;
|
|
13874
|
-
}), _extraReducers$
|
|
13893
|
+
}), _extraReducers$f)
|
|
13875
13894
|
});
|
|
13876
13895
|
var ordernatureActions$1 = {
|
|
13877
13896
|
ORDERNATUREREAD: ORDERNATUREREAD,
|
|
@@ -14451,7 +14470,7 @@ var queries$7 = {
|
|
|
14451
14470
|
}
|
|
14452
14471
|
};
|
|
14453
14472
|
|
|
14454
|
-
var _extraReducers$
|
|
14473
|
+
var _extraReducers$e;
|
|
14455
14474
|
var CODEABLE_CONCEPT_MASTER_STATUS_CHANGE = createAsyncThunk("availabilityManagementSlice/appointmentTypeStatus", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
14456
14475
|
var payload,
|
|
14457
14476
|
_ref2,
|
|
@@ -14606,25 +14625,25 @@ var availabilityManagementSlice = createSlice({
|
|
|
14606
14625
|
appointment_type_list: _objectSpread2({}, defaultState.List),
|
|
14607
14626
|
codeable_concept_master_upsert: _objectSpread2({}, defaultState.List)
|
|
14608
14627
|
},
|
|
14609
|
-
extraReducers: (_extraReducers$
|
|
14628
|
+
extraReducers: (_extraReducers$e = {}, _defineProperty(_extraReducers$e, CODEABLE_CONCEPT_MASTER_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
14610
14629
|
state.status_update.loading = false, state.status_update.error = false, state.status_update = action.payload;
|
|
14611
|
-
}), _defineProperty(_extraReducers$
|
|
14630
|
+
}), _defineProperty(_extraReducers$e, CODEABLE_CONCEPT_MASTER_STATUS_CHANGE.pending, function (state, action) {
|
|
14612
14631
|
state.status_update.loading = true, state.status_update.error = false, state.status_update.loading = true;
|
|
14613
|
-
}), _defineProperty(_extraReducers$
|
|
14632
|
+
}), _defineProperty(_extraReducers$e, CODEABLE_CONCEPT_MASTER_STATUS_CHANGE.rejected, function (state, action) {
|
|
14614
14633
|
state.status_update.loading = false, state.status_update.error = true, state.status_update = action.payload;
|
|
14615
|
-
}), _defineProperty(_extraReducers$
|
|
14634
|
+
}), _defineProperty(_extraReducers$e, APPOINTMENT_TYPE_READ.fulfilled, function (state, action) {
|
|
14616
14635
|
state.appointment_type_list.loading = false, state.appointment_type_list.error = false, state.appointment_type_list = action.payload;
|
|
14617
|
-
}), _defineProperty(_extraReducers$
|
|
14636
|
+
}), _defineProperty(_extraReducers$e, APPOINTMENT_TYPE_READ.pending, function (state, action) {
|
|
14618
14637
|
state.appointment_type_list.loading = true, state.appointment_type_list.error = false, state.appointment_type_list.loading = true;
|
|
14619
|
-
}), _defineProperty(_extraReducers$
|
|
14638
|
+
}), _defineProperty(_extraReducers$e, APPOINTMENT_TYPE_READ.rejected, function (state, action) {
|
|
14620
14639
|
state.appointment_type_list.loading = false, state.appointment_type_list.error = true, state.appointment_type_list = action.payload;
|
|
14621
|
-
}), _defineProperty(_extraReducers$
|
|
14640
|
+
}), _defineProperty(_extraReducers$e, CODEABLE_CONCEPT_MASTER_UPSERT.fulfilled, function (state, action) {
|
|
14622
14641
|
state.codeable_concept_master_upsert.loading = false, state.codeable_concept_master_upsert.error = false, state.codeable_concept_master_upsert = action.payload;
|
|
14623
|
-
}), _defineProperty(_extraReducers$
|
|
14642
|
+
}), _defineProperty(_extraReducers$e, CODEABLE_CONCEPT_MASTER_UPSERT.pending, function (state, action) {
|
|
14624
14643
|
state.codeable_concept_master_upsert.loading = true, state.codeable_concept_master_upsert.error = false, state.codeable_concept_master_upsert.loading = true;
|
|
14625
|
-
}), _defineProperty(_extraReducers$
|
|
14644
|
+
}), _defineProperty(_extraReducers$e, CODEABLE_CONCEPT_MASTER_UPSERT.rejected, function (state, action) {
|
|
14626
14645
|
state.codeable_concept_master_upsert.loading = false, state.codeable_concept_master_upsert.error = true, state.codeable_concept_master_upsert = action.payload;
|
|
14627
|
-
}), _extraReducers$
|
|
14646
|
+
}), _extraReducers$e)
|
|
14628
14647
|
});
|
|
14629
14648
|
var availabilityManagementActions$1 = {
|
|
14630
14649
|
CODEABLE_CONCEPT_MASTER_STATUS_CHANGE: CODEABLE_CONCEPT_MASTER_STATUS_CHANGE,
|
|
@@ -14633,7 +14652,7 @@ var availabilityManagementActions$1 = {
|
|
|
14633
14652
|
};
|
|
14634
14653
|
var availabilityManagementSlice$1 = availabilityManagementSlice.reducer;
|
|
14635
14654
|
|
|
14636
|
-
var _extraReducers$
|
|
14655
|
+
var _extraReducers$d;
|
|
14637
14656
|
|
|
14638
14657
|
var loopMasters$2 = function loopMasters() {
|
|
14639
14658
|
return new es6Promise.Promise( /*#__PURE__*/function () {
|
|
@@ -14943,31 +14962,31 @@ var holidaySlice = createSlice({
|
|
|
14943
14962
|
holiday_upsert: _objectSpread2({}, defaultState.List),
|
|
14944
14963
|
holiday_master: _objectSpread2({}, defaultState.List)
|
|
14945
14964
|
},
|
|
14946
|
-
extraReducers: (_extraReducers$
|
|
14965
|
+
extraReducers: (_extraReducers$d = {}, _defineProperty(_extraReducers$d, HOLIDAY_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
14947
14966
|
state.status_update.loading = false, state.status_update.error = false, state.status_update = action.payload;
|
|
14948
|
-
}), _defineProperty(_extraReducers$
|
|
14967
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_STATUS_CHANGE.pending, function (state, action) {
|
|
14949
14968
|
state.status_update.loading = true, state.status_update.error = false, state.status_update.loading = true;
|
|
14950
|
-
}), _defineProperty(_extraReducers$
|
|
14969
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_STATUS_CHANGE.rejected, function (state, action) {
|
|
14951
14970
|
state.status_update.loading = false, state.status_update.error = true, state.status_update = action.payload;
|
|
14952
|
-
}), _defineProperty(_extraReducers$
|
|
14971
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_READ.fulfilled, function (state, action) {
|
|
14953
14972
|
state.holidy_list.loading = false, state.holidy_list.error = false, state.holidy_list = action.payload;
|
|
14954
|
-
}), _defineProperty(_extraReducers$
|
|
14973
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_READ.pending, function (state, action) {
|
|
14955
14974
|
state.holidy_list.loading = true, state.holidy_list.error = false, state.holidy_list.loading = true;
|
|
14956
|
-
}), _defineProperty(_extraReducers$
|
|
14975
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_READ.rejected, function (state, action) {
|
|
14957
14976
|
state.holidy_list.loading = false, state.holidy_list.error = true, state.holidy_list = action.payload;
|
|
14958
|
-
}), _defineProperty(_extraReducers$
|
|
14977
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_UPSERT.fulfilled, function (state, action) {
|
|
14959
14978
|
state.holiday_upsert.loading = false, state.holiday_upsert.error = false, state.holiday_upsert = action.payload;
|
|
14960
|
-
}), _defineProperty(_extraReducers$
|
|
14979
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_UPSERT.pending, function (state, action) {
|
|
14961
14980
|
state.holiday_upsert.loading = true, state.holiday_upsert.error = false, state.holiday_upsert.loading = true;
|
|
14962
|
-
}), _defineProperty(_extraReducers$
|
|
14981
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_UPSERT.rejected, function (state, action) {
|
|
14963
14982
|
state.holiday_upsert.loading = false, state.holiday_upsert.error = true, state.holiday_upsert = action.payload;
|
|
14964
|
-
}), _defineProperty(_extraReducers$
|
|
14983
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_MASTERS.fulfilled, function (state, action) {
|
|
14965
14984
|
state.holiday_master.loading = false, state.holiday_master.error = false, state.holiday_master = action.payload;
|
|
14966
|
-
}), _defineProperty(_extraReducers$
|
|
14985
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_MASTERS.pending, function (state, action) {
|
|
14967
14986
|
state.holiday_master.loading = true, state.holiday_master.error = false, state.holiday_master.loading = true;
|
|
14968
|
-
}), _defineProperty(_extraReducers$
|
|
14987
|
+
}), _defineProperty(_extraReducers$d, HOLIDAY_MASTERS.rejected, function (state, action) {
|
|
14969
14988
|
state.holiday_master.loading = false, state.holiday_master.error = true, state.holiday_master = action.payload;
|
|
14970
|
-
}), _extraReducers$
|
|
14989
|
+
}), _extraReducers$d)
|
|
14971
14990
|
});
|
|
14972
14991
|
var holidayActions = {
|
|
14973
14992
|
HOLIDAY_STATUS_CHANGE: HOLIDAY_STATUS_CHANGE,
|
|
@@ -15214,7 +15233,7 @@ var generateReadJson$2 = {
|
|
|
15214
15233
|
}
|
|
15215
15234
|
};
|
|
15216
15235
|
|
|
15217
|
-
var _extraReducers$
|
|
15236
|
+
var _extraReducers$c;
|
|
15218
15237
|
var RESOURCE_BY_APPOINTMRNT_TYPES = createAsyncThunk("resourceByAppointmentTypesSlice/resource_appointment_type", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
15219
15238
|
var _ref2,
|
|
15220
15239
|
rejectWithValue,
|
|
@@ -15839,79 +15858,79 @@ var resourceByAppointmentTypesSlice = createSlice({
|
|
|
15839
15858
|
res_upsert_new: _objectSpread2({}, defaultState.List),
|
|
15840
15859
|
res_line_list_read_doc: _objectSpread2({}, defaultState.List)
|
|
15841
15860
|
},
|
|
15842
|
-
extraReducers: (_extraReducers$
|
|
15861
|
+
extraReducers: (_extraReducers$c = {}, _defineProperty(_extraReducers$c, RESOURCE_BY_APPOINTMRNT_TYPES.fulfilled, function (state, action) {
|
|
15843
15862
|
state.resource_appointment_type.loading = false, state.resource_appointment_type.error = false, state.resource_appointment_type = action.payload;
|
|
15844
|
-
}), _defineProperty(_extraReducers$
|
|
15863
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_APPOINTMRNT_TYPES.pending, function (state, action) {
|
|
15845
15864
|
state.resource_appointment_type.loading = true, state.resource_appointment_type.error = false, state.resource_appointment_type.loading = true;
|
|
15846
|
-
}), _defineProperty(_extraReducers$
|
|
15865
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_APPOINTMRNT_TYPES.rejected, function (state, action) {
|
|
15847
15866
|
state.resource_appointment_type.loading = false, state.resource_appointment_type.error = true, state.resource_appointment_type = action.payload;
|
|
15848
|
-
}), _defineProperty(_extraReducers$
|
|
15867
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_ENTITY_NAME_TYPES.fulfilled, function (state, action) {
|
|
15849
15868
|
state.resource_enitity_name.loading = false, state.resource_enitity_name.error = false, state.resource_enitity_name = action.payload;
|
|
15850
|
-
}), _defineProperty(_extraReducers$
|
|
15869
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_ENTITY_NAME_TYPES.pending, function (state, action) {
|
|
15851
15870
|
state.resource_enitity_name.loading = true, state.resource_enitity_name.error = false, state.resource_enitity_name.loading = true;
|
|
15852
|
-
}), _defineProperty(_extraReducers$
|
|
15871
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_ENTITY_NAME_TYPES.rejected, function (state, action) {
|
|
15853
15872
|
state.resource_enitity_name.loading = false, state.resource_enitity_name.error = true, state.resource_enitity_name = action.payload;
|
|
15854
|
-
}), _defineProperty(_extraReducers$
|
|
15873
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_ENTITY_TYPE.fulfilled, function (state, action) {
|
|
15855
15874
|
state.resource_enitity_type.loading = false, state.resource_enitity_type.error = false, state.resource_enitity_type = action.payload;
|
|
15856
|
-
}), _defineProperty(_extraReducers$
|
|
15875
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_ENTITY_TYPE.pending, function (state, action) {
|
|
15857
15876
|
state.resource_enitity_type.loading = true, state.resource_enitity_type.error = false, state.resource_enitity_type.loading = true;
|
|
15858
|
-
}), _defineProperty(_extraReducers$
|
|
15877
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_ENTITY_TYPE.rejected, function (state, action) {
|
|
15859
15878
|
state.resource_enitity_type.loading = false, state.resource_enitity_type.error = true, state.resource_enitity_type = action.payload;
|
|
15860
|
-
}), _defineProperty(_extraReducers$
|
|
15879
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_TABLE_DATA.fulfilled, function (state, action) {
|
|
15861
15880
|
state.resource_enitity_table_data.loading = false, state.resource_enitity_table_data.error = false, state.resource_enitity_table_data = action.payload;
|
|
15862
|
-
}), _defineProperty(_extraReducers$
|
|
15881
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_TABLE_DATA.pending, function (state, action) {
|
|
15863
15882
|
state.resource_enitity_table_data.loading = true, state.resource_enitity_table_data.error = false, state.resource_enitity_table_data.loading = true;
|
|
15864
|
-
}), _defineProperty(_extraReducers$
|
|
15883
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_BY_TABLE_DATA.rejected, function (state, action) {
|
|
15865
15884
|
state.resource_enitity_table_data.loading = false, state.resource_enitity_table_data.error = true, state.resource_enitity_table_data = action.payload;
|
|
15866
|
-
}), _defineProperty(_extraReducers$
|
|
15885
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_TYPE_DROP_DOWN.fulfilled, function (state, action) {
|
|
15867
15886
|
state.resource_type_drop_down.loading = false, state.resource_type_drop_down.error = false, state.resource_type_drop_down = action.payload;
|
|
15868
|
-
}), _defineProperty(_extraReducers$
|
|
15887
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_TYPE_DROP_DOWN.pending, function (state, action) {
|
|
15869
15888
|
state.resource_type_drop_down.loading = true, state.resource_type_drop_down.error = false, state.resource_type_drop_down.loading = true;
|
|
15870
|
-
}), _defineProperty(_extraReducers$
|
|
15889
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_TYPE_DROP_DOWN.rejected, function (state, action) {
|
|
15871
15890
|
state.resource_type_drop_down.loading = false, state.resource_type_drop_down.error = true, state.resource_type_drop_down = action.payload;
|
|
15872
|
-
}), _defineProperty(_extraReducers$
|
|
15891
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_ROLE_DROP_DOWN.fulfilled, function (state, action) {
|
|
15873
15892
|
state.resource_role_drop_down.loading = false, state.resource_role_drop_down.error = false, state.resource_role_drop_down = action.payload;
|
|
15874
|
-
}), _defineProperty(_extraReducers$
|
|
15893
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_ROLE_DROP_DOWN.pending, function (state, action) {
|
|
15875
15894
|
state.resource_role_drop_down.loading = true, state.resource_role_drop_down.error = false, state.resource_role_drop_down.loading = true;
|
|
15876
|
-
}), _defineProperty(_extraReducers$
|
|
15895
|
+
}), _defineProperty(_extraReducers$c, RESOURCE_ROLE_DROP_DOWN.rejected, function (state, action) {
|
|
15877
15896
|
state.resource_role_drop_down.loading = false, state.resource_role_drop_down.error = true, state.resource_role_drop_down = action.payload;
|
|
15878
|
-
}), _defineProperty(_extraReducers$
|
|
15897
|
+
}), _defineProperty(_extraReducers$c, RES_GENERAL_INSTRUCTION.fulfilled, function (state, action) {
|
|
15879
15898
|
state.res_general_instruction.loading = false, state.res_general_instruction.error = false, state.res_general_instruction = action.payload;
|
|
15880
|
-
}), _defineProperty(_extraReducers$
|
|
15899
|
+
}), _defineProperty(_extraReducers$c, RES_GENERAL_INSTRUCTION.pending, function (state, action) {
|
|
15881
15900
|
state.res_general_instruction.loading = true, state.res_general_instruction.error = false, state.res_general_instruction.loading = true;
|
|
15882
|
-
}), _defineProperty(_extraReducers$
|
|
15901
|
+
}), _defineProperty(_extraReducers$c, RES_GENERAL_INSTRUCTION.rejected, function (state, action) {
|
|
15883
15902
|
state.res_general_instruction.loading = false, state.res_general_instruction.error = true, state.res_general_instruction = action.payload;
|
|
15884
|
-
}), _defineProperty(_extraReducers$
|
|
15903
|
+
}), _defineProperty(_extraReducers$c, RES_SPECIALINSTRUCTION.fulfilled, function (state, action) {
|
|
15885
15904
|
state.res_special_instruction.loading = false, state.res_special_instruction.error = false, state.res_special_instruction = action.payload;
|
|
15886
|
-
}), _defineProperty(_extraReducers$
|
|
15905
|
+
}), _defineProperty(_extraReducers$c, RES_SPECIALINSTRUCTION.pending, function (state, action) {
|
|
15887
15906
|
state.res_special_instruction.loading = true, state.res_special_instruction.error = false, state.res_special_instruction.loading = true;
|
|
15888
|
-
}), _defineProperty(_extraReducers$
|
|
15907
|
+
}), _defineProperty(_extraReducers$c, RES_SPECIALINSTRUCTION.rejected, function (state, action) {
|
|
15889
15908
|
state.res_special_instruction.loading = false, state.res_special_instruction.error = true, state.res_special_instruction = action.payload;
|
|
15890
|
-
}), _defineProperty(_extraReducers$
|
|
15909
|
+
}), _defineProperty(_extraReducers$c, RES_CRITERIA_INSTRUVTION.fulfilled, function (state, action) {
|
|
15891
15910
|
state.res_criteria_instruction.loading = false, state.res_criteria_instruction.error = false, state.res_criteria_instruction = action.payload;
|
|
15892
|
-
}), _defineProperty(_extraReducers$
|
|
15911
|
+
}), _defineProperty(_extraReducers$c, RES_CRITERIA_INSTRUVTION.pending, function (state, action) {
|
|
15893
15912
|
state.res_criteria_instruction.loading = true, state.res_criteria_instruction.error = false, state.res_criteria_instruction.loading = true;
|
|
15894
|
-
}), _defineProperty(_extraReducers$
|
|
15913
|
+
}), _defineProperty(_extraReducers$c, RES_CRITERIA_INSTRUVTION.rejected, function (state, action) {
|
|
15895
15914
|
state.res_criteria_instruction.loading = false, state.res_criteria_instruction.error = true, state.res_criteria_instruction = action.payload;
|
|
15896
|
-
}), _defineProperty(_extraReducers$
|
|
15915
|
+
}), _defineProperty(_extraReducers$c, UPDATE_STATUS_RES_LINE_LIST.fulfilled, function (state, action) {
|
|
15897
15916
|
state.res_status_update.loading = false, state.res_status_update.error = false, state.res_status_update = action.payload;
|
|
15898
|
-
}), _defineProperty(_extraReducers$
|
|
15917
|
+
}), _defineProperty(_extraReducers$c, UPDATE_STATUS_RES_LINE_LIST.pending, function (state, action) {
|
|
15899
15918
|
state.res_status_update.loading = true, state.res_status_update.error = false, state.res_status_update.loading = true;
|
|
15900
|
-
}), _defineProperty(_extraReducers$
|
|
15919
|
+
}), _defineProperty(_extraReducers$c, UPDATE_STATUS_RES_LINE_LIST.rejected, function (state, action) {
|
|
15901
15920
|
state.res_status_update.loading = false, state.res_status_update.error = true, state.res_status_update = action.payload;
|
|
15902
|
-
}), _defineProperty(_extraReducers$
|
|
15921
|
+
}), _defineProperty(_extraReducers$c, RES_UPSERT_INSER_NEW.fulfilled, function (state, action) {
|
|
15903
15922
|
state.res_upsert_new.loading = false, state.res_upsert_new.error = false, state.res_upsert_new = action.payload;
|
|
15904
|
-
}), _defineProperty(_extraReducers$
|
|
15923
|
+
}), _defineProperty(_extraReducers$c, RES_UPSERT_INSER_NEW.pending, function (state, action) {
|
|
15905
15924
|
state.res_upsert_new.loading = true, state.res_upsert_new.error = false, state.res_upsert_new.loading = true;
|
|
15906
|
-
}), _defineProperty(_extraReducers$
|
|
15925
|
+
}), _defineProperty(_extraReducers$c, RES_UPSERT_INSER_NEW.rejected, function (state, action) {
|
|
15907
15926
|
state.res_upsert_new.loading = false, state.res_upsert_new.error = true, state.res_upsert_new = action.payload;
|
|
15908
|
-
}), _defineProperty(_extraReducers$
|
|
15927
|
+
}), _defineProperty(_extraReducers$c, RES_LINE_LIST_READ_DOC.fulfilled, function (state, action) {
|
|
15909
15928
|
state.res_line_list_read_doc.loading = false, state.res_line_list_read_doc.error = false, state.res_line_list_read_doc = action.payload;
|
|
15910
|
-
}), _defineProperty(_extraReducers$
|
|
15929
|
+
}), _defineProperty(_extraReducers$c, RES_LINE_LIST_READ_DOC.pending, function (state, action) {
|
|
15911
15930
|
state.res_line_list_read_doc.loading = true, state.res_line_list_read_doc.error = false, state.res_line_list_read_doc.loading = true;
|
|
15912
|
-
}), _defineProperty(_extraReducers$
|
|
15931
|
+
}), _defineProperty(_extraReducers$c, RES_LINE_LIST_READ_DOC.rejected, function (state, action) {
|
|
15913
15932
|
state.res_line_list_read_doc.loading = false, state.res_line_list_read_doc.error = true, state.res_line_list_read_doc = action.payload;
|
|
15914
|
-
}), _extraReducers$
|
|
15933
|
+
}), _extraReducers$c)
|
|
15915
15934
|
});
|
|
15916
15935
|
var resourceByAppointmentTypes = {
|
|
15917
15936
|
RESOURCE_BY_APPOINTMRNT_TYPES: RESOURCE_BY_APPOINTMRNT_TYPES,
|
|
@@ -16058,7 +16077,7 @@ var queries$5 = {
|
|
|
16058
16077
|
}
|
|
16059
16078
|
};
|
|
16060
16079
|
|
|
16061
|
-
var _extraReducers$
|
|
16080
|
+
var _extraReducers$b;
|
|
16062
16081
|
var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
16063
16082
|
var _ref2,
|
|
16064
16083
|
rejectWithValue,
|
|
@@ -16163,19 +16182,19 @@ var drugCategorySlice = createSlice({
|
|
|
16163
16182
|
drug_category_list: _objectSpread2({}, defaultState.List),
|
|
16164
16183
|
drug_type_list: _objectSpread2({}, defaultState.List)
|
|
16165
16184
|
},
|
|
16166
|
-
extraReducers: (_extraReducers$
|
|
16185
|
+
extraReducers: (_extraReducers$b = {}, _defineProperty(_extraReducers$b, DRUG_CATEGORY_READ.fulfilled, function (state, action) {
|
|
16167
16186
|
state.drug_category_list.loading = false, state.drug_category_list.error = false, state.drug_category_list = action.payload;
|
|
16168
|
-
}), _defineProperty(_extraReducers$
|
|
16187
|
+
}), _defineProperty(_extraReducers$b, DRUG_CATEGORY_READ.pending, function (state, action) {
|
|
16169
16188
|
state.drug_category_list.loading = true, state.drug_category_list.error = false, state.drug_category_list.loading = true;
|
|
16170
|
-
}), _defineProperty(_extraReducers$
|
|
16189
|
+
}), _defineProperty(_extraReducers$b, DRUG_CATEGORY_READ.rejected, function (state, action) {
|
|
16171
16190
|
state.drug_category_list.loading = false, state.drug_category_list.error = true, state.drug_category_list = action.payload;
|
|
16172
|
-
}), _defineProperty(_extraReducers$
|
|
16191
|
+
}), _defineProperty(_extraReducers$b, DRUG_TYPE_READ.fulfilled, function (state, action) {
|
|
16173
16192
|
state.drug_type_list.loading = false, state.drug_type_list.error = false, state.drug_type_list = action.payload;
|
|
16174
|
-
}), _defineProperty(_extraReducers$
|
|
16193
|
+
}), _defineProperty(_extraReducers$b, DRUG_TYPE_READ.pending, function (state, action) {
|
|
16175
16194
|
state.drug_type_list.loading = true, state.drug_type_list.error = false, state.drug_type_list.loading = true;
|
|
16176
|
-
}), _defineProperty(_extraReducers$
|
|
16195
|
+
}), _defineProperty(_extraReducers$b, DRUG_TYPE_READ.rejected, function (state, action) {
|
|
16177
16196
|
state.drug_type_list.loading = false, state.drug_type_list.error = true, state.drug_type_list = action.payload;
|
|
16178
|
-
}), _extraReducers$
|
|
16197
|
+
}), _extraReducers$b)
|
|
16179
16198
|
});
|
|
16180
16199
|
var drugCategoryActions = {
|
|
16181
16200
|
DRUG_CATEGORY_READ: DRUG_CATEGORY_READ,
|
|
@@ -16183,7 +16202,7 @@ var drugCategoryActions = {
|
|
|
16183
16202
|
};
|
|
16184
16203
|
var drugCategorySlice$1 = drugCategorySlice.reducer;
|
|
16185
16204
|
|
|
16186
|
-
var _extraReducers$
|
|
16205
|
+
var _extraReducers$a;
|
|
16187
16206
|
var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
16188
16207
|
var _ref2,
|
|
16189
16208
|
rejectWithValue,
|
|
@@ -16336,25 +16355,25 @@ var drugDosageSlice = createSlice({
|
|
|
16336
16355
|
drug_dosage_upsert: _objectSpread2({}, defaultState.List),
|
|
16337
16356
|
drug_dosage_status: _objectSpread2({}, defaultState.List)
|
|
16338
16357
|
},
|
|
16339
|
-
extraReducers: (_extraReducers$
|
|
16358
|
+
extraReducers: (_extraReducers$a = {}, _defineProperty(_extraReducers$a, DRUG_DOSAGE_READ.fulfilled, function (state, action) {
|
|
16340
16359
|
state.drug_dosage_list.loading = false, state.drug_dosage_list.error = false, state.drug_dosage_list = action.payload;
|
|
16341
|
-
}), _defineProperty(_extraReducers$
|
|
16360
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_READ.pending, function (state, action) {
|
|
16342
16361
|
state.drug_dosage_list.loading = true, state.drug_dosage_list.error = false, state.drug_dosage_list.loading = true;
|
|
16343
|
-
}), _defineProperty(_extraReducers$
|
|
16362
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_READ.rejected, function (state, action) {
|
|
16344
16363
|
state.drug_dosage_list.loading = false, state.drug_dosage_list.error = true, state.drug_dosage_list = action.payload;
|
|
16345
|
-
}), _defineProperty(_extraReducers$
|
|
16364
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_UPSERT.fulfilled, function (state, action) {
|
|
16346
16365
|
state.drug_dosage_upsert.loading = false, state.drug_dosage_upsert.error = false, state.drug_dosage_upsert = action.payload;
|
|
16347
|
-
}), _defineProperty(_extraReducers$
|
|
16366
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_UPSERT.pending, function (state, action) {
|
|
16348
16367
|
state.drug_dosage_upsert.loading = true, state.drug_dosage_upsert.error = false, state.drug_dosage_upsert.loading = true;
|
|
16349
|
-
}), _defineProperty(_extraReducers$
|
|
16368
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_UPSERT.rejected, function (state, action) {
|
|
16350
16369
|
state.drug_dosage_upsert.loading = false, state.drug_dosage_upsert.error = true, state.drug_dosage_upsert = action.payload;
|
|
16351
|
-
}), _defineProperty(_extraReducers$
|
|
16370
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
16352
16371
|
state.drug_dosage_status.loading = false, state.drug_dosage_status.error = false, state.drug_dosage_status = action.payload;
|
|
16353
|
-
}), _defineProperty(_extraReducers$
|
|
16372
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_STATUS_CHANGE.pending, function (state, action) {
|
|
16354
16373
|
state.drug_dosage_status.loading = true, state.drug_dosage_status.error = false, state.drug_dosage_status.loading = true;
|
|
16355
|
-
}), _defineProperty(_extraReducers$
|
|
16374
|
+
}), _defineProperty(_extraReducers$a, DRUG_DOSAGE_STATUS_CHANGE.rejected, function (state, action) {
|
|
16356
16375
|
state.drug_dosage_status.loading = false, state.drug_dosage_status.error = true, state.drug_dosage_status = action.payload;
|
|
16357
|
-
}), _extraReducers$
|
|
16376
|
+
}), _extraReducers$a)
|
|
16358
16377
|
});
|
|
16359
16378
|
var drugDosageActions = {
|
|
16360
16379
|
DRUG_DOSAGE_READ: DRUG_DOSAGE_READ,
|
|
@@ -16363,7 +16382,7 @@ var drugDosageActions = {
|
|
|
16363
16382
|
};
|
|
16364
16383
|
var drugDosageSlice$1 = drugDosageSlice.reducer;
|
|
16365
16384
|
|
|
16366
|
-
var _extraReducers$
|
|
16385
|
+
var _extraReducers$9;
|
|
16367
16386
|
var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
16368
16387
|
var _ref2,
|
|
16369
16388
|
rejectWithValue,
|
|
@@ -16516,25 +16535,25 @@ var drugClassSlice = createSlice({
|
|
|
16516
16535
|
drug_class_upsert: _objectSpread2({}, defaultState.List),
|
|
16517
16536
|
drug_class_status: _objectSpread2({}, defaultState.List)
|
|
16518
16537
|
},
|
|
16519
|
-
extraReducers: (_extraReducers$
|
|
16538
|
+
extraReducers: (_extraReducers$9 = {}, _defineProperty(_extraReducers$9, DRUG_CLASS_READ.fulfilled, function (state, action) {
|
|
16520
16539
|
state.drug_class_list.loading = false, state.drug_class_list.error = false, state.drug_class_list = action.payload;
|
|
16521
|
-
}), _defineProperty(_extraReducers$
|
|
16540
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_READ.pending, function (state, action) {
|
|
16522
16541
|
state.drug_class_list.loading = true, state.drug_class_list.error = false, state.drug_class_list.loading = true;
|
|
16523
|
-
}), _defineProperty(_extraReducers$
|
|
16542
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_READ.rejected, function (state, action) {
|
|
16524
16543
|
state.drug_class_list.loading = false, state.drug_class_list.error = true, state.drug_class_list = action.payload;
|
|
16525
|
-
}), _defineProperty(_extraReducers$
|
|
16544
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_UPSERT.fulfilled, function (state, action) {
|
|
16526
16545
|
state.drug_class_upsert.loading = false, state.drug_class_upsert.error = false, state.drug_class_upsert = action.payload;
|
|
16527
|
-
}), _defineProperty(_extraReducers$
|
|
16546
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_UPSERT.pending, function (state, action) {
|
|
16528
16547
|
state.drug_class_upsert.loading = true, state.drug_class_upsert.error = false, state.drug_class_upsert.loading = true;
|
|
16529
|
-
}), _defineProperty(_extraReducers$
|
|
16548
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_UPSERT.rejected, function (state, action) {
|
|
16530
16549
|
state.drug_class_upsert.loading = false, state.drug_class_upsert.error = true, state.drug_class_upsert = action.payload;
|
|
16531
|
-
}), _defineProperty(_extraReducers$
|
|
16550
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
16532
16551
|
state.drug_class_status.loading = false, state.drug_class_status.error = false, state.drug_class_status = action.payload;
|
|
16533
|
-
}), _defineProperty(_extraReducers$
|
|
16552
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_STATUS_CHANGE.pending, function (state, action) {
|
|
16534
16553
|
state.drug_class_status.loading = true, state.drug_class_status.error = false, state.drug_class_status.loading = true;
|
|
16535
|
-
}), _defineProperty(_extraReducers$
|
|
16554
|
+
}), _defineProperty(_extraReducers$9, DRUG_CLASS_STATUS_CHANGE.rejected, function (state, action) {
|
|
16536
16555
|
state.drug_class_status.loading = false, state.drug_class_status.error = true, state.drug_class_status = action.payload;
|
|
16537
|
-
}), _extraReducers$
|
|
16556
|
+
}), _extraReducers$9)
|
|
16538
16557
|
});
|
|
16539
16558
|
var drugClassActions = {
|
|
16540
16559
|
DRUG_CLASS_READ: DRUG_CLASS_READ,
|
|
@@ -16543,7 +16562,7 @@ var drugClassActions = {
|
|
|
16543
16562
|
};
|
|
16544
16563
|
var drugClassSlice$1 = drugClassSlice.reducer;
|
|
16545
16564
|
|
|
16546
|
-
var _extraReducers$
|
|
16565
|
+
var _extraReducers$8;
|
|
16547
16566
|
var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
16548
16567
|
var _ref2,
|
|
16549
16568
|
rejectWithValue,
|
|
@@ -16698,25 +16717,25 @@ var drugRoutesSlice = createSlice({
|
|
|
16698
16717
|
drug_routes_upsert: _objectSpread2({}, defaultState.List),
|
|
16699
16718
|
drug_routes_status: _objectSpread2({}, defaultState.List)
|
|
16700
16719
|
},
|
|
16701
|
-
extraReducers: (_extraReducers$
|
|
16720
|
+
extraReducers: (_extraReducers$8 = {}, _defineProperty(_extraReducers$8, DRUG_ROUTES_READ.fulfilled, function (state, action) {
|
|
16702
16721
|
state.drug_routes_list.loading = false, state.drug_routes_list.error = false, state.drug_routes_list = action.payload;
|
|
16703
|
-
}), _defineProperty(_extraReducers$
|
|
16722
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_READ.pending, function (state, action) {
|
|
16704
16723
|
state.drug_routes_list.loading = true, state.drug_routes_list.error = false, state.drug_routes_list.loading = true;
|
|
16705
|
-
}), _defineProperty(_extraReducers$
|
|
16724
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_READ.rejected, function (state, action) {
|
|
16706
16725
|
state.drug_routes_list.loading = false, state.drug_routes_list.error = true, state.drug_routes_list = action.payload;
|
|
16707
|
-
}), _defineProperty(_extraReducers$
|
|
16726
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_UPSERT.fulfilled, function (state, action) {
|
|
16708
16727
|
state.drug_routes_upsert.loading = false, state.drug_routes_upsert.error = false, state.drug_routes_upsert = action.payload;
|
|
16709
|
-
}), _defineProperty(_extraReducers$
|
|
16728
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_UPSERT.pending, function (state, action) {
|
|
16710
16729
|
state.drug_routes_upsert.loading = true, state.drug_routes_upsert.error = false, state.drug_routes_upsert.loading = true;
|
|
16711
|
-
}), _defineProperty(_extraReducers$
|
|
16730
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_UPSERT.rejected, function (state, action) {
|
|
16712
16731
|
state.drug_routes_upsert.loading = false, state.drug_routes_upsert.error = true, state.drug_routes_upsert = action.payload;
|
|
16713
|
-
}), _defineProperty(_extraReducers$
|
|
16732
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
16714
16733
|
state.drug_routes_status.loading = false, state.drug_routes_status.error = false, state.drug_routes_status = action.payload;
|
|
16715
|
-
}), _defineProperty(_extraReducers$
|
|
16734
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_STATUS_CHANGE.pending, function (state, action) {
|
|
16716
16735
|
state.drug_routes_status.loading = true, state.drug_routes_status.error = false, state.drug_routes_status.loading = true;
|
|
16717
|
-
}), _defineProperty(_extraReducers$
|
|
16736
|
+
}), _defineProperty(_extraReducers$8, DRUG_ROUTES_STATUS_CHANGE.rejected, function (state, action) {
|
|
16718
16737
|
state.drug_routes_status.loading = false, state.drug_routes_status.error = true, state.drug_routes_status = action.payload;
|
|
16719
|
-
}), _extraReducers$
|
|
16738
|
+
}), _extraReducers$8)
|
|
16720
16739
|
});
|
|
16721
16740
|
var drugRoutesActions = {
|
|
16722
16741
|
DRUG_ROUTES_READ: DRUG_ROUTES_READ,
|
|
@@ -16727,7 +16746,7 @@ var drugRoutesSlice$1 = drugRoutesSlice.reducer;
|
|
|
16727
16746
|
|
|
16728
16747
|
var _doc;
|
|
16729
16748
|
var queries$4 = {
|
|
16730
|
-
drug_master: "{\n
|
|
16749
|
+
drug_master: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugMaster\",\n \"filter\": \"DrugMaster.activestatus==true \",\n \"return_fields\": \"{id:DrugMaster.id,_id:DrugMaster._id,DrugCode:DrugMaster.DrugCode,ShortDesc:DrugMaster.ShortDesc,LongDesc:DrugMaster.LongDesc,statusactive:DrugMaster.statusactive,draftstatus:DrugMaster.draftstatus}\"\n }"),
|
|
16731
16750
|
drug_master_upsert: [{
|
|
16732
16751
|
"db_name": "primarycare",
|
|
16733
16752
|
"entity": "DrugMaster",
|
|
@@ -16845,6 +16864,42 @@ var queries$4 = {
|
|
|
16845
16864
|
"statusactive": data.status
|
|
16846
16865
|
}
|
|
16847
16866
|
}];
|
|
16867
|
+
},
|
|
16868
|
+
drug_form_type: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ParamsMapping\",\n \"filter\":\"ParamsMapping.paraCode=='SOURCEOFDRUGORDERCATALOG'\",\n \"return_fields\": \"{id:ParamsMapping.id,_id:ParamsMapping._id,paraCode:ParamsMapping.paraCode,paraVal:ParamsMapping.paraVal,paraDef:ParamsMapping.paraDef}\"\n }"),
|
|
16869
|
+
drug_form_read: function drug_form_read(_id) {
|
|
16870
|
+
// return {
|
|
16871
|
+
// "db_name": dbName,
|
|
16872
|
+
// "entity": "DrugMaster",
|
|
16873
|
+
// "filter": `DrugMaster.activestatus==true && DrugMaster._id=='${_id}'`,
|
|
16874
|
+
// "return_fields": "merge(DrugMaster,{Status:document(DrugMaster.Status).display},{DrugClass:document(DrugMaster.DrugClass)},{DrugType:document(DrugMaster.DrugType)},{DrugCategory:document(DrugMaster.DrugCategory)},{FormCode:document(DrugMaster.FormCode)},{DefaultRouteCode:document(DrugMaster.DefaultRouteCode)},{RoutesAllowed:document(DrugMaster.RoutesAllowed)},{DfltInfuseOverDurationType:document(DrugMaster.DfltInfuseOverDurationType)},{Instruction: (for i in CA_OrderCatalogByEncounterTypeAge filter i._id in DrugMaster.Instruction return merge(i,{encountertype: (for en in CodingMaster filter en._id == i.encountertype return en)},{gendercode:(for gen in CodingMaster filter gen._id == i.gendercode return gen)},{agegroup:(for ag in AgeRanges filter ag._id == i.agegroup return ag)},{agecatgcode:(for ac in AgeCategory filter ac._id in i.agecatgcode return ac)},{dfltfreqValueUnit:(for df in FrequencyMaster filter df._id == i.dfltfreqValueUnit return df)},{dfltfreqRateUnit:(for dfr in DrugUOM filter dfr._id == i.dfltfreqRateUnit return dfr)},{dfltdurationType:(for ddt in DrugUOM filter ddt._id == i.dfltdurationType return ddt)}))},{FrequencyRules: (for fr in DrugDefaultFeqRules filter fr._id in DrugMaster.FrequencyRules return merge(fr,{DfltFreqbyPatAttrib:(for dfpa in fr.DfltFreqbyPatAttrib return merge(dfpa,{encountertype:document(dfpa.encountertype)},{AgeCatgCode:document(dfpa.AgeCatgCode)},{DfltInfuseOverDurationType:document(dfpa.DfltInfuseOverDurationType)},{agegroup:document(dfpa.agegroup)},{ageunit:document(dfpa.ageunit)},{dfltdoseUOM:document(dfpa.dfltdoseUOM)},{dfltdurnUOM:document(dfpa.dfltdurnUOM)},{dfltfreqcode:document(dfpa.dfltfreqcode)}))}))},{DrugDispRules:(for dd in DrugDispRules filter dd._id in DrugMaster.DrugDispRules return merge(dd,{MaxDispDurnRulebyEnctype: (for mdd in dd.MaxDispDurnRulebyEnctype return merge(mdd,{Action:(document(mdd.Action).display)},{EncounterType:(for etype in CodingMaster filter etype._id == mdd.EncounterType return etype)},{MaxDispDurationUOM:(for mduom in DrugUOM filter mduom._id == mdd.MaxDispDurationUOM return mduom)}))}))},{StrengthValuesPossible:(for dr in DrugMaster.StrengthValuesPossible return merge(dr,{StrengthUOM:(document(dr.StrengthUOM))},{StrengthVolumeUoM:(document(dr.StrengthVolumeUoM))},{OrderUOMAllowed:(for od in dr.OrderUOMAllowed return merge(od,{AllowedOrderDoseUOM:(document(od.AllowedOrderDoseUOM))},{AllowedOrderDoseVolUoM:(document(od.AllowedOrderDoseVolUoM))}))}))})"
|
|
16875
|
+
// }
|
|
16876
|
+
return {
|
|
16877
|
+
"db_name": dbName,
|
|
16878
|
+
"entity": "DrugMaster",
|
|
16879
|
+
"filter": "DrugMaster.activestatus==true && DrugMaster._id=='".concat(_id, "'"),
|
|
16880
|
+
"return_fields": "merge(DrugMaster,{Status:document(DrugMaster.Status).display},{DrugClass:document(DrugMaster.DrugClass)},{DrugType:document(DrugMaster.DrugType)},{DrugCategory:document(DrugMaster.DrugCategory)},{FormCode:document(DrugMaster.FormCode)},{DefaultRouteCode:document(DrugMaster.DefaultRouteCode)},{RoutesAllowed:document(DrugMaster.RoutesAllowed)},{DfltInfuseOverDurationType:document(DrugMaster.DfltInfuseOverDurationType)},{Instruction: (for i in CA_OrderCatalogByEncounterTypeAge filter i._id in DrugMaster.Instruction return merge(i,{encountertype: (for en in CodingMaster filter en._id == i.encountertype return en)},{gendercode:(for gen in CodingMaster filter gen._id == i.gendercode return gen)},{agegroup:(for ag in AgeRanges filter ag._id == i.agegroup return ag)},{agecatgcode:(for ac in AgeCategory filter ac._id in i.agecatgcode return ac)},{dfltfreqValueUnit:(for df in FrequencyMaster filter df._id == i.dfltfreqValueUnit return df)},{dfltfreqRateUnit:(for dfr in DrugUOM filter dfr._id == i.dfltfreqRateUnit return dfr)},{dfltdurationType:(for ddt in DrugUOM filter ddt._id == i.dfltdurationType return ddt)}))},{FrequencyRules: (for fr in DrugDefaultFeqRules filter fr._id in DrugMaster.FrequencyRules return merge(fr,{DfltFreqbyPatAttrib:(for dfpa in fr.DfltFreqbyPatAttrib return merge(dfpa,{encountertype:document(dfpa.encountertype)},{AgeCatgCode:document(dfpa.AgeCatgCode)},{DfltInfuseOverDurationType:document(dfpa.DfltInfuseOverDurationType)},{agegroup:document(dfpa.agegroup)},{ageunit:document(dfpa.ageunit)},{dfltdoseUOM:document(dfpa.dfltdoseUOM)},{dfltdurnUOM:document(dfpa.dfltdurnUOM)},{dfltfreqcode:document(dfpa.dfltfreqcode)}))}))},{mappedItems:(for SIDC in StockItemsbyDrugCode filter SIDC._id in DrugMaster.mappedItems return merge(SIDC, {StockItemCodes:(for ssidc in SIDC.StockItemCodes return merge (ssidc,{stkitemcode:(for sic in DrugItemMaster filter sic._id ==ssidc.stkitemcode return {_id:sic._id,id:sic.id,itemcode:sic.itemcode,shortdesc:sic.shortdesc,longdesc:sic.longdesc})} ))}))},{DrugDispRules:(for dd in DrugDispRules filter dd._id in DrugMaster.DrugDispRules return merge(dd,{MaxDispDurnRulebyEnctype: (for mdd in dd.MaxDispDurnRulebyEnctype return merge(mdd,{Action:(document(mdd.Action).display)},{EncounterType:(for etype in CodingMaster filter etype._id == mdd.EncounterType return etype)},{MaxDispDurationUOM:(for mduom in DrugUOM filter mduom._id == mdd.MaxDispDurationUOM return mduom)}))}))},{StrengthValuesPossible:(for dr in DrugMaster.StrengthValuesPossible return merge(dr,{StrengthUOM:(document(dr.StrengthUOM))},{StrengthVolumeUoM:(document(dr.StrengthVolumeUoM))},{OrderUOMAllowed:(for od in dr.OrderUOMAllowed return merge(od,{AllowedOrderDoseUOM:(document(od.AllowedOrderDoseUOM))},{AllowedOrderDoseVolUoM:(document(od.AllowedOrderDoseVolUoM))}))}))})"
|
|
16881
|
+
};
|
|
16882
|
+
},
|
|
16883
|
+
age_category_by_id: function age_category_by_id(ids) {
|
|
16884
|
+
// ['${AllowedUnit.join("','")}']
|
|
16885
|
+
debugger;
|
|
16886
|
+
return {
|
|
16887
|
+
"db_name": dbName,
|
|
16888
|
+
"entity": "AgeCategory",
|
|
16889
|
+
"filter": "AgeCategory.activestatus == true && AgeCategory._id in ['".concat(ids.join("','"), "']"),
|
|
16890
|
+
"return_fields": "{id:AgeCategory.id, _id:AgeCategory._id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, description:AgeCategory.description,UOM:document(document(AgeCategory.UOM).coding)}",
|
|
16891
|
+
"sort": "AgeCategory.description"
|
|
16892
|
+
};
|
|
16893
|
+
},
|
|
16894
|
+
ageCategory: function ageCategory(ageRangeId) {
|
|
16895
|
+
return {
|
|
16896
|
+
db_name: dbName,
|
|
16897
|
+
entity: "AgeRanges",
|
|
16898
|
+
filter: {
|
|
16899
|
+
AgeRanges: "AgeRanges.activestatus==true && AgeRanges._id=='".concat(ageRangeId, "' ")
|
|
16900
|
+
},
|
|
16901
|
+
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
16902
|
+
};
|
|
16848
16903
|
}
|
|
16849
16904
|
};
|
|
16850
16905
|
var masterQuery$1 = {
|
|
@@ -16858,136 +16913,819 @@ var masterQuery$1 = {
|
|
|
16858
16913
|
"alternate_drug_code": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"DrugMaster\",\n \"filter\": \"DrugMaster.activestatus == true && DrugMaster.DrugCode != 'MA007'\",\n \"return_fields\": \"{_id:DrugMaster._id,id:DrugMaster.id,DrugCode:DrugMaster.DrugCode,ShortDesc:DrugMaster.ShortDesc,LongDesc:DrugMaster.LongDesc}\"\n }",
|
|
16859
16914
|
"encounter_type": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ENCOUNTERTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }",
|
|
16860
16915
|
"gender": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }",
|
|
16861
|
-
"age_range_group":
|
|
16862
|
-
// "age_category": `{
|
|
16916
|
+
// "age_range_group": `{
|
|
16863
16917
|
// "db_name": "primarycare",
|
|
16864
|
-
// "entity": "
|
|
16865
|
-
// "filter":"
|
|
16866
|
-
// "return_fields": "{id:
|
|
16867
|
-
// "sort": "AgeCategory.description"
|
|
16918
|
+
// "entity": "AgeRanges",
|
|
16919
|
+
// "filter":"AgeRanges.activestatus == true && AgeRanges.status==true",
|
|
16920
|
+
// "return_fields": "{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc}"
|
|
16868
16921
|
// }`,
|
|
16922
|
+
"age_range_group": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"AgeRanges\",\n \"filter\":\"AgeRanges.activestatus == true && AgeRanges.status==true\",\n \"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:AgeRanges.AgeCategory}\"\n }",
|
|
16923
|
+
"age_category": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"AgeCategory\",\n \"filter\":\"AgeCategory.activestatus == true\",\n \"return_fields\": \"{id:AgeCategory.id, _id:AgeCategory._id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, description:AgeCategory.description,UOM:document(document(AgeCategory.UOM).coding)}\",\n \"sort\": \"AgeCategory.description\"\n }",
|
|
16869
16924
|
"default_frequency": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.activestatus==true\",\n \"return_fields\": \"{_id:FrequencyMaster._id,id:FrequencyMaster.id,freqcode:FrequencyMaster.freqcode,longdesc:FrequencyMaster.longdesc,shortdesc:FrequencyMaster.shortdesc}\"\n }",
|
|
16870
16925
|
"actions": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGACTION' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }",
|
|
16871
|
-
"status": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGSTATUS' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"
|
|
16926
|
+
"status": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGSTATUS' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }",
|
|
16927
|
+
"drug_item_master": "{\n \"db_name\": \"primarycare\",\n \"entity\": \"DrugItemMaster\",\n \"filter\": \"DrugItemMaster.activestatus==true && DrugItemMaster.effectivefrom <= DATE_TIMESTAMP(DATE_NOW()/1000) && (DrugItemMaster.effectiveto == 0 || DrugItemMaster.effectiveto == null ? DrugItemMaster.effectiveto==0: DrugItemMaster.effectiveto >= DATE_TIMESTAMP(DATE_NOW()/1000))\",\n \"return_fields\": \"{_id:DrugItemMaster._id,id:DrugItemMaster.id,itemcode:DrugItemMaster.itemcode,shortdesc:DrugItemMaster.shortdesc,longdesc:DrugItemMaster.longdesc,effectivefrom:DrugItemMaster.effectivefrom,effectiveto:DrugItemMaster.effectiveto}\"\n }"
|
|
16872
16928
|
};
|
|
16873
16929
|
|
|
16874
|
-
var
|
|
16930
|
+
var allowedJsonFun = function allowedJsonFun(val) {
|
|
16931
|
+
var dataJson = [];
|
|
16932
|
+
val === null || val === void 0 ? void 0 : val.map(function (allVal) {
|
|
16933
|
+
var _allVal$allowedValue, _allVal$allowedValue2, _allVal$allowedValue$, _allVal$allowedValue3, _allVal$allowedValue4, _allVal$allowedVolume, _allVal$allowedVolume2, _allVal$allowedVolume3, _allVal$allowedVolume4, _allVal$allowedVolume5;
|
|
16875
16934
|
|
|
16876
|
-
var
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
16887
|
-
while (1) {
|
|
16888
|
-
switch (_context.prev = _context.next) {
|
|
16889
|
-
case 0:
|
|
16890
|
-
_context.next = 2;
|
|
16891
|
-
return fetchMaster$1(val, masterQuery$1[val]);
|
|
16935
|
+
var data = {
|
|
16936
|
+
"AllowedOrderDoseVal": allVal !== null && allVal !== void 0 && (_allVal$allowedValue = allVal.allowedValue) !== null && _allVal$allowedValue !== void 0 && _allVal$allowedValue.value ? parseInt(allVal === null || allVal === void 0 ? void 0 : (_allVal$allowedValue2 = allVal.allowedValue) === null || _allVal$allowedValue2 === void 0 ? void 0 : _allVal$allowedValue2.value) : null,
|
|
16937
|
+
"AllowedOrderDoseUOM": (_allVal$allowedValue$ = allVal === null || allVal === void 0 ? void 0 : (_allVal$allowedValue3 = allVal.allowedValue) === null || _allVal$allowedValue3 === void 0 ? void 0 : (_allVal$allowedValue4 = _allVal$allowedValue3.type) === null || _allVal$allowedValue4 === void 0 ? void 0 : _allVal$allowedValue4.value) !== null && _allVal$allowedValue$ !== void 0 ? _allVal$allowedValue$ : "",
|
|
16938
|
+
"AllowedOrderDoseVolVal": allVal !== null && allVal !== void 0 && (_allVal$allowedVolume = allVal.allowedVolume) !== null && _allVal$allowedVolume !== void 0 && _allVal$allowedVolume.value ? parseInt(allVal === null || allVal === void 0 ? void 0 : (_allVal$allowedVolume2 = allVal.allowedVolume) === null || _allVal$allowedVolume2 === void 0 ? void 0 : _allVal$allowedVolume2.value) : null,
|
|
16939
|
+
"AllowedOrderDoseVolUoM": (_allVal$allowedVolume3 = allVal === null || allVal === void 0 ? void 0 : (_allVal$allowedVolume4 = allVal.allowedVolume) === null || _allVal$allowedVolume4 === void 0 ? void 0 : (_allVal$allowedVolume5 = _allVal$allowedVolume4.type) === null || _allVal$allowedVolume5 === void 0 ? void 0 : _allVal$allowedVolume5.value) !== null && _allVal$allowedVolume3 !== void 0 ? _allVal$allowedVolume3 : ""
|
|
16940
|
+
};
|
|
16941
|
+
dataJson.push(data);
|
|
16942
|
+
});
|
|
16943
|
+
return dataJson;
|
|
16944
|
+
};
|
|
16892
16945
|
|
|
16893
|
-
|
|
16894
|
-
|
|
16946
|
+
var DfltFreqbyPatAttribFun = function DfltFreqbyPatAttribFun(val, dataval) {
|
|
16947
|
+
var dataJson = [];
|
|
16948
|
+
val === null || val === void 0 ? void 0 : val.map(function (valfry) {
|
|
16949
|
+
var _dataval$encounterTyp, _dataval$encounterTyp2, _dataval$ageRangeGrou, _dataval$ageRangeGrou2, _dataval$gender, _valfry$_id, _valfry$unit, _valfry$defaultFreque, _valfry$defaultFreque2, _valfry$defaultDurati, _valfry$defaultDurati2, _valfry$defaultDurati3, _valfry$defaultDurati4, _valfry$defaultDurati5, _valfry$defaultDose, _valfry$defaultDose2, _valfry$defaultDose$t, _valfry$defaultDose3, _valfry$defaultDose3$, _valfry$infuseOverDur, _valfry$infuseOverDur2, _valfry$infuseOverDur3, _valfry$infuseOverDur4, _valfry$infuseOverDur5;
|
|
16950
|
+
|
|
16951
|
+
var data = {
|
|
16952
|
+
"encountertype": (_dataval$encounterTyp = dataval === null || dataval === void 0 ? void 0 : (_dataval$encounterTyp2 = dataval.encounterType) === null || _dataval$encounterTyp2 === void 0 ? void 0 : _dataval$encounterTyp2.value) !== null && _dataval$encounterTyp !== void 0 ? _dataval$encounterTyp : "",
|
|
16953
|
+
"agegroup": (_dataval$ageRangeGrou = dataval === null || dataval === void 0 ? void 0 : (_dataval$ageRangeGrou2 = dataval.ageRangeGroup) === null || _dataval$ageRangeGrou2 === void 0 ? void 0 : _dataval$ageRangeGrou2.value) !== null && _dataval$ageRangeGrou !== void 0 ? _dataval$ageRangeGrou : "",
|
|
16954
|
+
"gender": (_dataval$gender = dataval === null || dataval === void 0 ? void 0 : dataval.gender) !== null && _dataval$gender !== void 0 ? _dataval$gender : "",
|
|
16955
|
+
"AgeCatgCode": (_valfry$_id = valfry === null || valfry === void 0 ? void 0 : valfry._id) !== null && _valfry$_id !== void 0 ? _valfry$_id : "",
|
|
16956
|
+
// "fromage": "number",
|
|
16957
|
+
// "toage": "number",
|
|
16958
|
+
"ageunit": (_valfry$unit = valfry === null || valfry === void 0 ? void 0 : valfry.unit) !== null && _valfry$unit !== void 0 ? _valfry$unit : "",
|
|
16959
|
+
"dfltfreqcode": (_valfry$defaultFreque = valfry === null || valfry === void 0 ? void 0 : (_valfry$defaultFreque2 = valfry.defaultFrequency) === null || _valfry$defaultFreque2 === void 0 ? void 0 : _valfry$defaultFreque2.value) !== null && _valfry$defaultFreque !== void 0 ? _valfry$defaultFreque : "",
|
|
16960
|
+
"dfltdurationcode": valfry !== null && valfry !== void 0 && (_valfry$defaultDurati = valfry.defaultDuration) !== null && _valfry$defaultDurati !== void 0 && _valfry$defaultDurati.value ? parseInt(valfry === null || valfry === void 0 ? void 0 : (_valfry$defaultDurati2 = valfry.defaultDuration) === null || _valfry$defaultDurati2 === void 0 ? void 0 : _valfry$defaultDurati2.value) : null,
|
|
16961
|
+
"dfltdurnUOM": (_valfry$defaultDurati3 = valfry === null || valfry === void 0 ? void 0 : (_valfry$defaultDurati4 = valfry.defaultDuration) === null || _valfry$defaultDurati4 === void 0 ? void 0 : (_valfry$defaultDurati5 = _valfry$defaultDurati4.type) === null || _valfry$defaultDurati5 === void 0 ? void 0 : _valfry$defaultDurati5.value) !== null && _valfry$defaultDurati3 !== void 0 ? _valfry$defaultDurati3 : "",
|
|
16962
|
+
"dfltdoseval": valfry !== null && valfry !== void 0 && (_valfry$defaultDose = valfry.defaultDose) !== null && _valfry$defaultDose !== void 0 && _valfry$defaultDose.value ? parseInt(valfry === null || valfry === void 0 ? void 0 : (_valfry$defaultDose2 = valfry.defaultDose) === null || _valfry$defaultDose2 === void 0 ? void 0 : _valfry$defaultDose2.value) : null,
|
|
16963
|
+
"dfltdoseUOM": (_valfry$defaultDose$t = valfry === null || valfry === void 0 ? void 0 : (_valfry$defaultDose3 = valfry.defaultDose) === null || _valfry$defaultDose3 === void 0 ? void 0 : (_valfry$defaultDose3$ = _valfry$defaultDose3.type) === null || _valfry$defaultDose3$ === void 0 ? void 0 : _valfry$defaultDose3$.value) !== null && _valfry$defaultDose$t !== void 0 ? _valfry$defaultDose$t : "",
|
|
16964
|
+
"DfltInfuseOverDurationval": valfry !== null && valfry !== void 0 && (_valfry$infuseOverDur = valfry.infuseOverDuration) !== null && _valfry$infuseOverDur !== void 0 && _valfry$infuseOverDur.value ? parseInt(valfry === null || valfry === void 0 ? void 0 : (_valfry$infuseOverDur2 = valfry.infuseOverDuration) === null || _valfry$infuseOverDur2 === void 0 ? void 0 : _valfry$infuseOverDur2.value) : null,
|
|
16965
|
+
"DfltInfuseOverDurationType": (_valfry$infuseOverDur3 = valfry === null || valfry === void 0 ? void 0 : (_valfry$infuseOverDur4 = valfry.infuseOverDuration) === null || _valfry$infuseOverDur4 === void 0 ? void 0 : (_valfry$infuseOverDur5 = _valfry$infuseOverDur4.type) === null || _valfry$infuseOverDur5 === void 0 ? void 0 : _valfry$infuseOverDur5.value) !== null && _valfry$infuseOverDur3 !== void 0 ? _valfry$infuseOverDur3 : ""
|
|
16966
|
+
};
|
|
16967
|
+
dataJson.push(data);
|
|
16968
|
+
});
|
|
16969
|
+
return dataJson;
|
|
16970
|
+
};
|
|
16895
16971
|
|
|
16896
|
-
|
|
16897
|
-
|
|
16898
|
-
return _context.stop();
|
|
16899
|
-
}
|
|
16900
|
-
}
|
|
16901
|
-
}, _callee);
|
|
16902
|
-
}));
|
|
16972
|
+
var generateDrugMasterJSON = function generateDrugMasterJSON(data, _key, draft) {
|
|
16973
|
+
var _data$phDrugMaster, _data$phDrugMaster$ro, _data$phDrugMaster2, _data$alternateDrugs, _data$phDrugMaster4, _data$availableStreng, _data$phDrugMaster5, _data$instructions, _data$frequencyRules, _data$dispensesRules, _data$phDrugMaster6, _data$phDrugMaster6$s, _data$mappedStack, _data$phDrugMaster$co, _data$phDrugMaster8, _data$phDrugMaster$sh, _data$phDrugMaster9, _data$phDrugMaster$lo, _data$phDrugMaster10, _data$phDrugMaster$in, _data$phDrugMaster11, _data$phDrugMaster$dr, _data$phDrugMaster12, _data$phDrugMaster$cl, _data$phDrugMaster13, _data$phDrugMaster13$, _data$phDrugMaster$ty, _data$phDrugMaster14, _data$phDrugMaster14$, _data$phDrugMaster$ca, _data$phDrugMaster15, _data$phDrugMaster15$, _data$phDrugMaster16, _data$phDrugMaster16$, _data$phDrugMaster17, _data$phDrugMaster18, _data$phDrugMaster18$, _data$phDrugMaster19, _data$phDrugMaster19$, _data$phDrugMaster20, _data$phDrugMaster21, _data$phDrugMaster21$, _data$drugOtherAttrib, _data$phDrugMaster22, _data$drugOtherAttrib2, _data$drugOtherAttrib3, _data$phDrugMaster23, _data$drugOtherAttrib4, _data$drugOtherAttrib5, _data$phDrugMaster24, _data$drugOtherAttrib6, _data$drugOtherAttrib7, _data$phDrugMaster25, _data$drugOtherAttrib8, _data$drugOtherAttrib9, _data$phDrugMaster26, _data$drugOtherAttrib10, _data$status$status$v, _data$status, _data$status$status, _data$status2, _moment$unix, _data$status3, _data$status4, _moment$unix2, _data$status5, _data$status$reason, _data$status6;
|
|
16903
16974
|
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
};
|
|
16907
|
-
}());
|
|
16908
|
-
es6Promise.Promise.all(calls).then(function (data) {
|
|
16909
|
-
var json = {};
|
|
16910
|
-
data.map(function (val) {
|
|
16911
|
-
var arr = [];
|
|
16912
|
-
val.data.map(function (value) {
|
|
16913
|
-
switch (val.name) {
|
|
16914
|
-
case "status":
|
|
16915
|
-
case "actions":
|
|
16916
|
-
case "default_route":
|
|
16917
|
-
case "routes_allowed":
|
|
16918
|
-
case "encounter_type":
|
|
16919
|
-
case "gender":
|
|
16920
|
-
arr.push(_objectSpread2({
|
|
16921
|
-
label: value.coding ? value.coding[0] ? value.coding[0].display : "" : val,
|
|
16922
|
-
value: value._id
|
|
16923
|
-
}, value));
|
|
16924
|
-
break;
|
|
16975
|
+
var statusactive = true;
|
|
16976
|
+
var filter = {};
|
|
16925
16977
|
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16978
|
+
if (_key) {
|
|
16979
|
+
filter = {
|
|
16980
|
+
"filter": {
|
|
16981
|
+
"_id": _key
|
|
16982
|
+
}
|
|
16983
|
+
};
|
|
16984
|
+
statusactive = data === null || data === void 0 ? void 0 : data.statusactive;
|
|
16985
|
+
}
|
|
16932
16986
|
|
|
16933
|
-
|
|
16934
|
-
case "default_frequency":
|
|
16935
|
-
case "drug_class":
|
|
16936
|
-
case "drug_category":
|
|
16937
|
-
case "drug_type":
|
|
16938
|
-
case "form":
|
|
16939
|
-
case "drug_UOM":
|
|
16940
|
-
arr.push(_objectSpread2({
|
|
16941
|
-
label: value.shortdesc ? value.shortdesc : "",
|
|
16942
|
-
value: value._id
|
|
16943
|
-
}, value));
|
|
16944
|
-
break;
|
|
16987
|
+
var draftstatus = false;
|
|
16945
16988
|
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
|
|
16949
|
-
|
|
16950
|
-
}, value));
|
|
16951
|
-
break;
|
|
16952
|
-
}
|
|
16953
|
-
});
|
|
16954
|
-
json[val.name] = arr;
|
|
16955
|
-
resolve(json);
|
|
16956
|
-
});
|
|
16957
|
-
})["catch"](function (err) {
|
|
16958
|
-
resolve([]);
|
|
16959
|
-
console.log(err);
|
|
16960
|
-
});
|
|
16989
|
+
if (draft) {
|
|
16990
|
+
draftstatus = true;
|
|
16991
|
+
statusactive = false;
|
|
16992
|
+
}
|
|
16961
16993
|
|
|
16962
|
-
|
|
16963
|
-
case "end":
|
|
16964
|
-
return _context2.stop();
|
|
16965
|
-
}
|
|
16966
|
-
}
|
|
16967
|
-
}, _callee2);
|
|
16968
|
-
}));
|
|
16994
|
+
var routesAllowed = [];
|
|
16969
16995
|
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
};
|
|
16973
|
-
}());
|
|
16974
|
-
};
|
|
16996
|
+
if ((data === null || data === void 0 ? void 0 : (_data$phDrugMaster = data.phDrugMaster) === null || _data$phDrugMaster === void 0 ? void 0 : (_data$phDrugMaster$ro = _data$phDrugMaster.routesAllowed) === null || _data$phDrugMaster$ro === void 0 ? void 0 : _data$phDrugMaster$ro.length) > 0 && data !== null && data !== void 0 && (_data$phDrugMaster2 = data.phDrugMaster) !== null && _data$phDrugMaster2 !== void 0 && _data$phDrugMaster2.drug) {
|
|
16997
|
+
var _data$phDrugMaster$ro2, _data$phDrugMaster3, _data$phDrugMaster3$r;
|
|
16975
16998
|
|
|
16976
|
-
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
16981
|
-
while (1) {
|
|
16982
|
-
switch (_context3.prev = _context3.next) {
|
|
16983
|
-
case 0:
|
|
16984
|
-
_context3.next = 2;
|
|
16985
|
-
return fetchData({
|
|
16986
|
-
body: query
|
|
16987
|
-
}, __readDocumentUrl__);
|
|
16999
|
+
routesAllowed = (_data$phDrugMaster$ro2 = data === null || data === void 0 ? void 0 : (_data$phDrugMaster3 = data.phDrugMaster) === null || _data$phDrugMaster3 === void 0 ? void 0 : (_data$phDrugMaster3$r = _data$phDrugMaster3.routesAllowed) === null || _data$phDrugMaster3$r === void 0 ? void 0 : _data$phDrugMaster3$r.map(function (val) {
|
|
17000
|
+
return val === null || val === void 0 ? void 0 : val.value;
|
|
17001
|
+
})) !== null && _data$phDrugMaster$ro2 !== void 0 ? _data$phDrugMaster$ro2 : [];
|
|
17002
|
+
}
|
|
16988
17003
|
|
|
16989
|
-
|
|
16990
|
-
|
|
17004
|
+
var alternateDrugs = [];
|
|
17005
|
+
|
|
17006
|
+
if ((data === null || data === void 0 ? void 0 : (_data$alternateDrugs = data.alternateDrugs) === null || _data$alternateDrugs === void 0 ? void 0 : _data$alternateDrugs.length) > 0 && data !== null && data !== void 0 && (_data$phDrugMaster4 = data.phDrugMaster) !== null && _data$phDrugMaster4 !== void 0 && _data$phDrugMaster4.drug) {
|
|
17007
|
+
var _data$alternateDrugs$;
|
|
17008
|
+
|
|
17009
|
+
alternateDrugs = (_data$alternateDrugs$ = data === null || data === void 0 ? void 0 : data.alternateDrugs.map(function (val) {
|
|
17010
|
+
return val === null || val === void 0 ? void 0 : val.value;
|
|
17011
|
+
})) !== null && _data$alternateDrugs$ !== void 0 ? _data$alternateDrugs$ : [];
|
|
17012
|
+
}
|
|
17013
|
+
|
|
17014
|
+
var StrengthValuesPossible = [];
|
|
17015
|
+
|
|
17016
|
+
if ((data === null || data === void 0 ? void 0 : (_data$availableStreng = data.availableStrengths) === null || _data$availableStreng === void 0 ? void 0 : _data$availableStreng.length) > 0 && data !== null && data !== void 0 && (_data$phDrugMaster5 = data.phDrugMaster) !== null && _data$phDrugMaster5 !== void 0 && _data$phDrugMaster5.drug) {
|
|
17017
|
+
var _data$availableStreng2;
|
|
17018
|
+
|
|
17019
|
+
data === null || data === void 0 ? void 0 : (_data$availableStreng2 = data.availableStrengths) === null || _data$availableStreng2 === void 0 ? void 0 : _data$availableStreng2.map(function (val) {
|
|
17020
|
+
var _val$strength, _val$strength$strengt, _val$strength2, _val$strength2$streng, _val$strength$strengt2, _val$strength3, _val$strength3$streng, _val$strength3$streng2, _val$strength4, _val$strength4$streng, _val$strength5, _val$strength5$streng, _val$strength$strengt3, _val$strength6, _val$strength6$streng, _val$strength6$streng2, _val$allowed;
|
|
17021
|
+
|
|
17022
|
+
var dataJson = {
|
|
17023
|
+
"StrengthValue": val !== null && val !== void 0 && (_val$strength = val.strength) !== null && _val$strength !== void 0 && (_val$strength$strengt = _val$strength.strengthValue) !== null && _val$strength$strengt !== void 0 && _val$strength$strengt.value ? parseInt(val === null || val === void 0 ? void 0 : (_val$strength2 = val.strength) === null || _val$strength2 === void 0 ? void 0 : (_val$strength2$streng = _val$strength2.strengthValue) === null || _val$strength2$streng === void 0 ? void 0 : _val$strength2$streng.value) : null,
|
|
17024
|
+
"StrengthUOM": (_val$strength$strengt2 = val === null || val === void 0 ? void 0 : (_val$strength3 = val.strength) === null || _val$strength3 === void 0 ? void 0 : (_val$strength3$streng = _val$strength3.strengthValue) === null || _val$strength3$streng === void 0 ? void 0 : (_val$strength3$streng2 = _val$strength3$streng.type) === null || _val$strength3$streng2 === void 0 ? void 0 : _val$strength3$streng2.value) !== null && _val$strength$strengt2 !== void 0 ? _val$strength$strengt2 : "",
|
|
17025
|
+
"StrengthVolume": val !== null && val !== void 0 && (_val$strength4 = val.strength) !== null && _val$strength4 !== void 0 && (_val$strength4$streng = _val$strength4.strengthVolume) !== null && _val$strength4$streng !== void 0 && _val$strength4$streng.value ? parseInt(val === null || val === void 0 ? void 0 : (_val$strength5 = val.strength) === null || _val$strength5 === void 0 ? void 0 : (_val$strength5$streng = _val$strength5.strengthVolume) === null || _val$strength5$streng === void 0 ? void 0 : _val$strength5$streng.value) : null,
|
|
17026
|
+
"StrengthVolumeUoM": (_val$strength$strengt3 = val === null || val === void 0 ? void 0 : (_val$strength6 = val.strength) === null || _val$strength6 === void 0 ? void 0 : (_val$strength6$streng = _val$strength6.strengthVolume) === null || _val$strength6$streng === void 0 ? void 0 : (_val$strength6$streng2 = _val$strength6$streng.type) === null || _val$strength6$streng2 === void 0 ? void 0 : _val$strength6$streng2.value) !== null && _val$strength$strengt3 !== void 0 ? _val$strength$strengt3 : "",
|
|
17027
|
+
"OrderUOMAllowed": (val === null || val === void 0 ? void 0 : (_val$allowed = val.allowed) === null || _val$allowed === void 0 ? void 0 : _val$allowed.length) > 0 ? allowedJsonFun(val === null || val === void 0 ? void 0 : val.allowed) : []
|
|
17028
|
+
};
|
|
17029
|
+
StrengthValuesPossible.push(dataJson);
|
|
17030
|
+
});
|
|
17031
|
+
}
|
|
17032
|
+
|
|
17033
|
+
var Instruction = [];
|
|
17034
|
+
|
|
17035
|
+
if ((data === null || data === void 0 ? void 0 : (_data$instructions = data.instructions) === null || _data$instructions === void 0 ? void 0 : _data$instructions.length) > 0) {
|
|
17036
|
+
var _data$instructions2;
|
|
17037
|
+
|
|
17038
|
+
data === null || data === void 0 ? void 0 : (_data$instructions2 = data.instructions) === null || _data$instructions2 === void 0 ? void 0 : _data$instructions2.map(function (val) {
|
|
17039
|
+
var _val$encounterType$va, _val$encounterType, _val$gender, _val$ageGroup$value, _val$ageGroup, _val$ageCategory, _val$patientInstructi, _val$practitionerInst, _val$prepratoryInstru, _val$departmentInstru;
|
|
17040
|
+
|
|
17041
|
+
var dataJson = {
|
|
17042
|
+
// "_id": "string",
|
|
17043
|
+
"id": 0,
|
|
17044
|
+
"encountertype": (_val$encounterType$va = val === null || val === void 0 ? void 0 : (_val$encounterType = val.encounterType) === null || _val$encounterType === void 0 ? void 0 : _val$encounterType.value) !== null && _val$encounterType$va !== void 0 ? _val$encounterType$va : "",
|
|
17045
|
+
"gendercode": (_val$gender = val === null || val === void 0 ? void 0 : val.gender) !== null && _val$gender !== void 0 ? _val$gender : "",
|
|
17046
|
+
"agegroup": (_val$ageGroup$value = val === null || val === void 0 ? void 0 : (_val$ageGroup = val.ageGroup) === null || _val$ageGroup === void 0 ? void 0 : _val$ageGroup.value) !== null && _val$ageGroup$value !== void 0 ? _val$ageGroup$value : "",
|
|
17047
|
+
"agecatgcode": ((_val$ageCategory = val.ageCategory) === null || _val$ageCategory === void 0 ? void 0 : _val$ageCategory.length) > 0 ? val.ageCategory.map(function (val) {
|
|
17048
|
+
return val.value;
|
|
17049
|
+
}) : [],
|
|
17050
|
+
"OrderInstr": [{
|
|
17051
|
+
"patientInst": (_val$patientInstructi = val === null || val === void 0 ? void 0 : val.patientInstructions) !== null && _val$patientInstructi !== void 0 ? _val$patientInstructi : "",
|
|
17052
|
+
"practionerInst": (_val$practitionerInst = val === null || val === void 0 ? void 0 : val.practitionerInstructions) !== null && _val$practitionerInst !== void 0 ? _val$practitionerInst : "",
|
|
17053
|
+
"prepInstr": (_val$prepratoryInstru = val === null || val === void 0 ? void 0 : val.prepratoryInstructions) !== null && _val$prepratoryInstru !== void 0 ? _val$prepratoryInstru : "",
|
|
17054
|
+
"deptInstr": (_val$departmentInstru = val === null || val === void 0 ? void 0 : val.departmentInstructions) !== null && _val$departmentInstru !== void 0 ? _val$departmentInstru : ""
|
|
17055
|
+
}],
|
|
17056
|
+
"setuptypeInd": "2" //no use key
|
|
17057
|
+
// "serviceapplicability": "string",
|
|
17058
|
+
// "ordercatalog": "string",
|
|
17059
|
+
// "freqappl": "boolean",
|
|
17060
|
+
// "dfltfreqValue": "number",
|
|
17061
|
+
// "dfltfreqValueUnit": "string",
|
|
17062
|
+
// "dfltfreqRate": "number",
|
|
17063
|
+
// "dfltfreqRateUnit": "string",
|
|
17064
|
+
// "dfltduration": "number",
|
|
17065
|
+
// "dfltdurationType": "string",
|
|
17066
|
+
// "maxdurnallowedinDays": "number"
|
|
17067
|
+
|
|
17068
|
+
};
|
|
17069
|
+
Instruction.push(dataJson);
|
|
17070
|
+
});
|
|
17071
|
+
}
|
|
17072
|
+
|
|
17073
|
+
var FrequencyRulesData = [];
|
|
17074
|
+
|
|
17075
|
+
if ((data === null || data === void 0 ? void 0 : (_data$frequencyRules = data.frequencyRules) === null || _data$frequencyRules === void 0 ? void 0 : _data$frequencyRules.length) > 0) {
|
|
17076
|
+
var _data$frequencyRules2;
|
|
17077
|
+
|
|
17078
|
+
data === null || data === void 0 ? void 0 : (_data$frequencyRules2 = data.frequencyRules) === null || _data$frequencyRules2 === void 0 ? void 0 : _data$frequencyRules2.map(function (vl) {
|
|
17079
|
+
var _vl$tableData;
|
|
17080
|
+
|
|
17081
|
+
var dataJson = {
|
|
17082
|
+
// "_id": "string",
|
|
17083
|
+
"id": 0,
|
|
17084
|
+
// "drugcode": "string",
|
|
17085
|
+
"DfltFreqbyPatAttrib": (vl === null || vl === void 0 ? void 0 : (_vl$tableData = vl.tableData) === null || _vl$tableData === void 0 ? void 0 : _vl$tableData.length) > 0 ? DfltFreqbyPatAttribFun(vl === null || vl === void 0 ? void 0 : vl.tableData, vl) : []
|
|
17086
|
+
};
|
|
17087
|
+
FrequencyRulesData.push(dataJson);
|
|
17088
|
+
});
|
|
17089
|
+
}
|
|
17090
|
+
|
|
17091
|
+
var DrugDispRulesData = [];
|
|
17092
|
+
|
|
17093
|
+
if ((data === null || data === void 0 ? void 0 : (_data$dispensesRules = data.dispensesRules) === null || _data$dispensesRules === void 0 ? void 0 : _data$dispensesRules.length) > 0) {
|
|
17094
|
+
var _data$dispensesRules2;
|
|
17095
|
+
|
|
17096
|
+
data === null || data === void 0 ? void 0 : (_data$dispensesRules2 = data.dispensesRules) === null || _data$dispensesRules2 === void 0 ? void 0 : _data$dispensesRules2.map(function (valdrug) {
|
|
17097
|
+
var _valdrug$encounterTyp, _valdrug$encounterTyp2, _valdrug$maxDispenseD, _valdrug$maxDispenseD2, _valdrug$maxDispenseD3, _valdrug$maxDispenseD4, _valdrug$maxDispenseD5, _valdrug$actions$valu, _valdrug$actions, _valdrug$actionMessag;
|
|
17098
|
+
|
|
17099
|
+
var dataJson = {
|
|
17100
|
+
//"_id": "string",
|
|
17101
|
+
"id": 0,
|
|
17102
|
+
// "DrugCode": "string",
|
|
17103
|
+
"MaxDispDurnRulebyEnctype": [{
|
|
17104
|
+
"EncounterType": (_valdrug$encounterTyp = valdrug === null || valdrug === void 0 ? void 0 : (_valdrug$encounterTyp2 = valdrug.encounterType) === null || _valdrug$encounterTyp2 === void 0 ? void 0 : _valdrug$encounterTyp2.value) !== null && _valdrug$encounterTyp !== void 0 ? _valdrug$encounterTyp : "",
|
|
17105
|
+
"MaxDispDurationVal": valdrug !== null && valdrug !== void 0 && (_valdrug$maxDispenseD = valdrug.maxDispenseDurationValue) !== null && _valdrug$maxDispenseD !== void 0 && _valdrug$maxDispenseD.value ? parseInt(valdrug === null || valdrug === void 0 ? void 0 : (_valdrug$maxDispenseD2 = valdrug.maxDispenseDurationValue) === null || _valdrug$maxDispenseD2 === void 0 ? void 0 : _valdrug$maxDispenseD2.value) : null,
|
|
17106
|
+
"MaxDispDurationUOM": (_valdrug$maxDispenseD3 = valdrug === null || valdrug === void 0 ? void 0 : (_valdrug$maxDispenseD4 = valdrug.maxDispenseDurationValue) === null || _valdrug$maxDispenseD4 === void 0 ? void 0 : (_valdrug$maxDispenseD5 = _valdrug$maxDispenseD4.type) === null || _valdrug$maxDispenseD5 === void 0 ? void 0 : _valdrug$maxDispenseD5.value) !== null && _valdrug$maxDispenseD3 !== void 0 ? _valdrug$maxDispenseD3 : "",
|
|
17107
|
+
"Action": (_valdrug$actions$valu = valdrug === null || valdrug === void 0 ? void 0 : (_valdrug$actions = valdrug.actions) === null || _valdrug$actions === void 0 ? void 0 : _valdrug$actions.value) !== null && _valdrug$actions$valu !== void 0 ? _valdrug$actions$valu : "",
|
|
17108
|
+
"ActionMessage": (_valdrug$actionMessag = valdrug === null || valdrug === void 0 ? void 0 : valdrug.actionMessage) !== null && _valdrug$actionMessag !== void 0 ? _valdrug$actionMessag : "",
|
|
17109
|
+
"Status": true
|
|
17110
|
+
}]
|
|
17111
|
+
};
|
|
17112
|
+
DrugDispRulesData.push(dataJson);
|
|
17113
|
+
});
|
|
17114
|
+
}
|
|
17115
|
+
|
|
17116
|
+
var synonymData = [];
|
|
17117
|
+
|
|
17118
|
+
if ((data === null || data === void 0 ? void 0 : (_data$phDrugMaster6 = data.phDrugMaster) === null || _data$phDrugMaster6 === void 0 ? void 0 : (_data$phDrugMaster6$s = _data$phDrugMaster6.synonym) === null || _data$phDrugMaster6$s === void 0 ? void 0 : _data$phDrugMaster6$s.length) > 0) {
|
|
17119
|
+
var _data$phDrugMaster$sy, _data$phDrugMaster7;
|
|
17120
|
+
|
|
17121
|
+
// synonymData = data?.phDrugMaster?.synonym?.map(val => val.value)??[]
|
|
17122
|
+
synonymData = (_data$phDrugMaster$sy = data === null || data === void 0 ? void 0 : (_data$phDrugMaster7 = data.phDrugMaster) === null || _data$phDrugMaster7 === void 0 ? void 0 : _data$phDrugMaster7.synonym) !== null && _data$phDrugMaster$sy !== void 0 ? _data$phDrugMaster$sy : [];
|
|
17123
|
+
}
|
|
17124
|
+
|
|
17125
|
+
var mappedItemsData = [];
|
|
17126
|
+
|
|
17127
|
+
if ((data === null || data === void 0 ? void 0 : (_data$mappedStack = data.mappedStack) === null || _data$mappedStack === void 0 ? void 0 : _data$mappedStack.length) > 0) {
|
|
17128
|
+
var _data$mappedStack2;
|
|
17129
|
+
|
|
17130
|
+
data === null || data === void 0 ? void 0 : (_data$mappedStack2 = data.mappedStack) === null || _data$mappedStack2 === void 0 ? void 0 : _data$mappedStack2.map(function (val) {
|
|
17131
|
+
var _val$itemCodeDesc$val, _val$itemCodeDesc, _val$preferredSeq, _val$alternate;
|
|
17132
|
+
|
|
17133
|
+
var dataJson = {
|
|
17134
|
+
// "_id": "string",
|
|
17135
|
+
"id": 0,
|
|
17136
|
+
// "drugcode": "string",
|
|
17137
|
+
"StockItemCodes": [{
|
|
17138
|
+
"stkitemcode": (_val$itemCodeDesc$val = val === null || val === void 0 ? void 0 : (_val$itemCodeDesc = val.itemCodeDesc) === null || _val$itemCodeDesc === void 0 ? void 0 : _val$itemCodeDesc.value) !== null && _val$itemCodeDesc$val !== void 0 ? _val$itemCodeDesc$val : "",
|
|
17139
|
+
"prefferedseqno": (_val$preferredSeq = val === null || val === void 0 ? void 0 : val.preferredSeq) !== null && _val$preferredSeq !== void 0 ? _val$preferredSeq : "",
|
|
17140
|
+
"Alternate": (_val$alternate = val === null || val === void 0 ? void 0 : val.alternate) !== null && _val$alternate !== void 0 ? _val$alternate : false
|
|
17141
|
+
}]
|
|
17142
|
+
};
|
|
17143
|
+
mappedItemsData.push(dataJson);
|
|
17144
|
+
});
|
|
17145
|
+
}
|
|
17146
|
+
|
|
17147
|
+
var json = [_objectSpread2(_objectSpread2({
|
|
17148
|
+
"db_name": "primarycare",
|
|
17149
|
+
"entity": "DrugMaster",
|
|
17150
|
+
"is_metadata": true
|
|
17151
|
+
}, filter), {}, {
|
|
17152
|
+
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17153
|
+
"doc": {
|
|
17154
|
+
// "_id": "string",
|
|
17155
|
+
"id": 0,
|
|
17156
|
+
"DrugCode": (_data$phDrugMaster$co = data === null || data === void 0 ? void 0 : (_data$phDrugMaster8 = data.phDrugMaster) === null || _data$phDrugMaster8 === void 0 ? void 0 : _data$phDrugMaster8.code) !== null && _data$phDrugMaster$co !== void 0 ? _data$phDrugMaster$co : "",
|
|
17157
|
+
"ShortDesc": (_data$phDrugMaster$sh = data === null || data === void 0 ? void 0 : (_data$phDrugMaster9 = data.phDrugMaster) === null || _data$phDrugMaster9 === void 0 ? void 0 : _data$phDrugMaster9.shortDescription) !== null && _data$phDrugMaster$sh !== void 0 ? _data$phDrugMaster$sh : "",
|
|
17158
|
+
"LongDesc": (_data$phDrugMaster$lo = data === null || data === void 0 ? void 0 : (_data$phDrugMaster10 = data.phDrugMaster) === null || _data$phDrugMaster10 === void 0 ? void 0 : _data$phDrugMaster10.longDescription) !== null && _data$phDrugMaster$lo !== void 0 ? _data$phDrugMaster$lo : "",
|
|
17159
|
+
"DrugSynonyms": synonymData,
|
|
17160
|
+
"Formulary": (_data$phDrugMaster$in = data === null || data === void 0 ? void 0 : (_data$phDrugMaster11 = data.phDrugMaster) === null || _data$phDrugMaster11 === void 0 ? void 0 : _data$phDrugMaster11.inFormulary) !== null && _data$phDrugMaster$in !== void 0 ? _data$phDrugMaster$in : false,
|
|
17161
|
+
"Charge": (_data$phDrugMaster$dr = data === null || data === void 0 ? void 0 : (_data$phDrugMaster12 = data.phDrugMaster) === null || _data$phDrugMaster12 === void 0 ? void 0 : _data$phDrugMaster12.drug) !== null && _data$phDrugMaster$dr !== void 0 ? _data$phDrugMaster$dr : false,
|
|
17162
|
+
"DrugClass": (_data$phDrugMaster$cl = data === null || data === void 0 ? void 0 : (_data$phDrugMaster13 = data.phDrugMaster) === null || _data$phDrugMaster13 === void 0 ? void 0 : (_data$phDrugMaster13$ = _data$phDrugMaster13["class"]) === null || _data$phDrugMaster13$ === void 0 ? void 0 : _data$phDrugMaster13$.value) !== null && _data$phDrugMaster$cl !== void 0 ? _data$phDrugMaster$cl : "",
|
|
17163
|
+
"DrugType": (_data$phDrugMaster$ty = data === null || data === void 0 ? void 0 : (_data$phDrugMaster14 = data.phDrugMaster) === null || _data$phDrugMaster14 === void 0 ? void 0 : (_data$phDrugMaster14$ = _data$phDrugMaster14.type) === null || _data$phDrugMaster14$ === void 0 ? void 0 : _data$phDrugMaster14$.value) !== null && _data$phDrugMaster$ty !== void 0 ? _data$phDrugMaster$ty : "",
|
|
17164
|
+
"DrugCategory": (_data$phDrugMaster$ca = data === null || data === void 0 ? void 0 : (_data$phDrugMaster15 = data.phDrugMaster) === null || _data$phDrugMaster15 === void 0 ? void 0 : (_data$phDrugMaster15$ = _data$phDrugMaster15.category) === null || _data$phDrugMaster15$ === void 0 ? void 0 : _data$phDrugMaster15$.value) !== null && _data$phDrugMaster$ca !== void 0 ? _data$phDrugMaster$ca : "",
|
|
17165
|
+
"RoutesAllowed": routesAllowed,
|
|
17166
|
+
"DefaultRouteCode": data !== null && data !== void 0 && (_data$phDrugMaster16 = data.phDrugMaster) !== null && _data$phDrugMaster16 !== void 0 && (_data$phDrugMaster16$ = _data$phDrugMaster16.defaultRoute) !== null && _data$phDrugMaster16$ !== void 0 && _data$phDrugMaster16$.value && data !== null && data !== void 0 && (_data$phDrugMaster17 = data.phDrugMaster) !== null && _data$phDrugMaster17 !== void 0 && _data$phDrugMaster17.drug ? data === null || data === void 0 ? void 0 : (_data$phDrugMaster18 = data.phDrugMaster) === null || _data$phDrugMaster18 === void 0 ? void 0 : (_data$phDrugMaster18$ = _data$phDrugMaster18.defaultRoute) === null || _data$phDrugMaster18$ === void 0 ? void 0 : _data$phDrugMaster18$.value : "",
|
|
17167
|
+
"FormCode": data !== null && data !== void 0 && (_data$phDrugMaster19 = data.phDrugMaster) !== null && _data$phDrugMaster19 !== void 0 && (_data$phDrugMaster19$ = _data$phDrugMaster19.form) !== null && _data$phDrugMaster19$ !== void 0 && _data$phDrugMaster19$.value && data !== null && data !== void 0 && (_data$phDrugMaster20 = data.phDrugMaster) !== null && _data$phDrugMaster20 !== void 0 && _data$phDrugMaster20.drug ? data === null || data === void 0 ? void 0 : (_data$phDrugMaster21 = data.phDrugMaster) === null || _data$phDrugMaster21 === void 0 ? void 0 : (_data$phDrugMaster21$ = _data$phDrugMaster21.form) === null || _data$phDrugMaster21$ === void 0 ? void 0 : _data$phDrugMaster21$.value : "",
|
|
17168
|
+
//AVAILABLE STRENGTHS
|
|
17169
|
+
"StrengthValuesPossible": StrengthValuesPossible,
|
|
17170
|
+
//Drug Other Attributes
|
|
17171
|
+
"TrialDrug": data !== null && data !== void 0 && (_data$drugOtherAttrib = data.drugOtherAttributes) !== null && _data$drugOtherAttrib !== void 0 && _data$drugOtherAttrib.trailDrug && data !== null && data !== void 0 && (_data$phDrugMaster22 = data.phDrugMaster) !== null && _data$phDrugMaster22 !== void 0 && _data$phDrugMaster22.drug ? data === null || data === void 0 ? void 0 : (_data$drugOtherAttrib2 = data.drugOtherAttributes) === null || _data$drugOtherAttrib2 === void 0 ? void 0 : _data$drugOtherAttrib2.trailDrug : false,
|
|
17172
|
+
"Additive": data !== null && data !== void 0 && (_data$drugOtherAttrib3 = data.drugOtherAttributes) !== null && _data$drugOtherAttrib3 !== void 0 && _data$drugOtherAttrib3.usedAsAddictive && data !== null && data !== void 0 && (_data$phDrugMaster23 = data.phDrugMaster) !== null && _data$phDrugMaster23 !== void 0 && _data$phDrugMaster23.drug ? data === null || data === void 0 ? void 0 : (_data$drugOtherAttrib4 = data.drugOtherAttributes) === null || _data$drugOtherAttrib4 === void 0 ? void 0 : _data$drugOtherAttrib4.usedAsAddictive : false,
|
|
17173
|
+
"ApplicableForCompounding": data !== null && data !== void 0 && (_data$drugOtherAttrib5 = data.drugOtherAttributes) !== null && _data$drugOtherAttrib5 !== void 0 && _data$drugOtherAttrib5.usedForCompoundPreparation && data !== null && data !== void 0 && (_data$phDrugMaster24 = data.phDrugMaster) !== null && _data$phDrugMaster24 !== void 0 && _data$phDrugMaster24.drug ? data === null || data === void 0 ? void 0 : (_data$drugOtherAttrib6 = data.drugOtherAttributes) === null || _data$drugOtherAttrib6 === void 0 ? void 0 : _data$drugOtherAttrib6.usedForCompoundPreparation : false,
|
|
17174
|
+
"DispenseviaprescriptionOnly": data !== null && data !== void 0 && (_data$drugOtherAttrib7 = data.drugOtherAttributes) !== null && _data$drugOtherAttrib7 !== void 0 && _data$drugOtherAttrib7.dispenseViaRxOnly && data !== null && data !== void 0 && (_data$phDrugMaster25 = data.phDrugMaster) !== null && _data$phDrugMaster25 !== void 0 && _data$phDrugMaster25.drug ? data === null || data === void 0 ? void 0 : (_data$drugOtherAttrib8 = data.drugOtherAttributes) === null || _data$drugOtherAttrib8 === void 0 ? void 0 : _data$drugOtherAttrib8.dispenseViaRxOnly : false,
|
|
17175
|
+
"CounsellingRequired": data !== null && data !== void 0 && (_data$drugOtherAttrib9 = data.drugOtherAttributes) !== null && _data$drugOtherAttrib9 !== void 0 && _data$drugOtherAttrib9.counsellingRequired && data !== null && data !== void 0 && (_data$phDrugMaster26 = data.phDrugMaster) !== null && _data$phDrugMaster26 !== void 0 && _data$phDrugMaster26.drug ? data === null || data === void 0 ? void 0 : (_data$drugOtherAttrib10 = data.drugOtherAttributes) === null || _data$drugOtherAttrib10 === void 0 ? void 0 : _data$drugOtherAttrib10.counsellingRequired : false,
|
|
17176
|
+
//Alternate drugs
|
|
17177
|
+
"AlternateDrugs": alternateDrugs,
|
|
17178
|
+
//INSTRUCTIONS
|
|
17179
|
+
"Instruction": Instruction,
|
|
17180
|
+
//FREQUENCY RULES
|
|
17181
|
+
"FrequencyRules": FrequencyRulesData,
|
|
17182
|
+
//DISPENSE RULES
|
|
17183
|
+
"DrugDispRules": DrugDispRulesData,
|
|
17184
|
+
//STATUS
|
|
17185
|
+
"Status": (_data$status$status$v = data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : (_data$status$status = _data$status.status) === null || _data$status$status === void 0 ? void 0 : _data$status$status.value) !== null && _data$status$status$v !== void 0 ? _data$status$status$v : "",
|
|
17186
|
+
"EffectiveFrom": data !== null && data !== void 0 && (_data$status2 = data.status) !== null && _data$status2 !== void 0 && _data$status2.effectiveFrom ? (_moment$unix = moment(data === null || data === void 0 ? void 0 : (_data$status3 = data.status) === null || _data$status3 === void 0 ? void 0 : _data$status3.effectiveFrom).unix()) !== null && _moment$unix !== void 0 ? _moment$unix : null : null,
|
|
17187
|
+
"EffectiveTo": data !== null && data !== void 0 && (_data$status4 = data.status) !== null && _data$status4 !== void 0 && _data$status4.effectiveTo ? (_moment$unix2 = moment(data === null || data === void 0 ? void 0 : (_data$status5 = data.status) === null || _data$status5 === void 0 ? void 0 : _data$status5.effectiveTo).unix()) !== null && _moment$unix2 !== void 0 ? _moment$unix2 : null : null,
|
|
17188
|
+
"InactiveReason": (_data$status$reason = data === null || data === void 0 ? void 0 : (_data$status6 = data.status) === null || _data$status6 === void 0 ? void 0 : _data$status6.reason) !== null && _data$status$reason !== void 0 ? _data$status$reason : "",
|
|
17189
|
+
"statusactive": statusactive,
|
|
17190
|
+
// save type
|
|
17191
|
+
"draftstatus": draftstatus,
|
|
17192
|
+
// SourceOfDrugOrderCatalog type
|
|
17193
|
+
"SourceOfDrugOrderCatalog": data !== null && data !== void 0 && data.SourceOfDrugOrderCatalog ? "".concat(data === null || data === void 0 ? void 0 : data.SourceOfDrugOrderCatalog) : "",
|
|
17194
|
+
"mappedItems": mappedItemsData //No use keys
|
|
17195
|
+
// "OrderUOMAllowed": "string",
|
|
17196
|
+
// "DoseRoundUpVal": "number",
|
|
17197
|
+
// "AdminUOM": "string",
|
|
17198
|
+
// "TotalVolContent": "string",
|
|
17199
|
+
// "TotalVolContentUoM": "string",
|
|
17200
|
+
// "IVFluid": "boolean",
|
|
17201
|
+
// "DfltInfuseOverDurationvalue": "number",
|
|
17202
|
+
// "DfltInfuseOverDurationType": "string",
|
|
17203
|
+
// "DfltFluidCode": "string",
|
|
17204
|
+
// "InactiveDate": "number",
|
|
17205
|
+
// "InactiveByid": "string",
|
|
17206
|
+
// "DispenseAlternateDrug": "boolean",
|
|
17207
|
+
// "SpecialInstructionText": "array",
|
|
17208
|
+
// "DrugImageID": "number",
|
|
17209
|
+
// "DrugItem": "boolean",
|
|
17210
|
+
// "DrugGenericId": "string",
|
|
17211
|
+
// "IngredientListId": "string",
|
|
17212
|
+
|
|
17213
|
+
}
|
|
17214
|
+
})];
|
|
17215
|
+
return json;
|
|
17216
|
+
};
|
|
17217
|
+
|
|
17218
|
+
var optionValues = function optionValues(data) {
|
|
17219
|
+
var option = _objectSpread2({
|
|
17220
|
+
value: data === null || data === void 0 ? void 0 : data._id,
|
|
17221
|
+
label: data === null || data === void 0 ? void 0 : data.shortdesc
|
|
17222
|
+
}, data);
|
|
17223
|
+
|
|
17224
|
+
return option;
|
|
17225
|
+
};
|
|
17226
|
+
|
|
17227
|
+
var allowedData = function allowedData(data) {
|
|
17228
|
+
var ary = [];
|
|
17229
|
+
|
|
17230
|
+
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
17231
|
+
data === null || data === void 0 ? void 0 : data.map(function (v) {
|
|
17232
|
+
var data = {
|
|
17233
|
+
"allowedValue": {
|
|
17234
|
+
"value": v !== null && v !== void 0 && v.AllowedOrderDoseVal ? "".concat(v === null || v === void 0 ? void 0 : v.AllowedOrderDoseVal) : "",
|
|
17235
|
+
"type": v !== null && v !== void 0 && v.AllowedOrderDoseUOM ? optionValues(v === null || v === void 0 ? void 0 : v.AllowedOrderDoseUOM) : null
|
|
17236
|
+
},
|
|
17237
|
+
"allowedVolume": {
|
|
17238
|
+
"value": v !== null && v !== void 0 && v.AllowedOrderDoseVolVal ? "".concat(v === null || v === void 0 ? void 0 : v.AllowedOrderDoseVolVal) : "",
|
|
17239
|
+
"type": v !== null && v !== void 0 && v.AllowedOrderDoseVolUoM ? optionValues(v === null || v === void 0 ? void 0 : v.AllowedOrderDoseVolUoM) : null
|
|
17240
|
+
}
|
|
17241
|
+
};
|
|
17242
|
+
ary.push(data);
|
|
17243
|
+
});
|
|
17244
|
+
}
|
|
17245
|
+
|
|
17246
|
+
return ary;
|
|
17247
|
+
};
|
|
17248
|
+
|
|
17249
|
+
var readDrugMasterJSON = function readDrugMasterJSON(data, state) {
|
|
17250
|
+
var _data$StrengthValuesP, _data$AlternateDrugs, _data$Instruction, _data$DrugDispRules, _data$FrequencyRules, _data$mappedItems, _data$DrugCode, _data$ShortDesc, _data$LongDesc, _data$Formulary, _data$DrugSynonyms, _state$drug_master9, _state$drug_master9$d, _state$drug_master10, _state$drug_master10$, _state$drug_master11, _state$drug_master11$, _data$InactiveReason, _data$TrialDrug, _data$Additive, _data$ApplicableForCo, _data$Dispenseviapres, _data$counsellingRequ;
|
|
17251
|
+
|
|
17252
|
+
var multipleOption = function multipleOption(data, list) {
|
|
17253
|
+
var arry = [];
|
|
17254
|
+
|
|
17255
|
+
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
17256
|
+
var _list$filter;
|
|
17257
|
+
|
|
17258
|
+
arry = (_list$filter = list.filter(function (val) {
|
|
17259
|
+
return data.map(function (va) {
|
|
17260
|
+
return va._id;
|
|
17261
|
+
}).includes(val.value);
|
|
17262
|
+
})) !== null && _list$filter !== void 0 ? _list$filter : [];
|
|
17263
|
+
}
|
|
17264
|
+
|
|
17265
|
+
return arry;
|
|
17266
|
+
};
|
|
17267
|
+
|
|
17268
|
+
var singelOption = function singelOption(data, list) {
|
|
17269
|
+
var object = {};
|
|
17270
|
+
|
|
17271
|
+
if (data) {
|
|
17272
|
+
var _list$filter$, _list$filter2;
|
|
17273
|
+
|
|
17274
|
+
object = (_list$filter$ = (_list$filter2 = list.filter(function (val) {
|
|
17275
|
+
return val.value === data._id;
|
|
17276
|
+
})) === null || _list$filter2 === void 0 ? void 0 : _list$filter2[0]) !== null && _list$filter$ !== void 0 ? _list$filter$ : {};
|
|
17277
|
+
}
|
|
17278
|
+
|
|
17279
|
+
return object;
|
|
17280
|
+
};
|
|
17281
|
+
|
|
17282
|
+
var singelOptionComLable = function singelOptionComLable(data, list) {
|
|
17283
|
+
var object = {};
|
|
17284
|
+
|
|
17285
|
+
if (data) {
|
|
17286
|
+
var _list$filter$2, _list$filter3;
|
|
17287
|
+
|
|
17288
|
+
object = (_list$filter$2 = (_list$filter3 = list.filter(function (val) {
|
|
17289
|
+
return val.label === data;
|
|
17290
|
+
})) === null || _list$filter3 === void 0 ? void 0 : _list$filter3[0]) !== null && _list$filter$2 !== void 0 ? _list$filter$2 : {};
|
|
17291
|
+
}
|
|
17292
|
+
|
|
17293
|
+
return object;
|
|
17294
|
+
};
|
|
17295
|
+
|
|
17296
|
+
var StrengthValuesPossibleRead = [];
|
|
17297
|
+
|
|
17298
|
+
if ((data === null || data === void 0 ? void 0 : (_data$StrengthValuesP = data.StrengthValuesPossible) === null || _data$StrengthValuesP === void 0 ? void 0 : _data$StrengthValuesP.length) > 0) {
|
|
17299
|
+
var _data$StrengthValuesP2;
|
|
17300
|
+
|
|
17301
|
+
data === null || data === void 0 ? void 0 : (_data$StrengthValuesP2 = data.StrengthValuesPossible) === null || _data$StrengthValuesP2 === void 0 ? void 0 : _data$StrengthValuesP2.map(function (vl) {
|
|
17302
|
+
var data = {
|
|
17303
|
+
"strength": {
|
|
17304
|
+
"strengthValue": {
|
|
17305
|
+
"value": vl !== null && vl !== void 0 && vl.StrengthValue ? "".concat(vl === null || vl === void 0 ? void 0 : vl.StrengthValue) : "",
|
|
17306
|
+
"type": vl !== null && vl !== void 0 && vl.StrengthUOM ? optionValues(vl === null || vl === void 0 ? void 0 : vl.StrengthUOM) : null
|
|
17307
|
+
},
|
|
17308
|
+
"strengthVolume": {
|
|
17309
|
+
"value": vl !== null && vl !== void 0 && vl.StrengthVolume ? "".concat(vl === null || vl === void 0 ? void 0 : vl.StrengthVolume) : "",
|
|
17310
|
+
"type": vl !== null && vl !== void 0 && vl.StrengthVolumeUoM ? optionValues(vl === null || vl === void 0 ? void 0 : vl.StrengthVolumeUoM) : null
|
|
17311
|
+
}
|
|
17312
|
+
},
|
|
17313
|
+
"allowed": vl !== null && vl !== void 0 && vl.OrderUOMAllowed ? allowedData(vl === null || vl === void 0 ? void 0 : vl.OrderUOMAllowed) : []
|
|
17314
|
+
};
|
|
17315
|
+
StrengthValuesPossibleRead.push(data);
|
|
17316
|
+
});
|
|
17317
|
+
}
|
|
17318
|
+
|
|
17319
|
+
var alternateDrugsData = [];
|
|
17320
|
+
|
|
17321
|
+
if ((data === null || data === void 0 ? void 0 : (_data$AlternateDrugs = data.AlternateDrugs) === null || _data$AlternateDrugs === void 0 ? void 0 : _data$AlternateDrugs.length) > 0) {
|
|
17322
|
+
var _state$drug_master$da, _state$drug_master, _state$drug_master$da2, _state$drug_master$da3;
|
|
17323
|
+
|
|
17324
|
+
alternateDrugsData = (_state$drug_master$da = state === null || state === void 0 ? void 0 : (_state$drug_master = state.drug_master) === null || _state$drug_master === void 0 ? void 0 : (_state$drug_master$da2 = _state$drug_master.data) === null || _state$drug_master$da2 === void 0 ? void 0 : (_state$drug_master$da3 = _state$drug_master$da2.alternate_drug_code) === null || _state$drug_master$da3 === void 0 ? void 0 : _state$drug_master$da3.filter(function (val) {
|
|
17325
|
+
var _data$AlternateDrugs2;
|
|
17326
|
+
|
|
17327
|
+
return data === null || data === void 0 ? void 0 : (_data$AlternateDrugs2 = data.AlternateDrugs) === null || _data$AlternateDrugs2 === void 0 ? void 0 : _data$AlternateDrugs2.map(function (va) {
|
|
17328
|
+
return va;
|
|
17329
|
+
}).includes(val.value);
|
|
17330
|
+
})) !== null && _state$drug_master$da !== void 0 ? _state$drug_master$da : [];
|
|
17331
|
+
}
|
|
17332
|
+
|
|
17333
|
+
var instructionsData = [];
|
|
17334
|
+
|
|
17335
|
+
if ((data === null || data === void 0 ? void 0 : (_data$Instruction = data.Instruction) === null || _data$Instruction === void 0 ? void 0 : _data$Instruction.length) > 0) {
|
|
17336
|
+
var _data$Instruction2;
|
|
17337
|
+
|
|
17338
|
+
data === null || data === void 0 ? void 0 : (_data$Instruction2 = data.Instruction) === null || _data$Instruction2 === void 0 ? void 0 : _data$Instruction2.map(function (val) {
|
|
17339
|
+
var _val$encountertype, _val$encountertype2, _state$drug_master2, _state$drug_master2$d, _val$gendercode, _val$gendercode$, _val$agegroup, _val$agegroup2, _val$agecatgcode, _state$drug_master3, _state$drug_master3$d, _val$OrderInstr$0$pat, _val$OrderInstr, _val$OrderInstr$, _val$OrderInstr$0$pra, _val$OrderInstr2, _val$OrderInstr2$, _val$OrderInstr$0$pre, _val$OrderInstr3, _val$OrderInstr3$, _val$OrderInstr$0$dep, _val$OrderInstr4, _val$OrderInstr4$;
|
|
17340
|
+
|
|
17341
|
+
var dataJson = {
|
|
17342
|
+
"encounterType": (val === null || val === void 0 ? void 0 : (_val$encountertype = val.encountertype) === null || _val$encountertype === void 0 ? void 0 : _val$encountertype.length) > 0 ? singelOption(val === null || val === void 0 ? void 0 : (_val$encountertype2 = val.encountertype) === null || _val$encountertype2 === void 0 ? void 0 : _val$encountertype2[0], state === null || state === void 0 ? void 0 : (_state$drug_master2 = state.drug_master) === null || _state$drug_master2 === void 0 ? void 0 : (_state$drug_master2$d = _state$drug_master2.data) === null || _state$drug_master2$d === void 0 ? void 0 : _state$drug_master2$d.encounter_type) : null,
|
|
17343
|
+
"gender": val !== null && val !== void 0 && val.gendercode ? val === null || val === void 0 ? void 0 : (_val$gendercode = val.gendercode) === null || _val$gendercode === void 0 ? void 0 : (_val$gendercode$ = _val$gendercode[0]) === null || _val$gendercode$ === void 0 ? void 0 : _val$gendercode$._id : null,
|
|
17344
|
+
"ageGroup": val !== null && val !== void 0 && (_val$agegroup = val.agegroup) !== null && _val$agegroup !== void 0 && _val$agegroup[0] ? optionValues(val === null || val === void 0 ? void 0 : (_val$agegroup2 = val.agegroup) === null || _val$agegroup2 === void 0 ? void 0 : _val$agegroup2[0]) : null,
|
|
17345
|
+
"ageCategory": (val === null || val === void 0 ? void 0 : (_val$agecatgcode = val.agecatgcode) === null || _val$agecatgcode === void 0 ? void 0 : _val$agecatgcode.length) > 0 ? multipleOption(val === null || val === void 0 ? void 0 : val.agecatgcode, state === null || state === void 0 ? void 0 : (_state$drug_master3 = state.drug_master) === null || _state$drug_master3 === void 0 ? void 0 : (_state$drug_master3$d = _state$drug_master3.data) === null || _state$drug_master3$d === void 0 ? void 0 : _state$drug_master3$d.age_category) : [],
|
|
17346
|
+
"patientInstructions": (_val$OrderInstr$0$pat = val === null || val === void 0 ? void 0 : (_val$OrderInstr = val.OrderInstr) === null || _val$OrderInstr === void 0 ? void 0 : (_val$OrderInstr$ = _val$OrderInstr[0]) === null || _val$OrderInstr$ === void 0 ? void 0 : _val$OrderInstr$.patientInst) !== null && _val$OrderInstr$0$pat !== void 0 ? _val$OrderInstr$0$pat : "",
|
|
17347
|
+
"practitionerInstructions": (_val$OrderInstr$0$pra = val === null || val === void 0 ? void 0 : (_val$OrderInstr2 = val.OrderInstr) === null || _val$OrderInstr2 === void 0 ? void 0 : (_val$OrderInstr2$ = _val$OrderInstr2[0]) === null || _val$OrderInstr2$ === void 0 ? void 0 : _val$OrderInstr2$.practionerInst) !== null && _val$OrderInstr$0$pra !== void 0 ? _val$OrderInstr$0$pra : "",
|
|
17348
|
+
"prepratoryInstructions": (_val$OrderInstr$0$pre = val === null || val === void 0 ? void 0 : (_val$OrderInstr3 = val.OrderInstr) === null || _val$OrderInstr3 === void 0 ? void 0 : (_val$OrderInstr3$ = _val$OrderInstr3[0]) === null || _val$OrderInstr3$ === void 0 ? void 0 : _val$OrderInstr3$.prepInstr) !== null && _val$OrderInstr$0$pre !== void 0 ? _val$OrderInstr$0$pre : "",
|
|
17349
|
+
"departmentInstructions": (_val$OrderInstr$0$dep = val === null || val === void 0 ? void 0 : (_val$OrderInstr4 = val.OrderInstr) === null || _val$OrderInstr4 === void 0 ? void 0 : (_val$OrderInstr4$ = _val$OrderInstr4[0]) === null || _val$OrderInstr4$ === void 0 ? void 0 : _val$OrderInstr4$.deptInstr) !== null && _val$OrderInstr$0$dep !== void 0 ? _val$OrderInstr$0$dep : ""
|
|
17350
|
+
};
|
|
17351
|
+
instructionsData.push(dataJson);
|
|
17352
|
+
});
|
|
17353
|
+
}
|
|
17354
|
+
|
|
17355
|
+
var dispensesRulesData = [];
|
|
17356
|
+
|
|
17357
|
+
if ((data === null || data === void 0 ? void 0 : (_data$DrugDispRules = data.DrugDispRules) === null || _data$DrugDispRules === void 0 ? void 0 : _data$DrugDispRules.length) > 0) {
|
|
17358
|
+
var _data$DrugDispRules2;
|
|
17359
|
+
|
|
17360
|
+
data === null || data === void 0 ? void 0 : (_data$DrugDispRules2 = data.DrugDispRules) === null || _data$DrugDispRules2 === void 0 ? void 0 : _data$DrugDispRules2.map(function (val) {
|
|
17361
|
+
var _val$MaxDispDurnRuleb, _val$MaxDispDurnRuleb2, _val$MaxDispDurnRuleb3, _val$MaxDispDurnRuleb4, _val$MaxDispDurnRuleb5, _val$MaxDispDurnRuleb6, _state$drug_master4, _state$drug_master4$d, _val$MaxDispDurnRuleb7, _val$MaxDispDurnRuleb8, _val$MaxDispDurnRuleb9, _val$MaxDispDurnRuleb10, _val$MaxDispDurnRuleb11, _val$MaxDispDurnRuleb12, _val$MaxDispDurnRuleb13, _val$MaxDispDurnRuleb14, _val$MaxDispDurnRuleb15, _val$MaxDispDurnRuleb16, _val$MaxDispDurnRuleb17, _val$MaxDispDurnRuleb18, _val$MaxDispDurnRuleb19, _val$MaxDispDurnRuleb20, _val$MaxDispDurnRuleb21, _state$drug_master5, _state$drug_master5$d, _val$MaxDispDurnRuleb22, _val$MaxDispDurnRuleb23, _val$MaxDispDurnRuleb24;
|
|
17362
|
+
|
|
17363
|
+
var dataJson = {
|
|
17364
|
+
"encounterType": (val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb === void 0 ? void 0 : (_val$MaxDispDurnRuleb2 = _val$MaxDispDurnRuleb[0]) === null || _val$MaxDispDurnRuleb2 === void 0 ? void 0 : (_val$MaxDispDurnRuleb3 = _val$MaxDispDurnRuleb2.EncounterType) === null || _val$MaxDispDurnRuleb3 === void 0 ? void 0 : _val$MaxDispDurnRuleb3.length) > 0 ? singelOption(val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb4 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb4 === void 0 ? void 0 : (_val$MaxDispDurnRuleb5 = _val$MaxDispDurnRuleb4[0]) === null || _val$MaxDispDurnRuleb5 === void 0 ? void 0 : (_val$MaxDispDurnRuleb6 = _val$MaxDispDurnRuleb5.EncounterType) === null || _val$MaxDispDurnRuleb6 === void 0 ? void 0 : _val$MaxDispDurnRuleb6[0], state === null || state === void 0 ? void 0 : (_state$drug_master4 = state.drug_master) === null || _state$drug_master4 === void 0 ? void 0 : (_state$drug_master4$d = _state$drug_master4.data) === null || _state$drug_master4$d === void 0 ? void 0 : _state$drug_master4$d.encounter_type) : null,
|
|
17365
|
+
"maxDispenseDurationValue": {
|
|
17366
|
+
"type": (val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb7 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb7 === void 0 ? void 0 : (_val$MaxDispDurnRuleb8 = _val$MaxDispDurnRuleb7[0]) === null || _val$MaxDispDurnRuleb8 === void 0 ? void 0 : (_val$MaxDispDurnRuleb9 = _val$MaxDispDurnRuleb8.MaxDispDurationUOM) === null || _val$MaxDispDurnRuleb9 === void 0 ? void 0 : _val$MaxDispDurnRuleb9.length) > 0 ? optionValues(val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb10 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb10 === void 0 ? void 0 : (_val$MaxDispDurnRuleb11 = _val$MaxDispDurnRuleb10[0]) === null || _val$MaxDispDurnRuleb11 === void 0 ? void 0 : (_val$MaxDispDurnRuleb12 = _val$MaxDispDurnRuleb11.MaxDispDurationUOM) === null || _val$MaxDispDurnRuleb12 === void 0 ? void 0 : _val$MaxDispDurnRuleb12[0]) : {},
|
|
17367
|
+
"value": val !== null && val !== void 0 && (_val$MaxDispDurnRuleb13 = val.MaxDispDurnRulebyEnctype) !== null && _val$MaxDispDurnRuleb13 !== void 0 && (_val$MaxDispDurnRuleb14 = _val$MaxDispDurnRuleb13[0]) !== null && _val$MaxDispDurnRuleb14 !== void 0 && _val$MaxDispDurnRuleb14.MaxDispDurationVal ? "".concat(val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb15 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb15 === void 0 ? void 0 : (_val$MaxDispDurnRuleb16 = _val$MaxDispDurnRuleb15[0]) === null || _val$MaxDispDurnRuleb16 === void 0 ? void 0 : _val$MaxDispDurnRuleb16.MaxDispDurationVal) : ""
|
|
17368
|
+
},
|
|
17369
|
+
"actions": (val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb17 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb17 === void 0 ? void 0 : (_val$MaxDispDurnRuleb18 = _val$MaxDispDurnRuleb17[0]) === null || _val$MaxDispDurnRuleb18 === void 0 ? void 0 : (_val$MaxDispDurnRuleb19 = _val$MaxDispDurnRuleb18.Action) === null || _val$MaxDispDurnRuleb19 === void 0 ? void 0 : _val$MaxDispDurnRuleb19.length) > 0 ? singelOptionComLable(val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb20 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb20 === void 0 ? void 0 : (_val$MaxDispDurnRuleb21 = _val$MaxDispDurnRuleb20[0]) === null || _val$MaxDispDurnRuleb21 === void 0 ? void 0 : _val$MaxDispDurnRuleb21.Action, state === null || state === void 0 ? void 0 : (_state$drug_master5 = state.drug_master) === null || _state$drug_master5 === void 0 ? void 0 : (_state$drug_master5$d = _state$drug_master5.data) === null || _state$drug_master5$d === void 0 ? void 0 : _state$drug_master5$d.actions) : {},
|
|
17370
|
+
"actionMessage": (_val$MaxDispDurnRuleb22 = val === null || val === void 0 ? void 0 : (_val$MaxDispDurnRuleb23 = val.MaxDispDurnRulebyEnctype) === null || _val$MaxDispDurnRuleb23 === void 0 ? void 0 : (_val$MaxDispDurnRuleb24 = _val$MaxDispDurnRuleb23[0]) === null || _val$MaxDispDurnRuleb24 === void 0 ? void 0 : _val$MaxDispDurnRuleb24.ActionMessage) !== null && _val$MaxDispDurnRuleb22 !== void 0 ? _val$MaxDispDurnRuleb22 : ""
|
|
17371
|
+
};
|
|
17372
|
+
dispensesRulesData.push(dataJson);
|
|
17373
|
+
});
|
|
17374
|
+
}
|
|
17375
|
+
|
|
17376
|
+
var tableDtat = function tableDtat(data) {
|
|
17377
|
+
var datatable = [];
|
|
17378
|
+
data === null || data === void 0 ? void 0 : data.map(function (val) {
|
|
17379
|
+
var _state$drug_master6, _state$drug_master6$d, _cat$label, _cat$age_minimum, _cat$age_maximum, _cat$UOM$0$display, _cat$UOM, _cat$UOM$, _state$drug_master7, _state$drug_master7$d;
|
|
17380
|
+
|
|
17381
|
+
var cat = val !== null && val !== void 0 && val.AgeCatgCode ? singelOption(val === null || val === void 0 ? void 0 : val.AgeCatgCode, state === null || state === void 0 ? void 0 : (_state$drug_master6 = state.drug_master) === null || _state$drug_master6 === void 0 ? void 0 : (_state$drug_master6$d = _state$drug_master6.data) === null || _state$drug_master6$d === void 0 ? void 0 : _state$drug_master6$d.age_category) : null;
|
|
17382
|
+
|
|
17383
|
+
var json = _objectSpread2({
|
|
17384
|
+
"ageCategory": (_cat$label = cat === null || cat === void 0 ? void 0 : cat.label) !== null && _cat$label !== void 0 ? _cat$label : "",
|
|
17385
|
+
"ageMin": (_cat$age_minimum = cat === null || cat === void 0 ? void 0 : cat.age_minimum) !== null && _cat$age_minimum !== void 0 ? _cat$age_minimum : "",
|
|
17386
|
+
"ageMax": (_cat$age_maximum = cat === null || cat === void 0 ? void 0 : cat.age_maximum) !== null && _cat$age_maximum !== void 0 ? _cat$age_maximum : "",
|
|
17387
|
+
"unit": (_cat$UOM$0$display = cat === null || cat === void 0 ? void 0 : (_cat$UOM = cat.UOM) === null || _cat$UOM === void 0 ? void 0 : (_cat$UOM$ = _cat$UOM[0]) === null || _cat$UOM$ === void 0 ? void 0 : _cat$UOM$.display) !== null && _cat$UOM$0$display !== void 0 ? _cat$UOM$0$display : "",
|
|
17388
|
+
"defaultFrequency": val !== null && val !== void 0 && val.dfltfreqcode ? singelOption(val === null || val === void 0 ? void 0 : val.dfltfreqcode, state === null || state === void 0 ? void 0 : (_state$drug_master7 = state.drug_master) === null || _state$drug_master7 === void 0 ? void 0 : (_state$drug_master7$d = _state$drug_master7.data) === null || _state$drug_master7$d === void 0 ? void 0 : _state$drug_master7$d.default_frequency) : {},
|
|
17389
|
+
"defaultDuration": {
|
|
17390
|
+
"value": val !== null && val !== void 0 && val.dfltdurationcode ? "".concat(val === null || val === void 0 ? void 0 : val.dfltdurationcode) : "",
|
|
17391
|
+
"type": val !== null && val !== void 0 && val.dfltdurnUOM ? optionValues(val === null || val === void 0 ? void 0 : val.dfltdurnUOM) : {}
|
|
17392
|
+
},
|
|
17393
|
+
"defaultDose": {
|
|
17394
|
+
"value": val !== null && val !== void 0 && val.dfltdoseval ? "".concat(val === null || val === void 0 ? void 0 : val.dfltdoseval) : "",
|
|
17395
|
+
"type": val !== null && val !== void 0 && val.dfltdoseUOM ? optionValues(val === null || val === void 0 ? void 0 : val.dfltdoseUOM) : {}
|
|
17396
|
+
},
|
|
17397
|
+
"infuseOverDuration": {
|
|
17398
|
+
"value": val !== null && val !== void 0 && val.DfltInfuseOverDurationval ? "".concat(val === null || val === void 0 ? void 0 : val.DfltInfuseOverDurationval) : "",
|
|
17399
|
+
"type": val !== null && val !== void 0 && val.DfltInfuseOverDurationType ? optionValues(val === null || val === void 0 ? void 0 : val.DfltInfuseOverDurationType) : {}
|
|
17400
|
+
}
|
|
17401
|
+
}, cat);
|
|
17402
|
+
|
|
17403
|
+
datatable.push(json);
|
|
17404
|
+
});
|
|
17405
|
+
return datatable;
|
|
17406
|
+
};
|
|
17407
|
+
|
|
17408
|
+
var frequencyRulesData = [];
|
|
17409
|
+
|
|
17410
|
+
if ((data === null || data === void 0 ? void 0 : (_data$FrequencyRules = data.FrequencyRules) === null || _data$FrequencyRules === void 0 ? void 0 : _data$FrequencyRules.length) > 0) {
|
|
17411
|
+
var _data$FrequencyRules2;
|
|
17412
|
+
|
|
17413
|
+
data === null || data === void 0 ? void 0 : (_data$FrequencyRules2 = data.FrequencyRules) === null || _data$FrequencyRules2 === void 0 ? void 0 : _data$FrequencyRules2.map(function (val) {
|
|
17414
|
+
var _val$DfltFreqbyPatAtt;
|
|
17415
|
+
|
|
17416
|
+
if ((val === null || val === void 0 ? void 0 : (_val$DfltFreqbyPatAtt = val.DfltFreqbyPatAttrib) === null || _val$DfltFreqbyPatAtt === void 0 ? void 0 : _val$DfltFreqbyPatAtt.length) > 0) {
|
|
17417
|
+
var _val$DfltFreqbyPatAtt2, _val$DfltFreqbyPatAtt3, _val$DfltFreqbyPatAtt4, _val$DfltFreqbyPatAtt5, _state$drug_master8, _state$drug_master8$d, _val$DfltFreqbyPatAtt6, _val$DfltFreqbyPatAtt7, _val$DfltFreqbyPatAtt8, _val$DfltFreqbyPatAtt9, _val$DfltFreqbyPatAtt10, _val$DfltFreqbyPatAtt11, _val$DfltFreqbyPatAtt12, _val$DfltFreqbyPatAtt13, _tableDtat;
|
|
17418
|
+
|
|
17419
|
+
var dataJson = {
|
|
17420
|
+
"encounterType": val !== null && val !== void 0 && (_val$DfltFreqbyPatAtt2 = val.DfltFreqbyPatAttrib) !== null && _val$DfltFreqbyPatAtt2 !== void 0 && (_val$DfltFreqbyPatAtt3 = _val$DfltFreqbyPatAtt2[0]) !== null && _val$DfltFreqbyPatAtt3 !== void 0 && _val$DfltFreqbyPatAtt3.encountertype ? singelOption(val === null || val === void 0 ? void 0 : (_val$DfltFreqbyPatAtt4 = val.DfltFreqbyPatAttrib) === null || _val$DfltFreqbyPatAtt4 === void 0 ? void 0 : (_val$DfltFreqbyPatAtt5 = _val$DfltFreqbyPatAtt4[0]) === null || _val$DfltFreqbyPatAtt5 === void 0 ? void 0 : _val$DfltFreqbyPatAtt5.encountertype, state === null || state === void 0 ? void 0 : (_state$drug_master8 = state.drug_master) === null || _state$drug_master8 === void 0 ? void 0 : (_state$drug_master8$d = _state$drug_master8.data) === null || _state$drug_master8$d === void 0 ? void 0 : _state$drug_master8$d.encounter_type) : null,
|
|
17421
|
+
"gender": val !== null && val !== void 0 && (_val$DfltFreqbyPatAtt6 = val.DfltFreqbyPatAttrib) !== null && _val$DfltFreqbyPatAtt6 !== void 0 && (_val$DfltFreqbyPatAtt7 = _val$DfltFreqbyPatAtt6[0]) !== null && _val$DfltFreqbyPatAtt7 !== void 0 && _val$DfltFreqbyPatAtt7.gender ? val === null || val === void 0 ? void 0 : (_val$DfltFreqbyPatAtt8 = val.DfltFreqbyPatAttrib) === null || _val$DfltFreqbyPatAtt8 === void 0 ? void 0 : (_val$DfltFreqbyPatAtt9 = _val$DfltFreqbyPatAtt8[0]) === null || _val$DfltFreqbyPatAtt9 === void 0 ? void 0 : _val$DfltFreqbyPatAtt9.gender : null,
|
|
17422
|
+
"ageRangeGroup": val !== null && val !== void 0 && (_val$DfltFreqbyPatAtt10 = val.DfltFreqbyPatAttrib) !== null && _val$DfltFreqbyPatAtt10 !== void 0 && (_val$DfltFreqbyPatAtt11 = _val$DfltFreqbyPatAtt10[0]) !== null && _val$DfltFreqbyPatAtt11 !== void 0 && _val$DfltFreqbyPatAtt11.agegroup ? optionValues(val === null || val === void 0 ? void 0 : (_val$DfltFreqbyPatAtt12 = val.DfltFreqbyPatAttrib) === null || _val$DfltFreqbyPatAtt12 === void 0 ? void 0 : (_val$DfltFreqbyPatAtt13 = _val$DfltFreqbyPatAtt12[0]) === null || _val$DfltFreqbyPatAtt13 === void 0 ? void 0 : _val$DfltFreqbyPatAtt13.agegroup) : null,
|
|
17423
|
+
"tableData": (_tableDtat = tableDtat(val === null || val === void 0 ? void 0 : val.DfltFreqbyPatAttrib)) !== null && _tableDtat !== void 0 ? _tableDtat : []
|
|
17424
|
+
};
|
|
17425
|
+
frequencyRulesData.push(dataJson);
|
|
17426
|
+
}
|
|
17427
|
+
});
|
|
17428
|
+
} // let drugSynonymsData = [];
|
|
17429
|
+
// if(data?.DrugSynonyms?.length > 0){
|
|
17430
|
+
// data?.DrugSynonyms?.map(val => {
|
|
17431
|
+
// let dataJson = {
|
|
17432
|
+
// "value": val,
|
|
17433
|
+
// "label": val
|
|
17434
|
+
// }
|
|
17435
|
+
// drugSynonymsData.push(dataJson)
|
|
17436
|
+
// })
|
|
17437
|
+
// }
|
|
17438
|
+
|
|
17439
|
+
|
|
17440
|
+
var mappedStackReadData = [];
|
|
17441
|
+
|
|
17442
|
+
if ((data === null || data === void 0 ? void 0 : (_data$mappedItems = data.mappedItems) === null || _data$mappedItems === void 0 ? void 0 : _data$mappedItems.length) > 0) {
|
|
17443
|
+
var _data$mappedItems2;
|
|
17444
|
+
|
|
17445
|
+
data === null || data === void 0 ? void 0 : (_data$mappedItems2 = data.mappedItems) === null || _data$mappedItems2 === void 0 ? void 0 : _data$mappedItems2.map(function (val) {
|
|
17446
|
+
var _val$StockItemCodes, _val$StockItemCodes$, _val$StockItemCodes2, _val$StockItemCodes2$, _val$StockItemCodes2$2, _val$StockItemCodes$2, _val$StockItemCodes3, _val$StockItemCodes3$, _val$StockItemCodes$3, _val$StockItemCodes4, _val$StockItemCodes4$;
|
|
17447
|
+
|
|
17448
|
+
var dataJson = {
|
|
17449
|
+
"itemCodeDesc": val !== null && val !== void 0 && (_val$StockItemCodes = val.StockItemCodes) !== null && _val$StockItemCodes !== void 0 && (_val$StockItemCodes$ = _val$StockItemCodes[0]) !== null && _val$StockItemCodes$ !== void 0 && _val$StockItemCodes$.stkitemcode ? optionValues(val === null || val === void 0 ? void 0 : (_val$StockItemCodes2 = val.StockItemCodes) === null || _val$StockItemCodes2 === void 0 ? void 0 : (_val$StockItemCodes2$ = _val$StockItemCodes2[0]) === null || _val$StockItemCodes2$ === void 0 ? void 0 : (_val$StockItemCodes2$2 = _val$StockItemCodes2$.stkitemcode) === null || _val$StockItemCodes2$2 === void 0 ? void 0 : _val$StockItemCodes2$2[0]) : {},
|
|
17450
|
+
"preferredSeq": (_val$StockItemCodes$2 = val === null || val === void 0 ? void 0 : (_val$StockItemCodes3 = val.StockItemCodes) === null || _val$StockItemCodes3 === void 0 ? void 0 : (_val$StockItemCodes3$ = _val$StockItemCodes3[0]) === null || _val$StockItemCodes3$ === void 0 ? void 0 : _val$StockItemCodes3$.prefferedseqno) !== null && _val$StockItemCodes$2 !== void 0 ? _val$StockItemCodes$2 : "",
|
|
17451
|
+
"alternate": (_val$StockItemCodes$3 = val === null || val === void 0 ? void 0 : (_val$StockItemCodes4 = val.StockItemCodes) === null || _val$StockItemCodes4 === void 0 ? void 0 : (_val$StockItemCodes4$ = _val$StockItemCodes4[0]) === null || _val$StockItemCodes4$ === void 0 ? void 0 : _val$StockItemCodes4$.Alternate) !== null && _val$StockItemCodes$3 !== void 0 ? _val$StockItemCodes$3 : false // "data": val
|
|
17452
|
+
|
|
17453
|
+
};
|
|
17454
|
+
mappedStackReadData.push(dataJson);
|
|
17455
|
+
});
|
|
17456
|
+
}
|
|
17457
|
+
|
|
17458
|
+
var json = {
|
|
17459
|
+
"phDrugMaster": {
|
|
17460
|
+
"drug": data === null || data === void 0 ? void 0 : data.Charge,
|
|
17461
|
+
"code": (_data$DrugCode = data === null || data === void 0 ? void 0 : data.DrugCode) !== null && _data$DrugCode !== void 0 ? _data$DrugCode : "",
|
|
17462
|
+
"shortDescription": (_data$ShortDesc = data === null || data === void 0 ? void 0 : data.ShortDesc) !== null && _data$ShortDesc !== void 0 ? _data$ShortDesc : "",
|
|
17463
|
+
"longDescription": (_data$LongDesc = data === null || data === void 0 ? void 0 : data.LongDesc) !== null && _data$LongDesc !== void 0 ? _data$LongDesc : "",
|
|
17464
|
+
"inFormulary": (_data$Formulary = data === null || data === void 0 ? void 0 : data.Formulary) !== null && _data$Formulary !== void 0 ? _data$Formulary : false,
|
|
17465
|
+
"synonym": (data === null || data === void 0 ? void 0 : (_data$DrugSynonyms = data.DrugSynonyms) === null || _data$DrugSynonyms === void 0 ? void 0 : _data$DrugSynonyms.length) > 0 ? data === null || data === void 0 ? void 0 : data.DrugSynonyms : [],
|
|
17466
|
+
"class": data !== null && data !== void 0 && data.DrugClass ? optionValues(data === null || data === void 0 ? void 0 : data.DrugClass) : null,
|
|
17467
|
+
"category": data !== null && data !== void 0 && data.DrugCategory ? optionValues(data === null || data === void 0 ? void 0 : data.DrugCategory) : null,
|
|
17468
|
+
"type": data !== null && data !== void 0 && data.DrugType ? optionValues(data === null || data === void 0 ? void 0 : data.DrugType) : null,
|
|
17469
|
+
"form": data !== null && data !== void 0 && data.FormCode ? optionValues(data === null || data === void 0 ? void 0 : data.FormCode) : null,
|
|
17470
|
+
"routesAllowed": data !== null && data !== void 0 && data.RoutesAllowed ? multipleOption(data === null || data === void 0 ? void 0 : data.RoutesAllowed, state === null || state === void 0 ? void 0 : (_state$drug_master9 = state.drug_master) === null || _state$drug_master9 === void 0 ? void 0 : (_state$drug_master9$d = _state$drug_master9.data) === null || _state$drug_master9$d === void 0 ? void 0 : _state$drug_master9$d.routes_allowed) : [],
|
|
17471
|
+
"defaultRoute": data !== null && data !== void 0 && data.DefaultRouteCode ? singelOption(data === null || data === void 0 ? void 0 : data.DefaultRouteCode, state === null || state === void 0 ? void 0 : (_state$drug_master10 = state.drug_master) === null || _state$drug_master10 === void 0 ? void 0 : (_state$drug_master10$ = _state$drug_master10.data) === null || _state$drug_master10$ === void 0 ? void 0 : _state$drug_master10$.default_route) : []
|
|
17472
|
+
},
|
|
17473
|
+
"draftstatus": data === null || data === void 0 ? void 0 : data.draftstatus,
|
|
17474
|
+
"statusactive": data === null || data === void 0 ? void 0 : data.statusactive,
|
|
17475
|
+
"SourceOfDrugOrderCatalog": data === null || data === void 0 ? void 0 : data.SourceOfDrugOrderCatalog,
|
|
17476
|
+
"status": {
|
|
17477
|
+
"status": data !== null && data !== void 0 && data.Status ? singelOptionComLable(data === null || data === void 0 ? void 0 : data.Status, state === null || state === void 0 ? void 0 : (_state$drug_master11 = state.drug_master) === null || _state$drug_master11 === void 0 ? void 0 : (_state$drug_master11$ = _state$drug_master11.data) === null || _state$drug_master11$ === void 0 ? void 0 : _state$drug_master11$.status) : [],
|
|
17478
|
+
"effectiveFrom": data !== null && data !== void 0 && data.EffectiveFrom ? moment.unix(data === null || data === void 0 ? void 0 : data.EffectiveFrom).format("YYYY-MM-DD") : null,
|
|
17479
|
+
"effectiveTo": data !== null && data !== void 0 && data.EffectiveTo ? moment.unix(data === null || data === void 0 ? void 0 : data.EffectiveTo).format("YYYY-MM-DD") : null,
|
|
17480
|
+
"reason": (_data$InactiveReason = data === null || data === void 0 ? void 0 : data.InactiveReason) !== null && _data$InactiveReason !== void 0 ? _data$InactiveReason : ""
|
|
17481
|
+
},
|
|
17482
|
+
"drugOtherAttributes": {
|
|
17483
|
+
"trailDrug": (_data$TrialDrug = data === null || data === void 0 ? void 0 : data.TrialDrug) !== null && _data$TrialDrug !== void 0 ? _data$TrialDrug : false,
|
|
17484
|
+
"usedAsAddictive": (_data$Additive = data === null || data === void 0 ? void 0 : data.Additive) !== null && _data$Additive !== void 0 ? _data$Additive : false,
|
|
17485
|
+
"usedForCompoundPreparation": (_data$ApplicableForCo = data === null || data === void 0 ? void 0 : data.ApplicableForCompounding) !== null && _data$ApplicableForCo !== void 0 ? _data$ApplicableForCo : false,
|
|
17486
|
+
"dispenseViaRxOnly": (_data$Dispenseviapres = data === null || data === void 0 ? void 0 : data.DispenseviaprescriptionOnly) !== null && _data$Dispenseviapres !== void 0 ? _data$Dispenseviapres : false,
|
|
17487
|
+
"counsellingRequired": (_data$counsellingRequ = data === null || data === void 0 ? void 0 : data.counsellingRequired) !== null && _data$counsellingRequ !== void 0 ? _data$counsellingRequ : false
|
|
17488
|
+
},
|
|
17489
|
+
"availableStrengths": StrengthValuesPossibleRead,
|
|
17490
|
+
"mappedStack": mappedStackReadData,
|
|
17491
|
+
"alternateDrugs": alternateDrugsData,
|
|
17492
|
+
"instructions": instructionsData,
|
|
17493
|
+
"dispensesRules": dispensesRulesData,
|
|
17494
|
+
"frequencyRules": frequencyRulesData // [
|
|
17495
|
+
// {
|
|
17496
|
+
// "encounterType": {
|
|
17497
|
+
// "label": "Emergency",
|
|
17498
|
+
// "value": "CodeableConceptMaster/11189",
|
|
17499
|
+
// "Type": "ENCOUNTERTYPE",
|
|
17500
|
+
// "_id": "CodeableConceptMaster/11189",
|
|
17501
|
+
// "_key": "11189",
|
|
17502
|
+
// "_rev": "_cmRdm8O---",
|
|
17503
|
+
// "activestatus": true,
|
|
17504
|
+
// "coding": [
|
|
17505
|
+
// {
|
|
17506
|
+
// "_key": "10957",
|
|
17507
|
+
// "_id": "CodingMaster/10957",
|
|
17508
|
+
// "_rev": "_cwsxyxq--Q",
|
|
17509
|
+
// "system": "",
|
|
17510
|
+
// "version": "1",
|
|
17511
|
+
// "code": "ET001",
|
|
17512
|
+
// "display": "Emergency",
|
|
17513
|
+
// "userSelected": true,
|
|
17514
|
+
// "id": 890,
|
|
17515
|
+
// "Type": "Encounter Type",
|
|
17516
|
+
// "createdby": "",
|
|
17517
|
+
// "updatedby": "",
|
|
17518
|
+
// "activestatus": true
|
|
17519
|
+
// }
|
|
17520
|
+
// ],
|
|
17521
|
+
// "createdby": "",
|
|
17522
|
+
// "createddate": "08/07/2021 06:41:51",
|
|
17523
|
+
// "id": 1110,
|
|
17524
|
+
// "text": "",
|
|
17525
|
+
// "updatedate": "08/07/2021 06:41:51",
|
|
17526
|
+
// "updatedby": ""
|
|
17527
|
+
// },
|
|
17528
|
+
// "gender": "CodeableConceptMaster/11236",
|
|
17529
|
+
// "ageRangeGroup": {
|
|
17530
|
+
// "label": "Short",
|
|
17531
|
+
// "value": "AgeRanges/10029",
|
|
17532
|
+
// "id": null,
|
|
17533
|
+
// "_id": "AgeRanges/10029",
|
|
17534
|
+
// "agerangecode": "Code",
|
|
17535
|
+
// "longdesc": "Long",
|
|
17536
|
+
// "shortdesc": "Short"
|
|
17537
|
+
// },
|
|
17538
|
+
// "tableData": [
|
|
17539
|
+
// {
|
|
17540
|
+
// "ageCategory": "Category",
|
|
17541
|
+
// "ageMin": "0",
|
|
17542
|
+
// "ageMax": "12",
|
|
17543
|
+
// "unit": "Months",
|
|
17544
|
+
// "defaultFrequency": {
|
|
17545
|
+
// "label": "test",
|
|
17546
|
+
// "value": "FrequencyMaster/10153",
|
|
17547
|
+
// "_id": "FrequencyMaster/10153",
|
|
17548
|
+
// "id": null,
|
|
17549
|
+
// "freqcode": "12",
|
|
17550
|
+
// "longdesc": "test",
|
|
17551
|
+
// "shortdesc": "test"
|
|
17552
|
+
// },
|
|
17553
|
+
// "defaultDuration": {
|
|
17554
|
+
// "value": "1",
|
|
17555
|
+
// "type": {
|
|
17556
|
+
// "label": "mg",
|
|
17557
|
+
// "value": "DrugUOM/10062",
|
|
17558
|
+
// "id": 8,
|
|
17559
|
+
// "_id": "DrugUOM/10062",
|
|
17560
|
+
// "UOM": "mg",
|
|
17561
|
+
// "longdesc": "miligram",
|
|
17562
|
+
// "shortdesc": "mg"
|
|
17563
|
+
// }
|
|
17564
|
+
// },
|
|
17565
|
+
// "defaultDose": {
|
|
17566
|
+
// "value": "2",
|
|
17567
|
+
// "type": {
|
|
17568
|
+
// "label": "kg",
|
|
17569
|
+
// "value": "DrugUOM/10064",
|
|
17570
|
+
// "id": 10,
|
|
17571
|
+
// "_id": "DrugUOM/10064",
|
|
17572
|
+
// "UOM": "kg",
|
|
17573
|
+
// "longdesc": "kilogram",
|
|
17574
|
+
// "shortdesc": "kg"
|
|
17575
|
+
// }
|
|
17576
|
+
// },
|
|
17577
|
+
// "infuseOverDuration": {
|
|
17578
|
+
// "value": "3",
|
|
17579
|
+
// "type": {
|
|
17580
|
+
// "label": "kg",
|
|
17581
|
+
// "value": "DrugUOM/10064",
|
|
17582
|
+
// "id": 10,
|
|
17583
|
+
// "_id": "DrugUOM/10064",
|
|
17584
|
+
// "UOM": "kg",
|
|
17585
|
+
// "longdesc": "kilogram",
|
|
17586
|
+
// "shortdesc": "kg"
|
|
17587
|
+
// }
|
|
17588
|
+
// }
|
|
17589
|
+
// }
|
|
17590
|
+
// ]
|
|
17591
|
+
// }
|
|
17592
|
+
// ]
|
|
17593
|
+
|
|
17594
|
+
};
|
|
17595
|
+
return json;
|
|
17596
|
+
};
|
|
17597
|
+
|
|
17598
|
+
var _extraReducers$7;
|
|
17599
|
+
|
|
17600
|
+
var loopMasters$1 = function loopMasters() {
|
|
17601
|
+
return new es6Promise.Promise( /*#__PURE__*/function () {
|
|
17602
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(resolve, reject) {
|
|
17603
|
+
var calls;
|
|
17604
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
17605
|
+
while (1) {
|
|
17606
|
+
switch (_context2.prev = _context2.next) {
|
|
17607
|
+
case 0:
|
|
17608
|
+
calls = Object.keys(masterQuery$1).map( /*#__PURE__*/function () {
|
|
17609
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(val) {
|
|
17610
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
17611
|
+
while (1) {
|
|
17612
|
+
switch (_context.prev = _context.next) {
|
|
17613
|
+
case 0:
|
|
17614
|
+
_context.next = 2;
|
|
17615
|
+
return fetchMaster$1(val, masterQuery$1[val]);
|
|
17616
|
+
|
|
17617
|
+
case 2:
|
|
17618
|
+
return _context.abrupt("return", _context.sent);
|
|
17619
|
+
|
|
17620
|
+
case 3:
|
|
17621
|
+
case "end":
|
|
17622
|
+
return _context.stop();
|
|
17623
|
+
}
|
|
17624
|
+
}
|
|
17625
|
+
}, _callee);
|
|
17626
|
+
}));
|
|
17627
|
+
|
|
17628
|
+
return function (_x3) {
|
|
17629
|
+
return _ref2.apply(this, arguments);
|
|
17630
|
+
};
|
|
17631
|
+
}());
|
|
17632
|
+
es6Promise.Promise.all(calls).then(function (data) {
|
|
17633
|
+
var json = {};
|
|
17634
|
+
data.map(function (val) {
|
|
17635
|
+
var arr = [];
|
|
17636
|
+
val.data.map(function (value) {
|
|
17637
|
+
switch (val.name) {
|
|
17638
|
+
case "status":
|
|
17639
|
+
case "actions":
|
|
17640
|
+
case "default_route":
|
|
17641
|
+
case "routes_allowed":
|
|
17642
|
+
case "encounter_type":
|
|
17643
|
+
case "gender":
|
|
17644
|
+
arr.push(_objectSpread2({
|
|
17645
|
+
label: value.coding ? value.coding[0] ? value.coding[0].display : "" : val,
|
|
17646
|
+
value: value.coding ? value.coding[0] ? value.coding[0]._id : "" : val
|
|
17647
|
+
}, value));
|
|
17648
|
+
break;
|
|
17649
|
+
|
|
17650
|
+
case "alternate_drug_code":
|
|
17651
|
+
arr.push(_objectSpread2({
|
|
17652
|
+
label: value.ShortDesc ? value.ShortDesc : "",
|
|
17653
|
+
value: value._id
|
|
17654
|
+
}, value));
|
|
17655
|
+
break;
|
|
17656
|
+
|
|
17657
|
+
case "age_range_group":
|
|
17658
|
+
arr.push(_objectSpread2({
|
|
17659
|
+
label: value.agerangecode,
|
|
17660
|
+
value: value._id
|
|
17661
|
+
}, value));
|
|
17662
|
+
break;
|
|
17663
|
+
|
|
17664
|
+
case "default_frequency":
|
|
17665
|
+
case "drug_item_master":
|
|
17666
|
+
case "drug_class":
|
|
17667
|
+
case "drug_category":
|
|
17668
|
+
case "drug_type":
|
|
17669
|
+
case "form":
|
|
17670
|
+
case "drug_UOM":
|
|
17671
|
+
arr.push(_objectSpread2({
|
|
17672
|
+
label: value.shortdesc ? value.shortdesc : "",
|
|
17673
|
+
value: value._id
|
|
17674
|
+
}, value));
|
|
17675
|
+
break;
|
|
17676
|
+
|
|
17677
|
+
case "age_category":
|
|
17678
|
+
arr.push(_objectSpread2({
|
|
17679
|
+
label: value.code ? value.code : "",
|
|
17680
|
+
value: value._id
|
|
17681
|
+
}, value));
|
|
17682
|
+
break;
|
|
17683
|
+
|
|
17684
|
+
default:
|
|
17685
|
+
arr.push(_objectSpread2({
|
|
17686
|
+
label: value,
|
|
17687
|
+
value: value._id
|
|
17688
|
+
}, value));
|
|
17689
|
+
break;
|
|
17690
|
+
}
|
|
17691
|
+
});
|
|
17692
|
+
json[val.name] = arr;
|
|
17693
|
+
resolve(json);
|
|
17694
|
+
});
|
|
17695
|
+
})["catch"](function (err) {
|
|
17696
|
+
resolve([]);
|
|
17697
|
+
console.log(err);
|
|
17698
|
+
});
|
|
17699
|
+
|
|
17700
|
+
case 2:
|
|
17701
|
+
case "end":
|
|
17702
|
+
return _context2.stop();
|
|
17703
|
+
}
|
|
17704
|
+
}
|
|
17705
|
+
}, _callee2);
|
|
17706
|
+
}));
|
|
17707
|
+
|
|
17708
|
+
return function (_x, _x2) {
|
|
17709
|
+
return _ref.apply(this, arguments);
|
|
17710
|
+
};
|
|
17711
|
+
}());
|
|
17712
|
+
};
|
|
17713
|
+
|
|
17714
|
+
var fetchMaster$1 = function fetchMaster(name, query) {
|
|
17715
|
+
return new es6Promise.Promise( /*#__PURE__*/function () {
|
|
17716
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(resolve, reject) {
|
|
17717
|
+
var data;
|
|
17718
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
17719
|
+
while (1) {
|
|
17720
|
+
switch (_context3.prev = _context3.next) {
|
|
17721
|
+
case 0:
|
|
17722
|
+
_context3.next = 2;
|
|
17723
|
+
return fetchData({
|
|
17724
|
+
body: query
|
|
17725
|
+
}, __readDocumentUrl__);
|
|
17726
|
+
|
|
17727
|
+
case 2:
|
|
17728
|
+
data = _context3.sent;
|
|
16991
17729
|
resolve({
|
|
16992
17730
|
data: data.result,
|
|
16993
17731
|
name: name
|
|
@@ -17189,45 +17927,276 @@ var DRUG_MASTERS = createAsyncThunk("drugMasterSlice/masterlist", /*#__PURE__*/_
|
|
|
17189
17927
|
}
|
|
17190
17928
|
}, _callee7, null, [[2, 10]]);
|
|
17191
17929
|
})));
|
|
17930
|
+
var SAVE_DRUG_MASTER = createAsyncThunk("drugMasterSlice/create_drug_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
17931
|
+
var payload,
|
|
17932
|
+
_ref13,
|
|
17933
|
+
rejectWithValue,
|
|
17934
|
+
data,
|
|
17935
|
+
_key,
|
|
17936
|
+
draft,
|
|
17937
|
+
queriesjson,
|
|
17938
|
+
dataRes,
|
|
17939
|
+
_args8 = arguments;
|
|
17940
|
+
|
|
17941
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
17942
|
+
while (1) {
|
|
17943
|
+
switch (_context8.prev = _context8.next) {
|
|
17944
|
+
case 0:
|
|
17945
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
17946
|
+
_ref13 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
|
|
17947
|
+
_context8.prev = 2;
|
|
17948
|
+
data = payload.data, _key = payload._key, draft = payload.draft;
|
|
17949
|
+
debugger;
|
|
17950
|
+
queriesjson = generateDrugMasterJSON(data, _key, draft);
|
|
17951
|
+
debugger;
|
|
17952
|
+
console.log(queriesjson);
|
|
17953
|
+
_context8.next = 10;
|
|
17954
|
+
return fetchData({
|
|
17955
|
+
body: JSON.stringify(queriesjson)
|
|
17956
|
+
}, __uspsertUrl__);
|
|
17957
|
+
|
|
17958
|
+
case 10:
|
|
17959
|
+
dataRes = _context8.sent;
|
|
17960
|
+
console.log(queriesjson);
|
|
17961
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
17962
|
+
data: dataRes
|
|
17963
|
+
}));
|
|
17964
|
+
|
|
17965
|
+
case 15:
|
|
17966
|
+
_context8.prev = 15;
|
|
17967
|
+
_context8.t0 = _context8["catch"](2);
|
|
17968
|
+
debugger;
|
|
17969
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
17970
|
+
message: _context8.t0.message
|
|
17971
|
+
})));
|
|
17972
|
+
|
|
17973
|
+
case 19:
|
|
17974
|
+
case "end":
|
|
17975
|
+
return _context8.stop();
|
|
17976
|
+
}
|
|
17977
|
+
}
|
|
17978
|
+
}, _callee8, null, [[2, 15]]);
|
|
17979
|
+
})));
|
|
17980
|
+
var DRUG_FORM_TYPE = createAsyncThunk("drugMasterSlice/drug_form_type", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
17981
|
+
var _ref15,
|
|
17982
|
+
rejectWithValue,
|
|
17983
|
+
data,
|
|
17984
|
+
_args9 = arguments;
|
|
17985
|
+
|
|
17986
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
17987
|
+
while (1) {
|
|
17988
|
+
switch (_context9.prev = _context9.next) {
|
|
17989
|
+
case 0:
|
|
17990
|
+
_ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
|
|
17991
|
+
_context9.prev = 2;
|
|
17992
|
+
_context9.next = 5;
|
|
17993
|
+
return fetchData({
|
|
17994
|
+
body: queries$4.drug_form_type
|
|
17995
|
+
}, __readDocumentUrl__);
|
|
17996
|
+
|
|
17997
|
+
case 5:
|
|
17998
|
+
data = _context9.sent;
|
|
17999
|
+
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
18000
|
+
data: data.result
|
|
18001
|
+
}));
|
|
18002
|
+
|
|
18003
|
+
case 9:
|
|
18004
|
+
_context9.prev = 9;
|
|
18005
|
+
_context9.t0 = _context9["catch"](2);
|
|
18006
|
+
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
|
|
18007
|
+
message: _context9.t0.message
|
|
18008
|
+
})));
|
|
18009
|
+
|
|
18010
|
+
case 12:
|
|
18011
|
+
case "end":
|
|
18012
|
+
return _context9.stop();
|
|
18013
|
+
}
|
|
18014
|
+
}
|
|
18015
|
+
}, _callee9, null, [[2, 9]]);
|
|
18016
|
+
})));
|
|
18017
|
+
var DRUG_READ_FORM = createAsyncThunk("drugMasterSlice/drug_form_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
18018
|
+
var payload,
|
|
18019
|
+
_ref17,
|
|
18020
|
+
rejectWithValue,
|
|
18021
|
+
getState,
|
|
18022
|
+
_data$result$,
|
|
18023
|
+
_data$result,
|
|
18024
|
+
state,
|
|
18025
|
+
drugState,
|
|
18026
|
+
_id,
|
|
18027
|
+
data,
|
|
18028
|
+
readData,
|
|
18029
|
+
_args10 = arguments;
|
|
18030
|
+
|
|
18031
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
18032
|
+
while (1) {
|
|
18033
|
+
switch (_context10.prev = _context10.next) {
|
|
18034
|
+
case 0:
|
|
18035
|
+
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
18036
|
+
_ref17 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref17.rejectWithValue, getState = _ref17.getState;
|
|
18037
|
+
_context10.prev = 2;
|
|
18038
|
+
state = getState();
|
|
18039
|
+
drugState = state.drugMasterSlice;
|
|
18040
|
+
_id = payload._id;
|
|
18041
|
+
_context10.next = 8;
|
|
18042
|
+
return fetchData({
|
|
18043
|
+
body: JSON.stringify(queries$4.drug_form_read(_id))
|
|
18044
|
+
}, __readDocumentUrl__);
|
|
18045
|
+
|
|
18046
|
+
case 8:
|
|
18047
|
+
data = _context10.sent;
|
|
18048
|
+
debugger;
|
|
18049
|
+
readData = readDrugMasterJSON((_data$result$ = data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result[0]) !== null && _data$result$ !== void 0 ? _data$result$ : null, drugState);
|
|
18050
|
+
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
18051
|
+
data: readData
|
|
18052
|
+
}));
|
|
18053
|
+
|
|
18054
|
+
case 14:
|
|
18055
|
+
_context10.prev = 14;
|
|
18056
|
+
_context10.t0 = _context10["catch"](2);
|
|
18057
|
+
debugger;
|
|
18058
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
|
|
18059
|
+
message: _context10.t0.message
|
|
18060
|
+
})));
|
|
18061
|
+
|
|
18062
|
+
case 18:
|
|
18063
|
+
case "end":
|
|
18064
|
+
return _context10.stop();
|
|
18065
|
+
}
|
|
18066
|
+
}
|
|
18067
|
+
}, _callee10, null, [[2, 14]]);
|
|
18068
|
+
})));
|
|
18069
|
+
var AGE_CATEGORY_BY_ID = createAsyncThunk("drugMasterSlice/age_category_by_id", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
18070
|
+
var payload,
|
|
18071
|
+
_ref19,
|
|
18072
|
+
rejectWithValue,
|
|
18073
|
+
_data$result2,
|
|
18074
|
+
_ids,
|
|
18075
|
+
queriesjson,
|
|
18076
|
+
data,
|
|
18077
|
+
arry,
|
|
18078
|
+
_args11 = arguments;
|
|
18079
|
+
|
|
18080
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
18081
|
+
while (1) {
|
|
18082
|
+
switch (_context11.prev = _context11.next) {
|
|
18083
|
+
case 0:
|
|
18084
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
18085
|
+
_ref19 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
|
|
18086
|
+
_context11.prev = 2;
|
|
18087
|
+
_ids = payload._ids;
|
|
18088
|
+
debugger;
|
|
18089
|
+
queriesjson = queries$4.age_category_by_id(_ids);
|
|
18090
|
+
debugger;
|
|
18091
|
+
_context11.next = 9;
|
|
18092
|
+
return fetchData({
|
|
18093
|
+
body: JSON.stringify(queriesjson)
|
|
18094
|
+
}, __readDocumentUrl__);
|
|
18095
|
+
|
|
18096
|
+
case 9:
|
|
18097
|
+
data = _context11.sent;
|
|
18098
|
+
arry = [];
|
|
18099
|
+
debugger;
|
|
18100
|
+
data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : _data$result2.map(function (val) {
|
|
18101
|
+
var _val$UOM$0$display, _val$UOM, _val$UOM$;
|
|
18102
|
+
|
|
18103
|
+
arry.push(_objectSpread2({
|
|
18104
|
+
value: val._id,
|
|
18105
|
+
label: val.code,
|
|
18106
|
+
minAge: val.age_minimum,
|
|
18107
|
+
maxAge: val.age_maximum,
|
|
18108
|
+
unit: (_val$UOM$0$display = val === null || val === void 0 ? void 0 : (_val$UOM = val.UOM) === null || _val$UOM === void 0 ? void 0 : (_val$UOM$ = _val$UOM[0]) === null || _val$UOM$ === void 0 ? void 0 : _val$UOM$.display) !== null && _val$UOM$0$display !== void 0 ? _val$UOM$0$display : ""
|
|
18109
|
+
}, val));
|
|
18110
|
+
});
|
|
18111
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
18112
|
+
data: arry
|
|
18113
|
+
}));
|
|
18114
|
+
|
|
18115
|
+
case 16:
|
|
18116
|
+
_context11.prev = 16;
|
|
18117
|
+
_context11.t0 = _context11["catch"](2);
|
|
18118
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
|
|
18119
|
+
message: _context11.t0.message
|
|
18120
|
+
})));
|
|
18121
|
+
|
|
18122
|
+
case 19:
|
|
18123
|
+
case "end":
|
|
18124
|
+
return _context11.stop();
|
|
18125
|
+
}
|
|
18126
|
+
}
|
|
18127
|
+
}, _callee11, null, [[2, 16]]);
|
|
18128
|
+
})));
|
|
17192
18129
|
var drugMasterSlice = createSlice({
|
|
17193
18130
|
name: "drugMasterSlice",
|
|
17194
18131
|
initialState: {
|
|
17195
18132
|
drug_master_list: _objectSpread2({}, defaultState.List),
|
|
17196
18133
|
drug_master_upsert: _objectSpread2({}, defaultState.List),
|
|
17197
18134
|
drug_master_status: _objectSpread2({}, defaultState.List),
|
|
17198
|
-
drug_master: _objectSpread2({}, defaultState.Info)
|
|
18135
|
+
drug_master: _objectSpread2({}, defaultState.Info),
|
|
18136
|
+
upsert_drug_master: _objectSpread2({}, defaultState.List),
|
|
18137
|
+
drug_form_type: _objectSpread2({}, defaultState.List),
|
|
18138
|
+
drug_form_read: _objectSpread2({}, defaultState.List),
|
|
18139
|
+
age_category_by_id: _objectSpread2({}, defaultState.List)
|
|
17199
18140
|
},
|
|
17200
|
-
extraReducers: (_extraReducers$
|
|
18141
|
+
extraReducers: (_extraReducers$7 = {}, _defineProperty(_extraReducers$7, DRUG_MASTER_READ.fulfilled, function (state, action) {
|
|
17201
18142
|
state.drug_master_list.loading = false, state.drug_master_list.error = false, state.drug_master_list = action.payload;
|
|
17202
|
-
}), _defineProperty(_extraReducers$
|
|
18143
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_READ.pending, function (state, action) {
|
|
17203
18144
|
state.drug_master_list.loading = true, state.drug_master_list.error = false, state.drug_master_list.loading = true;
|
|
17204
|
-
}), _defineProperty(_extraReducers$
|
|
18145
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_READ.rejected, function (state, action) {
|
|
17205
18146
|
state.drug_master_list.loading = false, state.drug_master_list.error = true, state.drug_master_list = action.payload;
|
|
17206
|
-
}), _defineProperty(_extraReducers$
|
|
18147
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_UPSERT.fulfilled, function (state, action) {
|
|
17207
18148
|
state.drug_master_upsert.loading = false, state.drug_master_upsert.error = false, state.drug_master_upsert = action.payload;
|
|
17208
|
-
}), _defineProperty(_extraReducers$
|
|
18149
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_UPSERT.pending, function (state, action) {
|
|
17209
18150
|
state.drug_master_upsert.loading = true, state.drug_master_upsert.error = false, state.drug_master_upsert.loading = true;
|
|
17210
|
-
}), _defineProperty(_extraReducers$
|
|
18151
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_UPSERT.rejected, function (state, action) {
|
|
17211
18152
|
state.drug_master_upsert.loading = false, state.drug_master_upsert.error = true, state.drug_master_upsert = action.payload;
|
|
17212
|
-
}), _defineProperty(_extraReducers$
|
|
18153
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_STATUS_CHANGE.fulfilled, function (state, action) {
|
|
17213
18154
|
state.drug_master_status.loading = false, state.drug_master_status.error = false, state.drug_master_status = action.payload;
|
|
17214
|
-
}), _defineProperty(_extraReducers$
|
|
18155
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_STATUS_CHANGE.pending, function (state, action) {
|
|
17215
18156
|
state.drug_master_status.loading = true, state.drug_master_status.error = false, state.drug_master_status.loading = true;
|
|
17216
|
-
}), _defineProperty(_extraReducers$
|
|
18157
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTER_STATUS_CHANGE.rejected, function (state, action) {
|
|
17217
18158
|
state.drug_master_status.loading = false, state.drug_master_status.error = true, state.drug_master_status = action.payload;
|
|
17218
|
-
}), _defineProperty(_extraReducers$
|
|
18159
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTERS.fulfilled, function (state, action) {
|
|
17219
18160
|
state.drug_master.loading = false, state.drug_master.error = false, state.drug_master = action.payload;
|
|
17220
|
-
}), _defineProperty(_extraReducers$
|
|
18161
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTERS.pending, function (state, action) {
|
|
17221
18162
|
state.drug_master.loading = true, state.drug_master.error = false, state.drug_master.loading = true;
|
|
17222
|
-
}), _defineProperty(_extraReducers$
|
|
18163
|
+
}), _defineProperty(_extraReducers$7, DRUG_MASTERS.rejected, function (state, action) {
|
|
17223
18164
|
state.drug_master.loading = false, state.drug_master.error = true, state.drug_master = action.payload;
|
|
17224
|
-
}), _extraReducers$
|
|
18165
|
+
}), _defineProperty(_extraReducers$7, SAVE_DRUG_MASTER.fulfilled, function (state, action) {
|
|
18166
|
+
state.upsert_drug_master.loading = false, state.upsert_drug_master.error = false, state.upsert_drug_master = action.payload;
|
|
18167
|
+
}), _defineProperty(_extraReducers$7, SAVE_DRUG_MASTER.pending, function (state, action) {
|
|
18168
|
+
state.upsert_drug_master.loading = true, state.upsert_drug_master.error = false, state.upsert_drug_master.loading = true;
|
|
18169
|
+
}), _defineProperty(_extraReducers$7, SAVE_DRUG_MASTER.rejected, function (state, action) {
|
|
18170
|
+
state.upsert_drug_master.loading = false, state.upsert_drug_master.error = true, state.upsert_drug_master = action.payload;
|
|
18171
|
+
}), _defineProperty(_extraReducers$7, DRUG_FORM_TYPE.fulfilled, function (state, action) {
|
|
18172
|
+
state.drug_form_type.loading = false, state.drug_form_type.error = false, state.drug_form_type = action.payload;
|
|
18173
|
+
}), _defineProperty(_extraReducers$7, DRUG_FORM_TYPE.pending, function (state, action) {
|
|
18174
|
+
state.drug_form_type.loading = true, state.drug_form_type.error = false, state.drug_form_type.loading = true;
|
|
18175
|
+
}), _defineProperty(_extraReducers$7, DRUG_FORM_TYPE.rejected, function (state, action) {
|
|
18176
|
+
state.drug_form_type.loading = false, state.drug_form_type.error = true, state.drug_form_type = action.payload;
|
|
18177
|
+
}), _defineProperty(_extraReducers$7, DRUG_READ_FORM.fulfilled, function (state, action) {
|
|
18178
|
+
state.drug_form_read.loading = false, state.drug_form_read.error = false, state.drug_form_read = action.payload;
|
|
18179
|
+
}), _defineProperty(_extraReducers$7, DRUG_READ_FORM.pending, function (state, action) {
|
|
18180
|
+
state.drug_form_read.loading = true, state.drug_form_read.error = false, state.drug_form_read.loading = true;
|
|
18181
|
+
}), _defineProperty(_extraReducers$7, DRUG_READ_FORM.rejected, function (state, action) {
|
|
18182
|
+
state.drug_form_read.loading = false, state.drug_form_read.error = true, state.drug_form_read = action.payload;
|
|
18183
|
+
}), _defineProperty(_extraReducers$7, AGE_CATEGORY_BY_ID.fulfilled, function (state, action) {
|
|
18184
|
+
state.age_category_by_id.loading = false, state.age_category_by_id.error = false, state.age_category_by_id = action.payload;
|
|
18185
|
+
}), _defineProperty(_extraReducers$7, AGE_CATEGORY_BY_ID.pending, function (state, action) {
|
|
18186
|
+
state.age_category_by_id.loading = true, state.age_category_by_id.error = false, state.age_category_by_id.loading = true;
|
|
18187
|
+
}), _defineProperty(_extraReducers$7, AGE_CATEGORY_BY_ID.rejected, function (state, action) {
|
|
18188
|
+
state.age_category_by_id.loading = false, state.age_category_by_id.error = true, state.age_category_by_id = action.payload;
|
|
18189
|
+
}), _extraReducers$7)
|
|
17225
18190
|
});
|
|
17226
18191
|
var drugMasterActions = {
|
|
17227
18192
|
DRUG_MASTER_READ: DRUG_MASTER_READ,
|
|
17228
18193
|
DRUG_MASTER_UPSERT: DRUG_MASTER_UPSERT,
|
|
17229
18194
|
DRUG_MASTER_STATUS_CHANGE: DRUG_MASTER_STATUS_CHANGE,
|
|
17230
|
-
DRUG_MASTERS: DRUG_MASTERS
|
|
18195
|
+
DRUG_MASTERS: DRUG_MASTERS,
|
|
18196
|
+
SAVE_DRUG_MASTER: SAVE_DRUG_MASTER,
|
|
18197
|
+
DRUG_FORM_TYPE: DRUG_FORM_TYPE,
|
|
18198
|
+
DRUG_READ_FORM: DRUG_READ_FORM,
|
|
18199
|
+
AGE_CATEGORY_BY_ID: AGE_CATEGORY_BY_ID
|
|
17231
18200
|
};
|
|
17232
18201
|
var drugMasterSlice$1 = drugMasterSlice.reducer;
|
|
17233
18202
|
|
|
@@ -17302,7 +18271,7 @@ var queries$3 = {
|
|
|
17302
18271
|
}
|
|
17303
18272
|
};
|
|
17304
18273
|
|
|
17305
|
-
var _extraReducers$
|
|
18274
|
+
var _extraReducers$6;
|
|
17306
18275
|
var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_direction_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17307
18276
|
var _ref2,
|
|
17308
18277
|
rejectWithValue,
|
|
@@ -17548,37 +18517,37 @@ var drugRoutesDirectionSlice = createSlice({
|
|
|
17548
18517
|
drug_routes_insert_list: _objectSpread2({}, defaultState.List),
|
|
17549
18518
|
drug_routes_update_list: _objectSpread2({}, defaultState.List)
|
|
17550
18519
|
},
|
|
17551
|
-
extraReducers: (_extraReducers$
|
|
18520
|
+
extraReducers: (_extraReducers$6 = {}, _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_READ.fulfilled, function (state, action) {
|
|
17552
18521
|
state.drug_routes_direction_list.loading = false, state.drug_routes_direction_list.error = false, state.drug_routes_direction_list = action.payload;
|
|
17553
|
-
}), _defineProperty(_extraReducers$
|
|
18522
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_READ.pending, function (state, action) {
|
|
17554
18523
|
state.drug_routes_direction_list.loading = true, state.drug_routes_direction_list.error = false, state.drug_routes_direction_list.loading = true;
|
|
17555
|
-
}), _defineProperty(_extraReducers$
|
|
18524
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_READ.rejected, function (state, action) {
|
|
17556
18525
|
state.drug_routes_direction_list.loading = false, state.drug_routes_direction_list.error = true, state.drug_routes_direction_list = action.payload;
|
|
17557
|
-
}), _defineProperty(_extraReducers$
|
|
18526
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_MASTER.fulfilled, function (state, action) {
|
|
17558
18527
|
state.drug_routes_master_list.loading = false, state.drug_routes_master_list.error = false, state.drug_routes_master_list = action.payload;
|
|
17559
|
-
}), _defineProperty(_extraReducers$
|
|
18528
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_MASTER.pending, function (state, action) {
|
|
17560
18529
|
state.drug_routes_master_list.loading = true, state.drug_routes_master_list.error = false, state.drug_routes_master_list.loading = true;
|
|
17561
|
-
}), _defineProperty(_extraReducers$
|
|
18530
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_MASTER.rejected, function (state, action) {
|
|
17562
18531
|
state.drug_routes_master_list.loading = false, state.drug_routes_master_list.error = true, state.drug_routes_master_list = action.payload;
|
|
17563
|
-
}), _defineProperty(_extraReducers$
|
|
18532
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_STATUS.fulfilled, function (state, action) {
|
|
17564
18533
|
state.drug_routes_status_list.loading = false, state.drug_routes_status_list.error = false, state.drug_routes_status_list = action.payload;
|
|
17565
|
-
}), _defineProperty(_extraReducers$
|
|
18534
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_STATUS.pending, function (state, action) {
|
|
17566
18535
|
state.drug_routes_status_list.loading = true, state.drug_routes_status_list.error = false, state.drug_routes_status_list.loading = true;
|
|
17567
|
-
}), _defineProperty(_extraReducers$
|
|
18536
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_STATUS.rejected, function (state, action) {
|
|
17568
18537
|
state.drug_routes_status_list.loading = false, state.drug_routes_status_list.error = true, state.drug_routes_status_list = action.payload;
|
|
17569
|
-
}), _defineProperty(_extraReducers$
|
|
18538
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_INSERT.fulfilled, function (state, action) {
|
|
17570
18539
|
state.drug_routes_insert_list.loading = false, state.drug_routes_insert_list.error = false, state.drug_routes_insert_list = action.payload;
|
|
17571
|
-
}), _defineProperty(_extraReducers$
|
|
18540
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_INSERT.pending, function (state, action) {
|
|
17572
18541
|
state.drug_routes_insert_list.loading = true, state.drug_routes_insert_list.error = false, state.drug_routes_insert_list.loading = true;
|
|
17573
|
-
}), _defineProperty(_extraReducers$
|
|
18542
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_INSERT.rejected, function (state, action) {
|
|
17574
18543
|
state.drug_routes_insert_list.loading = false, state.drug_routes_insert_list.error = true, state.drug_routes_insert_list = action.payload;
|
|
17575
|
-
}), _defineProperty(_extraReducers$
|
|
18544
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_UPDATE.fulfilled, function (state, action) {
|
|
17576
18545
|
state.drug_routes_insert_list.loading = false, state.drug_routes_insert_list.error = false, state.drug_routes_insert_list = action.payload;
|
|
17577
|
-
}), _defineProperty(_extraReducers$
|
|
18546
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_UPDATE.pending, function (state, action) {
|
|
17578
18547
|
state.drug_routes_insert_list.loading = true, state.drug_routes_insert_list.error = false, state.drug_routes_insert_list.loading = true;
|
|
17579
|
-
}), _defineProperty(_extraReducers$
|
|
18548
|
+
}), _defineProperty(_extraReducers$6, DRUG_ROUTES_DIRECTION_UPDATE.rejected, function (state, action) {
|
|
17580
18549
|
state.drug_routes_insert_list.loading = false, state.drug_routes_insert_list.error = true, state.drug_routes_insert_list = action.payload;
|
|
17581
|
-
}), _extraReducers$
|
|
18550
|
+
}), _extraReducers$6)
|
|
17582
18551
|
});
|
|
17583
18552
|
var drugDirectionRoutesActions = {
|
|
17584
18553
|
DRUG_ROUTES_DIRECTION_READ: DRUG_ROUTES_DIRECTION_READ,
|
|
@@ -18125,7 +19094,7 @@ var generatefaciltity = function generatefaciltity(data, state) {
|
|
|
18125
19094
|
// return Category;
|
|
18126
19095
|
// };
|
|
18127
19096
|
|
|
18128
|
-
var _extraReducers$
|
|
19097
|
+
var _extraReducers$5;
|
|
18129
19098
|
var fileds = ["quantity", "gender", "checkaction", "entityType", "specimenType", "bodySite", "specimenContainer", "collectionMethod", "encounterType"];
|
|
18130
19099
|
|
|
18131
19100
|
var loopMasters = function loopMasters() {
|
|
@@ -18581,49 +19550,49 @@ var orderCatalogSlice = createSlice({
|
|
|
18581
19550
|
edit_order_catalog: _objectSpread2({}, defaultState.List),
|
|
18582
19551
|
attribute_delete: _objectSpread2({}, defaultState.List)
|
|
18583
19552
|
},
|
|
18584
|
-
extraReducers: (_extraReducers$
|
|
19553
|
+
extraReducers: (_extraReducers$5 = {}, _defineProperty(_extraReducers$5, ORDER_CATALOG_MASTERS.fulfilled, function (state, action) {
|
|
18585
19554
|
state.order_catalog_masters.loading = false, state.order_catalog_masters.error = false, state.order_catalog_masters = action.payload;
|
|
18586
|
-
}), _defineProperty(_extraReducers$
|
|
19555
|
+
}), _defineProperty(_extraReducers$5, ORDER_CATALOG_MASTERS.pending, function (state, action) {
|
|
18587
19556
|
state.order_catalog_masters.loading = true, state.order_catalog_masters.error = false, state.order_catalog_masters.loading = true;
|
|
18588
|
-
}), _defineProperty(_extraReducers$
|
|
19557
|
+
}), _defineProperty(_extraReducers$5, ORDER_CATALOG_MASTERS.rejected, function (state, action) {
|
|
18589
19558
|
state.order_catalog_masters.loading = false, state.order_catalog_masters.error = true, state.order_catalog_masters = action.payload;
|
|
18590
|
-
}), _defineProperty(_extraReducers$
|
|
19559
|
+
}), _defineProperty(_extraReducers$5, AGE_RANGES_CATEGORY_CATALOG.fulfilled, function (state, action) {
|
|
18591
19560
|
state.ageranges_category_catalog.loading = false, state.ageranges_category_catalog.error = false, state.ageranges_category_catalog = action.payload;
|
|
18592
|
-
}), _defineProperty(_extraReducers$
|
|
19561
|
+
}), _defineProperty(_extraReducers$5, AGE_RANGES_CATEGORY_CATALOG.pending, function (state, action) {
|
|
18593
19562
|
state.ageranges_category_catalog.loading = true, state.ageranges_category_catalog.error = false, state.ageranges_category_catalog.loading = true;
|
|
18594
|
-
}), _defineProperty(_extraReducers$
|
|
19563
|
+
}), _defineProperty(_extraReducers$5, AGE_RANGES_CATEGORY_CATALOG.rejected, function (state, action) {
|
|
18595
19564
|
state.ageranges_category_catalog.loading = false, state.ageranges_category_catalog.error = true, state.ageranges_category_catalog = action.payload;
|
|
18596
|
-
}), _defineProperty(_extraReducers$
|
|
19565
|
+
}), _defineProperty(_extraReducers$5, SAVE_ORDER_CATALOG.fulfilled, function (state, action) {
|
|
18597
19566
|
state.save_order_catalog.loading = false, state.save_order_catalog.error = false, state.save_order_catalog = action.payload;
|
|
18598
|
-
}), _defineProperty(_extraReducers$
|
|
19567
|
+
}), _defineProperty(_extraReducers$5, SAVE_ORDER_CATALOG.pending, function (state, action) {
|
|
18599
19568
|
state.save_order_catalog.loading = true, state.save_order_catalog.error = false, state.save_order_catalog.loading = true;
|
|
18600
|
-
}), _defineProperty(_extraReducers$
|
|
19569
|
+
}), _defineProperty(_extraReducers$5, SAVE_ORDER_CATALOG.rejected, function (state, action) {
|
|
18601
19570
|
state.save_order_catalog.loading = false, state.save_order_catalog.error = true, state.save_order_catalog = action.payload;
|
|
18602
|
-
}), _defineProperty(_extraReducers$
|
|
19571
|
+
}), _defineProperty(_extraReducers$5, READ_ORDER_CATALOG.fulfilled, function (state, action) {
|
|
18603
19572
|
state.order_catalog_read.loading = false, state.order_catalog_read.error = false, state.order_catalog_read = action.payload;
|
|
18604
|
-
}), _defineProperty(_extraReducers$
|
|
19573
|
+
}), _defineProperty(_extraReducers$5, READ_ORDER_CATALOG.pending, function (state, action) {
|
|
18605
19574
|
state.order_catalog_read.loading = true, state.order_catalog_read.error = false, state.order_catalog_read.loading = true;
|
|
18606
|
-
}), _defineProperty(_extraReducers$
|
|
19575
|
+
}), _defineProperty(_extraReducers$5, READ_ORDER_CATALOG.rejected, function (state, action) {
|
|
18607
19576
|
state.order_catalog_read.loading = false, state.order_catalog_read.error = true, state.order_catalog_read = action.payload;
|
|
18608
|
-
}), _defineProperty(_extraReducers$
|
|
19577
|
+
}), _defineProperty(_extraReducers$5, UPDATE_ORDER_CATALOG_STATUS.fulfilled, function (state, action) {
|
|
18609
19578
|
state.order_catalog_status_update.loading = false, state.order_catalog_status_update.error = false, state.order_catalog_status_update = action.payload;
|
|
18610
|
-
}), _defineProperty(_extraReducers$
|
|
19579
|
+
}), _defineProperty(_extraReducers$5, UPDATE_ORDER_CATALOG_STATUS.pending, function (state, action) {
|
|
18611
19580
|
state.order_catalog_status_update.loading = true, state.order_catalog_status_update.error = false, state.order_catalog_status_update.loading = true;
|
|
18612
|
-
}), _defineProperty(_extraReducers$
|
|
19581
|
+
}), _defineProperty(_extraReducers$5, UPDATE_ORDER_CATALOG_STATUS.rejected, function (state, action) {
|
|
18613
19582
|
state.order_catalog_status_update.loading = false, state.order_catalog_status_update.error = true, state.order_catalog_status_update = action.payload;
|
|
18614
|
-
}), _defineProperty(_extraReducers$
|
|
19583
|
+
}), _defineProperty(_extraReducers$5, EDIT_ORDER_CATALOG.fulfilled, function (state, action) {
|
|
18615
19584
|
state.edit_order_catalog.loading = false, state.edit_order_catalog.error = false, state.edit_order_catalog = action.payload;
|
|
18616
|
-
}), _defineProperty(_extraReducers$
|
|
19585
|
+
}), _defineProperty(_extraReducers$5, EDIT_ORDER_CATALOG.pending, function (state, action) {
|
|
18617
19586
|
state.edit_order_catalog.loading = true, state.edit_order_catalog.error = false, state.edit_order_catalog.loading = true;
|
|
18618
|
-
}), _defineProperty(_extraReducers$
|
|
19587
|
+
}), _defineProperty(_extraReducers$5, EDIT_ORDER_CATALOG.rejected, function (state, action) {
|
|
18619
19588
|
state.edit_order_catalog.loading = false, state.edit_order_catalog.error = true, state.edit_order_catalog = action.payload;
|
|
18620
|
-
}), _defineProperty(_extraReducers$
|
|
19589
|
+
}), _defineProperty(_extraReducers$5, DELETE_ATTRIBUTE_DELETE.fulfilled, function (state, action) {
|
|
18621
19590
|
state.attribute_delete.loading = false, state.attribute_delete.error = false, state.attribute_delete = action.payload;
|
|
18622
|
-
}), _defineProperty(_extraReducers$
|
|
19591
|
+
}), _defineProperty(_extraReducers$5, DELETE_ATTRIBUTE_DELETE.pending, function (state, action) {
|
|
18623
19592
|
state.attribute_delete.loading = true, state.attribute_delete.error = false, state.attribute_delete.loading = true;
|
|
18624
|
-
}), _defineProperty(_extraReducers$
|
|
19593
|
+
}), _defineProperty(_extraReducers$5, DELETE_ATTRIBUTE_DELETE.rejected, function (state, action) {
|
|
18625
19594
|
state.attribute_delete.loading = false, state.attribute_delete.error = true, state.attribute_delete = action.payload;
|
|
18626
|
-
}), _extraReducers$
|
|
19595
|
+
}), _extraReducers$5)
|
|
18627
19596
|
});
|
|
18628
19597
|
var orderCatalogActions = {
|
|
18629
19598
|
ORDER_CATALOG_MASTERS: ORDER_CATALOG_MASTERS,
|
|
@@ -18721,7 +19690,7 @@ var generateJson$3 = function generateJson(data, _key) {
|
|
|
18721
19690
|
})];
|
|
18722
19691
|
};
|
|
18723
19692
|
|
|
18724
|
-
var _extraReducers$
|
|
19693
|
+
var _extraReducers$4;
|
|
18725
19694
|
var SOURCELOCATIONTYPE = createAsyncThunk("performLocationSlice/sourceLocationType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
18726
19695
|
var _ref2,
|
|
18727
19696
|
rejectWithValue,
|
|
@@ -19074,49 +20043,49 @@ var performLocationSlice = createSlice({
|
|
|
19074
20043
|
read_performing_location: _objectSpread2({}, defaultState.Info),
|
|
19075
20044
|
read_performing_location_status: _objectSpread2({}, defaultState.Info)
|
|
19076
20045
|
},
|
|
19077
|
-
extraReducers: (_extraReducers$
|
|
20046
|
+
extraReducers: (_extraReducers$4 = {}, _defineProperty(_extraReducers$4, SOURCELOCATIONTYPE.fulfilled, function (state, action) {
|
|
19078
20047
|
state.source_location_type.loading = false, state.source_location_type.error = false, state.source_location_type = action.payload;
|
|
19079
|
-
}), _defineProperty(_extraReducers$
|
|
20048
|
+
}), _defineProperty(_extraReducers$4, SOURCELOCATIONTYPE.pending, function (state, action) {
|
|
19080
20049
|
state.source_location_type.loading = true, state.source_location_type.error = false, state.source_location_type.loading = true;
|
|
19081
|
-
}), _defineProperty(_extraReducers$
|
|
20050
|
+
}), _defineProperty(_extraReducers$4, SOURCELOCATIONTYPE.rejected, function (state, action) {
|
|
19082
20051
|
state.source_location_type.loading = false, state.source_location_type.error = true, state.source_location_type = action.payload;
|
|
19083
|
-
}), _defineProperty(_extraReducers$
|
|
20052
|
+
}), _defineProperty(_extraReducers$4, ORDERINGFACILITY.fulfilled, function (state, action) {
|
|
19084
20053
|
state.order_facility.loading = false, state.order_facility.error = false, state.order_facility = action.payload;
|
|
19085
|
-
}), _defineProperty(_extraReducers$
|
|
20054
|
+
}), _defineProperty(_extraReducers$4, ORDERINGFACILITY.pending, function (state, action) {
|
|
19086
20055
|
state.order_facility.loading = true, state.order_facility.error = false, state.order_facility.loading = true;
|
|
19087
|
-
}), _defineProperty(_extraReducers$
|
|
20056
|
+
}), _defineProperty(_extraReducers$4, ORDERINGFACILITY.rejected, function (state, action) {
|
|
19088
20057
|
state.order_facility.loading = false, state.order_facility.error = true, state.order_facility = action.payload;
|
|
19089
|
-
}), _defineProperty(_extraReducers$
|
|
20058
|
+
}), _defineProperty(_extraReducers$4, PERFORMINGDETAILS.fulfilled, function (state, action) {
|
|
19090
20059
|
state.performing_details.loading = false, state.performing_details.error = false, state.performing_details = action.payload;
|
|
19091
|
-
}), _defineProperty(_extraReducers$
|
|
20060
|
+
}), _defineProperty(_extraReducers$4, PERFORMINGDETAILS.pending, function (state, action) {
|
|
19092
20061
|
state.performing_details.loading = true, state.performing_details.error = false, state.performing_details.loading = true;
|
|
19093
|
-
}), _defineProperty(_extraReducers$
|
|
20062
|
+
}), _defineProperty(_extraReducers$4, PERFORMINGDETAILS.rejected, function (state, action) {
|
|
19094
20063
|
state.performing_details.loading = false, state.performing_details.error = true, state.performing_details = action.payload;
|
|
19095
|
-
}), _defineProperty(_extraReducers$
|
|
20064
|
+
}), _defineProperty(_extraReducers$4, SOURCELOCATION.fulfilled, function (state, action) {
|
|
19096
20065
|
state.source_location.loading = false, state.source_location.error = false, state.source_location = action.payload;
|
|
19097
|
-
}), _defineProperty(_extraReducers$
|
|
20066
|
+
}), _defineProperty(_extraReducers$4, SOURCELOCATION.pending, function (state, action) {
|
|
19098
20067
|
state.source_location.loading = true, state.source_location.error = false, state.source_location.loading = true;
|
|
19099
|
-
}), _defineProperty(_extraReducers$
|
|
20068
|
+
}), _defineProperty(_extraReducers$4, SOURCELOCATION.rejected, function (state, action) {
|
|
19100
20069
|
state.source_location.loading = false, state.source_location.error = true, state.source_location = action.payload;
|
|
19101
|
-
}), _defineProperty(_extraReducers$
|
|
20070
|
+
}), _defineProperty(_extraReducers$4, UPSERT_PERFORMINGLOCATION.fulfilled, function (state, action) {
|
|
19102
20071
|
state.save_performing_location.loading = false, state.save_performing_location.error = false, state.save_performing_location = action.payload;
|
|
19103
|
-
}), _defineProperty(_extraReducers$
|
|
20072
|
+
}), _defineProperty(_extraReducers$4, UPSERT_PERFORMINGLOCATION.pending, function (state, action) {
|
|
19104
20073
|
state.save_performing_location.loading = true, state.save_performing_location.error = false, state.save_performing_location.loading = true;
|
|
19105
|
-
}), _defineProperty(_extraReducers$
|
|
20074
|
+
}), _defineProperty(_extraReducers$4, UPSERT_PERFORMINGLOCATION.rejected, function (state, action) {
|
|
19106
20075
|
state.save_performing_location.loading = false, state.save_performing_location.error = true, state.save_performing_location = action.payload;
|
|
19107
|
-
}), _defineProperty(_extraReducers$
|
|
20076
|
+
}), _defineProperty(_extraReducers$4, READ_PERFORMINGLOCATION.fulfilled, function (state, action) {
|
|
19108
20077
|
state.read_performing_location.loading = false, state.read_performing_location.error = false, state.read_performing_location = action.payload;
|
|
19109
|
-
}), _defineProperty(_extraReducers$
|
|
20078
|
+
}), _defineProperty(_extraReducers$4, READ_PERFORMINGLOCATION.pending, function (state, action) {
|
|
19110
20079
|
state.read_performing_location.loading = true, state.read_performing_location.error = false, state.read_performing_location.loading = true;
|
|
19111
|
-
}), _defineProperty(_extraReducers$
|
|
20080
|
+
}), _defineProperty(_extraReducers$4, READ_PERFORMINGLOCATION.rejected, function (state, action) {
|
|
19112
20081
|
state.read_performing_location.loading = false, state.read_performing_location.error = true, state.read_performing_location = action.payload;
|
|
19113
|
-
}), _defineProperty(_extraReducers$
|
|
20082
|
+
}), _defineProperty(_extraReducers$4, STATUS_PERFORMINGLOCATION.fulfilled, function (state, action) {
|
|
19114
20083
|
state.read_performing_location_status.loading = false, state.read_performing_location_status.error = false, state.read_performing_location_status = action.payload;
|
|
19115
|
-
}), _defineProperty(_extraReducers$
|
|
20084
|
+
}), _defineProperty(_extraReducers$4, STATUS_PERFORMINGLOCATION.pending, function (state, action) {
|
|
19116
20085
|
state.read_performing_location_status.loading = true, state.read_performing_location_status.error = false, state.read_performing_location_status.loading = true;
|
|
19117
|
-
}), _defineProperty(_extraReducers$
|
|
20086
|
+
}), _defineProperty(_extraReducers$4, STATUS_PERFORMINGLOCATION.rejected, function (state, action) {
|
|
19118
20087
|
state.read_performing_location_status.loading = false, state.read_performing_location_status.error = true, state.read_performing_location_status = action.payload;
|
|
19119
|
-
}), _extraReducers$
|
|
20088
|
+
}), _extraReducers$4)
|
|
19120
20089
|
});
|
|
19121
20090
|
var performLocationActions = {
|
|
19122
20091
|
SOURCELOCATIONTYPE: SOURCELOCATIONTYPE,
|
|
@@ -19137,7 +20106,7 @@ var ordertype_role_actions = _objectSpread2({}, ordertypeActions$1);
|
|
|
19137
20106
|
|
|
19138
20107
|
var ordernature_role_actions = _objectSpread2({}, ordernatureActions$1);
|
|
19139
20108
|
|
|
19140
|
-
var query = {
|
|
20109
|
+
var query$1 = {
|
|
19141
20110
|
entityType: function entityType() {
|
|
19142
20111
|
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
19143
20112
|
},
|
|
@@ -19463,7 +20432,7 @@ actionsList.forEach(function (c) {
|
|
|
19463
20432
|
|
|
19464
20433
|
case 4:
|
|
19465
20434
|
_context.prev = 4;
|
|
19466
|
-
body = c.makeBody ? c.makeBody(payload) : query[c.queryName || c.sliceName](c.makePayload ? c.makePayload(payload) : payload);
|
|
20435
|
+
body = c.makeBody ? c.makeBody(payload) : query$1[c.queryName || c.sliceName](c.makePayload ? c.makePayload(payload) : payload);
|
|
19467
20436
|
_context.next = 8;
|
|
19468
20437
|
return fetchData({
|
|
19469
20438
|
body: body
|
|
@@ -19563,7 +20532,7 @@ var generateJson$2 = function generateJson(data, _key) {
|
|
|
19563
20532
|
})];
|
|
19564
20533
|
};
|
|
19565
20534
|
|
|
19566
|
-
var _extraReducers$
|
|
20535
|
+
var _extraReducers$3;
|
|
19567
20536
|
var UPSERT_ALERT = createAsyncThunk("alertRestictionsMasterSlice/save_alert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
19568
20537
|
var payload,
|
|
19569
20538
|
_ref2,
|
|
@@ -19877,31 +20846,31 @@ var alertRestictionsMasterSlice = createSlice({
|
|
|
19877
20846
|
read_alert: _objectSpread2({}, defaultState.Info),
|
|
19878
20847
|
read_alert_status: _objectSpread2({}, defaultState.Info)
|
|
19879
20848
|
},
|
|
19880
|
-
extraReducers: (_extraReducers$
|
|
20849
|
+
extraReducers: (_extraReducers$3 = {}, _defineProperty(_extraReducers$3, GET_ALL_MASTER.fulfilled, function (state, action) {
|
|
19881
20850
|
state.get_all_masters.loading = false, state.get_all_masters.error = false, state.get_all_masters = action.payload;
|
|
19882
|
-
}), _defineProperty(_extraReducers$
|
|
20851
|
+
}), _defineProperty(_extraReducers$3, GET_ALL_MASTER.pending, function (state, action) {
|
|
19883
20852
|
state.get_all_masters.loading = true, state.get_all_masters.error = false, state.get_all_masters.loading = true;
|
|
19884
|
-
}), _defineProperty(_extraReducers$
|
|
20853
|
+
}), _defineProperty(_extraReducers$3, GET_ALL_MASTER.rejected, function (state, action) {
|
|
19885
20854
|
state.get_all_masters.loading = false, state.get_all_masters.error = true, state.get_all_masters = action.payload;
|
|
19886
|
-
}), _defineProperty(_extraReducers$
|
|
20855
|
+
}), _defineProperty(_extraReducers$3, UPSERT_ALERT.fulfilled, function (state, action) {
|
|
19887
20856
|
state.save_alert.loading = false, state.save_alert.error = false, state.save_alert = action.payload;
|
|
19888
|
-
}), _defineProperty(_extraReducers$
|
|
20857
|
+
}), _defineProperty(_extraReducers$3, UPSERT_ALERT.pending, function (state, action) {
|
|
19889
20858
|
state.save_alert.loading = true, state.save_alert.error = false, state.save_alert.loading = true;
|
|
19890
|
-
}), _defineProperty(_extraReducers$
|
|
20859
|
+
}), _defineProperty(_extraReducers$3, UPSERT_ALERT.rejected, function (state, action) {
|
|
19891
20860
|
state.save_alert.loading = false, state.save_alert.error = true, state.save_alert = action.payload;
|
|
19892
|
-
}), _defineProperty(_extraReducers$
|
|
20861
|
+
}), _defineProperty(_extraReducers$3, READ_ALERT.fulfilled, function (state, action) {
|
|
19893
20862
|
state.read_alert.loading = false, state.read_alert.error = false, state.read_alert = action.payload;
|
|
19894
|
-
}), _defineProperty(_extraReducers$
|
|
20863
|
+
}), _defineProperty(_extraReducers$3, READ_ALERT.pending, function (state, action) {
|
|
19895
20864
|
state.read_alert.loading = true, state.read_alert.error = false, state.read_alert.loading = true;
|
|
19896
|
-
}), _defineProperty(_extraReducers$
|
|
20865
|
+
}), _defineProperty(_extraReducers$3, READ_ALERT.rejected, function (state, action) {
|
|
19897
20866
|
state.read_alert.loading = false, state.read_alert.error = true, state.read_alert = action.payload;
|
|
19898
|
-
}), _defineProperty(_extraReducers$
|
|
20867
|
+
}), _defineProperty(_extraReducers$3, UPSERT_ALERT_STATUS.fulfilled, function (state, action) {
|
|
19899
20868
|
state.read_alert_status.loading = false, state.read_alert_status.error = false, state.read_alert_status = action.payload;
|
|
19900
|
-
}), _defineProperty(_extraReducers$
|
|
20869
|
+
}), _defineProperty(_extraReducers$3, UPSERT_ALERT_STATUS.pending, function (state, action) {
|
|
19901
20870
|
state.read_alert_status.loading = true, state.read_alert_status.error = false, state.read_alert_status.loading = true;
|
|
19902
|
-
}), _defineProperty(_extraReducers$
|
|
20871
|
+
}), _defineProperty(_extraReducers$3, UPSERT_ALERT_STATUS.rejected, function (state, action) {
|
|
19903
20872
|
state.read_alert_status.loading = false, state.read_alert_status.error = true, state.read_alert_status = action.payload;
|
|
19904
|
-
}), _extraReducers$
|
|
20873
|
+
}), _extraReducers$3)
|
|
19905
20874
|
});
|
|
19906
20875
|
var alertRestrictionsMasterActions = {
|
|
19907
20876
|
GET_ALL_MASTER: GET_ALL_MASTER,
|
|
@@ -20064,7 +21033,7 @@ var generateReadJson$1 = {
|
|
|
20064
21033
|
}
|
|
20065
21034
|
};
|
|
20066
21035
|
|
|
20067
|
-
var _extraReducers$
|
|
21036
|
+
var _extraReducers$2;
|
|
20068
21037
|
var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
20069
21038
|
var _ref2,
|
|
20070
21039
|
rejectWithValue,
|
|
@@ -20368,43 +21337,43 @@ var drugMasterUOMSlice = createSlice({
|
|
|
20368
21337
|
drug_uom_read_line: _objectSpread2({}, defaultState.List),
|
|
20369
21338
|
drug_uom_code_status: _objectSpread2({}, defaultState.List)
|
|
20370
21339
|
},
|
|
20371
|
-
extraReducers: (_extraReducers$
|
|
21340
|
+
extraReducers: (_extraReducers$2 = {}, _defineProperty(_extraReducers$2, DRUG_UOM_READ.fulfilled, function (state, action) {
|
|
20372
21341
|
state.drug_routes_direction_list.loading = false, state.drug_routes_direction_list.error = false, state.drug_routes_direction_list = action.payload;
|
|
20373
|
-
}), _defineProperty(_extraReducers$
|
|
21342
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_READ.pending, function (state, action) {
|
|
20374
21343
|
state.drug_routes_direction_list.loading = true, state.drug_routes_direction_list.error = false, state.drug_routes_direction_list.loading = true;
|
|
20375
|
-
}), _defineProperty(_extraReducers$
|
|
21344
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_READ.rejected, function (state, action) {
|
|
20376
21345
|
state.drug_routes_direction_list.loading = false, state.drug_routes_direction_list.error = true, state.drug_routes_direction_list = action.payload;
|
|
20377
|
-
}), _defineProperty(_extraReducers$
|
|
21346
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_TYPE_DROP_DOWN.fulfilled, function (state, action) {
|
|
20378
21347
|
state.drug_uom_type_master.loading = false, state.drug_uom_type_master.error = false, state.drug_uom_type_master = action.payload;
|
|
20379
|
-
}), _defineProperty(_extraReducers$
|
|
21348
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_TYPE_DROP_DOWN.pending, function (state, action) {
|
|
20380
21349
|
state.drug_uom_type_master.loading = true, state.drug_uom_type_master.error = false, state.drug_uom_type_master.loading = true;
|
|
20381
|
-
}), _defineProperty(_extraReducers$
|
|
21350
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_TYPE_DROP_DOWN.rejected, function (state, action) {
|
|
20382
21351
|
state.drug_uom_type_master.loading = false, state.drug_uom_type_master.error = true, state.drug_uom_type_master = action.payload;
|
|
20383
|
-
}), _defineProperty(_extraReducers$
|
|
21352
|
+
}), _defineProperty(_extraReducers$2, TO_UDM_CODE_DROPDOWN.fulfilled, function (state, action) {
|
|
20384
21353
|
state.drug_uom_code_master.loading = false, state.drug_uom_code_master.error = false, state.drug_uom_code_master = action.payload;
|
|
20385
|
-
}), _defineProperty(_extraReducers$
|
|
21354
|
+
}), _defineProperty(_extraReducers$2, TO_UDM_CODE_DROPDOWN.pending, function (state, action) {
|
|
20386
21355
|
state.drug_uom_code_master.loading = true, state.drug_uom_code_master.error = false, state.drug_uom_code_master.loading = true;
|
|
20387
|
-
}), _defineProperty(_extraReducers$
|
|
21356
|
+
}), _defineProperty(_extraReducers$2, TO_UDM_CODE_DROPDOWN.rejected, function (state, action) {
|
|
20388
21357
|
state.drug_uom_code_master.loading = false, state.drug_uom_code_master.error = true, state.drug_uom_code_master = action.payload;
|
|
20389
|
-
}), _defineProperty(_extraReducers$
|
|
21358
|
+
}), _defineProperty(_extraReducers$2, UOM_CODE_INSERT.fulfilled, function (state, action) {
|
|
20390
21359
|
state.drug_uom_code_insert.loading = false, state.drug_uom_code_insert.error = false, state.drug_uom_code_insert = action.payload;
|
|
20391
|
-
}), _defineProperty(_extraReducers$
|
|
21360
|
+
}), _defineProperty(_extraReducers$2, UOM_CODE_INSERT.pending, function (state, action) {
|
|
20392
21361
|
state.drug_uom_code_insert.loading = true, state.drug_uom_code_insert.error = false, state.drug_uom_code_insert.loading = true;
|
|
20393
|
-
}), _defineProperty(_extraReducers$
|
|
21362
|
+
}), _defineProperty(_extraReducers$2, UOM_CODE_INSERT.rejected, function (state, action) {
|
|
20394
21363
|
state.drug_uom_code_insert.loading = false, state.drug_uom_code_insert.error = true, state.drug_uom_code_insert = action.payload;
|
|
20395
|
-
}), _defineProperty(_extraReducers$
|
|
21364
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_LINE_READ.fulfilled, function (state, action) {
|
|
20396
21365
|
state.drug_uom_read_line.loading = false, state.drug_uom_read_line.error = false, state.drug_uom_read_line = action.payload;
|
|
20397
|
-
}), _defineProperty(_extraReducers$
|
|
21366
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_LINE_READ.pending, function (state, action) {
|
|
20398
21367
|
state.drug_uom_read_line.loading = true, state.drug_uom_read_line.error = false, state.drug_uom_read_line.loading = true;
|
|
20399
|
-
}), _defineProperty(_extraReducers$
|
|
21368
|
+
}), _defineProperty(_extraReducers$2, DRUG_UOM_LINE_READ.rejected, function (state, action) {
|
|
20400
21369
|
state.drug_uom_read_line.loading = false, state.drug_uom_read_line.error = true, state.drug_uom_read_line = action.payload;
|
|
20401
|
-
}), _defineProperty(_extraReducers$
|
|
21370
|
+
}), _defineProperty(_extraReducers$2, To_UOM_UPDATE_STATUS_FUN.fulfilled, function (state, action) {
|
|
20402
21371
|
state.drug_uom_code_status.loading = false, state.drug_uom_code_status.error = false, state.drug_uom_code_status = action.payload;
|
|
20403
|
-
}), _defineProperty(_extraReducers$
|
|
21372
|
+
}), _defineProperty(_extraReducers$2, To_UOM_UPDATE_STATUS_FUN.pending, function (state, action) {
|
|
20404
21373
|
state.drug_uom_code_status.loading = true, state.drug_uom_code_status.error = false, state.drug_uom_code_status.loading = true;
|
|
20405
|
-
}), _defineProperty(_extraReducers$
|
|
21374
|
+
}), _defineProperty(_extraReducers$2, To_UOM_UPDATE_STATUS_FUN.rejected, function (state, action) {
|
|
20406
21375
|
state.drug_uom_code_status.loading = false, state.drug_uom_code_status.error = true, state.drug_uom_code_status = action.payload;
|
|
20407
|
-
}), _extraReducers$
|
|
21376
|
+
}), _extraReducers$2)
|
|
20408
21377
|
});
|
|
20409
21378
|
var drugMasterUomActions = {
|
|
20410
21379
|
DRUG_UOM_READ: DRUG_UOM_READ,
|
|
@@ -20589,7 +21558,7 @@ var generateReadJson = {
|
|
|
20589
21558
|
}
|
|
20590
21559
|
};
|
|
20591
21560
|
|
|
20592
|
-
var _extraReducers;
|
|
21561
|
+
var _extraReducers$1;
|
|
20593
21562
|
var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequncy_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
20594
21563
|
var _ref2,
|
|
20595
21564
|
rejectWithValue,
|
|
@@ -21044,61 +22013,61 @@ var drugMasterFREQUENCYSlice = createSlice({
|
|
|
21044
22013
|
drug_uom_freq_status: _objectSpread2({}, defaultState.List),
|
|
21045
22014
|
drug_freq_read_single_yt: _objectSpread2({}, defaultState.List)
|
|
21046
22015
|
},
|
|
21047
|
-
extraReducers: (_extraReducers = {}, _defineProperty(_extraReducers, DRUG_FREQUENCY_READ.fulfilled, function (state, action) {
|
|
22016
|
+
extraReducers: (_extraReducers$1 = {}, _defineProperty(_extraReducers$1, DRUG_FREQUENCY_READ.fulfilled, function (state, action) {
|
|
21048
22017
|
state.drug_frequncy_list.loading = false, state.drug_frequncy_list.error = false, state.drug_frequncy_list = action.payload;
|
|
21049
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCY_READ.pending, function (state, action) {
|
|
22018
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCY_READ.pending, function (state, action) {
|
|
21050
22019
|
state.drug_frequncy_list.loading = true, state.drug_frequncy_list.error = false, state.drug_frequncy_list.loading = true;
|
|
21051
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCY_READ.rejected, function (state, action) {
|
|
22020
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCY_READ.rejected, function (state, action) {
|
|
21052
22021
|
state.drug_frequncy_list.loading = false, state.drug_frequncy_list.error = true, state.drug_frequncy_list = action.payload;
|
|
21053
|
-
}), _defineProperty(_extraReducers, DRUG_SCHEDULEBY_READ.fulfilled, function (state, action) {
|
|
22022
|
+
}), _defineProperty(_extraReducers$1, DRUG_SCHEDULEBY_READ.fulfilled, function (state, action) {
|
|
21054
22023
|
state.drug_schedule_list.loading = false, state.drug_schedule_list.error = false, state.drug_schedule_list = action.payload;
|
|
21055
|
-
}), _defineProperty(_extraReducers, DRUG_SCHEDULEBY_READ.pending, function (state, action) {
|
|
22024
|
+
}), _defineProperty(_extraReducers$1, DRUG_SCHEDULEBY_READ.pending, function (state, action) {
|
|
21056
22025
|
state.drug_schedule_list.loading = true, state.drug_schedule_list.error = false, state.drug_schedule_list.loading = true;
|
|
21057
|
-
}), _defineProperty(_extraReducers, DRUG_SCHEDULEBY_READ.rejected, function (state, action) {
|
|
22026
|
+
}), _defineProperty(_extraReducers$1, DRUG_SCHEDULEBY_READ.rejected, function (state, action) {
|
|
21058
22027
|
state.drug_schedule_list.loading = false, state.drug_schedule_list.error = true, state.drug_schedule_list = action.payload;
|
|
21059
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCY_UOM_READ.fulfilled, function (state, action) {
|
|
22028
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCY_UOM_READ.fulfilled, function (state, action) {
|
|
21060
22029
|
state.drug_frequncy_uom_list.loading = false, state.drug_frequncy_uom_list.error = false, state.drug_frequncy_uom_list = action.payload;
|
|
21061
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCY_UOM_READ.pending, function (state, action) {
|
|
22030
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCY_UOM_READ.pending, function (state, action) {
|
|
21062
22031
|
state.drug_frequncy_uom_list.loading = true, state.drug_frequncy_uom_list.error = false, state.drug_frequncy_uom_list.loading = true;
|
|
21063
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCY_UOM_READ.rejected, function (state, action) {
|
|
22032
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCY_UOM_READ.rejected, function (state, action) {
|
|
21064
22033
|
state.drug_frequncy_uom_list.loading = false, state.drug_frequncy_uom_list.error = true, state.drug_frequncy_uom_list = action.payload;
|
|
21065
|
-
}), _defineProperty(_extraReducers, DRUG_WEEKDAYS_READ.fulfilled, function (state, action) {
|
|
22034
|
+
}), _defineProperty(_extraReducers$1, DRUG_WEEKDAYS_READ.fulfilled, function (state, action) {
|
|
21066
22035
|
state.drug_weekdays_list.loading = false, state.drug_weekdays_list.error = false, state.drug_weekdays_list = action.payload;
|
|
21067
|
-
}), _defineProperty(_extraReducers, DRUG_WEEKDAYS_READ.pending, function (state, action) {
|
|
22036
|
+
}), _defineProperty(_extraReducers$1, DRUG_WEEKDAYS_READ.pending, function (state, action) {
|
|
21068
22037
|
state.drug_weekdays_list.loading = true, state.drug_weekdays_list.error = false, state.drug_weekdays_list.loading = true;
|
|
21069
|
-
}), _defineProperty(_extraReducers, DRUG_WEEKDAYS_READ.rejected, function (state, action) {
|
|
22038
|
+
}), _defineProperty(_extraReducers$1, DRUG_WEEKDAYS_READ.rejected, function (state, action) {
|
|
21070
22039
|
state.drug_weekdays_list.loading = false, state.drug_weekdays_list.error = true, state.drug_weekdays_list = action.payload;
|
|
21071
|
-
}), _defineProperty(_extraReducers, DRUG_FIXEDDURATIONTYPE_READ.fulfilled, function (state, action) {
|
|
22040
|
+
}), _defineProperty(_extraReducers$1, DRUG_FIXEDDURATIONTYPE_READ.fulfilled, function (state, action) {
|
|
21072
22041
|
state.drug_fixeddurationType_list.loading = false, state.drug_fixeddurationType_list.error = false, state.drug_fixeddurationType_list = action.payload;
|
|
21073
|
-
}), _defineProperty(_extraReducers, DRUG_FIXEDDURATIONTYPE_READ.pending, function (state, action) {
|
|
22042
|
+
}), _defineProperty(_extraReducers$1, DRUG_FIXEDDURATIONTYPE_READ.pending, function (state, action) {
|
|
21074
22043
|
state.drug_fixeddurationType_list.loading = true, state.drug_fixeddurationType_list.error = false, state.drug_fixeddurationType_list.loading = true;
|
|
21075
|
-
}), _defineProperty(_extraReducers, DRUG_FIXEDDURATIONTYPE_READ.rejected, function (state, action) {
|
|
22044
|
+
}), _defineProperty(_extraReducers$1, DRUG_FIXEDDURATIONTYPE_READ.rejected, function (state, action) {
|
|
21076
22045
|
state.drug_fixeddurationType_list.loading = false, state.drug_fixeddurationType_list.error = true, state.drug_fixeddurationType_list = action.payload;
|
|
21077
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCYTYPE_READ.fulfilled, function (state, action) {
|
|
22046
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCYTYPE_READ.fulfilled, function (state, action) {
|
|
21078
22047
|
state.drug_frequnecyType_list.loading = false, state.drug_frequnecyType_list.error = false, state.drug_frequnecyType_list = action.payload;
|
|
21079
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCYTYPE_READ.pending, function (state, action) {
|
|
22048
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCYTYPE_READ.pending, function (state, action) {
|
|
21080
22049
|
state.drug_frequnecyType_list.loading = true, state.drug_frequnecyType_list.error = false, state.drug_frequnecyType_list.loading = true;
|
|
21081
|
-
}), _defineProperty(_extraReducers, DRUG_FREQUENCYTYPE_READ.rejected, function (state, action) {
|
|
22050
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQUENCYTYPE_READ.rejected, function (state, action) {
|
|
21082
22051
|
state.drug_frequnecyType_list.loading = false, state.drug_frequnecyType_list.error = true, state.drug_frequnecyType_list = action.payload;
|
|
21083
|
-
}), _defineProperty(_extraReducers, UOM_DRUG_FREQ_INSERT.fulfilled, function (state, action) {
|
|
22052
|
+
}), _defineProperty(_extraReducers$1, UOM_DRUG_FREQ_INSERT.fulfilled, function (state, action) {
|
|
21084
22053
|
state.drug_uom_freq_insert.loading = false, state.drug_uom_freq_insert.error = false, state.drug_uom_freq_insert = action.payload;
|
|
21085
|
-
}), _defineProperty(_extraReducers, UOM_DRUG_FREQ_INSERT.pending, function (state, action) {
|
|
22054
|
+
}), _defineProperty(_extraReducers$1, UOM_DRUG_FREQ_INSERT.pending, function (state, action) {
|
|
21086
22055
|
state.drug_uom_freq_insert.loading = true, state.drug_uom_freq_insert.error = false, state.drug_uom_freq_insert.loading = true;
|
|
21087
|
-
}), _defineProperty(_extraReducers, UOM_DRUG_FREQ_INSERT.rejected, function (state, action) {
|
|
22056
|
+
}), _defineProperty(_extraReducers$1, UOM_DRUG_FREQ_INSERT.rejected, function (state, action) {
|
|
21088
22057
|
state.drug_uom_freq_insert.loading = false, state.drug_uom_freq_insert.error = true, state.drug_uom_freq_insert = action.payload;
|
|
21089
|
-
}), _defineProperty(_extraReducers, UOM_DRUG_FREQ_STATUS.fulfilled, function (state, action) {
|
|
22058
|
+
}), _defineProperty(_extraReducers$1, UOM_DRUG_FREQ_STATUS.fulfilled, function (state, action) {
|
|
21090
22059
|
state.drug_uom_freq_status.loading = false, state.drug_uom_freq_status.error = false, state.drug_uom_freq_status = action.payload;
|
|
21091
|
-
}), _defineProperty(_extraReducers, UOM_DRUG_FREQ_STATUS.pending, function (state, action) {
|
|
22060
|
+
}), _defineProperty(_extraReducers$1, UOM_DRUG_FREQ_STATUS.pending, function (state, action) {
|
|
21092
22061
|
state.drug_uom_freq_status.loading = true, state.drug_uom_freq_status.error = false, state.drug_uom_freq_status.loading = true;
|
|
21093
|
-
}), _defineProperty(_extraReducers, UOM_DRUG_FREQ_STATUS.rejected, function (state, action) {
|
|
22062
|
+
}), _defineProperty(_extraReducers$1, UOM_DRUG_FREQ_STATUS.rejected, function (state, action) {
|
|
21094
22063
|
state.drug_uom_freq_status.loading = false, state.drug_uom_freq_status.error = true, state.drug_uom_freq_status = action.payload;
|
|
21095
|
-
}), _defineProperty(_extraReducers, DRUG_FREQ_READ_SINGLE.fulfilled, function (state, action) {
|
|
22064
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQ_READ_SINGLE.fulfilled, function (state, action) {
|
|
21096
22065
|
state.drug_freq_read_single_yt.loading = false, state.drug_freq_read_single_yt.error = false, state.drug_freq_read_single_yt = action.payload;
|
|
21097
|
-
}), _defineProperty(_extraReducers, DRUG_FREQ_READ_SINGLE.pending, function (state, action) {
|
|
22066
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQ_READ_SINGLE.pending, function (state, action) {
|
|
21098
22067
|
state.drug_freq_read_single_yt.loading = true, state.drug_freq_read_single_yt.error = false, state.drug_freq_read_single_yt.loading = true;
|
|
21099
|
-
}), _defineProperty(_extraReducers, DRUG_FREQ_READ_SINGLE.rejected, function (state, action) {
|
|
22068
|
+
}), _defineProperty(_extraReducers$1, DRUG_FREQ_READ_SINGLE.rejected, function (state, action) {
|
|
21100
22069
|
state.drug_freq_read_single_yt.loading = false, state.drug_freq_read_single_yt.error = true, state.drug_freq_read_single_yt = action.payload;
|
|
21101
|
-
}), _extraReducers)
|
|
22070
|
+
}), _extraReducers$1)
|
|
21102
22071
|
});
|
|
21103
22072
|
var drugMasterFrequencyActions = {
|
|
21104
22073
|
DRUG_FREQUENCY_READ: DRUG_FREQUENCY_READ,
|
|
@@ -21117,6 +22086,81 @@ var drug_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_
|
|
|
21117
22086
|
|
|
21118
22087
|
var consultActions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, ageRangeMasterActions), vitalsMasters), orderMasters), drug_actions);
|
|
21119
22088
|
|
|
22089
|
+
var query = {
|
|
22090
|
+
getList: "{\n \"db_name\": \"".concat(dbName, "\",\n \"queryid\": \"2b8b8013-75da-43c0-b2f8-c6f411e7e630\"\n }")
|
|
22091
|
+
};
|
|
22092
|
+
|
|
22093
|
+
var _extraReducers;
|
|
22094
|
+
var GET_PENDING_RESCHEDULE_LIST = createAsyncThunk("getPendingRescheduleListApiSlice/list_pending_reschedule", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
22095
|
+
var _ref2,
|
|
22096
|
+
rejectWithValue,
|
|
22097
|
+
data,
|
|
22098
|
+
returnedData,
|
|
22099
|
+
_args = arguments;
|
|
22100
|
+
|
|
22101
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
22102
|
+
while (1) {
|
|
22103
|
+
switch (_context.prev = _context.next) {
|
|
22104
|
+
case 0:
|
|
22105
|
+
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
22106
|
+
_context.prev = 2;
|
|
22107
|
+
_context.next = 5;
|
|
22108
|
+
return fetchData({
|
|
22109
|
+
body: query.getList
|
|
22110
|
+
}, __baseUrl__$1);
|
|
22111
|
+
|
|
22112
|
+
case 5:
|
|
22113
|
+
data = _context.sent;
|
|
22114
|
+
returnedData = data ? data === null || data === void 0 ? void 0 : data.map(function (_) {
|
|
22115
|
+
var _$name, _$name$, _$role, _$role$, _$role$$role, _$role$$role$coding, _$role$$role$coding$, _$role2, _$role2$, _$role2$$SpecialtyID, _$role2$$SpecialtyID$, _$role2$$SpecialtyID$2;
|
|
22116
|
+
|
|
22117
|
+
return {
|
|
22118
|
+
"resource name": _ === null || _ === void 0 ? void 0 : (_$name = _.name) === null || _$name === void 0 ? void 0 : (_$name$ = _$name[0]) === null || _$name$ === void 0 ? void 0 : _$name$.text,
|
|
22119
|
+
"date": _ === null || _ === void 0 ? void 0 : _.Date,
|
|
22120
|
+
"role": _ === null || _ === void 0 ? void 0 : (_$role = _.role) === null || _$role === void 0 ? void 0 : (_$role$ = _$role[0]) === null || _$role$ === void 0 ? void 0 : (_$role$$role = _$role$.role) === null || _$role$$role === void 0 ? void 0 : (_$role$$role$coding = _$role$$role.coding) === null || _$role$$role$coding === void 0 ? void 0 : (_$role$$role$coding$ = _$role$$role$coding[0]) === null || _$role$$role$coding$ === void 0 ? void 0 : _$role$$role$coding$.display,
|
|
22121
|
+
"speciality": _ === null || _ === void 0 ? void 0 : (_$role2 = _.role) === null || _$role2 === void 0 ? void 0 : (_$role2$ = _$role2[0]) === null || _$role2$ === void 0 ? void 0 : (_$role2$$SpecialtyID = _$role2$.SpecialtyID) === null || _$role2$$SpecialtyID === void 0 ? void 0 : (_$role2$$SpecialtyID$ = _$role2$$SpecialtyID.coding) === null || _$role2$$SpecialtyID$ === void 0 ? void 0 : (_$role2$$SpecialtyID$2 = _$role2$$SpecialtyID$[0]) === null || _$role2$$SpecialtyID$2 === void 0 ? void 0 : _$role2$$SpecialtyID$2.display,
|
|
22122
|
+
"number Of Appointments Affected": _ === null || _ === void 0 ? void 0 : _.affectedappointmentscount,
|
|
22123
|
+
"Action": true
|
|
22124
|
+
};
|
|
22125
|
+
}) : [];
|
|
22126
|
+
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
22127
|
+
data: returnedData
|
|
22128
|
+
}));
|
|
22129
|
+
|
|
22130
|
+
case 10:
|
|
22131
|
+
_context.prev = 10;
|
|
22132
|
+
_context.t0 = _context["catch"](2);
|
|
22133
|
+
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
22134
|
+
message: _context.t0.message
|
|
22135
|
+
})));
|
|
22136
|
+
|
|
22137
|
+
case 13:
|
|
22138
|
+
case "end":
|
|
22139
|
+
return _context.stop();
|
|
22140
|
+
}
|
|
22141
|
+
}
|
|
22142
|
+
}, _callee, null, [[2, 10]]);
|
|
22143
|
+
})));
|
|
22144
|
+
var getPendingRescheduleListApiSlice = createSlice({
|
|
22145
|
+
name: "getPendingRescheduleListApiSlice",
|
|
22146
|
+
initialState: {
|
|
22147
|
+
pending_reschedule_list: _objectSpread2({}, defaultState.List)
|
|
22148
|
+
},
|
|
22149
|
+
extraReducers: (_extraReducers = {}, _defineProperty(_extraReducers, GET_PENDING_RESCHEDULE_LIST.fulfilled, function (state, action) {
|
|
22150
|
+
state.pending_reschedule_list.loading = false, state.pending_reschedule_list.error = false, state.pending_reschedule_list = action.payload;
|
|
22151
|
+
}), _defineProperty(_extraReducers, GET_PENDING_RESCHEDULE_LIST.pending, function (state, action) {
|
|
22152
|
+
state.pending_reschedule_list.loading = true, state.pending_reschedule_list.error = false, state.pending_reschedule_list.loading = true;
|
|
22153
|
+
}), _defineProperty(_extraReducers, GET_PENDING_RESCHEDULE_LIST.rejected, function (state, action) {
|
|
22154
|
+
state.pending_reschedule_list.loading = false, state.pending_reschedule_list.error = true, state.pending_reschedule_list = action.payload;
|
|
22155
|
+
}), _extraReducers)
|
|
22156
|
+
});
|
|
22157
|
+
var pendingRescheduleListActions = {
|
|
22158
|
+
GET_PENDING_RESCHEDULE_LIST: GET_PENDING_RESCHEDULE_LIST
|
|
22159
|
+
};
|
|
22160
|
+
var pendingRescheduleListSlice = getPendingRescheduleListApiSlice.reducer;
|
|
22161
|
+
|
|
22162
|
+
var pendingRescheduleListMasters = _objectSpread2({}, pendingRescheduleListActions);
|
|
22163
|
+
|
|
21120
22164
|
var practitionerActions = _objectSpread2({}, practitioner_role_actions);
|
|
21121
22165
|
var locationActions = _objectSpread2({}, location_master_actions);
|
|
21122
22166
|
var ordertypeActions = _objectSpread2({}, ordertype_role_actions);
|
|
@@ -21149,10 +22193,11 @@ var index = combineReducers({
|
|
|
21149
22193
|
performLocationSlice: performLocationSlice$1,
|
|
21150
22194
|
drugMasterUOMSlice: drugMasterUOMSlice$1,
|
|
21151
22195
|
alertRestictionsMasterSlice: alertRestictionsMasterSlice$1,
|
|
21152
|
-
drugFrequencySlice: drugFrequencySlice
|
|
22196
|
+
drugFrequencySlice: drugFrequencySlice,
|
|
22197
|
+
pendingRescheduleListSlice: pendingRescheduleListSlice
|
|
21153
22198
|
});
|
|
21154
22199
|
|
|
21155
|
-
var actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, practitionerActions), locationActions), consultActions), ordertypeActions), ordernatureActions), availabilityManagementActions);
|
|
22200
|
+
var actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, practitionerActions), locationActions), consultActions), ordertypeActions), ordernatureActions), availabilityManagementActions), pendingRescheduleListMasters);
|
|
21156
22201
|
|
|
21157
22202
|
exports.actions = actions;
|
|
21158
22203
|
exports.rootReducer = index;
|