primary_care_admin_binder 0.1.150 → 0.1.152
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 +45 -50
- 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 = {
|
|
@@ -25552,7 +25553,8 @@ var generateSaveJSON = function generateSaveJSON(data, rcchargeCode) {
|
|
|
25552
25553
|
resourcedefinition: resourceresult !== null && resourceresult !== void 0 ? resourceresult : [],
|
|
25553
25554
|
observationdetails: observationresult !== null && observationresult !== void 0 ? observationresult : [],
|
|
25554
25555
|
instruction: getInstruction(data.instructions),
|
|
25555
|
-
frequency: getFrequency(data.frequency, data.Frequency_applicability)
|
|
25556
|
+
frequency: getFrequency(data.frequency, data.Frequency_applicability),
|
|
25557
|
+
scheduleappl: data.characteristicJson[6].checked
|
|
25556
25558
|
}
|
|
25557
25559
|
})];
|
|
25558
25560
|
};
|
|
@@ -25957,6 +25959,9 @@ var generateReadResJsonData = function generateReadResJsonData(val, state, resSt
|
|
|
25957
25959
|
}, {
|
|
25958
25960
|
label: "Result Authentication Required",
|
|
25959
25961
|
checked: val === null || val === void 0 ? void 0 : val.resultauthreqd
|
|
25962
|
+
}, {
|
|
25963
|
+
label: "Schedule Applicable",
|
|
25964
|
+
checked: val === null || val === void 0 ? void 0 : val.scheduleappl
|
|
25960
25965
|
}],
|
|
25961
25966
|
checkSwitch: val === null || val === void 0 ? void 0 : val.checkforrepeatorders,
|
|
25962
25967
|
no: val === null || val === void 0 ? void 0 : val.repeatcheckperiod,
|
|
@@ -39577,15 +39582,13 @@ var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
|
39577
39582
|
var query$3 = {
|
|
39578
39583
|
getList: function getList(page, perpage, search) {
|
|
39579
39584
|
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"
|
|
39585
|
+
db_name: dbName,
|
|
39586
|
+
queryid: query_ids.getAllergyList,
|
|
39587
|
+
filter: {
|
|
39588
|
+
search: "%".concat(search, "%"),
|
|
39589
|
+
page: page,
|
|
39590
|
+
perPage: perpage
|
|
39591
|
+
}
|
|
39589
39592
|
};
|
|
39590
39593
|
}
|
|
39591
39594
|
};
|
|
@@ -39608,13 +39611,13 @@ var generateJson$1 = function generateJson(data) {
|
|
|
39608
39611
|
metadata_dbname: metaDatadbName$1
|
|
39609
39612
|
}, filter), {}, {
|
|
39610
39613
|
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 : "",
|
|
39614
|
+
id: Number((_data$id = data === null || data === void 0 ? void 0 : data.id) !== null && _data$id !== void 0 ? _data$id : 0),
|
|
39615
|
+
extsystemsourceid: String((_data$extsystemsource = data === null || data === void 0 ? void 0 : data.extsystemsourceid) !== null && _data$extsystemsource !== void 0 ? _data$extsystemsource : ""),
|
|
39616
|
+
allergytypeind: String((_data$allergytypeind = data === null || data === void 0 ? void 0 : data.allergytypeind) !== null && _data$allergytypeind !== void 0 ? _data$allergytypeind : ""),
|
|
39614
39617
|
code: (_data$code = data === null || data === void 0 ? void 0 : data.code) !== null && _data$code !== void 0 ? _data$code : "",
|
|
39615
39618
|
shortdesc: (_data$shortdesc = data === null || data === void 0 ? void 0 : data.shortdesc) !== null && _data$shortdesc !== void 0 ? _data$shortdesc : "",
|
|
39616
39619
|
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 : "",
|
|
39620
|
+
conceptidtype: String((_data$conceptidtype = data === null || data === void 0 ? void 0 : data.conceptidtype) !== null && _data$conceptidtype !== void 0 ? _data$conceptidtype : ""),
|
|
39618
39621
|
status: data === null || data === void 0 ? void 0 : data.status
|
|
39619
39622
|
}
|
|
39620
39623
|
})];
|
|
@@ -39624,28 +39627,29 @@ var generateReadJSON$1 = function generateReadJSON(data) {
|
|
|
39624
39627
|
var arr = [];
|
|
39625
39628
|
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
39626
39629
|
data === null || data === void 0 || data.map(function (val, i) {
|
|
39627
|
-
var _val$
|
|
39630
|
+
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;
|
|
39631
|
+
var source = (_val$AllergyMaster = val === null || val === void 0 ? void 0 : val.AllergyMaster) !== null && _val$AllergyMaster !== void 0 ? _val$AllergyMaster : val;
|
|
39628
39632
|
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: (
|
|
39633
|
+
TotalCount: Number((_val$TotalCount = val === null || val === void 0 ? void 0 : val.TotalCount) !== null && _val$TotalCount !== void 0 ? _val$TotalCount : 0),
|
|
39634
|
+
_id: (_source$_id = source === null || source === void 0 ? void 0 : source._id) !== null && _source$_id !== void 0 ? _source$_id : "",
|
|
39635
|
+
_key: (_source$_key = source === null || source === void 0 ? void 0 : source._key) !== null && _source$_key !== void 0 ? _source$_key : "",
|
|
39636
|
+
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 ? {
|
|
39637
|
+
value: source === null || source === void 0 || (_source$allergytypein3 = source.allergytypeind) === null || _source$allergytypein3 === void 0 ? void 0 : _source$allergytypein3._id,
|
|
39638
|
+
label: source === null || source === void 0 || (_source$allergytypein4 = source.allergytypeind) === null || _source$allergytypein4 === void 0 ? void 0 : _source$allergytypein4.shortdesc
|
|
39639
|
+
} : (_source$allergytypein5 = source === null || source === void 0 ? void 0 : source.allergytypeind) !== null && _source$allergytypein5 !== void 0 ? _source$allergytypein5 : {},
|
|
39640
|
+
code: (_source$code = source === null || source === void 0 ? void 0 : source.code) !== null && _source$code !== void 0 ? _source$code : "",
|
|
39641
|
+
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 ? {
|
|
39642
|
+
value: source === null || source === void 0 || (_source$conceptidtype3 = source.conceptidtype) === null || _source$conceptidtype3 === void 0 ? void 0 : _source$conceptidtype3._id,
|
|
39643
|
+
label: source === null || source === void 0 || (_source$conceptidtype4 = source.conceptidtype) === null || _source$conceptidtype4 === void 0 ? void 0 : _source$conceptidtype4.shortdesc
|
|
39644
|
+
} : (_source$conceptidtype5 = source === null || source === void 0 ? void 0 : source.conceptidtype) !== null && _source$conceptidtype5 !== void 0 ? _source$conceptidtype5 : {},
|
|
39645
|
+
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 ? {
|
|
39646
|
+
value: source === null || source === void 0 || (_source$extsystemsour3 = source.extsystemsourceid) === null || _source$extsystemsour3 === void 0 ? void 0 : _source$extsystemsour3._id,
|
|
39647
|
+
label: source === null || source === void 0 || (_source$extsystemsour4 = source.extsystemsourceid) === null || _source$extsystemsour4 === void 0 ? void 0 : _source$extsystemsour4.shortdesc
|
|
39648
|
+
} : (_source$extsystemsour5 = source === null || source === void 0 ? void 0 : source.extsystemsourceid) !== null && _source$extsystemsour5 !== void 0 ? _source$extsystemsour5 : {},
|
|
39649
|
+
id: (_source$id = source === null || source === void 0 ? void 0 : source.id) !== null && _source$id !== void 0 ? _source$id : 0,
|
|
39650
|
+
longdesc: (_source$longdesc = source === null || source === void 0 ? void 0 : source.longdesc) !== null && _source$longdesc !== void 0 ? _source$longdesc : "",
|
|
39651
|
+
shortdesc: (_source$shortdesc = source === null || source === void 0 ? void 0 : source.shortdesc) !== null && _source$shortdesc !== void 0 ? _source$shortdesc : "",
|
|
39652
|
+
status: (_source$status = source === null || source === void 0 ? void 0 : source.status) !== null && _source$status !== void 0 ? _source$status : true
|
|
39649
39653
|
};
|
|
39650
39654
|
arr.push(obj);
|
|
39651
39655
|
});
|
|
@@ -39765,10 +39769,10 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
39765
39769
|
_context4.n = 2;
|
|
39766
39770
|
return fetchData({
|
|
39767
39771
|
body: JSON.stringify(query$3.getList(_page, _perpage, _search ? _search : ''))
|
|
39768
|
-
},
|
|
39772
|
+
}, __baseUrl__$1);
|
|
39769
39773
|
case 2:
|
|
39770
39774
|
data = _context4.v;
|
|
39771
|
-
readJSON = generateReadJSON$1(data
|
|
39775
|
+
readJSON = generateReadJSON$1(data);
|
|
39772
39776
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
39773
39777
|
data: readJSON
|
|
39774
39778
|
}));
|
|
@@ -40867,15 +40871,6 @@ var flexCriteriaApp = _objectSpread2({}, flexCriteriaActions);
|
|
|
40867
40871
|
|
|
40868
40872
|
var query$2 = {
|
|
40869
40873
|
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
40874
|
return {
|
|
40880
40875
|
"db_name": "".concat(dbName),
|
|
40881
40876
|
"entity": "Diagnosis",
|
|
@@ -40912,12 +40907,12 @@ var query$2 = {
|
|
|
40912
40907
|
}];
|
|
40913
40908
|
},
|
|
40914
40909
|
searchList: function searchList(text) {
|
|
40910
|
+
var searchText = text ? text.replace(/\./g, '_') : '';
|
|
40915
40911
|
return {
|
|
40916
40912
|
"db_name": "".concat(dbName),
|
|
40917
40913
|
"entity": "Diagnosis",
|
|
40918
|
-
"filter": "(
|
|
40919
|
-
"return_fields": "Diagnosis"
|
|
40920
|
-
"sort": "Diagnosis.icdname"
|
|
40914
|
+
"filter": "((icdcode ILIKE '%".concat(searchText, "%') || (icdname ILIKE '%").concat(searchText, "%')) && activestatus == true ORDER BY icdname LIMIT 50"),
|
|
40915
|
+
"return_fields": "Diagnosis"
|
|
40921
40916
|
};
|
|
40922
40917
|
}
|
|
40923
40918
|
};
|