primary_care_admin_binder 0.1.65 → 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 +29 -17
- 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) {
|
|
@@ -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({
|
|
@@ -30663,7 +30675,7 @@ var queries$5 = {
|
|
|
30663
30675
|
count: perPage
|
|
30664
30676
|
},
|
|
30665
30677
|
sort: "DrugUOM.createddate",
|
|
30666
|
-
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)}))})")
|
|
30667
30679
|
};
|
|
30668
30680
|
},
|
|
30669
30681
|
DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
|