primarycare-binder 1.1.8 → 1.1.9
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 +81 -10
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -38880,7 +38880,7 @@ var alertInteractionsQuery = {
|
|
|
38880
38880
|
};
|
|
38881
38881
|
var alertIntractionUpsert = {
|
|
38882
38882
|
UpsertAlertInterations: function UpsertAlertInterations(data) {
|
|
38883
|
-
var _data$presType, _data$alerts, _data$
|
|
38883
|
+
var _data$presType, _data$alerts, _data$alerts$, _data$addForm, _data$addForm$reason, _data$addForm2, _data$addForm3, _data$addForm3$reason;
|
|
38884
38884
|
|
|
38885
38885
|
return [{
|
|
38886
38886
|
db_name: dbName,
|
|
@@ -38895,16 +38895,12 @@ var alertIntractionUpsert = {
|
|
|
38895
38895
|
encountertype: data === null || data === void 0 ? void 0 : data.encountertype,
|
|
38896
38896
|
encounter_Id: data === null || data === void 0 ? void 0 : data.encounterid,
|
|
38897
38897
|
presType: data === null || data === void 0 ? void 0 : (_data$presType = data.presType) === null || _data$presType === void 0 ? void 0 : _data$presType.Value,
|
|
38898
|
-
rxId: "
|
|
38898
|
+
rxId: "",
|
|
38899
38899
|
rxDate: data === null || data === void 0 ? void 0 : data.rxDate,
|
|
38900
38900
|
interactionMessage: [{
|
|
38901
38901
|
seqNo: 1,
|
|
38902
|
-
reactionCode: data === null || data === void 0 ? void 0 :
|
|
38903
|
-
|
|
38904
|
-
}),
|
|
38905
|
-
alertMessage: data === null || data === void 0 ? void 0 : (_data$alerts2 = data.alerts) === null || _data$alerts2 === void 0 ? void 0 : _data$alerts2.map(function (val) {
|
|
38906
|
-
return val.Message;
|
|
38907
|
-
}),
|
|
38902
|
+
reactionCode: data === null || data === void 0 ? void 0 : data.alertReasonCode,
|
|
38903
|
+
alertMessage: data === null || data === void 0 ? void 0 : (_data$alerts = data.alerts) === null || _data$alerts === void 0 ? void 0 : (_data$alerts$ = _data$alerts[0]) === null || _data$alerts$ === void 0 ? void 0 : _data$alerts$.Message,
|
|
38908
38904
|
overrideReasonCode: data === null || data === void 0 ? void 0 : (_data$addForm = data.addForm) === null || _data$addForm === void 0 ? void 0 : (_data$addForm$reason = _data$addForm.reason) === null || _data$addForm$reason === void 0 ? void 0 : _data$addForm$reason.label,
|
|
38909
38905
|
overrideNotes: data === null || data === void 0 ? void 0 : (_data$addForm2 = data.addForm) === null || _data$addForm2 === void 0 ? void 0 : _data$addForm2.Others,
|
|
38910
38906
|
overrideById: data === null || data === void 0 ? void 0 : (_data$addForm3 = data.addForm) === null || _data$addForm3 === void 0 ? void 0 : (_data$addForm3$reason = _data$addForm3.reason) === null || _data$addForm3$reason === void 0 ? void 0 : _data$addForm3$reason.label
|
|
@@ -38913,6 +38909,16 @@ var alertIntractionUpsert = {
|
|
|
38913
38909
|
}];
|
|
38914
38910
|
}
|
|
38915
38911
|
};
|
|
38912
|
+
var reasonTypeCode = {
|
|
38913
|
+
reasonTypeCodeRead: function reasonTypeCodeRead(display) {
|
|
38914
|
+
return {
|
|
38915
|
+
db_name: dbName,
|
|
38916
|
+
entity: "CodingMaster",
|
|
38917
|
+
filter: "CodingMaster.Type=='REACTIONTYPE' && CodingMaster.activestatus==true && CodingMaster.status==true and lower(CodingMaster.display)==lower('".concat(display, "')"),
|
|
38918
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
38919
|
+
};
|
|
38920
|
+
}
|
|
38921
|
+
};
|
|
38916
38922
|
|
|
38917
38923
|
var _extraReducers$5;
|
|
38918
38924
|
var ALERT_INTERACTIONS = createAsyncThunk("alertIntractionsSlice/alertIntractions", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -39012,11 +39018,65 @@ var ALERT_INTERACTIONS_UPERT = createAsyncThunk("alertIntractionsSlice/alertInte
|
|
|
39012
39018
|
}
|
|
39013
39019
|
}, _callee2, null, [[2, 11]]);
|
|
39014
39020
|
})));
|
|
39021
|
+
var REASON_TYPE_CODE_READ = createAsyncThunk("alertIntractionsSlice/reason_type_code", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
39022
|
+
var payload,
|
|
39023
|
+
_ref6,
|
|
39024
|
+
rejectWithValue,
|
|
39025
|
+
list,
|
|
39026
|
+
display,
|
|
39027
|
+
queriesjson,
|
|
39028
|
+
res,
|
|
39029
|
+
_args3 = arguments;
|
|
39030
|
+
|
|
39031
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
39032
|
+
while (1) {
|
|
39033
|
+
switch (_context3.prev = _context3.next) {
|
|
39034
|
+
case 0:
|
|
39035
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
39036
|
+
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
39037
|
+
_context3.prev = 2;
|
|
39038
|
+
list = payload.list;
|
|
39039
|
+
|
|
39040
|
+
if (list === "Drug-AllergyIngredient-Interaction") {
|
|
39041
|
+
display = "Drug-to-Allergy Interaction";
|
|
39042
|
+
} else if (list === "Drug-Drug-Interaction") {
|
|
39043
|
+
display = "Drug-to-Drug Interaction";
|
|
39044
|
+
} else if (list === "Drug-Disease-Interaction") {
|
|
39045
|
+
display = "Drug-to-Disease Interaction";
|
|
39046
|
+
}
|
|
39047
|
+
|
|
39048
|
+
queriesjson = reasonTypeCode.reasonTypeCodeRead(display);
|
|
39049
|
+
_context3.next = 8;
|
|
39050
|
+
return fetchData$3({
|
|
39051
|
+
body: JSON.stringify(queriesjson)
|
|
39052
|
+
}, __readDocumentUrl__);
|
|
39053
|
+
|
|
39054
|
+
case 8:
|
|
39055
|
+
res = _context3.sent;
|
|
39056
|
+
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
39057
|
+
data: res
|
|
39058
|
+
}));
|
|
39059
|
+
|
|
39060
|
+
case 12:
|
|
39061
|
+
_context3.prev = 12;
|
|
39062
|
+
_context3.t0 = _context3["catch"](2);
|
|
39063
|
+
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
39064
|
+
message: _context3.t0.message
|
|
39065
|
+
})));
|
|
39066
|
+
|
|
39067
|
+
case 15:
|
|
39068
|
+
case "end":
|
|
39069
|
+
return _context3.stop();
|
|
39070
|
+
}
|
|
39071
|
+
}
|
|
39072
|
+
}, _callee3, null, [[2, 12]]);
|
|
39073
|
+
})));
|
|
39015
39074
|
var alertIntractionsSlice = createSlice({
|
|
39016
39075
|
name: "alertIntractionsSlice",
|
|
39017
39076
|
initialState: {
|
|
39018
39077
|
alert_interactions: _objectSpread2({}, defaultState.Info),
|
|
39019
|
-
alertInteraction_upsert: _objectSpread2({}, defaultState.Info)
|
|
39078
|
+
alertInteraction_upsert: _objectSpread2({}, defaultState.Info),
|
|
39079
|
+
reason_type_code: _objectSpread2({}, defaultState.Info)
|
|
39020
39080
|
},
|
|
39021
39081
|
extraReducers: (_extraReducers$5 = {}, _defineProperty(_extraReducers$5, ALERT_INTERACTIONS.fulfilled, function (state, action) {
|
|
39022
39082
|
var _action$payload;
|
|
@@ -39038,11 +39098,22 @@ var alertIntractionsSlice = createSlice({
|
|
|
39038
39098
|
var _action$payload4;
|
|
39039
39099
|
|
|
39040
39100
|
state.alertInteraction_upsert.loading = false, state.alertInteraction_upsert.error = true, state.alertInteraction_upsert = (_action$payload4 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload4 !== void 0 ? _action$payload4 : {};
|
|
39101
|
+
}), _defineProperty(_extraReducers$5, REASON_TYPE_CODE_READ.fulfilled, function (state, action) {
|
|
39102
|
+
var _action$payload5;
|
|
39103
|
+
|
|
39104
|
+
state.reason_type_code.loading = false, state.reason_type_code.error = false, state.reason_type_code = (_action$payload5 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload5 !== void 0 ? _action$payload5 : {};
|
|
39105
|
+
}), _defineProperty(_extraReducers$5, REASON_TYPE_CODE_READ.pending, function (state, action) {
|
|
39106
|
+
state.reason_type_code.error = false, state.reason_type_code.loading = true;
|
|
39107
|
+
}), _defineProperty(_extraReducers$5, REASON_TYPE_CODE_READ.rejected, function (state, action) {
|
|
39108
|
+
var _action$payload6;
|
|
39109
|
+
|
|
39110
|
+
state.reason_type_code.loading = false, state.reason_type_code.error = true, state.reason_type_code = (_action$payload6 = action === null || action === void 0 ? void 0 : action.payload) !== null && _action$payload6 !== void 0 ? _action$payload6 : {};
|
|
39041
39111
|
}), _extraReducers$5)
|
|
39042
39112
|
});
|
|
39043
39113
|
var alertIntractionActions = {
|
|
39044
39114
|
ALERT_INTERACTIONS: ALERT_INTERACTIONS,
|
|
39045
|
-
ALERT_INTERACTIONS_UPERT: ALERT_INTERACTIONS_UPERT
|
|
39115
|
+
ALERT_INTERACTIONS_UPERT: ALERT_INTERACTIONS_UPERT,
|
|
39116
|
+
REASON_TYPE_CODE_READ: REASON_TYPE_CODE_READ
|
|
39046
39117
|
};
|
|
39047
39118
|
var alertIntractionsSlice$1 = alertIntractionsSlice.reducer;
|
|
39048
39119
|
|