primary_care_admin_binder 0.1.30 → 0.1.31
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 +11 -7
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -28009,7 +28009,7 @@ var user_actions = _objectSpread2({}, userActions);
|
|
|
28009
28009
|
var user_management_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, roles_actions), repository_actions), permission_actions), person_actions), user_actions);
|
|
28010
28010
|
|
|
28011
28011
|
var generateJson$6 = function generateJson(data, _key) {
|
|
28012
|
-
var _data$approvalData, _data$orderingFacilit, _data$orderingFacilit2, _data$ServiceApplicab, _data$ServiceApplicab2, _data$ruleType$_id, _data$ruleType, _data$PrivilegeType$_, _data$PrivilegeType, _data$status;
|
|
28012
|
+
var _data$approvalData, _data$orderingFacilit, _data$orderingFacilit2, _data$ServiceApplicab, _data$ServiceApplicab2, _data$orderCriteria, _data$patientCriteria, _data$practitionerCri, _data$ruleType$_id, _data$ruleType, _data$PrivilegeType$_, _data$PrivilegeType, _data$status, _data$alertText;
|
|
28013
28013
|
|
|
28014
28014
|
var filter = {};
|
|
28015
28015
|
|
|
@@ -28039,13 +28039,14 @@ var generateJson$6 = function generateJson(data, _key) {
|
|
|
28039
28039
|
"id": 0,
|
|
28040
28040
|
"orgn_code": (_data$orderingFacilit = data === null || data === void 0 ? void 0 : (_data$orderingFacilit2 = data.orderingFacility) === null || _data$orderingFacilit2 === void 0 ? void 0 : _data$orderingFacilit2._id) !== null && _data$orderingFacilit !== void 0 ? _data$orderingFacilit : "",
|
|
28041
28041
|
"service_applicablity": (_data$ServiceApplicab = data === null || data === void 0 ? void 0 : (_data$ServiceApplicab2 = data.ServiceApplicabiliy) === null || _data$ServiceApplicab2 === void 0 ? void 0 : _data$ServiceApplicab2._id) !== null && _data$ServiceApplicab !== void 0 ? _data$ServiceApplicab : '',
|
|
28042
|
-
"order_catalog_criteria": [],
|
|
28043
|
-
"patient_criteria": [],
|
|
28044
|
-
"pract_criteria": [],
|
|
28042
|
+
"order_catalog_criteria": (_data$orderCriteria = data === null || data === void 0 ? void 0 : data.orderCriteria) !== null && _data$orderCriteria !== void 0 ? _data$orderCriteria : [],
|
|
28043
|
+
"patient_criteria": (_data$patientCriteria = data === null || data === void 0 ? void 0 : data.patientCriteria) !== null && _data$patientCriteria !== void 0 ? _data$patientCriteria : [],
|
|
28044
|
+
"pract_criteria": (_data$practitionerCri = data === null || data === void 0 ? void 0 : data.practitionerCriteria) !== null && _data$practitionerCri !== void 0 ? _data$practitionerCri : [],
|
|
28045
28045
|
"appr_leveles": (appr_leveles_data === null || appr_leveles_data === void 0 ? void 0 : appr_leveles_data.length) > 0 ? _toConsumableArray(appr_leveles_data || []) : [],
|
|
28046
28046
|
"rule_type": (_data$ruleType$_id = data === null || data === void 0 ? void 0 : (_data$ruleType = data.ruleType) === null || _data$ruleType === void 0 ? void 0 : _data$ruleType._id) !== null && _data$ruleType$_id !== void 0 ? _data$ruleType$_id : '',
|
|
28047
28047
|
"privilege_type": (_data$PrivilegeType$_ = data === null || data === void 0 ? void 0 : (_data$PrivilegeType = data.PrivilegeType) === null || _data$PrivilegeType === void 0 ? void 0 : _data$PrivilegeType._id) !== null && _data$PrivilegeType$_ !== void 0 ? _data$PrivilegeType$_ : '',
|
|
28048
|
-
"status": (_data$status = data.status) !== null && _data$status !== void 0 ? _data$status : false
|
|
28048
|
+
"status": (_data$status = data.status) !== null && _data$status !== void 0 ? _data$status : false,
|
|
28049
|
+
"alert_test_message": (_data$alertText = data.alertText) !== null && _data$alertText !== void 0 ? _data$alertText : ""
|
|
28049
28050
|
}
|
|
28050
28051
|
})];
|
|
28051
28052
|
};
|
|
@@ -28214,8 +28215,8 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
28214
28215
|
privillage_type = {
|
|
28215
28216
|
"db_name": dbName,
|
|
28216
28217
|
"entity": "CodeableConceptMaster",
|
|
28217
|
-
"sort": "
|
|
28218
|
-
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='PRIVILEGETYPE'
|
|
28218
|
+
"sort": "CodeableConceptMaster.text",
|
|
28219
|
+
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='PRIVILEGETYPE'",
|
|
28219
28220
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28220
28221
|
};
|
|
28221
28222
|
_context3.next = 10;
|
|
@@ -28287,9 +28288,12 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
28287
28288
|
});
|
|
28288
28289
|
privillage_type_data_arr = [];
|
|
28289
28290
|
privillage_type_data === null || privillage_type_data === void 0 ? void 0 : (_privillage_type_data = privillage_type_data.result) === null || _privillage_type_data === void 0 ? void 0 : _privillage_type_data.map(function (v) {
|
|
28291
|
+
var _v$text;
|
|
28292
|
+
|
|
28290
28293
|
privillage_type_data_arr.push({
|
|
28291
28294
|
value: v.coding[0].display ? v.coding[0].display : '',
|
|
28292
28295
|
label: v.coding[0].display ? v.coding[0].display : '',
|
|
28296
|
+
text: (_v$text = v === null || v === void 0 ? void 0 : v.text) !== null && _v$text !== void 0 ? _v$text : '',
|
|
28293
28297
|
_id: v.coding[0]._id ? v.coding[0]._id : ''
|
|
28294
28298
|
});
|
|
28295
28299
|
});
|