primary_care_admin_binder 0.1.149 → 0.1.151
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 +103 -52
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11114,7 +11114,8 @@ var query_ids = {
|
|
|
11114
11114
|
"rcChargeRateSearch": "b6adb851-754e-4c7d-964f-b217e33945dd",
|
|
11115
11115
|
"resOrderCatalogVitalCode": "493389da-6789-4ed0-89e4-a2d546025f1e",
|
|
11116
11116
|
"gmLoadQuery": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e",
|
|
11117
|
-
"signInApiSlice/getpermissiondata": "1a91eea3-8c88-4f78-87c1-fcd6af54e81f"
|
|
11117
|
+
"signInApiSlice/getpermissiondata": "1a91eea3-8c88-4f78-87c1-fcd6af54e81f",
|
|
11118
|
+
"getAllergyList": "777aa602-1905-48d3-b1cd-db1cca7d7697"
|
|
11118
11119
|
};
|
|
11119
11120
|
|
|
11120
11121
|
var query$9 = {
|
|
@@ -15302,6 +15303,18 @@ var masterQuery$7 = {
|
|
|
15302
15303
|
activestatus: true
|
|
15303
15304
|
}
|
|
15304
15305
|
};
|
|
15306
|
+
},
|
|
15307
|
+
speciality_data: function speciality_data() {
|
|
15308
|
+
return {
|
|
15309
|
+
db_name: _dbName,
|
|
15310
|
+
queryid: "b283129b-9841-419b-bdfc-de5105ebbad7",
|
|
15311
|
+
filter: {
|
|
15312
|
+
type: "SPECIALTY",
|
|
15313
|
+
code: "",
|
|
15314
|
+
status: "true",
|
|
15315
|
+
sortField: "display"
|
|
15316
|
+
}
|
|
15317
|
+
};
|
|
15305
15318
|
}
|
|
15306
15319
|
};
|
|
15307
15320
|
|
|
@@ -16087,6 +16100,46 @@ var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_m
|
|
|
16087
16100
|
}
|
|
16088
16101
|
}, _callee10, null, [[1, 3]]);
|
|
16089
16102
|
})));
|
|
16103
|
+
var SPECIALITY_DATA = createAsyncThunk("locationMasterSlice/speciality_data", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
16104
|
+
var _ref24,
|
|
16105
|
+
rejectWithValue,
|
|
16106
|
+
data_arr,
|
|
16107
|
+
arry,
|
|
16108
|
+
_args11 = arguments,
|
|
16109
|
+
_t11;
|
|
16110
|
+
return _regenerator().w(function (_context11) {
|
|
16111
|
+
while (1) switch (_context11.p = _context11.n) {
|
|
16112
|
+
case 0:
|
|
16113
|
+
_ref24 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
16114
|
+
_context11.p = 1;
|
|
16115
|
+
_context11.n = 2;
|
|
16116
|
+
return fetchData({
|
|
16117
|
+
body: JSON.stringify(masterQuery$7.speciality_data())
|
|
16118
|
+
}, __baseUrl__$1);
|
|
16119
|
+
case 2:
|
|
16120
|
+
data_arr = _context11.v;
|
|
16121
|
+
arry = [];
|
|
16122
|
+
_context11.n = 3;
|
|
16123
|
+
return data_arr === null || data_arr === void 0 ? void 0 : data_arr.map(function (val) {
|
|
16124
|
+
var _val$display2;
|
|
16125
|
+
arry.push(_objectSpread2({
|
|
16126
|
+
value: (_val$display2 = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display2 !== void 0 ? _val$display2 : "",
|
|
16127
|
+
label: val._id
|
|
16128
|
+
}, val));
|
|
16129
|
+
});
|
|
16130
|
+
case 3:
|
|
16131
|
+
return _context11.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
16132
|
+
data: arry
|
|
16133
|
+
}));
|
|
16134
|
+
case 4:
|
|
16135
|
+
_context11.p = 4;
|
|
16136
|
+
_t11 = _context11.v;
|
|
16137
|
+
return _context11.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
16138
|
+
message: _t11.message
|
|
16139
|
+
})));
|
|
16140
|
+
}
|
|
16141
|
+
}, _callee11, null, [[1, 4]]);
|
|
16142
|
+
})));
|
|
16090
16143
|
var locationMasterSlice = createSlice({
|
|
16091
16144
|
name: "locationMasterAPISlice",
|
|
16092
16145
|
initialState: {
|
|
@@ -16101,7 +16154,8 @@ var locationMasterSlice = createSlice({
|
|
|
16101
16154
|
location_masters_isd: _objectSpread2({}, defaultState.List),
|
|
16102
16155
|
location_masters_use: _objectSpread2({}, defaultState.List),
|
|
16103
16156
|
location_masters_priority: _objectSpread2({}, defaultState.List),
|
|
16104
|
-
locationmasterbyid: _objectSpread2({}, defaultState.List)
|
|
16157
|
+
locationmasterbyid: _objectSpread2({}, defaultState.List),
|
|
16158
|
+
speciality_data: _objectSpread2({}, defaultState.List)
|
|
16105
16159
|
},
|
|
16106
16160
|
extraReducers: (_extraReducers$x = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTERS_ENTITYTYPE.fulfilled, function (state, action) {
|
|
16107
16161
|
state.location_masters_entitytype.loading = false, state.location_masters_entitytype.error = false, state.location_masters_entitytype = action.payload;
|
|
@@ -16163,7 +16217,7 @@ var locationMasterSlice = createSlice({
|
|
|
16163
16217
|
state.location_masters_use.loading = true, state.location_masters_use.error = false, state.location_masters_use.loading = true;
|
|
16164
16218
|
}), LOCATION_MASTER_USE.rejected, function (state, action) {
|
|
16165
16219
|
state.location_masters_use.loading = false, state.location_masters_use.error = true, state.location_masters_use = action.payload;
|
|
16166
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
16220
|
+
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extraReducers$x, LOCATION_MASTER_PRIORITY.fulfilled, function (state, action) {
|
|
16167
16221
|
state.location_masters_priority.loading = false, state.location_masters_priority.error = false, state.location_masters_priority = action.payload;
|
|
16168
16222
|
}), LOCATION_MASTER_PRIORITY.pending, function (state, action) {
|
|
16169
16223
|
state.location_masters_priority.loading = true, state.location_masters_priority.error = false, state.location_masters_priority.loading = true;
|
|
@@ -16175,6 +16229,12 @@ var locationMasterSlice = createSlice({
|
|
|
16175
16229
|
state.locationmasterbyid.loading = true, state.locationmasterbyid.error = false, state.locationmasterbyid.loading = true;
|
|
16176
16230
|
}), LOCATION_MASTER_GET_BY_ID.rejected, function (state, action) {
|
|
16177
16231
|
state.locationmasterbyid.loading = false, state.locationmasterbyid.error = true, state.locationmasterbyid = action.payload;
|
|
16232
|
+
}), SPECIALITY_DATA.fulfilled, function (state, action) {
|
|
16233
|
+
state.speciality_data.loading = false, state.speciality_data.error = false, state.speciality_data = action.payload;
|
|
16234
|
+
}), SPECIALITY_DATA.pending, function (state, action) {
|
|
16235
|
+
state.speciality_data.loading = true, state.speciality_data.error = false, state.speciality_data.loading = true;
|
|
16236
|
+
}), SPECIALITY_DATA.rejected, function (state, action) {
|
|
16237
|
+
state.speciality_data.loading = false, state.speciality_data.error = true, state.speciality_data = action.payload;
|
|
16178
16238
|
}))
|
|
16179
16239
|
});
|
|
16180
16240
|
var locationMasterActions = {
|
|
@@ -16189,7 +16249,8 @@ var locationMasterActions = {
|
|
|
16189
16249
|
LOCATION_MASTER_ISD: LOCATION_MASTER_ISD,
|
|
16190
16250
|
LOCATION_MASTER_USE: LOCATION_MASTER_USE,
|
|
16191
16251
|
LOCATION_MASTER_PRIORITY: LOCATION_MASTER_PRIORITY,
|
|
16192
|
-
LOCATION_MASTER_GET_BY_ID: LOCATION_MASTER_GET_BY_ID
|
|
16252
|
+
LOCATION_MASTER_GET_BY_ID: LOCATION_MASTER_GET_BY_ID,
|
|
16253
|
+
SPECIALITY_DATA: SPECIALITY_DATA
|
|
16193
16254
|
};
|
|
16194
16255
|
var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
16195
16256
|
|
|
@@ -39517,15 +39578,13 @@ var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
|
39517
39578
|
var query$3 = {
|
|
39518
39579
|
getList: function getList(page, perpage, search) {
|
|
39519
39580
|
return {
|
|
39520
|
-
db_name:
|
|
39521
|
-
|
|
39522
|
-
filter:
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
}
|
|
39527
|
-
return_fields: "{TotalCount:count(FOR cnt IN AllergyMaster FILTER (LIKE(AllergyMaster.code,'%".concat(search, "%',true) || LIKE(AllergyMaster.shortdesc,'%").concat(search, "%',true) || LIKE(AllergyMaster.longdesc,'%").concat(search, "%',true) ) && cnt.activestatus==true return cnt._key),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}"),
|
|
39528
|
-
sort: "AllergyMaster.shortdesc"
|
|
39581
|
+
db_name: dbName,
|
|
39582
|
+
queryid: query_ids.getAllergyList,
|
|
39583
|
+
filter: {
|
|
39584
|
+
search: "%".concat(search, "%"),
|
|
39585
|
+
page: page,
|
|
39586
|
+
perPage: perpage
|
|
39587
|
+
}
|
|
39529
39588
|
};
|
|
39530
39589
|
}
|
|
39531
39590
|
};
|
|
@@ -39548,13 +39607,13 @@ var generateJson$1 = function generateJson(data) {
|
|
|
39548
39607
|
metadata_dbname: metaDatadbName$1
|
|
39549
39608
|
}, filter), {}, {
|
|
39550
39609
|
doc: {
|
|
39551
|
-
id: (_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : 0,
|
|
39552
|
-
extsystemsourceid: (_data$extsystemsource = data === null || data === void 0 ? void 0 : data.extsystemsourceid) !== null && _data$extsystemsource !== void 0 ? _data$extsystemsource : "",
|
|
39553
|
-
allergytypeind: (_data$allergytypeind = data === null || data === void 0 ? void 0 : data.allergytypeind) !== null && _data$allergytypeind !== void 0 ? _data$allergytypeind : "",
|
|
39610
|
+
id: Number((_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : 0),
|
|
39611
|
+
extsystemsourceid: String((_data$extsystemsource = data === null || data === void 0 ? void 0 : data.extsystemsourceid) !== null && _data$extsystemsource !== void 0 ? _data$extsystemsource : ""),
|
|
39612
|
+
allergytypeind: String((_data$allergytypeind = data === null || data === void 0 ? void 0 : data.allergytypeind) !== null && _data$allergytypeind !== void 0 ? _data$allergytypeind : ""),
|
|
39554
39613
|
code: (_data$code = data === null || data === void 0 ? void 0 : data.code) !== null && _data$code !== void 0 ? _data$code : "",
|
|
39555
39614
|
shortdesc: (_data$shortdesc = data === null || data === void 0 ? void 0 : data.shortdesc) !== null && _data$shortdesc !== void 0 ? _data$shortdesc : "",
|
|
39556
39615
|
longdesc: (_data$longdesc = data === null || data === void 0 ? void 0 : data.longdesc) !== null && _data$longdesc !== void 0 ? _data$longdesc : "",
|
|
39557
|
-
conceptidtype: (_data$conceptidtype = data === null || data === void 0 ? void 0 : data.conceptidtype) !== null && _data$conceptidtype !== void 0 ? _data$conceptidtype : "",
|
|
39616
|
+
conceptidtype: String((_data$conceptidtype = data === null || data === void 0 ? void 0 : data.conceptidtype) !== null && _data$conceptidtype !== void 0 ? _data$conceptidtype : ""),
|
|
39558
39617
|
status: data === null || data === void 0 ? void 0 : data.status
|
|
39559
39618
|
}
|
|
39560
39619
|
})];
|
|
@@ -39564,28 +39623,29 @@ var generateReadJSON$1 = function generateReadJSON(data) {
|
|
|
39564
39623
|
var arr = [];
|
|
39565
39624
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
39566
39625
|
data === null || data === void 0 || data.map(function (val, i) {
|
|
39567
|
-
var _val$
|
|
39626
|
+
var _val$AllergyMaster, _val$TotalCount, _source$_id, _source$_key, _source$allergytypein, _source$allergytypein2, _source$allergytypein3, _source$allergytypein4, _source$allergytypein5, _source$code, _source$conceptidtype, _source$conceptidtype2, _source$conceptidtype3, _source$conceptidtype4, _source$conceptidtype5, _source$extsystemsour, _source$extsystemsour2, _source$extsystemsour3, _source$extsystemsour4, _source$extsystemsour5, _source$id, _source$longdesc, _source$shortdesc, _source$status;
|
|
39627
|
+
var source = (_val$AllergyMaster = val === null || val === void 0 ? void 0 : val.AllergyMaster) !== null && _val$AllergyMaster !== void 0 ? _val$AllergyMaster : val;
|
|
39568
39628
|
var obj = {
|
|
39569
|
-
TotalCount: (_val$TotalCount = val === null || val === void 0 ? void 0 : val.TotalCount) !== null && _val$TotalCount !== void 0 ? _val$TotalCount : 0,
|
|
39570
|
-
_id: (
|
|
39571
|
-
_key: (
|
|
39572
|
-
allergytypeind:
|
|
39573
|
-
value:
|
|
39574
|
-
label:
|
|
39575
|
-
} : {},
|
|
39576
|
-
code: (
|
|
39577
|
-
conceptidtype:
|
|
39578
|
-
value:
|
|
39579
|
-
label:
|
|
39580
|
-
} : {},
|
|
39581
|
-
extsystemsourceid:
|
|
39582
|
-
value:
|
|
39583
|
-
label:
|
|
39584
|
-
} : {},
|
|
39585
|
-
id: (
|
|
39586
|
-
longdesc: (
|
|
39587
|
-
shortdesc: (
|
|
39588
|
-
status: (
|
|
39629
|
+
TotalCount: Number((_val$TotalCount = val === null || val === void 0 ? void 0 : val.TotalCount) !== null && _val$TotalCount !== void 0 ? _val$TotalCount : 0),
|
|
39630
|
+
_id: (_source$_id = source === null || source === void 0 ? void 0 : source._id) !== null && _source$_id !== void 0 ? _source$_id : "",
|
|
39631
|
+
_key: (_source$_key = source === null || source === void 0 ? void 0 : source._key) !== null && _source$_key !== void 0 ? _source$_key : "",
|
|
39632
|
+
allergytypeind: source !== null && source !== void 0 && (_source$allergytypein = source.allergytypeind) !== null && _source$allergytypein !== void 0 && _source$allergytypein._id && source !== null && source !== void 0 && (_source$allergytypein2 = source.allergytypeind) !== null && _source$allergytypein2 !== void 0 && _source$allergytypein2.shortdesc ? {
|
|
39633
|
+
value: source === null || source === void 0 || (_source$allergytypein3 = source.allergytypeind) === null || _source$allergytypein3 === void 0 ? void 0 : _source$allergytypein3._id,
|
|
39634
|
+
label: source === null || source === void 0 || (_source$allergytypein4 = source.allergytypeind) === null || _source$allergytypein4 === void 0 ? void 0 : _source$allergytypein4.shortdesc
|
|
39635
|
+
} : (_source$allergytypein5 = source === null || source === void 0 ? void 0 : source.allergytypeind) !== null && _source$allergytypein5 !== void 0 ? _source$allergytypein5 : {},
|
|
39636
|
+
code: (_source$code = source === null || source === void 0 ? void 0 : source.code) !== null && _source$code !== void 0 ? _source$code : "",
|
|
39637
|
+
conceptidtype: source !== null && source !== void 0 && (_source$conceptidtype = source.conceptidtype) !== null && _source$conceptidtype !== void 0 && _source$conceptidtype._id && source !== null && source !== void 0 && (_source$conceptidtype2 = source.conceptidtype) !== null && _source$conceptidtype2 !== void 0 && _source$conceptidtype2.shortdesc ? {
|
|
39638
|
+
value: source === null || source === void 0 || (_source$conceptidtype3 = source.conceptidtype) === null || _source$conceptidtype3 === void 0 ? void 0 : _source$conceptidtype3._id,
|
|
39639
|
+
label: source === null || source === void 0 || (_source$conceptidtype4 = source.conceptidtype) === null || _source$conceptidtype4 === void 0 ? void 0 : _source$conceptidtype4.shortdesc
|
|
39640
|
+
} : (_source$conceptidtype5 = source === null || source === void 0 ? void 0 : source.conceptidtype) !== null && _source$conceptidtype5 !== void 0 ? _source$conceptidtype5 : {},
|
|
39641
|
+
extsystemsourceid: source !== null && source !== void 0 && (_source$extsystemsour = source.extsystemsourceid) !== null && _source$extsystemsour !== void 0 && _source$extsystemsour._id && source !== null && source !== void 0 && (_source$extsystemsour2 = source.extsystemsourceid) !== null && _source$extsystemsour2 !== void 0 && _source$extsystemsour2.shortdesc ? {
|
|
39642
|
+
value: source === null || source === void 0 || (_source$extsystemsour3 = source.extsystemsourceid) === null || _source$extsystemsour3 === void 0 ? void 0 : _source$extsystemsour3._id,
|
|
39643
|
+
label: source === null || source === void 0 || (_source$extsystemsour4 = source.extsystemsourceid) === null || _source$extsystemsour4 === void 0 ? void 0 : _source$extsystemsour4.shortdesc
|
|
39644
|
+
} : (_source$extsystemsour5 = source === null || source === void 0 ? void 0 : source.extsystemsourceid) !== null && _source$extsystemsour5 !== void 0 ? _source$extsystemsour5 : {},
|
|
39645
|
+
id: (_source$id = source === null || source === void 0 ? void 0 : source.id) !== null && _source$id !== void 0 ? _source$id : 0,
|
|
39646
|
+
longdesc: (_source$longdesc = source === null || source === void 0 ? void 0 : source.longdesc) !== null && _source$longdesc !== void 0 ? _source$longdesc : "",
|
|
39647
|
+
shortdesc: (_source$shortdesc = source === null || source === void 0 ? void 0 : source.shortdesc) !== null && _source$shortdesc !== void 0 ? _source$shortdesc : "",
|
|
39648
|
+
status: (_source$status = source === null || source === void 0 ? void 0 : source.status) !== null && _source$status !== void 0 ? _source$status : true
|
|
39589
39649
|
};
|
|
39590
39650
|
arr.push(obj);
|
|
39591
39651
|
});
|
|
@@ -39705,10 +39765,10 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
39705
39765
|
_context4.n = 2;
|
|
39706
39766
|
return fetchData({
|
|
39707
39767
|
body: JSON.stringify(query$3.getList(_page, _perpage, _search ? _search : ''))
|
|
39708
|
-
},
|
|
39768
|
+
}, __baseUrl__$1);
|
|
39709
39769
|
case 2:
|
|
39710
39770
|
data = _context4.v;
|
|
39711
|
-
readJSON = generateReadJSON$1(data
|
|
39771
|
+
readJSON = generateReadJSON$1(data);
|
|
39712
39772
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
39713
39773
|
data: readJSON
|
|
39714
39774
|
}));
|
|
@@ -40807,15 +40867,6 @@ var flexCriteriaApp = _objectSpread2({}, flexCriteriaActions);
|
|
|
40807
40867
|
|
|
40808
40868
|
var query$2 = {
|
|
40809
40869
|
diagnosisList: function diagnosisList(level, code) {
|
|
40810
|
-
// return {
|
|
40811
|
-
// "db_name": `${dbName}`,
|
|
40812
|
-
// "filter": {
|
|
40813
|
-
// "icdcode": code??"",
|
|
40814
|
-
// "parentlvnum": parentvl,
|
|
40815
|
-
// "childlvnum": childvl
|
|
40816
|
-
// },
|
|
40817
|
-
// "queryid": "9fabdc11-1864-432d-9916-bf36c5d9cc57"
|
|
40818
|
-
// }
|
|
40819
40870
|
return {
|
|
40820
40871
|
"db_name": "".concat(dbName),
|
|
40821
40872
|
"entity": "Diagnosis",
|
|
@@ -40852,12 +40903,12 @@ var query$2 = {
|
|
|
40852
40903
|
}];
|
|
40853
40904
|
},
|
|
40854
40905
|
searchList: function searchList(text) {
|
|
40906
|
+
var searchText = text ? text.replace(/\./g, '_') : '';
|
|
40855
40907
|
return {
|
|
40856
40908
|
"db_name": "".concat(dbName),
|
|
40857
40909
|
"entity": "Diagnosis",
|
|
40858
|
-
"filter": "(
|
|
40859
|
-
"return_fields": "Diagnosis"
|
|
40860
|
-
"sort": "Diagnosis.icdname"
|
|
40910
|
+
"filter": "((icdcode ILIKE '%".concat(searchText, "%') || (icdname ILIKE '%").concat(searchText, "%')) && activestatus == true ORDER BY icdname LIMIT 50"),
|
|
40911
|
+
"return_fields": "Diagnosis"
|
|
40861
40912
|
};
|
|
40862
40913
|
}
|
|
40863
40914
|
};
|