primary_care_admin_binder 0.1.150 → 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 +40 -49
- 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 = {
|
|
@@ -39577,15 +39578,13 @@ var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
|
39577
39578
|
var query$3 = {
|
|
39578
39579
|
getList: function getList(page, perpage, search) {
|
|
39579
39580
|
return {
|
|
39580
|
-
db_name:
|
|
39581
|
-
|
|
39582
|
-
filter:
|
|
39583
|
-
|
|
39584
|
-
|
|
39585
|
-
|
|
39586
|
-
}
|
|
39587
|
-
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)})}"),
|
|
39588
|
-
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
|
+
}
|
|
39589
39588
|
};
|
|
39590
39589
|
}
|
|
39591
39590
|
};
|
|
@@ -39608,13 +39607,13 @@ var generateJson$1 = function generateJson(data) {
|
|
|
39608
39607
|
metadata_dbname: metaDatadbName$1
|
|
39609
39608
|
}, filter), {}, {
|
|
39610
39609
|
doc: {
|
|
39611
|
-
id: (_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : 0,
|
|
39612
|
-
extsystemsourceid: (_data$extsystemsource = data === null || data === void 0 ? void 0 : data.extsystemsourceid) !== null && _data$extsystemsource !== void 0 ? _data$extsystemsource : "",
|
|
39613
|
-
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 : ""),
|
|
39614
39613
|
code: (_data$code = data === null || data === void 0 ? void 0 : data.code) !== null && _data$code !== void 0 ? _data$code : "",
|
|
39615
39614
|
shortdesc: (_data$shortdesc = data === null || data === void 0 ? void 0 : data.shortdesc) !== null && _data$shortdesc !== void 0 ? _data$shortdesc : "",
|
|
39616
39615
|
longdesc: (_data$longdesc = data === null || data === void 0 ? void 0 : data.longdesc) !== null && _data$longdesc !== void 0 ? _data$longdesc : "",
|
|
39617
|
-
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 : ""),
|
|
39618
39617
|
status: data === null || data === void 0 ? void 0 : data.status
|
|
39619
39618
|
}
|
|
39620
39619
|
})];
|
|
@@ -39624,28 +39623,29 @@ var generateReadJSON$1 = function generateReadJSON(data) {
|
|
|
39624
39623
|
var arr = [];
|
|
39625
39624
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
39626
39625
|
data === null || data === void 0 || data.map(function (val, i) {
|
|
39627
|
-
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;
|
|
39628
39628
|
var obj = {
|
|
39629
|
-
TotalCount: (_val$TotalCount = val === null || val === void 0 ? void 0 : val.TotalCount) !== null && _val$TotalCount !== void 0 ? _val$TotalCount : 0,
|
|
39630
|
-
_id: (
|
|
39631
|
-
_key: (
|
|
39632
|
-
allergytypeind:
|
|
39633
|
-
value:
|
|
39634
|
-
label:
|
|
39635
|
-
} : {},
|
|
39636
|
-
code: (
|
|
39637
|
-
conceptidtype:
|
|
39638
|
-
value:
|
|
39639
|
-
label:
|
|
39640
|
-
} : {},
|
|
39641
|
-
extsystemsourceid:
|
|
39642
|
-
value:
|
|
39643
|
-
label:
|
|
39644
|
-
} : {},
|
|
39645
|
-
id: (
|
|
39646
|
-
longdesc: (
|
|
39647
|
-
shortdesc: (
|
|
39648
|
-
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
|
|
39649
39649
|
};
|
|
39650
39650
|
arr.push(obj);
|
|
39651
39651
|
});
|
|
@@ -39765,10 +39765,10 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
39765
39765
|
_context4.n = 2;
|
|
39766
39766
|
return fetchData({
|
|
39767
39767
|
body: JSON.stringify(query$3.getList(_page, _perpage, _search ? _search : ''))
|
|
39768
|
-
},
|
|
39768
|
+
}, __baseUrl__$1);
|
|
39769
39769
|
case 2:
|
|
39770
39770
|
data = _context4.v;
|
|
39771
|
-
readJSON = generateReadJSON$1(data
|
|
39771
|
+
readJSON = generateReadJSON$1(data);
|
|
39772
39772
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
39773
39773
|
data: readJSON
|
|
39774
39774
|
}));
|
|
@@ -40867,15 +40867,6 @@ var flexCriteriaApp = _objectSpread2({}, flexCriteriaActions);
|
|
|
40867
40867
|
|
|
40868
40868
|
var query$2 = {
|
|
40869
40869
|
diagnosisList: function diagnosisList(level, code) {
|
|
40870
|
-
// return {
|
|
40871
|
-
// "db_name": `${dbName}`,
|
|
40872
|
-
// "filter": {
|
|
40873
|
-
// "icdcode": code??"",
|
|
40874
|
-
// "parentlvnum": parentvl,
|
|
40875
|
-
// "childlvnum": childvl
|
|
40876
|
-
// },
|
|
40877
|
-
// "queryid": "9fabdc11-1864-432d-9916-bf36c5d9cc57"
|
|
40878
|
-
// }
|
|
40879
40870
|
return {
|
|
40880
40871
|
"db_name": "".concat(dbName),
|
|
40881
40872
|
"entity": "Diagnosis",
|
|
@@ -40912,12 +40903,12 @@ var query$2 = {
|
|
|
40912
40903
|
}];
|
|
40913
40904
|
},
|
|
40914
40905
|
searchList: function searchList(text) {
|
|
40906
|
+
var searchText = text ? text.replace(/\./g, '_') : '';
|
|
40915
40907
|
return {
|
|
40916
40908
|
"db_name": "".concat(dbName),
|
|
40917
40909
|
"entity": "Diagnosis",
|
|
40918
|
-
"filter": "(
|
|
40919
|
-
"return_fields": "Diagnosis"
|
|
40920
|
-
"sort": "Diagnosis.icdname"
|
|
40910
|
+
"filter": "((icdcode ILIKE '%".concat(searchText, "%') || (icdname ILIKE '%").concat(searchText, "%')) && activestatus == true ORDER BY icdname LIMIT 50"),
|
|
40911
|
+
"return_fields": "Diagnosis"
|
|
40921
40912
|
};
|
|
40922
40913
|
}
|
|
40923
40914
|
};
|