primary_care_admin_binder 0.1.21 → 0.1.22
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 +48 -23
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18998,7 +18998,7 @@ var masterQuery$4 = {
|
|
|
18998
18998
|
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
18999
18999
|
ageGroup: "{\n\"db_name\": \"".concat(dbName, "\",\n\"entity\": \"AgeRanges\",\n\"sort\":\"AgeRanges.agerangecode\",\n\"filter\":\"AgeRanges.activestatus == true\",\n\"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:DOCUMENT(AgeRanges.AgeCategory)}\"\n}"),
|
|
19000
19000
|
checkaction: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='CHECKACTION' && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19001
|
-
attrcode: "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CA_OrderAttribMaster\",\n \"sort\":\"CA_OrderAttribMaster.attribcode\",\n \"filter\": \"CA_OrderAttribMaster.activestatus==true\",\n \"return_fields\": \"{id:CA_OrderAttribMaster.id,_id:CA_OrderAttribMaster._id,attribcode:CA_OrderAttribMaster.attribcode,attriblabel:CA_OrderAttribMaster.attriblabel,attribtype:CA_OrderAttribMaster.attribtype,AttribValidValues:CA_OrderAttribMaster.AttribValidValues}\"\n}"
|
|
19001
|
+
attrcode: "{\n \"db_name\": \"primarycare\",\n \"entity\": \"CA_OrderAttribMaster\",\n \"sort\":\"CA_OrderAttribMaster.attribcode\",\n \"filter\": \"CA_OrderAttribMaster.activestatus==true\",\n \"return_fields\": \"{id:CA_OrderAttribMaster.id,_id:CA_OrderAttribMaster._id,attribcode:CA_OrderAttribMaster.attribcode,attriblabel:CA_OrderAttribMaster.attriblabel,attribtype: document(CA_OrderAttribMaster.attribtype),AttribValidValues:CA_OrderAttribMaster.AttribValidValues}\"\n}"
|
|
19002
19002
|
};
|
|
19003
19003
|
var orderTypedata = {
|
|
19004
19004
|
ordertype: function ordertype(type) {
|
|
@@ -19024,7 +19024,21 @@ var Query = {
|
|
|
19024
19024
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
19025
19025
|
};
|
|
19026
19026
|
},
|
|
19027
|
-
order_catalog_read:
|
|
19027
|
+
order_catalog_read: function order_catalog_read(_ref) {
|
|
19028
|
+
var page = _ref.page,
|
|
19029
|
+
perPage = _ref.perPage;
|
|
19030
|
+
return {
|
|
19031
|
+
"db_name": dbName,
|
|
19032
|
+
"entity": "OrderCatalog",
|
|
19033
|
+
"sort": "OrderCatalog.createddate ASC",
|
|
19034
|
+
"limit": {
|
|
19035
|
+
"offset": page,
|
|
19036
|
+
"count": perPage
|
|
19037
|
+
},
|
|
19038
|
+
"filter": "OrderCatalog.activestatus==true",
|
|
19039
|
+
"return_fields": "MERGE(OrderCatalog,{TotalCount:COUNT(FOR cnt IN OrderCatalog RETURN cnt._key)},{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})"
|
|
19040
|
+
};
|
|
19041
|
+
},
|
|
19028
19042
|
editOrderCatalog: function editOrderCatalog(id) {
|
|
19029
19043
|
return {
|
|
19030
19044
|
db_name: "primarycare",
|
|
@@ -19927,8 +19941,11 @@ var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog
|
|
|
19927
19941
|
}, _callee8, null, [[2, 11]]);
|
|
19928
19942
|
})));
|
|
19929
19943
|
var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
19930
|
-
var
|
|
19944
|
+
var payload,
|
|
19945
|
+
_ref15,
|
|
19931
19946
|
rejectWithValue,
|
|
19947
|
+
page,
|
|
19948
|
+
perPage,
|
|
19932
19949
|
data,
|
|
19933
19950
|
res,
|
|
19934
19951
|
_args9 = arguments;
|
|
@@ -19937,33 +19954,41 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
|
|
|
19937
19954
|
while (1) {
|
|
19938
19955
|
switch (_context9.prev = _context9.next) {
|
|
19939
19956
|
case 0:
|
|
19957
|
+
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
19940
19958
|
_ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
|
|
19941
19959
|
_context9.prev = 2;
|
|
19942
|
-
|
|
19960
|
+
// const { encounter_id } = payload;
|
|
19961
|
+
// let state = getState();
|
|
19962
|
+
// let ccState = state.DiagnosisMasterSlice;
|
|
19963
|
+
page = payload.page, perPage = payload.perPage;
|
|
19964
|
+
_context9.next = 6;
|
|
19943
19965
|
return fetchData({
|
|
19944
|
-
body: Query.order_catalog_read
|
|
19966
|
+
body: JSON.stringify(Query.order_catalog_read({
|
|
19967
|
+
page: page,
|
|
19968
|
+
perPage: perPage
|
|
19969
|
+
}))
|
|
19945
19970
|
}, __readDocumentUrl__);
|
|
19946
19971
|
|
|
19947
|
-
case
|
|
19972
|
+
case 6:
|
|
19948
19973
|
data = _context9.sent;
|
|
19949
19974
|
res = generateResJson(data.result);
|
|
19950
19975
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
19951
19976
|
data: res
|
|
19952
19977
|
}));
|
|
19953
19978
|
|
|
19954
|
-
case
|
|
19955
|
-
_context9.prev =
|
|
19979
|
+
case 11:
|
|
19980
|
+
_context9.prev = 11;
|
|
19956
19981
|
_context9.t0 = _context9["catch"](2);
|
|
19957
19982
|
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
19958
19983
|
message: _context9.t0.message
|
|
19959
19984
|
})));
|
|
19960
19985
|
|
|
19961
|
-
case
|
|
19986
|
+
case 14:
|
|
19962
19987
|
case "end":
|
|
19963
19988
|
return _context9.stop();
|
|
19964
19989
|
}
|
|
19965
19990
|
}
|
|
19966
|
-
}, _callee9, null, [[2,
|
|
19991
|
+
}, _callee9, null, [[2, 11]]);
|
|
19967
19992
|
})));
|
|
19968
19993
|
var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCatalogUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
19969
19994
|
var payload,
|
|
@@ -32589,22 +32614,22 @@ var flexCriteriaQuery = {
|
|
|
32589
32614
|
flexCriteriaFullRead: function flexCriteriaFullRead(page, perpage, search) {
|
|
32590
32615
|
return {
|
|
32591
32616
|
db_name: "primarycare",
|
|
32592
|
-
entity: "
|
|
32593
|
-
filter: "(LIKE (
|
|
32617
|
+
entity: "CA_FlexAttribApplicability",
|
|
32618
|
+
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32594
32619
|
limit: {
|
|
32595
32620
|
offset: page,
|
|
32596
32621
|
count: perpage
|
|
32597
32622
|
},
|
|
32598
|
-
return_fields: "merge(
|
|
32599
|
-
sort: "
|
|
32623
|
+
return_fields: "merge(CA_FlexAttribApplicability, {TotalCount:COUNT(FOR cnt IN CA_FlexAttribApplicability RETURN cnt._key)},{AttribComponents:( for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:merge(document(att.attribCode),{attribtype:document(document(att.attribCode).attribtype)})}) )})",
|
|
32624
|
+
sort: "CA_FlexAttribApplicability.createddate desc"
|
|
32600
32625
|
};
|
|
32601
32626
|
},
|
|
32602
32627
|
flexCriteriaSingleRead: function flexCriteriaSingleRead(key) {
|
|
32603
32628
|
return {
|
|
32604
32629
|
db_name: dbName,
|
|
32605
|
-
entity: "
|
|
32606
|
-
filter: "
|
|
32607
|
-
return_fields: "merge(
|
|
32630
|
+
entity: "CA_FlexAttribApplicability",
|
|
32631
|
+
filter: "CA_FlexAttribApplicability._key == '".concat(key, "' && CA_FlexAttribApplicability.activestatus == true"),
|
|
32632
|
+
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
32608
32633
|
};
|
|
32609
32634
|
},
|
|
32610
32635
|
flexCriteriaInsert: function flexCriteriaInsert(list) {
|
|
@@ -32612,7 +32637,7 @@ var flexCriteriaQuery = {
|
|
|
32612
32637
|
|
|
32613
32638
|
return [{
|
|
32614
32639
|
db_name: dbName,
|
|
32615
|
-
entity: "
|
|
32640
|
+
entity: "CA_FlexAttribApplicability",
|
|
32616
32641
|
is_metadata: true,
|
|
32617
32642
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
32618
32643
|
doc: {
|
|
@@ -32635,7 +32660,7 @@ var flexCriteriaQuery = {
|
|
|
32635
32660
|
flexCriteriaStatus: function flexCriteriaStatus(status, key) {
|
|
32636
32661
|
return [{
|
|
32637
32662
|
db_name: dbName,
|
|
32638
|
-
entity: "
|
|
32663
|
+
entity: "CA_FlexAttribApplicability",
|
|
32639
32664
|
filter: {
|
|
32640
32665
|
_key: key
|
|
32641
32666
|
},
|
|
@@ -32651,7 +32676,7 @@ var flexCriteriaQuery = {
|
|
|
32651
32676
|
|
|
32652
32677
|
return [{
|
|
32653
32678
|
db_name: "primarycare",
|
|
32654
|
-
entity: "
|
|
32679
|
+
entity: "CA_FlexAttribApplicability",
|
|
32655
32680
|
filter: {
|
|
32656
32681
|
_key: list === null || list === void 0 ? void 0 : list.key
|
|
32657
32682
|
},
|
|
@@ -32680,9 +32705,9 @@ var flexCriteriaQuery = {
|
|
|
32680
32705
|
flexCriteriaSearch: function flexCriteriaSearch(search) {
|
|
32681
32706
|
return {
|
|
32682
32707
|
db_name: dbName,
|
|
32683
|
-
entity: "
|
|
32684
|
-
filter: "(LIKE (
|
|
32685
|
-
return_fields: "merge(
|
|
32708
|
+
entity: "CA_FlexAttribApplicability",
|
|
32709
|
+
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32710
|
+
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
32686
32711
|
};
|
|
32687
32712
|
}
|
|
32688
32713
|
};
|