primary_care_admin_binder 0.1.63 → 0.1.66
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 +73 -39
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8081,9 +8081,19 @@ var queries$n = {
|
|
|
8081
8081
|
"offset": page,
|
|
8082
8082
|
"count": perPage
|
|
8083
8083
|
},
|
|
8084
|
-
return_fields: "MERGE(CodeableConceptMaster,{TotalCount:
|
|
8084
|
+
return_fields: "MERGE(CodeableConceptMaster,{TotalCount:count( FOR code IN CodeableConceptMaster FILTER code.Type == '".concat(type, "' && (like(document(code.coding[0]).code,'%").concat(search, "%',true) || like(document(code.coding[0]).shortdesc,'%").concat(search, "%',true) || like(document(code.coding[0]).display,'%").concat(search, "%',true) ) && code.activestatus==true return code._id), coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"),
|
|
8085
8085
|
sort: "CodeableConceptMaster.createddate"
|
|
8086
|
-
};
|
|
8086
|
+
}; // {
|
|
8087
|
+
// "db_name": "primarycare",
|
|
8088
|
+
// "entity": "CodeableConceptMaster",
|
|
8089
|
+
// "filter": "CodeableConceptMaster.Type == '@type' && (like(document(CodeableConceptMaster.coding[0]).code,'%%',true) || like(document(CodeableConceptMaster.coding[0]).shortdesc,'%%',true) || like(document(CodeableConceptMaster.coding[0]).display,'%%',true) ) && CodeableConceptMaster.activestatus==true",
|
|
8090
|
+
// "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))},{ TotalCount:count( FOR code IN CodeableConceptMaster FILTER code.Type == '@type' && (like(document(code.coding[0]).code,'%%',true) || like(document(code.coding[0]).shortdesc,'%%',true) || like(document(code.coding[0]).display,'%%',true) ) && code.activestatus==true return code._id)})",
|
|
8091
|
+
// "sort": "CodeableConceptMaster.createddate",
|
|
8092
|
+
// "limit": {
|
|
8093
|
+
// "offset": 0,
|
|
8094
|
+
// "count": 10
|
|
8095
|
+
// }
|
|
8096
|
+
// }
|
|
8087
8097
|
},
|
|
8088
8098
|
upsert: function upsert(data) {
|
|
8089
8099
|
var filter = {};
|
|
@@ -8155,7 +8165,7 @@ var queries$n = {
|
|
|
8155
8165
|
"offset": page,
|
|
8156
8166
|
"count": perPage
|
|
8157
8167
|
},
|
|
8158
|
-
return_fields: "{TotalCount:
|
|
8168
|
+
return_fields: "{TotalCount:count( FOR prt IN Practitioner FILTER ( like(document(first(prt.name)).text,'%".concat(search, "%',true) || like(document(first(document(prt.prt_type).coding)).display,'%").concat(search, "%',true) || like(document(document(document(prt.prt_role[0]).SpecialtyID).coding[0]).display,'%").concat(search, "%',true)) && prt.activestatus==true return prt._id),id:Practitioner.id,name:(FOR nam IN TO_ARRAY(Practitioner.name) RETURN DOCUMENT(nam).text)[0],type: (for t in CodeableConceptMaster filter t._id == Practitioner.practitioner_type return merge(t,{coding:(for cod in CodingMaster filter cod._id in t.coding return cod.display)})),_key:Practitioner._key,status:Practitioner.status,Practitionerrole:(for pr in PractitionerRole filter pr._id in Practitioner.practitioner_role && pr.primary_specialty==true return merge(pr,{SpecialtyID:(for spe in CodeableConceptMaster filter spe._id ==pr.SpecialtyID return merge(spe,{coding:(for cod in CodingMaster filter cod._id in spe.coding return cod.display)}))}))}")
|
|
8159
8169
|
};
|
|
8160
8170
|
},
|
|
8161
8171
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
@@ -10924,7 +10934,7 @@ var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE
|
|
|
10924
10934
|
data.result.map(function (val) {
|
|
10925
10935
|
arr.push({
|
|
10926
10936
|
value: val._id,
|
|
10927
|
-
label: val.
|
|
10937
|
+
label: val.shortdesc
|
|
10928
10938
|
});
|
|
10929
10939
|
});
|
|
10930
10940
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -11153,7 +11163,7 @@ var AGE_RANGES_CODE = createAsyncThunk("vitalApplicableApiSlice/agerangesCode",
|
|
|
11153
11163
|
data.result.map(function (val) {
|
|
11154
11164
|
arr.push({
|
|
11155
11165
|
value: val.AgeRangesDtl._id,
|
|
11156
|
-
label: val.AgeRangesDtl.
|
|
11166
|
+
label: val.AgeRangesDtl.shortdesc
|
|
11157
11167
|
});
|
|
11158
11168
|
});
|
|
11159
11169
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -11202,7 +11212,7 @@ var AGE_RANGES_CATEGORY = createAsyncThunk("vitalApplicableApiSlice/agerangesCat
|
|
|
11202
11212
|
data.result[0].map(function (val) {
|
|
11203
11213
|
arr.push({
|
|
11204
11214
|
value: val._id,
|
|
11205
|
-
label: val.
|
|
11215
|
+
label: val.description,
|
|
11206
11216
|
minAge: val.age_minimum,
|
|
11207
11217
|
maxAge: val.age_maximum
|
|
11208
11218
|
});
|
|
@@ -12451,8 +12461,8 @@ var vitalsMasterSectionActions = {
|
|
|
12451
12461
|
var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
|
|
12452
12462
|
|
|
12453
12463
|
var queries$m = {
|
|
12454
|
-
locationlist: function locationlist(type, page, perPage) {
|
|
12455
|
-
// return {
|
|
12464
|
+
locationlist: function locationlist(type, page, perPage, search) {
|
|
12465
|
+
debugger; // return {
|
|
12456
12466
|
// db_name: dbName,
|
|
12457
12467
|
// entity:
|
|
12458
12468
|
// "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
@@ -12461,6 +12471,7 @@ var queries$m = {
|
|
|
12461
12471
|
// sort: "LocationMaster.createddate",
|
|
12462
12472
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
12463
12473
|
// };
|
|
12474
|
+
|
|
12464
12475
|
return {
|
|
12465
12476
|
db_name: dbName$1,
|
|
12466
12477
|
entity: "LocationMaster",
|
|
@@ -12468,9 +12479,9 @@ var queries$m = {
|
|
|
12468
12479
|
"offset": page,
|
|
12469
12480
|
"count": perPage
|
|
12470
12481
|
},
|
|
12471
|
-
filter: "LocationMaster.activestatus==true",
|
|
12482
|
+
filter: "(LIKE(LocationMaster.shortdesc,'%".concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(LocationMaster.longdesc,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(LocationMaster.locationID,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(document(LocationMaster.locationRoletype).display,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) ) && LocationMaster.activestatus==true"),
|
|
12472
12483
|
// return_fields: "merge(LocationMaster,{TotalCount:COUNT(FOR cnt IN LocationMaster RETURN cnt._key) , operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
12473
|
-
return_fields: "merge(LocationMaster,{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))},{TotalCount:count(
|
|
12484
|
+
return_fields: "merge(LocationMaster,{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))},{TotalCount:count(( FOR locat IN LocationMaster FILTER ( LIKE(locat.shortdesc,'%".concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(locat.longdesc,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(locat.locationID,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(document(locat.locationRoletype).display,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) ) && locat.activestatus==true return locat._id ))})") // return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
12474
12485
|
|
|
12475
12486
|
};
|
|
12476
12487
|
},
|
|
@@ -12791,6 +12802,7 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12791
12802
|
type,
|
|
12792
12803
|
page,
|
|
12793
12804
|
perPage,
|
|
12805
|
+
search,
|
|
12794
12806
|
data,
|
|
12795
12807
|
arry,
|
|
12796
12808
|
_args = arguments;
|
|
@@ -12802,10 +12814,10 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12802
12814
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
12803
12815
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
12804
12816
|
_context.prev = 2;
|
|
12805
|
-
type = payload.type, page = payload.page, perPage = payload.perPage;
|
|
12817
|
+
type = payload.type, page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
12806
12818
|
_context.next = 6;
|
|
12807
12819
|
return fetchData({
|
|
12808
|
-
body: JSON.stringify(queries$m.locationlist(type, page, perPage))
|
|
12820
|
+
body: JSON.stringify(queries$m.locationlist(type, page, perPage, search))
|
|
12809
12821
|
}, __readDocumentUrl__);
|
|
12810
12822
|
|
|
12811
12823
|
case 6:
|
|
@@ -17058,7 +17070,7 @@ var queries$g = {
|
|
|
17058
17070
|
offset: page,
|
|
17059
17071
|
count: perPage
|
|
17060
17072
|
},
|
|
17061
|
-
return_fields: "MERGE(DrugCategory, {TotalCount:
|
|
17073
|
+
return_fields: "MERGE(DrugCategory, { TotalCount:count( FOR drgcat IN DrugCategory FILTER ( LIKe(drgcat.drugcategory,'%".concat(search, "%',true) || LIKE(drgcat.shortdesc,'%").concat(search, "%',true) || LIKE(drgcat.longdesc,'%").concat(search, "%',true)) && drgcat.activestatus == true return drgcat._id ) })")
|
|
17062
17074
|
};
|
|
17063
17075
|
},
|
|
17064
17076
|
drug_type_read: function drug_type_read(page, perPage, search) {
|
|
@@ -17071,7 +17083,7 @@ var queries$g = {
|
|
|
17071
17083
|
count: perPage
|
|
17072
17084
|
},
|
|
17073
17085
|
sort: "DrugType.id",
|
|
17074
|
-
return_fields: "MERGE(DrugType, {TotalCount:
|
|
17086
|
+
return_fields: "MERGE(DrugType, { TotalCount:count( FOR dtype IN DrugType FILTER ( LIKe(dtype.drugtype,'%".concat(search, "%',true) || LIKE(dtype.shortdesc,'%").concat(search, "%',true) || LIKE(dtype.longdesc,'%").concat(search, "%',true)) && dtype.activestatus == true return dtype._id ) })")
|
|
17075
17087
|
};
|
|
17076
17088
|
},
|
|
17077
17089
|
drug_dosage: function drug_dosage(page, perPage, search) {
|
|
@@ -17084,7 +17096,7 @@ var queries$g = {
|
|
|
17084
17096
|
offset: page,
|
|
17085
17097
|
count: perPage
|
|
17086
17098
|
},
|
|
17087
|
-
return_fields: "MERGE(DosageForm, {TotalCount:
|
|
17099
|
+
return_fields: "MERGE(DosageForm, { TotalCount:count(FOR dsgform IN DosageForm FILTER ( LIKe(dsgform.dsgform,'%".concat(search, "%',true) || LIKE(dsgform.UOM,'%").concat(search, "%',true) || LIKE(dsgform.longdesc,'%").concat(search, "%',true) ) && dsgform.activestatus == true return dsgform._id ) })")
|
|
17088
17100
|
};
|
|
17089
17101
|
},
|
|
17090
17102
|
drug_dosage_upsert: function drug_dosage_upsert(data) {
|
|
@@ -17137,7 +17149,7 @@ var queries$g = {
|
|
|
17137
17149
|
count: perPage
|
|
17138
17150
|
},
|
|
17139
17151
|
sort: "DrugClass.drugclass",
|
|
17140
|
-
return_fields: "MERGE(DrugClass, {TotalCount:
|
|
17152
|
+
return_fields: "MERGE(DrugClass, { TotalCount:count( FOR dc IN DrugClass FILTER ( LIKE(dc.drugclass,'%".concat(search, "%',true) || LIKE(dc.longdesc,'%").concat(search, "%',true) || LIKE(dc.shortdesc,'%").concat(search, "%',true)) && dc.activestatus == true return dc._id ) })")
|
|
17141
17153
|
};
|
|
17142
17154
|
},
|
|
17143
17155
|
drug_class_upsert: function drug_class_upsert(data) {
|
|
@@ -17190,7 +17202,7 @@ var queries$g = {
|
|
|
17190
17202
|
"offset": page,
|
|
17191
17203
|
"count": perPage
|
|
17192
17204
|
},
|
|
17193
|
-
return_fields: "MERGE(DrugRoutes, {TotalCount:
|
|
17205
|
+
return_fields: "MERGE(DrugRoutes, { TotalCount:count(FOR drgrout IN DrugRoutes FILTER ( LIKe(drgrout.routecode,'%".concat(search, "%',true) || LIKE(drgrout.UOM,'%").concat(search, "%',true) || LIKE(drgrout.longdesc,'%").concat(search, "%',true) ) && drgrout.activestatus == true return drgrout._id ) })")
|
|
17194
17206
|
};
|
|
17195
17207
|
},
|
|
17196
17208
|
status_update_drug_routes: function status_update_drug_routes(data) {
|
|
@@ -20633,7 +20645,7 @@ var queries$e = {
|
|
|
20633
20645
|
"offset": page,
|
|
20634
20646
|
"count": perPage
|
|
20635
20647
|
},
|
|
20636
|
-
"return_fields": "merge(DrugRouteDirection,{TotalCount:
|
|
20648
|
+
"return_fields": "merge(DrugRouteDirection,{TotalCount:count(FOR drgroutdir IN DrugRouteDirection FILTER ( LIKe(drgroutdir.RouteDirectionCode,'%".concat(search, "%',true) || LIKE(drgroutdir.UOM,'%").concat(search, "%',true) || LIKE(drgroutdir.longdesc,'%").concat(search, "%',true) ) && drgroutdir.activestatus == true return drgroutdir ),DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})")
|
|
20637
20649
|
};
|
|
20638
20650
|
},
|
|
20639
20651
|
DosageFormDropDown: function DosageFormDropDown() {
|
|
@@ -22656,7 +22668,7 @@ var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingL
|
|
|
22656
22668
|
"offset": payload === null || payload === void 0 ? void 0 : payload.page,
|
|
22657
22669
|
"count": payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
22658
22670
|
},
|
|
22659
|
-
"return_fields": "MERGE(CA_PerformingLocationforOrdLocn,{TotalCount:
|
|
22671
|
+
"return_fields": "MERGE(CA_PerformingLocationforOrdLocn,{ TotalCount:count(FOR pord IN CA_PerformingLocationforOrdLocn FILTER ( LIKE(document(pord.ordering_source_code).longdesc,'%".concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) || LIKE(document(pord.service_applicability).display,'%").concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) || LIKE(document(pord.ordering_org).name,'%").concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) ) && pord.activestatus==true return pord._id ), ordering_org:DOCUMENT(CA_PerformingLocationforOrdLocn.ordering_org),ordering_source_type:DOCUMENT(CA_PerformingLocationforOrdLocn.ordering_source_type),ordering_source_code:DOCUMENT(CA_PerformingLocationforOrdLocn.ordering_source_code),service_applicability:DOCUMENT(CA_PerformingLocationforOrdLocn.service_applicability),performing_details:(FOR perdet IN TO_ARRAY(CA_PerformingLocationforOrdLocn.performing_details) RETURN MERGE(perdet,{performing_org:DOCUMENT(perdet.performing_org),performing_location_role_type:DOCUMENT(perdet.performing_location_role_type),performing_location_code:DOCUMENT(perdet.performing_location_code)}))})")
|
|
22660
22672
|
};
|
|
22661
22673
|
_context6.next = 6;
|
|
22662
22674
|
return fetchData({
|
|
@@ -29095,18 +29107,35 @@ var permissionSlice$1 = permissionSlice.reducer;
|
|
|
29095
29107
|
var permission_actions = _objectSpread2({}, permissionActions);
|
|
29096
29108
|
|
|
29097
29109
|
var queries$7 = {
|
|
29098
|
-
person_read: function person_read(
|
|
29099
|
-
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
|
|
29104
|
-
|
|
29105
|
-
|
|
29106
|
-
"
|
|
29107
|
-
|
|
29108
|
-
|
|
29109
|
-
|
|
29110
|
+
person_read: function person_read(withoutLimit) {
|
|
29111
|
+
var search = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
29112
|
+
var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
29113
|
+
var perPage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;
|
|
29114
|
+
var queryPayload = null;
|
|
29115
|
+
|
|
29116
|
+
if (withoutLimit) {
|
|
29117
|
+
queryPayload = {
|
|
29118
|
+
"db_name": dbName$1,
|
|
29119
|
+
"entity": "Person",
|
|
29120
|
+
"filter": "Person.activestatus==true",
|
|
29121
|
+
"sort": "Person.createddate",
|
|
29122
|
+
"return_fields": "merge(Person,{name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank)}))},{photo:document(Person.photo)},{address:document(Person.address)},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})"
|
|
29123
|
+
};
|
|
29124
|
+
} else {
|
|
29125
|
+
queryPayload = {
|
|
29126
|
+
"db_name": dbName$1,
|
|
29127
|
+
"entity": "Person",
|
|
29128
|
+
"filter": "(LIKE(document(Person.name)[0].given,'%".concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(document(Person.telecom)[0].value,'%").concat(search !== null && search !== void 0 ? search : '', "%',true)) && Person.activestatus==true"),
|
|
29129
|
+
"limit": {
|
|
29130
|
+
"offset": page,
|
|
29131
|
+
"count": perPage
|
|
29132
|
+
},
|
|
29133
|
+
"sort": "Person.createddate",
|
|
29134
|
+
"return_fields": "merge(Person,{TotalCount:count(( FOR prs IN Person FILTER ( LIKE(document(prs.name)[0].given,'%".concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(document(prs.telecom)[0].value,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) ) && prs.activestatus==true return prs._id )), name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank)}))},{photo:document(Person.photo)},{address:document(Person.address)},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})")
|
|
29135
|
+
};
|
|
29136
|
+
}
|
|
29137
|
+
|
|
29138
|
+
return queryPayload;
|
|
29110
29139
|
},
|
|
29111
29140
|
person_delete: function person_delete(data) {
|
|
29112
29141
|
var filter = {};
|
|
@@ -29342,6 +29371,10 @@ var PERSON_READ = createAsyncThunk("personSlice/person_read", /*#__PURE__*/_asyn
|
|
|
29342
29371
|
var payload,
|
|
29343
29372
|
_ref6,
|
|
29344
29373
|
rejectWithValue,
|
|
29374
|
+
withoutLimit,
|
|
29375
|
+
search,
|
|
29376
|
+
page,
|
|
29377
|
+
perPage,
|
|
29345
29378
|
readqueries,
|
|
29346
29379
|
data,
|
|
29347
29380
|
_args3 = arguments;
|
|
@@ -29353,31 +29386,32 @@ var PERSON_READ = createAsyncThunk("personSlice/person_read", /*#__PURE__*/_asyn
|
|
|
29353
29386
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
29354
29387
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
29355
29388
|
_context3.prev = 2;
|
|
29356
|
-
|
|
29357
|
-
|
|
29389
|
+
withoutLimit = payload.withoutLimit, search = payload.search, page = payload.page, perPage = payload.perPage;
|
|
29390
|
+
readqueries = queries$7.person_read(withoutLimit ? withoutLimit : false, search, page, perPage);
|
|
29391
|
+
_context3.next = 7;
|
|
29358
29392
|
return fetchData({
|
|
29359
29393
|
body: JSON.stringify(readqueries)
|
|
29360
29394
|
}, __readDocumentUrl__);
|
|
29361
29395
|
|
|
29362
|
-
case
|
|
29396
|
+
case 7:
|
|
29363
29397
|
data = _context3.sent;
|
|
29364
29398
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
29365
29399
|
data: data.result
|
|
29366
29400
|
}));
|
|
29367
29401
|
|
|
29368
|
-
case
|
|
29369
|
-
_context3.prev =
|
|
29402
|
+
case 11:
|
|
29403
|
+
_context3.prev = 11;
|
|
29370
29404
|
_context3.t0 = _context3["catch"](2);
|
|
29371
29405
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject.List), {}, {
|
|
29372
29406
|
message: _context3.t0.message
|
|
29373
29407
|
})));
|
|
29374
29408
|
|
|
29375
|
-
case
|
|
29409
|
+
case 14:
|
|
29376
29410
|
case "end":
|
|
29377
29411
|
return _context3.stop();
|
|
29378
29412
|
}
|
|
29379
29413
|
}
|
|
29380
|
-
}, _callee3, null, [[2,
|
|
29414
|
+
}, _callee3, null, [[2, 11]]);
|
|
29381
29415
|
}))); //single read person
|
|
29382
29416
|
|
|
29383
29417
|
var SINGLE_PERSON_READ = createAsyncThunk("personSlice/single_read_person", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
@@ -30641,7 +30675,7 @@ var queries$5 = {
|
|
|
30641
30675
|
count: perPage
|
|
30642
30676
|
},
|
|
30643
30677
|
sort: "DrugUOM.createddate",
|
|
30644
|
-
return_fields: "merge(DrugUOM,{TotalCount:
|
|
30678
|
+
return_fields: "merge(DrugUOM,{TotalCount:count( FOR duom IN DrugUOM FILTER( LIKe(document(duom.UOMType).display,'%".concat(search, "%',true) || LIKE(duom.UOM,'%").concat(search, "%',true) || LIKE(duom.longdesc,'%").concat(search, "%',true) || LIKE(duom.shortdesc,'%").concat(search, "%',true) ) && duom.activestatus == true return duom._id ), UOMType:(for i in CodingMaster filter i._id == DrugUOM.UOMType return merge(i,{coding:document(i.coding)}))})")
|
|
30645
30679
|
};
|
|
30646
30680
|
},
|
|
30647
30681
|
DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
|