primary_care_admin_binder 0.1.58 → 0.1.61
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 +672 -330
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8072,12 +8072,16 @@ var utcTOLocal = function utcTOLocal(date, format) {
|
|
|
8072
8072
|
};
|
|
8073
8073
|
|
|
8074
8074
|
var queries$n = {
|
|
8075
|
-
rolelist: function rolelist(type) {
|
|
8075
|
+
rolelist: function rolelist(type, page, perPage, search) {
|
|
8076
8076
|
return {
|
|
8077
8077
|
db_name: dbName$1,
|
|
8078
8078
|
entity: "CodeableConceptMaster",
|
|
8079
|
-
filter: "CodeableConceptMaster.Type=='".concat(type, "'"),
|
|
8080
|
-
|
|
8079
|
+
filter: "CodeableConceptMaster.Type=='".concat(type, "' && (like(document(CodeableConceptMaster.coding[0]).code,'%").concat(search, "%',true) || like(document(CodeableConceptMaster.coding[0]).shortdesc,'%").concat(search, "%',true) || like(document(CodeableConceptMaster.coding[0]).display,'%").concat(search, "%',true)) && CodeableConceptMaster.activestatus==true"),
|
|
8080
|
+
limit: {
|
|
8081
|
+
"offset": page,
|
|
8082
|
+
"count": perPage
|
|
8083
|
+
},
|
|
8084
|
+
return_fields: "MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='".concat(type, "' RETURN cnt._key), coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"),
|
|
8081
8085
|
sort: "CodeableConceptMaster.createddate"
|
|
8082
8086
|
};
|
|
8083
8087
|
},
|
|
@@ -8138,7 +8142,22 @@ var queries$n = {
|
|
|
8138
8142
|
return_fields: "merge(Practitioner,{identifier:(for doc in IdentifierMaster filter doc._id in Practitioner.identifier return merge(doc,{period:(for cod in doc.period return document(cod))})),address:(for a in Practitioner.address return document(a)),communication:( FOR cod IN CodeableConceptMaster filter cod._id in Practitioner.communication RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),marital_status:(FOR cod IN CodeableConceptMaster filter cod._id==Practitioner.marital_status RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),name:(for a in Practitioner.name return document(a)),nationality:(FOR cod IN SMGeographicMaster filter cod._id==Practitioner.nationality RETURN cod),photo:(for a in Practitioner.photo return document(a)),position:(for pt in CodeableConceptMaster filter pt._id==Practitioner.position return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))})),practitioner_type:(for pt in CodeableConceptMaster filter pt._id==Practitioner.practitioner_type return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))})),telecom:(for a in Practitioner.telecom return document(a)),job_experience:(for c in Practitioner.job_experience RETURN merge(c,{jobexperience_contact_details:(for con in c.jobexperience_contact_details return document(con)), jobexperience_address:(for add in c.jobexperience_address return document(add))})),training_details:(for c in Practitioner.training_details RETURN merge(c,{training_contact_details:(for con in c.training_contact_details return document(con)), training_address:(for add in c.training_address return document(add))})),practitioner_role:(for doc in PractitionerRole filter doc._id IN Practitioner.practitioner_role return MERGE(doc,{telecom:(for rol in ContactPointMaster filter rol._id in doc.telecom return rol),role:(for cod in CodeableConceptMaster filter cod._id==doc.role return merge(cod,{coding:(for code in CodingMaster filter code._id in cod.coding return code)})),period:(for per in periodMaster filter per._id in doc.period return per)})),gender:(FOR cod IN CodeableConceptMaster filter cod._id==Practitioner.gender RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),employee_status:(for pt in CodeableConceptMaster filter pt._id==Practitioner.employee_status return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))}))})"
|
|
8139
8143
|
};
|
|
8140
8144
|
},
|
|
8141
|
-
practitioner_list:
|
|
8145
|
+
practitioner_list: function practitioner_list() {
|
|
8146
|
+
var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
8147
|
+
var perPage = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
8148
|
+
var search = arguments.length > 2 ? arguments[2] : undefined;
|
|
8149
|
+
return {
|
|
8150
|
+
db_name: dbName$1,
|
|
8151
|
+
entity: "Practitioner",
|
|
8152
|
+
sort: "Practitioner.createddate",
|
|
8153
|
+
filter: "(like(document(first(Practitioner.name)).text,'%".concat(search, "%',true) || like(document(first(document(Practitioner.practitioner_type).coding)).display,'%").concat(search, "%',true) || like(document(document(document(Practitioner.practitioner_role[0]).SpecialtyID).coding[0]).display,'%").concat(search, "%',true)) && Practitioner.activestatus==true"),
|
|
8154
|
+
limit: {
|
|
8155
|
+
"offset": page,
|
|
8156
|
+
"count": perPage
|
|
8157
|
+
},
|
|
8158
|
+
return_fields: "{TotalCount:COUNT(FOR cnt IN Practitioner RETURN cnt._key), 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
|
+
};
|
|
8160
|
+
},
|
|
8142
8161
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
8143
8162
|
return [{
|
|
8144
8163
|
db_name: dbName$1,
|
|
@@ -8571,6 +8590,9 @@ var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlis
|
|
|
8571
8590
|
_ref2,
|
|
8572
8591
|
rejectWithValue,
|
|
8573
8592
|
type,
|
|
8593
|
+
page,
|
|
8594
|
+
perPage,
|
|
8595
|
+
search,
|
|
8574
8596
|
data,
|
|
8575
8597
|
arry,
|
|
8576
8598
|
_args = arguments;
|
|
@@ -8582,10 +8604,10 @@ var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlis
|
|
|
8582
8604
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
8583
8605
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
8584
8606
|
_context.prev = 2;
|
|
8585
|
-
type = payload.type;
|
|
8607
|
+
type = payload.type, page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
8586
8608
|
_context.next = 6;
|
|
8587
8609
|
return fetchData({
|
|
8588
|
-
body: JSON.stringify(queries$n.rolelist(type))
|
|
8610
|
+
body: JSON.stringify(queries$n.rolelist(type, page, perPage, search ? search : ''))
|
|
8589
8611
|
}, __readDocumentUrl__);
|
|
8590
8612
|
|
|
8591
8613
|
case 6:
|
|
@@ -8596,6 +8618,7 @@ var PRACTITIONER_ROLE_READ = createAsyncThunk("practitionerSlice/practitionerlis
|
|
|
8596
8618
|
var _val$coding$0$_key;
|
|
8597
8619
|
|
|
8598
8620
|
arry.push({
|
|
8621
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
8599
8622
|
"code_type": val.coding[0].code,
|
|
8600
8623
|
"description": val.coding[0].display,
|
|
8601
8624
|
"coding_key": (_val$coding$0$_key = val.coding[0]._key) !== null && _val$coding$0$_key !== void 0 ? _val$coding$0$_key : null,
|
|
@@ -8676,7 +8699,8 @@ var PRACTITIONER_ROLE_UPSERT = createAsyncThunk("practitionerSlice/practitionerR
|
|
|
8676
8699
|
}, _callee2, null, [[2, 11]]);
|
|
8677
8700
|
})));
|
|
8678
8701
|
var PRACTITIONER_LIST_READ = createAsyncThunk("practitionerSlice/practitioner", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
8679
|
-
var
|
|
8702
|
+
var payload,
|
|
8703
|
+
_ref6,
|
|
8680
8704
|
rejectWithValue,
|
|
8681
8705
|
data,
|
|
8682
8706
|
arry,
|
|
@@ -8686,11 +8710,12 @@ var PRACTITIONER_LIST_READ = createAsyncThunk("practitionerSlice/practitioner",
|
|
|
8686
8710
|
while (1) {
|
|
8687
8711
|
switch (_context3.prev = _context3.next) {
|
|
8688
8712
|
case 0:
|
|
8713
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
8689
8714
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
8690
8715
|
_context3.prev = 2;
|
|
8691
8716
|
_context3.next = 5;
|
|
8692
8717
|
return fetchData({
|
|
8693
|
-
body: queries$n.practitioner_list
|
|
8718
|
+
body: JSON.stringify(queries$n.practitioner_list(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
8694
8719
|
}, __readDocumentUrl__);
|
|
8695
8720
|
|
|
8696
8721
|
case 5:
|
|
@@ -8699,6 +8724,7 @@ var PRACTITIONER_LIST_READ = createAsyncThunk("practitionerSlice/practitioner",
|
|
|
8699
8724
|
data.result.map(function (val) {
|
|
8700
8725
|
// if(val.name){
|
|
8701
8726
|
arry.push({
|
|
8727
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
8702
8728
|
"name": val.name ? val.name : "-",
|
|
8703
8729
|
"primaryspeciality": val.Practitionerrole[0] && val.Practitionerrole[0].SpecialtyID[0] ? val.Practitionerrole[0].SpecialtyID[0].coding.join() : "-",
|
|
8704
8730
|
"type": val.type[0] ? val.type[0].coding.join() : "-",
|
|
@@ -10040,7 +10066,9 @@ var query$c = {
|
|
|
10040
10066
|
// "entity": "AgeRanges",
|
|
10041
10067
|
// "return_fields": "MERGE(AgeRanges, {AgeCategory: (FOR cat IN TO_ARRAY(AgeRanges.AgeCategory) RETURN MERGE(DOCUMENT(cat), {UOM:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(cat).UOM).coding) RETURN MERGE(DOCUMENT(DOCUMENT(cat).UOM),{coding:DOCUMENT(cod)} ) ) } ) ) } )"
|
|
10042
10068
|
// }`,
|
|
10043
|
-
getAgeRange:
|
|
10069
|
+
getAgeRange: function getAgeRange(page, perPage, search) {
|
|
10070
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeRanges\",\n \"filter\": \"(LIKE(AgeRanges.agerangecode,'%").concat(search, "%',true) || LIKE(AgeRanges.longdesc,'%").concat(search, "%',true) || LIKE(AgeRanges.shortdesc,'%").concat(search, "%',true)) && AgeRanges.activestatus == true\",\n \"limit\" : { \"offset\" : ").concat(page, ", \"count\": ").concat(perPage, "},\n \"return_fields\": \"MERGE(AgeRanges, {TotalCount:COUNT(").concat(search ? "FOR cnt IN AgeRanges filter UPPER(cnt.agerangecode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.longdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(cnt.shortdesc) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN AgeRanges RETURN cnt._key", "), AgeCategory: (FOR cat IN TO_ARRAY(AgeRanges.AgeCategory) RETURN MERGE(DOCUMENT(cat), {UOM:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(cat).UOM).coding) RETURN MERGE(DOCUMENT(DOCUMENT(cat).UOM),{coding:DOCUMENT(cod)} ) ) } ) ) } )\",\n \"sort\":\"AgeRanges.createddate\"\n }");
|
|
10071
|
+
}
|
|
10044
10072
|
};
|
|
10045
10073
|
|
|
10046
10074
|
var generateJson$c = function generateJson(data) {
|
|
@@ -10234,7 +10262,8 @@ var UNIT_UOM = createAsyncThunk("ageRangeMasterApiSlice/unit_uom_list", /*#__PUR
|
|
|
10234
10262
|
}, _callee3, null, [[2, 11]]);
|
|
10235
10263
|
})));
|
|
10236
10264
|
var GET_AGE_RANGE_MASTER = createAsyncThunk("ageRangeMasterApiSlice/age_range_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
10237
|
-
var
|
|
10265
|
+
var payload,
|
|
10266
|
+
_ref8,
|
|
10238
10267
|
rejectWithValue,
|
|
10239
10268
|
data,
|
|
10240
10269
|
_args4 = arguments;
|
|
@@ -10243,32 +10272,34 @@ var GET_AGE_RANGE_MASTER = createAsyncThunk("ageRangeMasterApiSlice/age_range_li
|
|
|
10243
10272
|
while (1) {
|
|
10244
10273
|
switch (_context4.prev = _context4.next) {
|
|
10245
10274
|
case 0:
|
|
10275
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
10246
10276
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
10247
|
-
|
|
10248
|
-
_context4.
|
|
10277
|
+
debugger;
|
|
10278
|
+
_context4.prev = 3;
|
|
10279
|
+
_context4.next = 6;
|
|
10249
10280
|
return fetchData({
|
|
10250
|
-
body: query$c.getAgeRange
|
|
10281
|
+
body: query$c.getAgeRange(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '')
|
|
10251
10282
|
}, __readDocumentUrl__);
|
|
10252
10283
|
|
|
10253
|
-
case
|
|
10284
|
+
case 6:
|
|
10254
10285
|
data = _context4.sent;
|
|
10255
10286
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
10256
10287
|
data: data.result
|
|
10257
10288
|
}));
|
|
10258
10289
|
|
|
10259
|
-
case
|
|
10260
|
-
_context4.prev =
|
|
10261
|
-
_context4.t0 = _context4["catch"](
|
|
10290
|
+
case 10:
|
|
10291
|
+
_context4.prev = 10;
|
|
10292
|
+
_context4.t0 = _context4["catch"](3);
|
|
10262
10293
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
10263
10294
|
message: _context4.t0.message
|
|
10264
10295
|
})));
|
|
10265
10296
|
|
|
10266
|
-
case
|
|
10297
|
+
case 13:
|
|
10267
10298
|
case "end":
|
|
10268
10299
|
return _context4.stop();
|
|
10269
10300
|
}
|
|
10270
10301
|
}
|
|
10271
|
-
}, _callee4, null, [[
|
|
10302
|
+
}, _callee4, null, [[3, 10]]);
|
|
10272
10303
|
})));
|
|
10273
10304
|
var ageRangeMasterSlice = createSlice({
|
|
10274
10305
|
name: "ageRangeMasterApiSlice",
|
|
@@ -10313,7 +10344,21 @@ var ageRangeMasterActions = {
|
|
|
10313
10344
|
var ageRangeMasterSlice$1 = ageRangeMasterSlice.reducer;
|
|
10314
10345
|
|
|
10315
10346
|
var query$b = {
|
|
10316
|
-
getList:
|
|
10347
|
+
getList: function getList(page, perPage, search) {
|
|
10348
|
+
return {
|
|
10349
|
+
db_name: dbName$1,
|
|
10350
|
+
entity: "VitalsMeasureCodes",
|
|
10351
|
+
sort: "VitalsMeasureCodes.createddate",
|
|
10352
|
+
limit: {
|
|
10353
|
+
offset: page,
|
|
10354
|
+
count: perPage
|
|
10355
|
+
},
|
|
10356
|
+
filter: {
|
|
10357
|
+
"VitalsMeasureCodes": "VitalsMeasureCodes.activestatus==true ".concat(search ? "&& UPPER(VitalsMeasureCodes.ObsValMeasCode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(VitalsMeasureCodes.ResourceType.longdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(VitalsMeasureCodes.ResourceRole.shortdesc) LIKE '%").concat(search.toUpperCase(), "%'") : "")
|
|
10358
|
+
},
|
|
10359
|
+
return_fields: "MERGE(VitalsMeasureCodes, {TotalCount: count(FOR cnt IN VitalsMeasureCodes FILTER (LIKE(cnt.ObsValMeasCode,'%".concat(search, "%',true) || LIKE(cnt.VitalsMeasureCodes.ResourceType.longdesc,'%").concat(search, "%',true) || LIKE(cnt.VitalsMeasureCodes.ResourceRole.shortdesc,'%").concat(search, "%',true)) && cnt.activestatus==true return cnt._key)})")
|
|
10360
|
+
};
|
|
10361
|
+
}
|
|
10317
10362
|
};
|
|
10318
10363
|
|
|
10319
10364
|
var generateJson$b = function generateJson(data) {
|
|
@@ -10344,8 +10389,10 @@ var generateJson$b = function generateJson(data) {
|
|
|
10344
10389
|
|
|
10345
10390
|
var _extraReducers$H;
|
|
10346
10391
|
var GET_VITALS_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/age_range_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
10347
|
-
var
|
|
10392
|
+
var payload,
|
|
10393
|
+
_ref2,
|
|
10348
10394
|
rejectWithValue,
|
|
10395
|
+
search,
|
|
10349
10396
|
data,
|
|
10350
10397
|
TableData,
|
|
10351
10398
|
_args = arguments;
|
|
@@ -10354,14 +10401,16 @@ var GET_VITALS_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/age_range_li
|
|
|
10354
10401
|
while (1) {
|
|
10355
10402
|
switch (_context.prev = _context.next) {
|
|
10356
10403
|
case 0:
|
|
10404
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
10357
10405
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
10358
10406
|
_context.prev = 2;
|
|
10359
|
-
|
|
10407
|
+
search = payload.search;
|
|
10408
|
+
_context.next = 6;
|
|
10360
10409
|
return fetchData({
|
|
10361
|
-
body: query$b.getList
|
|
10410
|
+
body: JSON.stringify(query$b.getList(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, search ? search : ''))
|
|
10362
10411
|
}, __readDocumentUrl__);
|
|
10363
10412
|
|
|
10364
|
-
case
|
|
10413
|
+
case 6:
|
|
10365
10414
|
data = _context.sent;
|
|
10366
10415
|
TableData = data.result.sort(function (a, b) {
|
|
10367
10416
|
return (a === null || a === void 0 ? void 0 : a.createddate) - (b === null || b === void 0 ? void 0 : b.createddate);
|
|
@@ -10370,19 +10419,19 @@ var GET_VITALS_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/age_range_li
|
|
|
10370
10419
|
data: TableData
|
|
10371
10420
|
}));
|
|
10372
10421
|
|
|
10373
|
-
case
|
|
10374
|
-
_context.prev =
|
|
10422
|
+
case 11:
|
|
10423
|
+
_context.prev = 11;
|
|
10375
10424
|
_context.t0 = _context["catch"](2);
|
|
10376
10425
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
10377
10426
|
message: _context.t0.message
|
|
10378
10427
|
})));
|
|
10379
10428
|
|
|
10380
|
-
case
|
|
10429
|
+
case 14:
|
|
10381
10430
|
case "end":
|
|
10382
10431
|
return _context.stop();
|
|
10383
10432
|
}
|
|
10384
10433
|
}
|
|
10385
|
-
}, _callee, null, [[2,
|
|
10434
|
+
}, _callee, null, [[2, 11]]);
|
|
10386
10435
|
})));
|
|
10387
10436
|
var UPSERT_MEASURE_CODE = createAsyncThunk("measureCodeApiSlice/save_measure_code", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
10388
10437
|
var payload,
|
|
@@ -10560,7 +10609,19 @@ var query$a = {
|
|
|
10560
10609
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
10561
10610
|
};
|
|
10562
10611
|
},
|
|
10563
|
-
VitalApplicableRead:
|
|
10612
|
+
VitalApplicableRead: function VitalApplicableRead(page, perPage, search) {
|
|
10613
|
+
return {
|
|
10614
|
+
db_name: dbName$1,
|
|
10615
|
+
entity: "VitalsApplbyPatAtrrib",
|
|
10616
|
+
sort: "VitalsApplbyPatAtrrib.createddate",
|
|
10617
|
+
filter: "VitalsApplbyPatAtrrib.activestatus==true ".concat(search ? "&& UPPER(VitalsApplbyPatAtrrib.spltycode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(VitalsApplbyPatAtrrib.diagcode.icdname) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
10618
|
+
limit: {
|
|
10619
|
+
offset: page,
|
|
10620
|
+
count: perPage
|
|
10621
|
+
},
|
|
10622
|
+
return_fields: "merge(VitalsApplbyPatAtrrib,{TotalCount:COUNT(".concat(search ? "FOR cnt IN VitalsApplbyPatAtrrib filter UPPER(cnt.spltycode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.diagcode.icdname) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN VitalsApplbyPatAtrrib RETURN cnt._key", "),organization_id:(document(VitalsApplbyPatAtrrib.organization_id)),gender:(FOR cod IN CodeableConceptMaster filter cod._id==VitalsApplbyPatAtrrib.gender RETURN MERGE(cod,{coding:(FOR d IN TO_ARRAY(cod.coding) RETURN DOCUMENT(d).display)})),spltycode:(FOR cod IN CodeableConceptMaster filter cod._id==VitalsApplbyPatAtrrib.spltycode RETURN MERGE(cod,{coding:(FOR d IN TO_ARRAY(cod.coding) RETURN DOCUMENT(d))})),diagcode:(document(VitalsApplbyPatAtrrib.diagcode)),agecategorycode:(document(VitalsApplbyPatAtrrib.agecategorycode)),agerangecode:(document(VitalsApplbyPatAtrrib.agerangecode)),orgEntityType:(document(VitalsApplbyPatAtrrib.orgEntityType))})")
|
|
10623
|
+
};
|
|
10624
|
+
},
|
|
10564
10625
|
editVitalApplicable: function editVitalApplicable(id) {
|
|
10565
10626
|
return {
|
|
10566
10627
|
db_name: dbName$1,
|
|
@@ -10637,6 +10698,7 @@ var generateApplicableResJson = function generateApplicableResJson(data, state)
|
|
|
10637
10698
|
});
|
|
10638
10699
|
var list = TableData.map(function (val) {
|
|
10639
10700
|
return {
|
|
10701
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
10640
10702
|
specialCode: val.spltycode.length > 0 ? val.spltycode[0].coding[0].display : "",
|
|
10641
10703
|
diagnosisGroup: GetDiagnosis(val.diagcode),
|
|
10642
10704
|
gender: val.gender.length > 0 ? val.gender[0].coding[0] : "",
|
|
@@ -11207,9 +11269,11 @@ var SAVE_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/savevitala
|
|
|
11207
11269
|
}, _callee10, null, [[2, 11]]);
|
|
11208
11270
|
})));
|
|
11209
11271
|
var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsapplicableread", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
11210
|
-
var
|
|
11272
|
+
var payload,
|
|
11273
|
+
_ref22,
|
|
11211
11274
|
rejectWithValue,
|
|
11212
11275
|
getState,
|
|
11276
|
+
search,
|
|
11213
11277
|
data,
|
|
11214
11278
|
res,
|
|
11215
11279
|
_args11 = arguments;
|
|
@@ -11218,38 +11282,40 @@ var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsappl
|
|
|
11218
11282
|
while (1) {
|
|
11219
11283
|
switch (_context11.prev = _context11.next) {
|
|
11220
11284
|
case 0:
|
|
11285
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
11221
11286
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue, getState = _ref22.getState;
|
|
11222
11287
|
_context11.prev = 2;
|
|
11288
|
+
search = payload.search;
|
|
11223
11289
|
getState();
|
|
11224
11290
|
// { body: query.diagnosis },
|
|
11225
11291
|
// __readDocumentUrl__
|
|
11226
11292
|
// );
|
|
11227
11293
|
|
|
11228
|
-
_context11.next =
|
|
11294
|
+
_context11.next = 8;
|
|
11229
11295
|
return fetchData({
|
|
11230
|
-
body: query$a.VitalApplicableRead
|
|
11296
|
+
body: JSON.stringify(query$a.VitalApplicableRead(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, search))
|
|
11231
11297
|
}, __readDocumentUrl__);
|
|
11232
11298
|
|
|
11233
|
-
case
|
|
11299
|
+
case 8:
|
|
11234
11300
|
data = _context11.sent;
|
|
11235
11301
|
res = generateApplicableResJson(data.result);
|
|
11236
11302
|
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
11237
11303
|
data: res
|
|
11238
11304
|
}));
|
|
11239
11305
|
|
|
11240
|
-
case
|
|
11241
|
-
_context11.prev =
|
|
11306
|
+
case 13:
|
|
11307
|
+
_context11.prev = 13;
|
|
11242
11308
|
_context11.t0 = _context11["catch"](2);
|
|
11243
11309
|
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
11244
11310
|
message: _context11.t0.message
|
|
11245
11311
|
})));
|
|
11246
11312
|
|
|
11247
|
-
case
|
|
11313
|
+
case 16:
|
|
11248
11314
|
case "end":
|
|
11249
11315
|
return _context11.stop();
|
|
11250
11316
|
}
|
|
11251
11317
|
}
|
|
11252
|
-
}, _callee11, null, [[2,
|
|
11318
|
+
}, _callee11, null, [[2, 13]]);
|
|
11253
11319
|
})));
|
|
11254
11320
|
var UPDATE_VITAL_APPLICABLE_STATUS = createAsyncThunk("vitalApplicableApiSlice/vitalsApplicableUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
11255
11321
|
var payload,
|
|
@@ -11547,7 +11613,19 @@ var query$9 = {
|
|
|
11547
11613
|
return_fields: "VitalsMeasureCodes"
|
|
11548
11614
|
};
|
|
11549
11615
|
},
|
|
11550
|
-
VitalRead:
|
|
11616
|
+
VitalRead: function VitalRead(page, perPage, search) {
|
|
11617
|
+
return {
|
|
11618
|
+
db_name: dbName$1,
|
|
11619
|
+
entity: "VitalsCodes",
|
|
11620
|
+
sort: "VitalsCodes.createddate",
|
|
11621
|
+
filter: "VitalsCodes.activestatus==true ".concat(search ? "&& UPPER(VitalsCodes.vitalscode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(VitalsCodes.longdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(VitalsCodes.shortdesc) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
11622
|
+
limit: {
|
|
11623
|
+
offset: page,
|
|
11624
|
+
count: perPage
|
|
11625
|
+
},
|
|
11626
|
+
return_fields: "MERGE(VitalsCodes,{TotalCount:COUNT(".concat(search ? "FOR cnt IN VitalsCodes filter UPPER(cnt.vitalscode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.longdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(cnt.shortdesc) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN VitalsCodes RETURN cnt._key", "), VitalsCodesReferenceRanges:(FOR cod IN VitalsCodes.VitalsCodesReferenceRanges RETURN DOCUMENT(cod))})")
|
|
11627
|
+
};
|
|
11628
|
+
},
|
|
11551
11629
|
deleteVitalMaster: function deleteVitalMaster(id) {
|
|
11552
11630
|
return {
|
|
11553
11631
|
db_name: dbName$1,
|
|
@@ -12089,8 +12167,10 @@ var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalm
|
|
|
12089
12167
|
}, _callee7, null, [[2, 11]]);
|
|
12090
12168
|
})));
|
|
12091
12169
|
var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterread", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
12092
|
-
var
|
|
12170
|
+
var payload,
|
|
12171
|
+
_ref16,
|
|
12093
12172
|
rejectWithValue,
|
|
12173
|
+
search,
|
|
12094
12174
|
data,
|
|
12095
12175
|
res,
|
|
12096
12176
|
_args8 = arguments;
|
|
@@ -12099,33 +12179,37 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
|
|
|
12099
12179
|
while (1) {
|
|
12100
12180
|
switch (_context8.prev = _context8.next) {
|
|
12101
12181
|
case 0:
|
|
12182
|
+
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
12102
12183
|
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
12103
12184
|
_context8.prev = 2;
|
|
12104
|
-
|
|
12185
|
+
search = payload.search; // let state = getState();
|
|
12186
|
+
// let ccState = state.DiagnosisMasterSlice;
|
|
12187
|
+
|
|
12188
|
+
_context8.next = 6;
|
|
12105
12189
|
return fetchData({
|
|
12106
|
-
body: query$9.VitalRead
|
|
12190
|
+
body: JSON.stringify(query$9.VitalRead(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, search))
|
|
12107
12191
|
}, __readDocumentUrl__);
|
|
12108
12192
|
|
|
12109
|
-
case
|
|
12193
|
+
case 6:
|
|
12110
12194
|
data = _context8.sent;
|
|
12111
12195
|
res = generateResJson$1(data.result);
|
|
12112
12196
|
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12113
12197
|
data: res
|
|
12114
12198
|
}));
|
|
12115
12199
|
|
|
12116
|
-
case
|
|
12117
|
-
_context8.prev =
|
|
12200
|
+
case 11:
|
|
12201
|
+
_context8.prev = 11;
|
|
12118
12202
|
_context8.t0 = _context8["catch"](2);
|
|
12119
12203
|
return _context8.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12120
12204
|
message: _context8.t0.message
|
|
12121
12205
|
})));
|
|
12122
12206
|
|
|
12123
|
-
case
|
|
12207
|
+
case 14:
|
|
12124
12208
|
case "end":
|
|
12125
12209
|
return _context8.stop();
|
|
12126
12210
|
}
|
|
12127
12211
|
}
|
|
12128
|
-
}, _callee8, null, [[2,
|
|
12212
|
+
}, _callee8, null, [[2, 11]]);
|
|
12129
12213
|
})));
|
|
12130
12214
|
var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
12131
12215
|
var payload,
|
|
@@ -12367,7 +12451,7 @@ var vitalsMasterSectionActions = {
|
|
|
12367
12451
|
var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
|
|
12368
12452
|
|
|
12369
12453
|
var queries$m = {
|
|
12370
|
-
locationlist: function locationlist(type) {
|
|
12454
|
+
locationlist: function locationlist(type, page, perPage) {
|
|
12371
12455
|
// return {
|
|
12372
12456
|
// db_name: dbName,
|
|
12373
12457
|
// entity:
|
|
@@ -12380,8 +12464,13 @@ var queries$m = {
|
|
|
12380
12464
|
return {
|
|
12381
12465
|
db_name: dbName$1,
|
|
12382
12466
|
entity: "LocationMaster",
|
|
12467
|
+
limit: {
|
|
12468
|
+
"offset": page,
|
|
12469
|
+
"count": perPage
|
|
12470
|
+
},
|
|
12383
12471
|
filter: "LocationMaster.activestatus==true",
|
|
12384
|
-
return_fields: "merge(
|
|
12472
|
+
// 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(For loc IN LocationMaster filter loc.activestatus==true return loc._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)}))})"
|
|
12385
12474
|
|
|
12386
12475
|
};
|
|
12387
12476
|
},
|
|
@@ -12700,6 +12789,8 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12700
12789
|
_ref2,
|
|
12701
12790
|
rejectWithValue,
|
|
12702
12791
|
type,
|
|
12792
|
+
page,
|
|
12793
|
+
perPage,
|
|
12703
12794
|
data,
|
|
12704
12795
|
arry,
|
|
12705
12796
|
_args = arguments;
|
|
@@ -12711,10 +12802,10 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12711
12802
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
12712
12803
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
12713
12804
|
_context.prev = 2;
|
|
12714
|
-
type = payload.type;
|
|
12805
|
+
type = payload.type, page = payload.page, perPage = payload.perPage;
|
|
12715
12806
|
_context.next = 6;
|
|
12716
12807
|
return fetchData({
|
|
12717
|
-
body: JSON.stringify(queries$m.locationlist(type))
|
|
12808
|
+
body: JSON.stringify(queries$m.locationlist(type, page, perPage))
|
|
12718
12809
|
}, __readDocumentUrl__);
|
|
12719
12810
|
|
|
12720
12811
|
case 6:
|
|
@@ -12740,7 +12831,8 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12740
12831
|
id: val.id,
|
|
12741
12832
|
_id: val._id,
|
|
12742
12833
|
status: val.status === "Active" ? true : false,
|
|
12743
|
-
active_status: val.activestatus
|
|
12834
|
+
active_status: val.activestatus,
|
|
12835
|
+
totalCount: val === null || val === void 0 ? void 0 : val.TotalCount
|
|
12744
12836
|
});
|
|
12745
12837
|
}
|
|
12746
12838
|
});
|
|
@@ -14100,13 +14192,17 @@ var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
|
14100
14192
|
|
|
14101
14193
|
// import { dbName } from "../../qdm_query_ids";
|
|
14102
14194
|
var queries$l = {
|
|
14103
|
-
fullread: function fullread(
|
|
14195
|
+
fullread: function fullread(page, perPage, search) {
|
|
14104
14196
|
return {
|
|
14105
14197
|
db_name: dbName$1,
|
|
14106
14198
|
entity: "OrderType",
|
|
14107
14199
|
sort: "OrderType.createddate",
|
|
14108
|
-
filter: "OrderType.activestatus == true",
|
|
14109
|
-
|
|
14200
|
+
filter: "(LIKE(OrderType.ordertype,'%".concat(search, "%',true) || LIKE(OrderType.shortdesc,'%").concat(search, "%',true) || LIKE(OrderType.longdesc,'%").concat(search, "%',true) ) && OrderType.activestatus == true"),
|
|
14201
|
+
limit: {
|
|
14202
|
+
offset: page,
|
|
14203
|
+
count: perPage
|
|
14204
|
+
},
|
|
14205
|
+
return_fields: "MERGE(OrderType,{TotalCount:COUNT(FOR cnt IN OrderType RETURN cnt._key),ordercategory:(DOCUMENT(OrderType.ordercategory))})"
|
|
14110
14206
|
};
|
|
14111
14207
|
},
|
|
14112
14208
|
OrderCategory: function OrderCategory() {
|
|
@@ -14181,7 +14277,8 @@ var queries$l = {
|
|
|
14181
14277
|
|
|
14182
14278
|
var _extraReducers$C;
|
|
14183
14279
|
var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
14184
|
-
var
|
|
14280
|
+
var payload,
|
|
14281
|
+
_ref2,
|
|
14185
14282
|
rejectWithValue,
|
|
14186
14283
|
queriesjson,
|
|
14187
14284
|
data,
|
|
@@ -14192,9 +14289,10 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
|
|
|
14192
14289
|
while (1) {
|
|
14193
14290
|
switch (_context.prev = _context.next) {
|
|
14194
14291
|
case 0:
|
|
14292
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
14195
14293
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
14196
14294
|
_context.prev = 2;
|
|
14197
|
-
queriesjson = queries$l.fullread();
|
|
14295
|
+
queriesjson = queries$l.fullread(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '');
|
|
14198
14296
|
_context.next = 6;
|
|
14199
14297
|
return fetchData({
|
|
14200
14298
|
body: JSON.stringify(queriesjson)
|
|
@@ -14210,6 +14308,7 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
|
|
|
14210
14308
|
var _val$ordercategory3, _val$ordercategory4, _val$ordercategory5, _val$ordercategory6;
|
|
14211
14309
|
|
|
14212
14310
|
arry.push({
|
|
14311
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
14213
14312
|
code: val === null || val === void 0 ? void 0 : (_val$ordercategory3 = val.ordercategory) === null || _val$ordercategory3 === void 0 ? void 0 : _val$ordercategory3.ordercategory,
|
|
14214
14313
|
"short": val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
14215
14314
|
"long": val === null || val === void 0 ? void 0 : val.longdesc,
|
|
@@ -14472,13 +14571,18 @@ var ordertypeSlice$1 = ordertypeSlice.reducer;
|
|
|
14472
14571
|
|
|
14473
14572
|
// import { dbName } from "../../qdm_query_ids";
|
|
14474
14573
|
var queries$k = {
|
|
14475
|
-
fullread: function fullread(
|
|
14574
|
+
fullread: function fullread(page, perPage, search) {
|
|
14575
|
+
debugger;
|
|
14476
14576
|
return {
|
|
14477
14577
|
db_name: dbName$1,
|
|
14478
14578
|
entity: "CodeableConceptMaster",
|
|
14479
14579
|
sort: "CodeableConceptMaster.createddate",
|
|
14480
|
-
filter: "CodeableConceptMaster.
|
|
14481
|
-
|
|
14580
|
+
filter: "CodeableConceptMaster.Type == 'ORDERNATURE' && (LIKE(CodeableConceptMaster.shortdesc,'%".concat(search, "%',true)|| LIKE(CodeableConceptMaster.longdesc,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true"),
|
|
14581
|
+
limit: {
|
|
14582
|
+
offset: page,
|
|
14583
|
+
count: perPage
|
|
14584
|
+
},
|
|
14585
|
+
return_fields: "MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.activestatus==true && cnt.Type=='ORDERNATURE' RETURN cnt._key), coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
14482
14586
|
};
|
|
14483
14587
|
},
|
|
14484
14588
|
Insert: function Insert(data) {
|
|
@@ -14550,22 +14654,22 @@ var queries$k = {
|
|
|
14550
14654
|
// },
|
|
14551
14655
|
// ];
|
|
14552
14656
|
return [{
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14657
|
+
db_name: dbName$1,
|
|
14658
|
+
entity: "CodingMaster",
|
|
14659
|
+
is_metadata: true,
|
|
14660
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
14661
|
+
doc: {
|
|
14662
|
+
system: "",
|
|
14663
|
+
version: "1",
|
|
14664
|
+
code: data === null || data === void 0 ? void 0 : data.code,
|
|
14665
|
+
display: data === null || data === void 0 ? void 0 : data.longdesc,
|
|
14666
|
+
userSelected: true,
|
|
14667
|
+
id: 1,
|
|
14668
|
+
Type: "ORDERNATURE",
|
|
14669
|
+
shortdesc: data === null || data === void 0 ? void 0 : data.shortdesc
|
|
14566
14670
|
},
|
|
14567
|
-
|
|
14568
|
-
|
|
14671
|
+
filter: {
|
|
14672
|
+
_key: data === null || data === void 0 ? void 0 : data._key
|
|
14569
14673
|
}
|
|
14570
14674
|
}];
|
|
14571
14675
|
}
|
|
@@ -14573,7 +14677,8 @@ var queries$k = {
|
|
|
14573
14677
|
|
|
14574
14678
|
var _extraReducers$B;
|
|
14575
14679
|
var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
14576
|
-
var
|
|
14680
|
+
var payload,
|
|
14681
|
+
_ref2,
|
|
14577
14682
|
rejectWithValue,
|
|
14578
14683
|
queriesjson,
|
|
14579
14684
|
data,
|
|
@@ -14584,9 +14689,10 @@ var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PU
|
|
|
14584
14689
|
while (1) {
|
|
14585
14690
|
switch (_context.prev = _context.next) {
|
|
14586
14691
|
case 0:
|
|
14692
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
14587
14693
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
14588
14694
|
_context.prev = 2;
|
|
14589
|
-
queriesjson = queries$k.fullread();
|
|
14695
|
+
queriesjson = queries$k.fullread(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '');
|
|
14590
14696
|
_context.next = 6;
|
|
14591
14697
|
return fetchData({
|
|
14592
14698
|
body: JSON.stringify(queriesjson)
|
|
@@ -14602,6 +14708,7 @@ var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PU
|
|
|
14602
14708
|
var _val$coding$3, _val$coding$4, _val$coding$5;
|
|
14603
14709
|
|
|
14604
14710
|
arry.push(_objectSpread2({
|
|
14711
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
14605
14712
|
code: val === null || val === void 0 ? void 0 : (_val$coding$3 = val.coding[0]) === null || _val$coding$3 === void 0 ? void 0 : _val$coding$3.code,
|
|
14606
14713
|
"short": val === null || val === void 0 ? void 0 : (_val$coding$4 = val.coding[0]) === null || _val$coding$4 === void 0 ? void 0 : _val$coding$4.shortdesc,
|
|
14607
14714
|
"long": val === null || val === void 0 ? void 0 : val.coding[0].display,
|
|
@@ -14805,12 +14912,21 @@ var queries$j = {
|
|
|
14805
14912
|
var _ref$isSingle = _ref.isSingle,
|
|
14806
14913
|
isSingle = _ref$isSingle === void 0 ? false : _ref$isSingle,
|
|
14807
14914
|
_ref$key = _ref.key,
|
|
14808
|
-
key = _ref$key === void 0 ? "" : _ref$key
|
|
14915
|
+
key = _ref$key === void 0 ? "" : _ref$key,
|
|
14916
|
+
_ref$page = _ref.page,
|
|
14917
|
+
page = _ref$page === void 0 ? 0 : _ref$page,
|
|
14918
|
+
_ref$perPage = _ref.perPage,
|
|
14919
|
+
perPage = _ref$perPage === void 0 ? 10 : _ref$perPage,
|
|
14920
|
+
search = _ref.search;
|
|
14809
14921
|
var obj = {
|
|
14810
14922
|
db_name: dbName$1,
|
|
14811
14923
|
entity: "OrderCategory",
|
|
14812
|
-
filter: "OrderCategory.activestatus == true",
|
|
14813
|
-
|
|
14924
|
+
filter: "OrderCategory.activestatus == true ".concat(search ? "&& UPPER(OrderCategory.ordercategory) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(OrderCategory.longdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(OrderCategory.shortdesc) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
14925
|
+
limit: {
|
|
14926
|
+
offset: page,
|
|
14927
|
+
count: perPage
|
|
14928
|
+
},
|
|
14929
|
+
return_fields: "MERGE(OrderCategory, {TotalCount:COUNT(".concat(search ? "FOR cnt IN OrderCategory filter UPPER(cnt.ordercategory) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.longdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(cnt.shortdesc) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN OrderCategory RETURN cnt._key", ")})"),
|
|
14814
14930
|
sort: "OrderCategory.createddate ASC"
|
|
14815
14931
|
};
|
|
14816
14932
|
|
|
@@ -14880,12 +14996,21 @@ var queries$j = {
|
|
|
14880
14996
|
var _ref4$isSingle = _ref4.isSingle,
|
|
14881
14997
|
isSingle = _ref4$isSingle === void 0 ? false : _ref4$isSingle,
|
|
14882
14998
|
_ref4$key = _ref4.key,
|
|
14883
|
-
key = _ref4$key === void 0 ? "" : _ref4$key
|
|
14999
|
+
key = _ref4$key === void 0 ? "" : _ref4$key,
|
|
15000
|
+
_ref4$page = _ref4.page,
|
|
15001
|
+
page = _ref4$page === void 0 ? 0 : _ref4$page,
|
|
15002
|
+
_ref4$perPage = _ref4.perPage,
|
|
15003
|
+
perPage = _ref4$perPage === void 0 ? 10 : _ref4$perPage,
|
|
15004
|
+
search = _ref4.search;
|
|
14884
15005
|
var obj = {
|
|
14885
15006
|
db_name: dbName$1,
|
|
14886
15007
|
entity: "CodeableConceptMaster",
|
|
14887
|
-
filter: "CodeableConceptMaster.
|
|
14888
|
-
|
|
15008
|
+
filter: "CodeableConceptMaster.Type == 'ORDERMODE' && (LIKE(CodeableConceptMaster.shortdesc,'%".concat(search ? search : '', "%',true)|| LIKE(CodeableConceptMaster.longdesc,'%").concat(search ? search : '', "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true"),
|
|
15009
|
+
limit: {
|
|
15010
|
+
offset: page,
|
|
15011
|
+
count: perPage
|
|
15012
|
+
},
|
|
15013
|
+
return_fields: "MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.activestatus==true && cnt.Type=='ORDERMODE' RETURN cnt._key), coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
14889
15014
|
};
|
|
14890
15015
|
|
|
14891
15016
|
if (isSingle) {
|
|
@@ -14939,21 +15064,21 @@ var queries$j = {
|
|
|
14939
15064
|
// _key: key,
|
|
14940
15065
|
// };
|
|
14941
15066
|
newData = [{
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
15067
|
+
db_name: dbName$1,
|
|
15068
|
+
entity: "CodingMaster",
|
|
15069
|
+
is_metadata: true,
|
|
15070
|
+
filter: {
|
|
15071
|
+
_key: key
|
|
14947
15072
|
},
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
15073
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15074
|
+
doc: {
|
|
15075
|
+
system: "",
|
|
15076
|
+
version: "1",
|
|
15077
|
+
code: code,
|
|
15078
|
+
display: longdesc,
|
|
15079
|
+
userSelected: true,
|
|
15080
|
+
id: coding_id,
|
|
15081
|
+
Type: "ORDERMODE",
|
|
14957
15082
|
shortdesc: shortdesc
|
|
14958
15083
|
}
|
|
14959
15084
|
}];
|
|
@@ -15016,7 +15141,8 @@ var modeActions = [{
|
|
|
15016
15141
|
id: id,
|
|
15017
15142
|
coding_id: coding_id,
|
|
15018
15143
|
key: key,
|
|
15019
|
-
codeable: codeable
|
|
15144
|
+
codeable: codeable,
|
|
15145
|
+
total_count: codeable === null || codeable === void 0 ? void 0 : codeable.TotalCount
|
|
15020
15146
|
};
|
|
15021
15147
|
});
|
|
15022
15148
|
}
|
|
@@ -15103,8 +15229,10 @@ var categoryActions = [{
|
|
|
15103
15229
|
longdesc = _ref.longdesc,
|
|
15104
15230
|
id = _ref.id,
|
|
15105
15231
|
_key = _ref._key,
|
|
15106
|
-
status = _ref.status
|
|
15232
|
+
status = _ref.status,
|
|
15233
|
+
TotalCount = _ref.TotalCount;
|
|
15107
15234
|
return {
|
|
15235
|
+
total_count: TotalCount,
|
|
15108
15236
|
category: ordercategory,
|
|
15109
15237
|
shortdesc: shortdesc,
|
|
15110
15238
|
longdesc: longdesc,
|
|
@@ -15242,29 +15370,29 @@ var orderMasterSlice$1 = orderMasterSlice.reducer;
|
|
|
15242
15370
|
var queries$i = {
|
|
15243
15371
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
15244
15372
|
return [{
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15373
|
+
db_name: dbName$1,
|
|
15374
|
+
entity: "CodeableConceptMaster",
|
|
15375
|
+
filter: {
|
|
15376
|
+
_key: data._key
|
|
15249
15377
|
},
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15378
|
+
is_metadata: true,
|
|
15379
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15380
|
+
doc: {
|
|
15381
|
+
status: data.status
|
|
15254
15382
|
}
|
|
15255
15383
|
}];
|
|
15256
15384
|
},
|
|
15257
15385
|
status_update_holiday: function status_update_holiday(data) {
|
|
15258
15386
|
return [{
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15262
|
-
|
|
15387
|
+
db_name: dbName$1,
|
|
15388
|
+
entity: "Holiday",
|
|
15389
|
+
filter: {
|
|
15390
|
+
_key: data._key
|
|
15263
15391
|
},
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15392
|
+
is_metadata: true,
|
|
15393
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15394
|
+
doc: {
|
|
15395
|
+
status: data.status
|
|
15268
15396
|
}
|
|
15269
15397
|
}];
|
|
15270
15398
|
},
|
|
@@ -15302,50 +15430,69 @@ var queries$i = {
|
|
|
15302
15430
|
}
|
|
15303
15431
|
|
|
15304
15432
|
return [_objectSpread2(_objectSpread2({
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15433
|
+
db_name: dbName$1,
|
|
15434
|
+
entity: "Holiday",
|
|
15435
|
+
is_metadata: true
|
|
15308
15436
|
}, filter), {}, {
|
|
15309
|
-
|
|
15310
|
-
|
|
15437
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15438
|
+
doc: _objectSpread2(_objectSpread2({
|
|
15311
15439
|
// "_id": "string",
|
|
15312
15440
|
// "CalYear": "number",
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15316
|
-
|
|
15441
|
+
CalDate: data.date ? getUtcTime(moment(data.date)) : null,
|
|
15442
|
+
CalDay: data.date ? moment(data.date).format("dddd") : "",
|
|
15443
|
+
HolidayType: data.holiday_type,
|
|
15444
|
+
HoidayReason: data.holiday_reason,
|
|
15317
15445
|
// "active": "boolean",
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15446
|
+
id: 0,
|
|
15447
|
+
repeat_every_year: data.repeat,
|
|
15448
|
+
status: data.status
|
|
15321
15449
|
}, organization_id), entitytype)
|
|
15322
15450
|
})];
|
|
15323
15451
|
},
|
|
15324
15452
|
holiday_read: function holiday_read(data) {
|
|
15453
|
+
// alert(JSON.stringify(data))
|
|
15454
|
+
var dataSearched = data.search ? data.search : '';
|
|
15325
15455
|
var filter = {
|
|
15326
|
-
|
|
15456
|
+
filter: "Holiday.activestatus == true"
|
|
15457
|
+
};
|
|
15458
|
+
var limit = {
|
|
15459
|
+
limit: {
|
|
15460
|
+
offset: 0,
|
|
15461
|
+
count: 10
|
|
15462
|
+
}
|
|
15327
15463
|
};
|
|
15328
15464
|
|
|
15329
|
-
if (data.
|
|
15465
|
+
if (data.search) {
|
|
15330
15466
|
filter = {
|
|
15331
|
-
|
|
15467
|
+
filter: "( LIKe(Holiday.HoidayReason,'%".concat(data.search, "%',true) || LIKE(Holiday.HolidayType,'%").concat(data.search, "%',true) ) && Holiday.activestatus == true")
|
|
15332
15468
|
};
|
|
15333
15469
|
}
|
|
15334
15470
|
|
|
15335
|
-
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15471
|
+
if (data !== null && data !== void 0 && data.page && data !== null && data !== void 0 && data.perPage) {
|
|
15472
|
+
limit = {
|
|
15473
|
+
"limit": {
|
|
15474
|
+
offset: data === null || data === void 0 ? void 0 : data.page,
|
|
15475
|
+
count: data === null || data === void 0 ? void 0 : data.perPage
|
|
15476
|
+
}
|
|
15477
|
+
};
|
|
15478
|
+
}
|
|
15479
|
+
|
|
15480
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({
|
|
15481
|
+
db_name: dbName$1,
|
|
15482
|
+
entity: "Holiday"
|
|
15483
|
+
}, filter), limit), {}, {
|
|
15484
|
+
sort: "Holiday.CalDate",
|
|
15485
|
+
return_fields: "merge(Holiday,{TotalCount:count(FOR cnt IN Holiday FILTER (LIKE(cnt.HoidayReason,'%".concat(dataSearched, "%',true) || LIKE(cnt.HolidayType,'%").concat(dataSearched, "%',true) ) return cnt._key) ,organization_id:(return document(Holiday.organization_id))},{entitytype:(FOR cod IN CodeableConceptMaster filter cod._id == Holiday.entitytype RETURN MERGE(cod,{coding:(FOR d IN to_array(cod.coding) RETURN DOCUMENT(d).display)}))},{HolidayType:(FOR cod IN CodeableConceptMaster filter cod._id == Holiday.HolidayType RETURN MERGE(cod,{coding:(FOR d IN to_array(cod.coding) RETURN DOCUMENT(d).display)}))})")
|
|
15341
15486
|
});
|
|
15342
15487
|
},
|
|
15343
15488
|
holiday_master: {
|
|
15344
|
-
|
|
15345
|
-
|
|
15346
|
-
|
|
15489
|
+
holiday_type: "{\n \"db_name\":\"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='HOLIDAYTYPE' && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
15490
|
+
entity_name: "{\n \"db_name\":\"".concat(dbName$1, "\",\n \"entity\": \"Organization\",\n \"sort\":\"Organization.name\",\n \"filter\": \"'Hospital' IN Organization.OrgType\",\n \"return_fields\": \"{OrgID:Organization.id,name:Organization.name,_id:Organization._id,OrgType:Organization.OrgType}\"\n }"),
|
|
15491
|
+
entity_type: "{\n \"db_name\":\"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }")
|
|
15492
|
+
},
|
|
15493
|
+
appointment_type_read: function appointment_type_read(page, perPage, search) {
|
|
15494
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \" CodeableConceptMaster.Type == 'APPTYPE' &&(LIKE(document(CodeableConceptMaster.coding[0]).code,'%").concat(search ? search : '', "%',true) ||LIKE(document(CodeableConceptMaster.coding[0]).shortdesc,'%").concat(search ? search : '', "%',true) || LIKE(document(CodeableConceptMaster.coding[0]).longdesc,'%").concat(search ? search : '', "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true\",\n \"limit\": {\n \"offset\": ").concat(page, ",\n \"count\": ").concat(perPage, "\n },\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)},{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='APPTYPE' filter cnt.activestatus==true RETURN cnt._key)})\"\n}");
|
|
15347
15495
|
},
|
|
15348
|
-
appointment_type_read: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='APPTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
15349
15496
|
upsert: function upsert(data) {
|
|
15350
15497
|
var filter = {};
|
|
15351
15498
|
var metadata = {};
|
|
@@ -15372,25 +15519,25 @@ var queries$i = {
|
|
|
15372
15519
|
}
|
|
15373
15520
|
|
|
15374
15521
|
return [_objectSpread2(_objectSpread2({
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15522
|
+
db_name: dbName$1,
|
|
15523
|
+
entity: "CodeableConceptMaster",
|
|
15524
|
+
is_metadata: true,
|
|
15525
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
15379
15526
|
}, filter), {}, {
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15527
|
+
doc: {
|
|
15528
|
+
text: "",
|
|
15529
|
+
coding: [_objectSpread2(_objectSpread2({
|
|
15530
|
+
system: "",
|
|
15531
|
+
version: "1",
|
|
15532
|
+
code: data.code,
|
|
15533
|
+
display: data.description,
|
|
15534
|
+
userSelected: true,
|
|
15535
|
+
id: 0,
|
|
15536
|
+
Type: data.type
|
|
15390
15537
|
}, metadata), coding_key)],
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15538
|
+
Type: data.type,
|
|
15539
|
+
id: 0,
|
|
15540
|
+
status: true
|
|
15394
15541
|
}
|
|
15395
15542
|
})];
|
|
15396
15543
|
}
|
|
@@ -15444,7 +15591,8 @@ var CODEABLE_CONCEPT_MASTER_STATUS_CHANGE = createAsyncThunk("availabilityManage
|
|
|
15444
15591
|
}, _callee, null, [[2, 11]]);
|
|
15445
15592
|
})));
|
|
15446
15593
|
var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appointment_type_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
15447
|
-
var
|
|
15594
|
+
var payload,
|
|
15595
|
+
_ref4,
|
|
15448
15596
|
rejectWithValue,
|
|
15449
15597
|
data,
|
|
15450
15598
|
arry,
|
|
@@ -15454,14 +15602,16 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
|
|
|
15454
15602
|
while (1) {
|
|
15455
15603
|
switch (_context2.prev = _context2.next) {
|
|
15456
15604
|
case 0:
|
|
15605
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
15457
15606
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
15458
|
-
|
|
15459
|
-
_context2.
|
|
15607
|
+
debugger;
|
|
15608
|
+
_context2.prev = 3;
|
|
15609
|
+
_context2.next = 6;
|
|
15460
15610
|
return fetchData({
|
|
15461
|
-
body: queries$i.appointment_type_read
|
|
15611
|
+
body: queries$i.appointment_type_read(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '')
|
|
15462
15612
|
}, __readDocumentUrl__);
|
|
15463
15613
|
|
|
15464
|
-
case
|
|
15614
|
+
case 6:
|
|
15465
15615
|
data = _context2.sent;
|
|
15466
15616
|
arry = [];
|
|
15467
15617
|
data.result.map(function (val) {
|
|
@@ -15469,6 +15619,7 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
|
|
|
15469
15619
|
var _val$coding$0$_key, _val$coding, _val$coding$;
|
|
15470
15620
|
|
|
15471
15621
|
arry.push({
|
|
15622
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
15472
15623
|
"code": val.coding[0].code ? val.coding[0].code : "",
|
|
15473
15624
|
"description": val.coding[0].display ? val.coding[0].display : "",
|
|
15474
15625
|
"id": val.coding[0].id ? val.coding[0].id : 0,
|
|
@@ -15482,20 +15633,20 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
|
|
|
15482
15633
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
15483
15634
|
data: arry
|
|
15484
15635
|
}));
|
|
15485
|
-
|
|
15486
|
-
case
|
|
15487
|
-
_context2.prev =
|
|
15488
|
-
_context2.t0 = _context2["catch"](
|
|
15636
|
+
|
|
15637
|
+
case 12:
|
|
15638
|
+
_context2.prev = 12;
|
|
15639
|
+
_context2.t0 = _context2["catch"](3);
|
|
15489
15640
|
return _context2.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
15490
15641
|
message: _context2.t0.message
|
|
15491
15642
|
})));
|
|
15492
15643
|
|
|
15493
|
-
case
|
|
15644
|
+
case 15:
|
|
15494
15645
|
case "end":
|
|
15495
15646
|
return _context2.stop();
|
|
15496
15647
|
}
|
|
15497
15648
|
}
|
|
15498
|
-
}, _callee2, null, [[
|
|
15649
|
+
}, _callee2, null, [[3, 12]]);
|
|
15499
15650
|
})));
|
|
15500
15651
|
var CODEABLE_CONCEPT_MASTER_UPSERT = createAsyncThunk("availabilityManagementSlice/masterupsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
15501
15652
|
var payload,
|
|
@@ -15752,6 +15903,8 @@ var HOLIDAY_READ = createAsyncThunk("holidaySlice/holidy_list", /*#__PURE__*/_as
|
|
|
15752
15903
|
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
15753
15904
|
_ref7 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
15754
15905
|
_context5.prev = 2;
|
|
15906
|
+
// console.clear()
|
|
15907
|
+
// alert(JSON.stringify(payload));
|
|
15755
15908
|
readqueries = queries$i.holiday_read(payload);
|
|
15756
15909
|
_context5.next = 6;
|
|
15757
15910
|
return fetchData({
|
|
@@ -15764,6 +15917,7 @@ var HOLIDAY_READ = createAsyncThunk("holidaySlice/holidy_list", /*#__PURE__*/_as
|
|
|
15764
15917
|
data.result.map(function (val) {
|
|
15765
15918
|
if (val._key) {
|
|
15766
15919
|
arry.push({
|
|
15920
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
15767
15921
|
"date": val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YY") : null,
|
|
15768
15922
|
"CalDate": val.CalDate ? val.CalDate : null,
|
|
15769
15923
|
"day": val.CalDay ? val.CalDay : "",
|
|
@@ -15955,12 +16109,19 @@ var queries$h = {
|
|
|
15955
16109
|
};
|
|
15956
16110
|
},
|
|
15957
16111
|
res_table_data: function res_table_data(entityType, entityName) {
|
|
16112
|
+
var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
16113
|
+
var perpage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;
|
|
15958
16114
|
return {
|
|
15959
16115
|
db_name: dbName$1,
|
|
15960
16116
|
entity: "ResourcebyApptType",
|
|
15961
16117
|
// filter: "ResourcebyApptType.activestatus==true AND DOCUMENT(ResourcebyApptType.entityType).display=='Hospital' AND DOCUMENT(ResourcebyApptType.organization_id).name=='KMCH Hospital'",
|
|
15962
16118
|
filter: "ResourcebyApptType.activestatus==true ".concat(entityType, " ").concat(entityName),
|
|
15963
|
-
|
|
16119
|
+
// filter: `ResourcebyApptType.organization_id == '${entityType}'&& ResourcebyApptType.entityType== '${entityName}' && (LIKE(ResourcebyApptType.ApptTypeCode,'%Please bring referral letter while coming for consultation%',true) || LIKE(first((ResourcebyApptType.generalInstruction)[*].description),'%Please bring referral letter while coming for consultation%',true) ) && ResourcebyApptType.activestatus == true`,
|
|
16120
|
+
limit: {
|
|
16121
|
+
offset: page,
|
|
16122
|
+
count: perpage
|
|
16123
|
+
},
|
|
16124
|
+
return_fields: "MERGE(ResourcebyApptType,{TotalCount:COUNT(FOR cnt IN ResourcebyApptType RETURN cnt._key) , ApptTypeCode:DOCUMENT(ResourcebyApptType.ApptTypeCode) ,TotNoOfResourcesRequired:(FOR tnr IN ResourcebyApptType.TotNoOfResourcesRequired RETURN MERGE(tnr,{ResourceType:DOCUMENT(tnr.ResourceType),ResourceRole:DOCUMENT(tnr.ResourceRole),DurnUOM:DOCUMENT(tnr.DurnUOM)} )) ,ApptInstructions:(FOR appins IN ResourcebyApptType.ApptInstructions RETURN MERGE(appins,{AppInstructionCriteria:DOCUMENT(appins.AppInstructionCriteria),Appcode:DOCUMENT(appins.Appcode)} )) ,generalInstruction:(FOR gins IN ResourcebyApptType.generalInstruction RETURN MERGE(gins,{fcode:DOCUMENT(gins.fcode)})) ,entityType:DOCUMENT(ResourcebyApptType.entityType) ,organization_id:DOCUMENT(ResourcebyApptType.organization_id) })"
|
|
15964
16125
|
};
|
|
15965
16126
|
},
|
|
15966
16127
|
resource_type_drop_down: function resource_type_drop_down() {
|
|
@@ -16344,7 +16505,7 @@ var RESOURCE_BY_TABLE_DATA = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16344
16505
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
16345
16506
|
_context4.prev = 2;
|
|
16346
16507
|
// let { entityTypeQ, entityNameQ } = payload;
|
|
16347
|
-
queriesjson = queries$h.res_table_data(payload.entityTypeQ, payload.entityNameQ);
|
|
16508
|
+
queriesjson = queries$h.res_table_data(payload.entityTypeQ, payload.entityNameQ, payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload === null || payload === void 0 ? void 0 : payload.search);
|
|
16348
16509
|
_context4.next = 6;
|
|
16349
16510
|
return fetchData({
|
|
16350
16511
|
body: JSON.stringify(queriesjson)
|
|
@@ -16360,7 +16521,8 @@ var RESOURCE_BY_TABLE_DATA = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16360
16521
|
code: val.ApptTypeCode.code,
|
|
16361
16522
|
resources: val.TotNoOfResourcesRequired.length,
|
|
16362
16523
|
status: val.status,
|
|
16363
|
-
allData: val
|
|
16524
|
+
allData: val,
|
|
16525
|
+
total_count: val.TotalCount
|
|
16364
16526
|
});
|
|
16365
16527
|
}
|
|
16366
16528
|
});
|
|
@@ -16887,9 +17049,44 @@ var resourceByAppointmentTypes = {
|
|
|
16887
17049
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
16888
17050
|
|
|
16889
17051
|
var queries$g = {
|
|
16890
|
-
drug_category_read:
|
|
16891
|
-
|
|
16892
|
-
|
|
17052
|
+
drug_category_read: function drug_category_read(page, perPage, search) {
|
|
17053
|
+
return {
|
|
17054
|
+
db_name: dbName$1,
|
|
17055
|
+
entity: "DrugCategory",
|
|
17056
|
+
filter: "(LIKE(DrugCategory.drugcategory,'%".concat(search, "%',true) || LIKE(DrugCategory.shortdesc,'%").concat(search, "%',true) || LIKE(DrugCategory.longdesc,'%").concat(search, "%',true)) && DrugCategory.activestatus == true"),
|
|
17057
|
+
limit: {
|
|
17058
|
+
offset: page,
|
|
17059
|
+
count: perPage
|
|
17060
|
+
},
|
|
17061
|
+
return_fields: "MERGE(DrugCategory, {TotalCount:COUNT(FOR cnt IN DrugCategory RETURN cnt._key)})"
|
|
17062
|
+
};
|
|
17063
|
+
},
|
|
17064
|
+
drug_type_read: function drug_type_read(page, perPage, search) {
|
|
17065
|
+
return {
|
|
17066
|
+
db_name: dbName$1,
|
|
17067
|
+
entity: "DrugType",
|
|
17068
|
+
filter: "(LIKE(DrugType.drugtype,'%".concat(search, "%',true) || LIKE(DrugType.shortdesc,'%").concat(search, "%',true) || LIKE(DrugType.longdesc,'%").concat(search, "%',true)) && DrugType.activestatus == true"),
|
|
17069
|
+
limit: {
|
|
17070
|
+
offset: page,
|
|
17071
|
+
count: perPage
|
|
17072
|
+
},
|
|
17073
|
+
sort: "DrugType.id",
|
|
17074
|
+
return_fields: "MERGE(DrugType, {TotalCount:COUNT(FOR cnt IN DrugType RETURN cnt._key)})"
|
|
17075
|
+
};
|
|
17076
|
+
},
|
|
17077
|
+
drug_dosage: function drug_dosage(page, perPage, search) {
|
|
17078
|
+
return {
|
|
17079
|
+
db_name: dbName$1,
|
|
17080
|
+
entity: "DosageForm",
|
|
17081
|
+
sort: "DosageForm.dosageform",
|
|
17082
|
+
filter: "(LIKE(DosageForm.dosageform,'%".concat(search, "%',true) || LIKE(DosageForm.UOM,'%").concat(search, "%',true) || LIKE(DosageForm.longdesc,'%").concat(search, "%',true)) && DosageForm.activestatus == true"),
|
|
17083
|
+
limit: {
|
|
17084
|
+
offset: page,
|
|
17085
|
+
count: perPage
|
|
17086
|
+
},
|
|
17087
|
+
return_fields: "MERGE(DosageForm, {TotalCount:COUNT(FOR cnt IN DosageForm RETURN cnt._key)})"
|
|
17088
|
+
};
|
|
17089
|
+
},
|
|
16893
17090
|
drug_dosage_upsert: function drug_dosage_upsert(data) {
|
|
16894
17091
|
var filter = {};
|
|
16895
17092
|
|
|
@@ -16902,35 +17099,47 @@ var queries$g = {
|
|
|
16902
17099
|
}
|
|
16903
17100
|
|
|
16904
17101
|
return [_objectSpread2(_objectSpread2({
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
|
|
17102
|
+
db_name: dbName$1,
|
|
17103
|
+
entity: "DosageForm",
|
|
17104
|
+
is_metadata: true
|
|
16908
17105
|
}, filter), {}, {
|
|
16909
|
-
|
|
16910
|
-
|
|
17106
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17107
|
+
doc: {
|
|
16911
17108
|
// "id":0,
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
17109
|
+
dosageform: data.drug_dosage ? data.drug_dosage : "",
|
|
17110
|
+
shortdesc: data.short_description ? data.short_description : "",
|
|
17111
|
+
longdesc: data.long_description ? data.long_description : "",
|
|
17112
|
+
status: data.status ? data.status : false
|
|
16916
17113
|
}
|
|
16917
17114
|
})];
|
|
16918
17115
|
},
|
|
16919
17116
|
status_update_drug_dosage: function status_update_drug_dosage(data) {
|
|
16920
17117
|
return [{
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
17118
|
+
db_name: dbName$1,
|
|
17119
|
+
entity: "DosageForm",
|
|
17120
|
+
filter: {
|
|
17121
|
+
_key: data._key
|
|
16925
17122
|
},
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
17123
|
+
is_metadata: true,
|
|
17124
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17125
|
+
doc: {
|
|
17126
|
+
status: data.status
|
|
16930
17127
|
}
|
|
16931
17128
|
}];
|
|
16932
17129
|
},
|
|
16933
|
-
drug_class:
|
|
17130
|
+
drug_class: function drug_class(page, perPage, search) {
|
|
17131
|
+
return {
|
|
17132
|
+
db_name: dbName$1,
|
|
17133
|
+
entity: "DrugClass",
|
|
17134
|
+
filter: "(LIKE(DrugClass.drugclass,'%".concat(search, "%',true) || LIKE(DrugClass.longdesc,'%").concat(search, "%',true) || LIKE(DrugClass.shortdesc,'%").concat(search, "%',true)) && DrugClass.activestatus == true"),
|
|
17135
|
+
limit: {
|
|
17136
|
+
offset: page,
|
|
17137
|
+
count: perPage
|
|
17138
|
+
},
|
|
17139
|
+
sort: "DrugClass.drugclass",
|
|
17140
|
+
return_fields: "MERGE(DrugClass, {TotalCount:COUNT(FOR cnt IN DrugClass RETURN cnt._key)})"
|
|
17141
|
+
};
|
|
17142
|
+
},
|
|
16934
17143
|
drug_class_upsert: function drug_class_upsert(data) {
|
|
16935
17144
|
var filter = {};
|
|
16936
17145
|
|
|
@@ -16943,46 +17152,58 @@ var queries$g = {
|
|
|
16943
17152
|
}
|
|
16944
17153
|
|
|
16945
17154
|
return [_objectSpread2(_objectSpread2({
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
|
|
17155
|
+
db_name: dbName$1,
|
|
17156
|
+
entity: "DrugClass",
|
|
17157
|
+
is_metadata: true
|
|
16949
17158
|
}, filter), {}, {
|
|
16950
|
-
|
|
16951
|
-
|
|
17159
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17160
|
+
doc: {
|
|
16952
17161
|
// "id":0,
|
|
16953
|
-
|
|
16954
|
-
|
|
16955
|
-
|
|
16956
|
-
|
|
17162
|
+
drugclass: data.drug_class ? data.drug_class : "",
|
|
17163
|
+
shortdesc: data.short_description ? data.short_description : "",
|
|
17164
|
+
longdesc: data.long_description ? data.long_description : "",
|
|
17165
|
+
status: data.status ? data.status : false
|
|
16957
17166
|
}
|
|
16958
17167
|
})];
|
|
16959
17168
|
},
|
|
16960
17169
|
status_update_drug_class: function status_update_drug_class(data) {
|
|
16961
17170
|
return [{
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
17171
|
+
db_name: dbName$1,
|
|
17172
|
+
entity: "DrugClass",
|
|
17173
|
+
filter: {
|
|
17174
|
+
_key: data._key
|
|
16966
17175
|
},
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
17176
|
+
is_metadata: true,
|
|
17177
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17178
|
+
doc: {
|
|
17179
|
+
status: data.status
|
|
16971
17180
|
}
|
|
16972
17181
|
}];
|
|
16973
17182
|
},
|
|
16974
|
-
drug_routes:
|
|
17183
|
+
drug_routes: function drug_routes(page, perPage, search) {
|
|
17184
|
+
return {
|
|
17185
|
+
db_name: dbName$1,
|
|
17186
|
+
entity: "DrugRoutes",
|
|
17187
|
+
sort: "DrugRoutes.routecode",
|
|
17188
|
+
filter: "(LIKE(DrugRoutes.routecode,'%".concat(search, "%',true) || LIKE(DrugRoutes.UOM,'%").concat(search, "%',true) || LIKE(DrugRoutes.longdesc,'%").concat(search, "%',true)) && DrugRoutes.activestatus == true"),
|
|
17189
|
+
limit: {
|
|
17190
|
+
"offset": page,
|
|
17191
|
+
"count": perPage
|
|
17192
|
+
},
|
|
17193
|
+
return_fields: "MERGE(DrugRoutes, {TotalCount:COUNT(FOR cnt IN DrugRoutes RETURN cnt._key)})"
|
|
17194
|
+
};
|
|
17195
|
+
},
|
|
16975
17196
|
status_update_drug_routes: function status_update_drug_routes(data) {
|
|
16976
17197
|
return [{
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
17198
|
+
db_name: dbName$1,
|
|
17199
|
+
entity: "DrugRoutes",
|
|
17200
|
+
filter: {
|
|
17201
|
+
_key: data._key
|
|
16981
17202
|
},
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
17203
|
+
is_metadata: true,
|
|
17204
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17205
|
+
doc: {
|
|
17206
|
+
status: data.status
|
|
16986
17207
|
}
|
|
16987
17208
|
}];
|
|
16988
17209
|
},
|
|
@@ -16998,18 +17219,18 @@ var queries$g = {
|
|
|
16998
17219
|
}
|
|
16999
17220
|
|
|
17000
17221
|
return [_objectSpread2(_objectSpread2({
|
|
17001
|
-
|
|
17002
|
-
|
|
17003
|
-
|
|
17222
|
+
db_name: dbName$1,
|
|
17223
|
+
entity: "DrugRoutes",
|
|
17224
|
+
is_metadata: true
|
|
17004
17225
|
}, filter), {}, {
|
|
17005
|
-
|
|
17006
|
-
|
|
17226
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17227
|
+
doc: {
|
|
17007
17228
|
// "id":0,
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17012
|
-
|
|
17229
|
+
routecode: data.drug_routes ? data.drug_routes : "",
|
|
17230
|
+
routeadverb: data.route_adverb ? data.route_adverb : "",
|
|
17231
|
+
shortdesc: data.short_description ? data.short_description : "",
|
|
17232
|
+
longdesc: data.long_description ? data.long_description : "",
|
|
17233
|
+
status: data.status ? data.status : false
|
|
17013
17234
|
}
|
|
17014
17235
|
})];
|
|
17015
17236
|
}
|
|
@@ -17017,7 +17238,8 @@ var queries$g = {
|
|
|
17017
17238
|
|
|
17018
17239
|
var _extraReducers$x;
|
|
17019
17240
|
var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17020
|
-
var
|
|
17241
|
+
var payload,
|
|
17242
|
+
_ref2,
|
|
17021
17243
|
rejectWithValue,
|
|
17022
17244
|
data,
|
|
17023
17245
|
arry,
|
|
@@ -17027,11 +17249,12 @@ var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list"
|
|
|
17027
17249
|
while (1) {
|
|
17028
17250
|
switch (_context.prev = _context.next) {
|
|
17029
17251
|
case 0:
|
|
17252
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17030
17253
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17031
17254
|
_context.prev = 2;
|
|
17032
17255
|
_context.next = 5;
|
|
17033
17256
|
return fetchData({
|
|
17034
|
-
body: queries$g.drug_category_read
|
|
17257
|
+
body: JSON.stringify(queries$g.drug_category_read(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
17035
17258
|
}, __readDocumentUrl__);
|
|
17036
17259
|
|
|
17037
17260
|
case 5:
|
|
@@ -17040,6 +17263,7 @@ var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list"
|
|
|
17040
17263
|
data.result.map(function (val) {
|
|
17041
17264
|
if (val._key) {
|
|
17042
17265
|
arry.push({
|
|
17266
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17043
17267
|
"drug_category": val.drugcategory ? val.drugcategory : "",
|
|
17044
17268
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17045
17269
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17066,7 +17290,8 @@ var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list"
|
|
|
17066
17290
|
}, _callee, null, [[2, 11]]);
|
|
17067
17291
|
})));
|
|
17068
17292
|
var DRUG_TYPE_READ = createAsyncThunk("drugCategorySlice/drug_type_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
17069
|
-
var
|
|
17293
|
+
var payload,
|
|
17294
|
+
_ref4,
|
|
17070
17295
|
rejectWithValue,
|
|
17071
17296
|
data,
|
|
17072
17297
|
arry,
|
|
@@ -17076,11 +17301,12 @@ var DRUG_TYPE_READ = createAsyncThunk("drugCategorySlice/drug_type_list", /*#__P
|
|
|
17076
17301
|
while (1) {
|
|
17077
17302
|
switch (_context2.prev = _context2.next) {
|
|
17078
17303
|
case 0:
|
|
17304
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
17079
17305
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
17080
17306
|
_context2.prev = 2;
|
|
17081
17307
|
_context2.next = 5;
|
|
17082
17308
|
return fetchData({
|
|
17083
|
-
body: queries$g.drug_type_read
|
|
17309
|
+
body: JSON.stringify(queries$g.drug_type_read(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
17084
17310
|
}, __readDocumentUrl__);
|
|
17085
17311
|
|
|
17086
17312
|
case 5:
|
|
@@ -17089,6 +17315,7 @@ var DRUG_TYPE_READ = createAsyncThunk("drugCategorySlice/drug_type_list", /*#__P
|
|
|
17089
17315
|
data.result.map(function (val) {
|
|
17090
17316
|
if (val._key) {
|
|
17091
17317
|
arry.push({
|
|
17318
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17092
17319
|
"drug_type": val.drugtype ? val.drugtype : "",
|
|
17093
17320
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17094
17321
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17142,7 +17369,8 @@ var drugCategorySlice$1 = drugCategorySlice.reducer;
|
|
|
17142
17369
|
|
|
17143
17370
|
var _extraReducers$w;
|
|
17144
17371
|
var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17145
|
-
var
|
|
17372
|
+
var payload,
|
|
17373
|
+
_ref2,
|
|
17146
17374
|
rejectWithValue,
|
|
17147
17375
|
data,
|
|
17148
17376
|
arry,
|
|
@@ -17152,11 +17380,12 @@ var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#_
|
|
|
17152
17380
|
while (1) {
|
|
17153
17381
|
switch (_context.prev = _context.next) {
|
|
17154
17382
|
case 0:
|
|
17383
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17155
17384
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17156
17385
|
_context.prev = 2;
|
|
17157
17386
|
_context.next = 5;
|
|
17158
17387
|
return fetchData({
|
|
17159
|
-
body: queries$g.drug_dosage
|
|
17388
|
+
body: JSON.stringify(queries$g.drug_dosage(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
17160
17389
|
}, __readDocumentUrl__);
|
|
17161
17390
|
|
|
17162
17391
|
case 5:
|
|
@@ -17165,6 +17394,7 @@ var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#_
|
|
|
17165
17394
|
data.result.map(function (val) {
|
|
17166
17395
|
if (val._key) {
|
|
17167
17396
|
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17397
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17168
17398
|
"drug_dosage": val.dosageform ? val.dosageform : "",
|
|
17169
17399
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17170
17400
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17322,7 +17552,8 @@ var drugDosageSlice$1 = drugDosageSlice.reducer;
|
|
|
17322
17552
|
|
|
17323
17553
|
var _extraReducers$v;
|
|
17324
17554
|
var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17325
|
-
var
|
|
17555
|
+
var payload,
|
|
17556
|
+
_ref2,
|
|
17326
17557
|
rejectWithValue,
|
|
17327
17558
|
data,
|
|
17328
17559
|
arry,
|
|
@@ -17332,11 +17563,12 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
|
|
|
17332
17563
|
while (1) {
|
|
17333
17564
|
switch (_context.prev = _context.next) {
|
|
17334
17565
|
case 0:
|
|
17566
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17335
17567
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17336
17568
|
_context.prev = 2;
|
|
17337
17569
|
_context.next = 5;
|
|
17338
17570
|
return fetchData({
|
|
17339
|
-
body: queries$g.drug_class
|
|
17571
|
+
body: JSON.stringify(queries$g.drug_class(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
17340
17572
|
}, __readDocumentUrl__);
|
|
17341
17573
|
|
|
17342
17574
|
case 5:
|
|
@@ -17345,6 +17577,7 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
|
|
|
17345
17577
|
data.result.map(function (val) {
|
|
17346
17578
|
if (val._key) {
|
|
17347
17579
|
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17580
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17348
17581
|
"drug_class": val.drugclass ? val.drugclass : "",
|
|
17349
17582
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17350
17583
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17502,7 +17735,8 @@ var drugClassSlice$1 = drugClassSlice.reducer;
|
|
|
17502
17735
|
|
|
17503
17736
|
var _extraReducers$u;
|
|
17504
17737
|
var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17505
|
-
var
|
|
17738
|
+
var payload,
|
|
17739
|
+
_ref2,
|
|
17506
17740
|
rejectWithValue,
|
|
17507
17741
|
data,
|
|
17508
17742
|
arry,
|
|
@@ -17512,11 +17746,12 @@ var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#_
|
|
|
17512
17746
|
while (1) {
|
|
17513
17747
|
switch (_context.prev = _context.next) {
|
|
17514
17748
|
case 0:
|
|
17749
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17515
17750
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17516
17751
|
_context.prev = 2;
|
|
17517
17752
|
_context.next = 5;
|
|
17518
17753
|
return fetchData({
|
|
17519
|
-
body: queries$g.drug_routes
|
|
17754
|
+
body: JSON.stringify(queries$g.drug_routes(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
17520
17755
|
}, __readDocumentUrl__);
|
|
17521
17756
|
|
|
17522
17757
|
case 5:
|
|
@@ -17525,6 +17760,7 @@ var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#_
|
|
|
17525
17760
|
data.result.map(function (val) {
|
|
17526
17761
|
if (val._key) {
|
|
17527
17762
|
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17763
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17528
17764
|
"drug_routes": val.routecode ? val.routecode : "-",
|
|
17529
17765
|
"short_description": val.shortdesc ? val.shortdesc : "-",
|
|
17530
17766
|
"long_description": val.longdesc ? val.longdesc : "-",
|
|
@@ -20379,7 +20615,7 @@ var drugMasterSlice$1 = drugMasterSlice.reducer;
|
|
|
20379
20615
|
|
|
20380
20616
|
// import { dbName } from "../../qdm_query_ids";
|
|
20381
20617
|
var queries$e = {
|
|
20382
|
-
fullread: function fullread(
|
|
20618
|
+
fullread: function fullread(page, perPage, search) {
|
|
20383
20619
|
// return {
|
|
20384
20620
|
// db_name: dbName,
|
|
20385
20621
|
// entity: "DrugRouteDirection",
|
|
@@ -20392,8 +20628,12 @@ var queries$e = {
|
|
|
20392
20628
|
"db_name": dbName$1,
|
|
20393
20629
|
"entity": "DrugRouteDirection",
|
|
20394
20630
|
"sort": "DrugRouteDirection.RouteDirectionCode",
|
|
20395
|
-
"filter": "DrugRouteDirection.activestatus == true
|
|
20396
|
-
"
|
|
20631
|
+
"filter": "(LIKE(DrugRouteDirection.RouteDirectionCode,'%".concat(search, "%',true) || LIKE(DrugRouteDirection.UOM,'%").concat(search, "%',true) || LIKE(DrugRouteDirection.longdesc,'%").concat(search, "%',true)) && DrugRouteDirection.activestatus == true"),
|
|
20632
|
+
"limit": {
|
|
20633
|
+
"offset": page,
|
|
20634
|
+
"count": perPage
|
|
20635
|
+
},
|
|
20636
|
+
"return_fields": "merge(DrugRouteDirection,{TotalCount:COUNT(FOR cnt IN DrugRouteDirection RETURN cnt._key),DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})"
|
|
20397
20637
|
};
|
|
20398
20638
|
},
|
|
20399
20639
|
DosageFormDropDown: function DosageFormDropDown() {
|
|
@@ -20466,7 +20706,8 @@ var queries$e = {
|
|
|
20466
20706
|
|
|
20467
20707
|
var _extraReducers$s;
|
|
20468
20708
|
var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_direction_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
20469
|
-
var
|
|
20709
|
+
var payload,
|
|
20710
|
+
_ref2,
|
|
20470
20711
|
rejectWithValue,
|
|
20471
20712
|
queriesjson,
|
|
20472
20713
|
data,
|
|
@@ -20477,9 +20718,10 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
|
|
|
20477
20718
|
while (1) {
|
|
20478
20719
|
switch (_context.prev = _context.next) {
|
|
20479
20720
|
case 0:
|
|
20721
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
20480
20722
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
20481
20723
|
_context.prev = 2;
|
|
20482
|
-
queriesjson = queries$e.fullread();
|
|
20724
|
+
queriesjson = queries$e.fullread(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '');
|
|
20483
20725
|
_context.next = 6;
|
|
20484
20726
|
return fetchData({
|
|
20485
20727
|
body: JSON.stringify(queriesjson)
|
|
@@ -20494,6 +20736,7 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
|
|
|
20494
20736
|
var _val$DoseForm, _val$DoseForm2;
|
|
20495
20737
|
|
|
20496
20738
|
arry.push({
|
|
20739
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
20497
20740
|
code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
|
|
20498
20741
|
// action_id: val?.Action?._id,
|
|
20499
20742
|
// action: val?.Action?.display,
|
|
@@ -22390,7 +22633,8 @@ var UPSERT_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/save_perf
|
|
|
22390
22633
|
}, _callee5, null, [[2, 12]]);
|
|
22391
22634
|
})));
|
|
22392
22635
|
var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingLocationRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
22393
|
-
var
|
|
22636
|
+
var payload,
|
|
22637
|
+
_ref12,
|
|
22394
22638
|
rejectWithValue,
|
|
22395
22639
|
read,
|
|
22396
22640
|
data,
|
|
@@ -22400,14 +22644,19 @@ var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingL
|
|
|
22400
22644
|
while (1) {
|
|
22401
22645
|
switch (_context6.prev = _context6.next) {
|
|
22402
22646
|
case 0:
|
|
22647
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
22403
22648
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
22404
22649
|
_context6.prev = 2;
|
|
22405
22650
|
read = {
|
|
22406
22651
|
"db_name": dbName$1,
|
|
22407
22652
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
22408
22653
|
"sort": "CA_PerformingLocationforOrdLocn.createddate",
|
|
22409
|
-
"filter": "CA_PerformingLocationforOrdLocn.activestatus==true",
|
|
22410
|
-
"
|
|
22654
|
+
"filter": "(LIKE(CA_PerformingLocationforOrdLocn.ordering_source_code,'%".concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) || LIKE(CA_PerformingLocationforOrdLocn.service_applicability,'%").concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) || LIKE(CA_PerformingLocationforOrdLocn.ordering_org,'%").concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) ) && CA_PerformingLocationforOrdLocn.activestatus==true"),
|
|
22655
|
+
"limit": {
|
|
22656
|
+
"offset": payload === null || payload === void 0 ? void 0 : payload.page,
|
|
22657
|
+
"count": payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
22658
|
+
},
|
|
22659
|
+
"return_fields": "MERGE(CA_PerformingLocationforOrdLocn,{TotalCount:COUNT(FOR cnt IN CA_PerformingLocationforOrdLocn RETURN cnt._key), 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)}))})"
|
|
22411
22660
|
};
|
|
22412
22661
|
_context6.next = 6;
|
|
22413
22662
|
return fetchData({
|
|
@@ -22606,8 +22855,24 @@ var query$8 = {
|
|
|
22606
22855
|
},
|
|
22607
22856
|
readQuery: function readQuery(_ref2) {
|
|
22608
22857
|
var entity_type = _ref2.entity_type,
|
|
22609
|
-
entity_name = _ref2.entity_name
|
|
22610
|
-
|
|
22858
|
+
entity_name = _ref2.entity_name,
|
|
22859
|
+
_ref2$page = _ref2.page,
|
|
22860
|
+
page = _ref2$page === void 0 ? 0 : _ref2$page,
|
|
22861
|
+
_ref2$perPage = _ref2.perPage,
|
|
22862
|
+
perPage = _ref2$perPage === void 0 ? 10 : _ref2$perPage,
|
|
22863
|
+
_ref2$search = _ref2.search,
|
|
22864
|
+
search = _ref2$search === void 0 ? "" : _ref2$search;
|
|
22865
|
+
return JSON.stringify({
|
|
22866
|
+
db_name: dbName$1,
|
|
22867
|
+
entity: "ResourceTimeTable",
|
|
22868
|
+
filter: "ResourceTimeTable.activestatus==true ".concat(entity_type ? "&& ResourceTimeTable.entityType=='".concat(entity_type.value, "'") : "", " ").concat(entity_name ? "&& ResourceTimeTable.organization_id=='".concat(entity_name.value, "'") : "", " ").concat(search ? "&& UPPER(ResourceTimeTable.timetable_title) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(ResourceTimeTable.ResourceType.display) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(ResourceTimeTable.ResourceRole.display) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
22869
|
+
limit: {
|
|
22870
|
+
offset: page,
|
|
22871
|
+
count: perPage
|
|
22872
|
+
},
|
|
22873
|
+
sort: "ResourceTimeTable.createddate",
|
|
22874
|
+
return_fields: "MERGE(ResourceTimeTable,{TotalCount:COUNT(".concat(search ? "FOR cnt IN ResourceTimeTable filter UPPER(cnt.timetable_title) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.ResourceType.display) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(cnt.ResourceRole.display) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN ResourceTimeTable RETURN cnt._key", ") ,organization_id:DOCUMENT(ResourceTimeTable.organization_id),ResourceRole:DOCUMENT(ResourceTimeTable.ResourceRole) ,ResourceType:DOCUMENT(ResourceTimeTable.ResourceType) ,applicable_app_type:(FOR apptype IN TO_ARRAY(ResourceTimeTable.applicable_app_type) RETURN DOCUMENT(apptype)) ,AppointmentDuration:(FOR appdur IN TO_ARRAY(ResourceTimeTable.AppointmentDuration) RETURN MERGE(appdur, {DayType:DOCUMENT(appdur.DayType),consultType:DOCUMENT(appdur.consultType)} )) })")
|
|
22875
|
+
});
|
|
22611
22876
|
},
|
|
22612
22877
|
readGroup: function readGroup() {
|
|
22613
22878
|
return "{\n \"db_name\": \"".concat(ruleDBName, "\",\n \"entity\": \"Groups\",\n \"filter\": \"Groups.activestatus==true\",\n \"return_fields\": \"{label : Groups.name, value:Groups.id}\"\n }");
|
|
@@ -22622,11 +22887,11 @@ var query$8 = {
|
|
|
22622
22887
|
},
|
|
22623
22888
|
applicableAppTypes_: function applicableAppTypes_() {
|
|
22624
22889
|
return {
|
|
22625
|
-
|
|
22626
|
-
|
|
22627
|
-
|
|
22628
|
-
|
|
22629
|
-
|
|
22890
|
+
db_name: "primarycare",
|
|
22891
|
+
entity: "CodingMaster",
|
|
22892
|
+
filter: "CodingMaster.Type == 'APPTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
22893
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
22894
|
+
sort: "CodingMaster.display"
|
|
22630
22895
|
};
|
|
22631
22896
|
}
|
|
22632
22897
|
};
|
|
@@ -22846,6 +23111,7 @@ var makeJson = function makeJson(data) {
|
|
|
22846
23111
|
var _val$ResourceType, _val$ResourceRole$dis, _val$ResourceRole, _val$ResourceRole2;
|
|
22847
23112
|
|
|
22848
23113
|
return _objectSpread2(_objectSpread2({}, val), {}, {
|
|
23114
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
22849
23115
|
start_date: utcTOLocal(val.EffectiveFrom, "DD-MM-YYYY"),
|
|
22850
23116
|
end_date: val.EffectiveTo ? utcTOLocal(val.EffectiveTo, "DD-MM-YYYY") : "",
|
|
22851
23117
|
resource_type: val === null || val === void 0 ? void 0 : (_val$ResourceType = val.ResourceType) === null || _val$ResourceType === void 0 ? void 0 : _val$ResourceType.display,
|
|
@@ -22962,6 +23228,9 @@ var actionsList = [{
|
|
|
22962
23228
|
queryName: "readQuery",
|
|
22963
23229
|
type: "List",
|
|
22964
23230
|
url: __readDocumentUrl__,
|
|
23231
|
+
// makePayload: (payload) => {
|
|
23232
|
+
// alert(JSON.stringify(payload))
|
|
23233
|
+
// },
|
|
22965
23234
|
makeReturnData: makeJson
|
|
22966
23235
|
}, {
|
|
22967
23236
|
name: "READ_GROUPS",
|
|
@@ -26071,20 +26340,28 @@ var organizationSlice$1 = organizationSlice.reducer;
|
|
|
26071
26340
|
var organization_role_actions = _objectSpread2({}, organizationActions);
|
|
26072
26341
|
|
|
26073
26342
|
var queries$b = {
|
|
26074
|
-
careTypeRead: function careTypeRead() {
|
|
26343
|
+
careTypeRead: function careTypeRead(page, perPage, search) {
|
|
26075
26344
|
return {
|
|
26076
26345
|
db_name: dbName$1,
|
|
26077
26346
|
entity: "CareType",
|
|
26078
|
-
filter: "CareType.activestatus==true",
|
|
26079
|
-
|
|
26347
|
+
filter: "(LIKE(CareType.careType,'%".concat(search, "%',true) || LIKE(CareType.description,'%").concat(search, "%',true) ) && CareType.activestatus==true"),
|
|
26348
|
+
limit: {
|
|
26349
|
+
"offset": page,
|
|
26350
|
+
"count": perPage
|
|
26351
|
+
},
|
|
26352
|
+
return_fields: "{TotalCount:count(FOR crtype IN CareType FILTER (LIKE(crtype.crtype,'%".concat(search, "%',true) || LIKE(crtype.description,'%").concat(search, "%',true) ) && crtype.activestatus==true return crtype._id), id:CareType.id,_id:CareType._id,careType:CareType.careType,description:CareType.description,carelevelRank:CareType.carelevelRank}")
|
|
26080
26353
|
};
|
|
26081
26354
|
},
|
|
26082
|
-
levelOfCareRead: function levelOfCareRead() {
|
|
26355
|
+
levelOfCareRead: function levelOfCareRead(page, perPage, search) {
|
|
26083
26356
|
return {
|
|
26084
26357
|
db_name: dbName$1,
|
|
26085
26358
|
entity: "LevelOfCare",
|
|
26086
|
-
filter: "LevelOfCare.activestatus==true",
|
|
26087
|
-
|
|
26359
|
+
filter: "(LIKE(LevelOfCare.levelofcareCode,'%".concat(search, "%',true) || LIKE(LevelOfCare.careType,'%").concat(search, "%',true) || LIKE(LevelOfCare.description,'%").concat(search, "%',true)) && LevelOfCare.activestatus==true"),
|
|
26360
|
+
limit: {
|
|
26361
|
+
"offset": page,
|
|
26362
|
+
"count": perPage
|
|
26363
|
+
},
|
|
26364
|
+
return_fields: "{TotalCount:count(FOR lvlofcare IN LevelOfCare FILTER (LIKE(lvlofcare.levelofcareCode,'%".concat(search, "%',true) || LIKE(lvlofcare.careType,'%").concat(search, "%',true) || LIKE(lvlofcare.description,'%").concat(search, "%',true)) && lvlofcare.activestatus==true return lvlofcare._id), id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}"),
|
|
26088
26365
|
sort: "LevelOfCare.createddate"
|
|
26089
26366
|
};
|
|
26090
26367
|
},
|
|
@@ -26137,12 +26414,16 @@ var queries$b = {
|
|
|
26137
26414
|
})];
|
|
26138
26415
|
},
|
|
26139
26416
|
//HEALTH CARE SERVICE READ
|
|
26140
|
-
healthCareServiceRead: function healthCareServiceRead() {
|
|
26417
|
+
healthCareServiceRead: function healthCareServiceRead(page, perPage, search) {
|
|
26141
26418
|
return {
|
|
26142
26419
|
db_name: dbName$1,
|
|
26143
26420
|
entity: "HealthcareService",
|
|
26144
|
-
filter: "HealthcareService.activestatus==true",
|
|
26145
|
-
|
|
26421
|
+
filter: "(LIKE(HealthcareService.healthcareservicecode,'%".concat(search, "%',true) || LIKE(HealthcareService.category,'%").concat(search, "%',true) || LIKE(HealthcareService.Type,'%").concat(search, "%',true)) && HealthcareService.activestatus==true"),
|
|
26422
|
+
limit: {
|
|
26423
|
+
"offset": page,
|
|
26424
|
+
"count": perPage
|
|
26425
|
+
},
|
|
26426
|
+
return_fields: "{TotalCount:count(FOR hs IN HealthcareService FILTER (LIKE(hs.healthcareservicecode,'%".concat(search, "%',true) || LIKE(hs.category,'%").concat(search, "%',true) || LIKE(hs.Type,'%").concat(search, "%',true) || LIKE(hs.name,'%").concat(search, "%',true)) && hs.activestatus==true return hs._id), id:HealthcareService.id,_id:HealthcareService._id,_key:HealthcareService._key,active:HealthcareService.active,comment:HealthcareService.comment,SpecialtyID:document(HealthcareService.SpecialtyID),healthcareservicecode:HealthcareService.healthcareservicecode,name:HealthcareService.name,notes:HealthcareService.notes,category:document(HealthcareService.category),Type:document(HealthcareService.Type),applicablefacilities:HealthcareService.applicablefacilities ==null?null :(for hs in TO_ARRAY( HealthcareService.applicablefacilities) return {facility:document(hs.facility),locationtype:document(hs.locationtype),locationid:document(hs.locationid)})}"),
|
|
26146
26427
|
sort: "HealthcareService.createddate"
|
|
26147
26428
|
};
|
|
26148
26429
|
},
|
|
@@ -26458,7 +26739,8 @@ var _extraReducers$n;
|
|
|
26458
26739
|
//CARE TYPE READ
|
|
26459
26740
|
|
|
26460
26741
|
var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
26461
|
-
var
|
|
26742
|
+
var payload,
|
|
26743
|
+
_ref2,
|
|
26462
26744
|
rejectWithValue,
|
|
26463
26745
|
data,
|
|
26464
26746
|
arry,
|
|
@@ -26468,11 +26750,12 @@ var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead",
|
|
|
26468
26750
|
while (1) {
|
|
26469
26751
|
switch (_context.prev = _context.next) {
|
|
26470
26752
|
case 0:
|
|
26753
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
26471
26754
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
26472
26755
|
_context.prev = 2;
|
|
26473
26756
|
_context.next = 5;
|
|
26474
26757
|
return fetchData({
|
|
26475
|
-
body: JSON.stringify(queries$b.careTypeRead())
|
|
26758
|
+
body: JSON.stringify(queries$b.careTypeRead(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
26476
26759
|
}, __readDocumentUrl__);
|
|
26477
26760
|
|
|
26478
26761
|
case 5:
|
|
@@ -26482,6 +26765,7 @@ var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead",
|
|
|
26482
26765
|
if (data.result) {
|
|
26483
26766
|
data.result.map(function (val) {
|
|
26484
26767
|
arry.push({
|
|
26768
|
+
total_count: val.TotalCount,
|
|
26485
26769
|
id: val.id,
|
|
26486
26770
|
_id: val._id,
|
|
26487
26771
|
careType: val.careType,
|
|
@@ -26511,7 +26795,8 @@ var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead",
|
|
|
26511
26795
|
}))); //LEVEL OF CARE READ
|
|
26512
26796
|
|
|
26513
26797
|
var LEVEL_OF_CARE_READ = createAsyncThunk("organizationConfigApiSlice/levelOfCareRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
26514
|
-
var
|
|
26798
|
+
var payload,
|
|
26799
|
+
_ref4,
|
|
26515
26800
|
rejectWithValue,
|
|
26516
26801
|
data,
|
|
26517
26802
|
arry,
|
|
@@ -26521,11 +26806,12 @@ var LEVEL_OF_CARE_READ = createAsyncThunk("organizationConfigApiSlice/levelOfCar
|
|
|
26521
26806
|
while (1) {
|
|
26522
26807
|
switch (_context2.prev = _context2.next) {
|
|
26523
26808
|
case 0:
|
|
26809
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
26524
26810
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
26525
26811
|
_context2.prev = 2;
|
|
26526
26812
|
_context2.next = 5;
|
|
26527
26813
|
return fetchData({
|
|
26528
|
-
body: JSON.stringify(queries$b.levelOfCareRead())
|
|
26814
|
+
body: JSON.stringify(queries$b.levelOfCareRead(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
26529
26815
|
}, __readDocumentUrl__);
|
|
26530
26816
|
|
|
26531
26817
|
case 5:
|
|
@@ -26537,6 +26823,7 @@ var LEVEL_OF_CARE_READ = createAsyncThunk("organizationConfigApiSlice/levelOfCar
|
|
|
26537
26823
|
var _val$id, _val$_id, _val$key, _val$levelofcareCode, _val$description, _val$careType$descrip, _val$careType$_id, _val$active;
|
|
26538
26824
|
|
|
26539
26825
|
arry.push({
|
|
26826
|
+
total_count: val.TotalCount,
|
|
26540
26827
|
id: (_val$id = val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
26541
26828
|
_id: (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
26542
26829
|
key: (_val$key = val.key) !== null && _val$key !== void 0 ? _val$key : "",
|
|
@@ -26703,7 +26990,8 @@ var LEVEL_OF_CARE_INSERT = createAsyncThunk("organizationConfigApiSlice/levelOfC
|
|
|
26703
26990
|
}))); //HEALTH CARE SERVICE READ
|
|
26704
26991
|
|
|
26705
26992
|
var HEALTH_CARE_SERVICE_READ = createAsyncThunk("organizationConfigApiSlice/healthCareServiceRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
26706
|
-
var
|
|
26993
|
+
var payload,
|
|
26994
|
+
_ref12,
|
|
26707
26995
|
rejectWithValue,
|
|
26708
26996
|
data,
|
|
26709
26997
|
arry,
|
|
@@ -26713,11 +27001,12 @@ var HEALTH_CARE_SERVICE_READ = createAsyncThunk("organizationConfigApiSlice/heal
|
|
|
26713
27001
|
while (1) {
|
|
26714
27002
|
switch (_context6.prev = _context6.next) {
|
|
26715
27003
|
case 0:
|
|
27004
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
26716
27005
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
26717
27006
|
_context6.prev = 2;
|
|
26718
27007
|
_context6.next = 5;
|
|
26719
27008
|
return fetchData({
|
|
26720
|
-
body: JSON.stringify(queries$b.healthCareServiceRead())
|
|
27009
|
+
body: JSON.stringify(queries$b.healthCareServiceRead(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
26721
27010
|
}, __readDocumentUrl__);
|
|
26722
27011
|
|
|
26723
27012
|
case 5:
|
|
@@ -26729,6 +27018,7 @@ var HEALTH_CARE_SERVICE_READ = createAsyncThunk("organizationConfigApiSlice/heal
|
|
|
26729
27018
|
var _val$id2, _val$_id2, _val$_key, _val$healthcareservic, _val$name, _val$category$display, _val$category, _val$Type$display, _val$Type, _val$active2;
|
|
26730
27019
|
|
|
26731
27020
|
arry.push({
|
|
27021
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
26732
27022
|
id: (_val$id2 = val.id) !== null && _val$id2 !== void 0 ? _val$id2 : "",
|
|
26733
27023
|
_id: (_val$_id2 = val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : "",
|
|
26734
27024
|
_key: (_val$_key = val._key) !== null && _val$_key !== void 0 ? _val$_key : "",
|
|
@@ -28809,9 +29099,13 @@ var queries$7 = {
|
|
|
28809
29099
|
return {
|
|
28810
29100
|
"db_name": dbName$1,
|
|
28811
29101
|
"entity": "Person",
|
|
28812
|
-
"filter": "Person.activestatus==true",
|
|
29102
|
+
"filter": "(LIKE(document(Person.name)[0].given,'%".concat(data.search ? data.search : '', "%',true) || LIKE(document(Person.telecom)[0].value,'%").concat(data.search ? data.search : '', "%',true)) && Person.activestatus==true"),
|
|
28813
29103
|
"sort": "Person.createddate",
|
|
28814
|
-
"
|
|
29104
|
+
"limit": {
|
|
29105
|
+
"offset": data === null || data === void 0 ? void 0 : data.page,
|
|
29106
|
+
"count": data === null || data === void 0 ? void 0 : data.perPage
|
|
29107
|
+
},
|
|
29108
|
+
"return_fields": "merge(Person,{TotalCount:COUNT(FOR cnt IN Person RETURN cnt._key), 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)})"
|
|
28815
29109
|
};
|
|
28816
29110
|
},
|
|
28817
29111
|
person_delete: function person_delete(data) {
|
|
@@ -30239,7 +30533,8 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
30239
30533
|
}, _callee3, null, [[2, 36]]);
|
|
30240
30534
|
})));
|
|
30241
30535
|
var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
30242
|
-
var
|
|
30536
|
+
var payload,
|
|
30537
|
+
_ref8,
|
|
30243
30538
|
rejectWithValue,
|
|
30244
30539
|
read,
|
|
30245
30540
|
data,
|
|
@@ -30249,14 +30544,19 @@ var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__
|
|
|
30249
30544
|
while (1) {
|
|
30250
30545
|
switch (_context4.prev = _context4.next) {
|
|
30251
30546
|
case 0:
|
|
30547
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
30252
30548
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
30253
30549
|
_context4.prev = 2;
|
|
30254
30550
|
read = {
|
|
30255
30551
|
"db_name": dbName$1,
|
|
30256
30552
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
30257
30553
|
"sort": "CA_OrderCatalogPrivilegeLevel.createddate",
|
|
30258
|
-
"filter": "CA_OrderCatalogPrivilegeLevel.activestatus==true",
|
|
30259
|
-
"
|
|
30554
|
+
"filter": "(LIKE(CA_OrderCatalogPrivilegeLevel.service_applicablity,'%".concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true) || LIKE(CA_OrderCatalogPrivilegeLevel.orgn_code,'%").concat(payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '', "%',true)) && CA_OrderCatalogPrivilegeLevel.activestatus==true"),
|
|
30555
|
+
"limit": {
|
|
30556
|
+
"offset": payload === null || payload === void 0 ? void 0 : payload.page,
|
|
30557
|
+
"count": payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
30558
|
+
},
|
|
30559
|
+
"return_fields": "MERGE(CA_OrderCatalogPrivilegeLevel,{TotalCount:COUNT(FOR cnt IN CA_OrderCatalogPrivilegeLevel RETURN cnt._key), orgn_code:document(CA_OrderCatalogPrivilegeLevel.orgn_code),service_applicablity:document(CA_OrderCatalogPrivilegeLevel.service_applicablity),rule_type:document(CA_OrderCatalogPrivilegeLevel.rule_type),privilege_type:document(CA_OrderCatalogPrivilegeLevel.privilege_type),appr_leveles:(for i in TO_ARRAY(CA_OrderCatalogPrivilegeLevel.appr_leveles) return merge(i,{appr_level:document(i.appr_level)}))})"
|
|
30260
30560
|
};
|
|
30261
30561
|
_context4.next = 6;
|
|
30262
30562
|
return fetchData({
|
|
@@ -30331,13 +30631,17 @@ var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasu
|
|
|
30331
30631
|
|
|
30332
30632
|
// import { dbName } from "../../qdm_query_ids";
|
|
30333
30633
|
var queries$5 = {
|
|
30334
|
-
fullread: function fullread() {
|
|
30634
|
+
fullread: function fullread(page, perPage, search) {
|
|
30335
30635
|
return {
|
|
30336
30636
|
db_name: dbName$1,
|
|
30337
30637
|
entity: "DrugUOM",
|
|
30338
|
-
filter: "DrugUOM.activestatus == true",
|
|
30638
|
+
filter: "(LIKE(document(DrugUOM.UOMType).display,'%".concat(search, "%',true) || LIKE(DrugUOM.UOM,'%").concat(search, "%',true) || LIKE(DrugUOM.longdesc,'%").concat(search, "%',true) || LIKE(DrugUOM.shortdesc,'%").concat(search, "%',true) ) && DrugUOM.activestatus == true"),
|
|
30639
|
+
limit: {
|
|
30640
|
+
offset: page,
|
|
30641
|
+
count: perPage
|
|
30642
|
+
},
|
|
30339
30643
|
sort: "DrugUOM.createddate",
|
|
30340
|
-
return_fields: "merge(DrugUOM,{UOMType:(for i in CodingMaster filter i._id == DrugUOM.UOMType return merge(i,{coding:document(i.coding)}))})"
|
|
30644
|
+
return_fields: "merge(DrugUOM,{TotalCount:COUNT(FOR cnt IN DrugUOM RETURN cnt._key), UOMType:(for i in CodingMaster filter i._id == DrugUOM.UOMType return merge(i,{coding:document(i.coding)}))})"
|
|
30341
30645
|
};
|
|
30342
30646
|
},
|
|
30343
30647
|
DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
|
|
@@ -30359,10 +30663,10 @@ var queries$5 = {
|
|
|
30359
30663
|
// "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})",
|
|
30360
30664
|
// };
|
|
30361
30665
|
return {
|
|
30362
|
-
|
|
30363
|
-
|
|
30364
|
-
|
|
30365
|
-
|
|
30666
|
+
db_name: dbName$1,
|
|
30667
|
+
entity: "DrugUOM",
|
|
30668
|
+
filter: "DrugUOM.activestatus == true && DrugUOM.UOMType == '".concat(id, "' && LOWER(DrugUOM.UOM) !=LOWER('").concat(type, "') && DrugUOM.status==true"),
|
|
30669
|
+
return_fields: "{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}"
|
|
30366
30670
|
};
|
|
30367
30671
|
},
|
|
30368
30672
|
To_UOM_Read_line: function To_UOM_Read_line(key) {
|
|
@@ -30489,7 +30793,8 @@ var generateReadJson$1 = {
|
|
|
30489
30793
|
|
|
30490
30794
|
var _extraReducers$e;
|
|
30491
30795
|
var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
30492
|
-
var
|
|
30796
|
+
var payload,
|
|
30797
|
+
_ref2,
|
|
30493
30798
|
rejectWithValue,
|
|
30494
30799
|
queriesjson,
|
|
30495
30800
|
data,
|
|
@@ -30500,9 +30805,10 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
|
|
|
30500
30805
|
while (1) {
|
|
30501
30806
|
switch (_context.prev = _context.next) {
|
|
30502
30807
|
case 0:
|
|
30808
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
30503
30809
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
30504
30810
|
_context.prev = 2;
|
|
30505
|
-
queriesjson = queries$5.fullread();
|
|
30811
|
+
queriesjson = queries$5.fullread(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '');
|
|
30506
30812
|
_context.next = 6;
|
|
30507
30813
|
return fetchData({
|
|
30508
30814
|
body: JSON.stringify(queriesjson)
|
|
@@ -30516,6 +30822,7 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
|
|
|
30516
30822
|
var _val$UOMType$;
|
|
30517
30823
|
|
|
30518
30824
|
arry.push({
|
|
30825
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
30519
30826
|
type: val === null || val === void 0 ? void 0 : (_val$UOMType$ = val.UOMType[0]) === null || _val$UOMType$ === void 0 ? void 0 : _val$UOMType$.display,
|
|
30520
30827
|
longDesc: val === null || val === void 0 ? void 0 : val.longdesc,
|
|
30521
30828
|
shortDesc: val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
@@ -30844,12 +31151,17 @@ var drugMasterUOMSlice$1 = drugMasterUOMSlice.reducer;
|
|
|
30844
31151
|
|
|
30845
31152
|
// import { dbName } from "../../qdm_query_ids";
|
|
30846
31153
|
var queries$4 = {
|
|
30847
|
-
fullread: function fullread(
|
|
31154
|
+
fullread: function fullread(page, perPage, search) {
|
|
30848
31155
|
return {
|
|
30849
31156
|
db_name: dbName$1,
|
|
30850
31157
|
entity: "FrequencyMaster",
|
|
30851
31158
|
sort: "FrequencyMaster.freqcode",
|
|
30852
|
-
|
|
31159
|
+
filter: "(LIKE(FrequencyMaster.freqcode,".concat(search, ",true) || LIKE(FrequencyMaster.UOM,").concat(search, ",true) || LIKE(FrequencyMaster.longdesc,").concat(search, ",true)) && FrequencyMaster.activestatus == true"),
|
|
31160
|
+
limit: {
|
|
31161
|
+
offset: page,
|
|
31162
|
+
count: perPage
|
|
31163
|
+
},
|
|
31164
|
+
return_fields: "MERGE(FrequencyMaster,{TotalCount:COUNT(FOR cnt IN FrequencyMaster RETURN cnt._key), scheduleby:DOCUMENT(FrequencyMaster.scheduleby),dosefreqrateUOM:DOCUMENT(FrequencyMaster.dosefreqrateUOM),dosefreqvalUOM:DOCUMENT(FrequencyMaster.dosefreqvalUOM),fixeddurationtype:DOCUMENT(FrequencyMaster.fixeddurationtype),frequencytype:DOCUMENT(FrequencyMaster.frequencytype),startday:DOCUMENT(FrequencyMaster.startday)})"
|
|
30853
31165
|
};
|
|
30854
31166
|
},
|
|
30855
31167
|
SCHEDULEBY: function SCHEDULEBY() {
|
|
@@ -31033,7 +31345,8 @@ var generateReadJson = {
|
|
|
31033
31345
|
|
|
31034
31346
|
var _extraReducers$d;
|
|
31035
31347
|
var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequncy_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
31036
|
-
var
|
|
31348
|
+
var payload,
|
|
31349
|
+
_ref2,
|
|
31037
31350
|
rejectWithValue,
|
|
31038
31351
|
queriesjson,
|
|
31039
31352
|
data,
|
|
@@ -31044,9 +31357,10 @@ var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequn
|
|
|
31044
31357
|
while (1) {
|
|
31045
31358
|
switch (_context.prev = _context.next) {
|
|
31046
31359
|
case 0:
|
|
31360
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
31047
31361
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
31048
31362
|
_context.prev = 2;
|
|
31049
|
-
queriesjson = queries$4.fullread();
|
|
31363
|
+
queriesjson = queries$4.fullread(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '');
|
|
31050
31364
|
_context.next = 6;
|
|
31051
31365
|
return fetchData({
|
|
31052
31366
|
body: JSON.stringify(queriesjson)
|
|
@@ -31058,6 +31372,7 @@ var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequn
|
|
|
31058
31372
|
data.result.map(function (val) {
|
|
31059
31373
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.longdesc) {
|
|
31060
31374
|
arry.push({
|
|
31375
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
31061
31376
|
code: val === null || val === void 0 ? void 0 : val.freqcode,
|
|
31062
31377
|
longDesc: val === null || val === void 0 ? void 0 : val.longdesc,
|
|
31063
31378
|
shortDesc: val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
@@ -31553,12 +31868,16 @@ var drugFrequencySlice = drugMasterFREQUENCYSlice.reducer;
|
|
|
31553
31868
|
var drug_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, drugCategoryActions), drugDosageActions), drugClassActions), drugRoutesActions), drugDirectionRoutesActions), drugMasterUomActions), drugMasterActions), drugMasterFrequencyActions);
|
|
31554
31869
|
|
|
31555
31870
|
var query$5 = {
|
|
31556
|
-
orderSetList: function orderSetList() {
|
|
31871
|
+
orderSetList: function orderSetList(page, perPage, search) {
|
|
31557
31872
|
return {
|
|
31558
31873
|
db_name: "".concat(dbName$1),
|
|
31559
31874
|
entity: "CA_OrderSet",
|
|
31560
|
-
filter: "CA_OrderSet.activestatus == true",
|
|
31561
|
-
|
|
31875
|
+
filter: "CA_OrderSet.activestatus == true ".concat(search ? "&& UPPER(CA_OrderSet.orderSetCode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(CA_OrderSet.shortDesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(CA_OrderSet.longDesc) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
31876
|
+
limit: {
|
|
31877
|
+
"offset": page,
|
|
31878
|
+
"count": perPage
|
|
31879
|
+
},
|
|
31880
|
+
return_fields: "MERGE(keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status'),{TotalCount:COUNT(".concat(search ? "FOR cnt IN CA_OrderSet filter UPPER(cnt.orderSetCode) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.shortDesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(cnt.longDesc) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN CA_OrderSet RETURN cnt._key", ")})"),
|
|
31562
31881
|
sort: "CA_OrderSet.createddate"
|
|
31563
31882
|
};
|
|
31564
31883
|
},
|
|
@@ -32115,7 +32434,8 @@ var fetchMaster$3 = function fetchMaster(name, query) {
|
|
|
32115
32434
|
|
|
32116
32435
|
|
|
32117
32436
|
var GET_ORDER_SET_LIST = createAsyncThunk("orderSetMasterApiSlice/order_set_master_lis", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
32118
|
-
var
|
|
32437
|
+
var payload,
|
|
32438
|
+
_ref5,
|
|
32119
32439
|
rejectWithValue,
|
|
32120
32440
|
data,
|
|
32121
32441
|
_args4 = arguments;
|
|
@@ -32124,32 +32444,33 @@ var GET_ORDER_SET_LIST = createAsyncThunk("orderSetMasterApiSlice/order_set_mast
|
|
|
32124
32444
|
while (1) {
|
|
32125
32445
|
switch (_context4.prev = _context4.next) {
|
|
32126
32446
|
case 0:
|
|
32447
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
32127
32448
|
_ref5 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
32128
32449
|
_context4.prev = 2;
|
|
32129
|
-
_context4.next =
|
|
32450
|
+
_context4.next = 6;
|
|
32130
32451
|
return fetchData({
|
|
32131
|
-
body: JSON.stringify(query$5.orderSetList())
|
|
32452
|
+
body: JSON.stringify(query$5.orderSetList(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : ''))
|
|
32132
32453
|
}, __readDocumentUrl__);
|
|
32133
32454
|
|
|
32134
|
-
case
|
|
32455
|
+
case 6:
|
|
32135
32456
|
data = _context4.sent;
|
|
32136
32457
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
32137
32458
|
data: data.result
|
|
32138
32459
|
}));
|
|
32139
32460
|
|
|
32140
|
-
case
|
|
32141
|
-
_context4.prev =
|
|
32461
|
+
case 10:
|
|
32462
|
+
_context4.prev = 10;
|
|
32142
32463
|
_context4.t0 = _context4["catch"](2);
|
|
32143
32464
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
32144
32465
|
message: _context4.t0.message
|
|
32145
32466
|
})));
|
|
32146
32467
|
|
|
32147
|
-
case
|
|
32468
|
+
case 13:
|
|
32148
32469
|
case "end":
|
|
32149
32470
|
return _context4.stop();
|
|
32150
32471
|
}
|
|
32151
32472
|
}
|
|
32152
|
-
}, _callee4, null, [[2,
|
|
32473
|
+
}, _callee4, null, [[2, 10]]);
|
|
32153
32474
|
}))); //ORDER_SET_MASTER_STATUS_CHANGE
|
|
32154
32475
|
|
|
32155
32476
|
var ORDER_SET_MASTER_STATUS_CHANGE = createAsyncThunk("orderSetMasterApiSlice/order_set_master_status_chang", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
@@ -33652,16 +33973,16 @@ var orderSetApplicabilityActions = {
|
|
|
33652
33973
|
var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
33653
33974
|
|
|
33654
33975
|
var query$3 = {
|
|
33655
|
-
getList: function getList(page, perpage) {
|
|
33976
|
+
getList: function getList(page, perpage, search) {
|
|
33656
33977
|
return {
|
|
33657
33978
|
db_name: "".concat(dbName$1),
|
|
33658
33979
|
entity: "AllergyMaster",
|
|
33659
|
-
filter: "AllergyMaster.activestatus == true",
|
|
33980
|
+
filter: "AllergyMaster.activestatus == true ".concat(search ? "&& UPPER(AllergyMaster.code) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(AllergyMaster.shortdesc) LIKE '%").concat(search.toUpperCase(), "%' || UPPER(AllergyMaster.longdesc) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
33660
33981
|
limit: {
|
|
33661
33982
|
offset: page,
|
|
33662
33983
|
count: perpage
|
|
33663
33984
|
},
|
|
33664
|
-
return_fields: "{TotalCount:
|
|
33985
|
+
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)})}"),
|
|
33665
33986
|
sort: "AllergyMaster.shortdesc"
|
|
33666
33987
|
};
|
|
33667
33988
|
}
|
|
@@ -33850,6 +34171,7 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
33850
34171
|
rejectWithValue,
|
|
33851
34172
|
_page,
|
|
33852
34173
|
_perpage,
|
|
34174
|
+
_search,
|
|
33853
34175
|
data,
|
|
33854
34176
|
readJSON,
|
|
33855
34177
|
_args4 = arguments;
|
|
@@ -33860,14 +34182,15 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
33860
34182
|
case 0:
|
|
33861
34183
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {
|
|
33862
34184
|
page: page,
|
|
33863
|
-
perpage: perpage
|
|
34185
|
+
perpage: perpage,
|
|
34186
|
+
search: search
|
|
33864
34187
|
};
|
|
33865
34188
|
_ref5 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
33866
34189
|
_context4.prev = 2;
|
|
33867
|
-
_page = payload.page, _perpage = payload.perpage;
|
|
34190
|
+
_page = payload.page, _perpage = payload.perpage, _search = payload.search;
|
|
33868
34191
|
_context4.next = 6;
|
|
33869
34192
|
return fetchData({
|
|
33870
|
-
body: JSON.stringify(query$3.getList(_page, _perpage))
|
|
34193
|
+
body: JSON.stringify(query$3.getList(_page, _perpage, _search ? _search : ''))
|
|
33871
34194
|
}, __readDocumentUrl__);
|
|
33872
34195
|
|
|
33873
34196
|
case 6:
|
|
@@ -34082,7 +34405,7 @@ var flexQuery = {
|
|
|
34082
34405
|
offset: page,
|
|
34083
34406
|
count: perpage
|
|
34084
34407
|
},
|
|
34085
|
-
return_fields: "merge(CA_OrderAttribMaster,{TotalCount:COUNT(FOR cnt IN CA_OrderAttribMaster
|
|
34408
|
+
return_fields: "merge(CA_OrderAttribMaster,{TotalCount:COUNT(FOR cnt IN CA_OrderAttribMaster FILTER (LIKE(cnt.attribcode,'%".concat(search, "%',true) ) && cnt.activestatus==true return cnt._id),attribtype:document(CA_OrderAttribMaster.attribtype).display},{attribnumUOM:to_array(document(CA_OrderAttribMaster.attribnumUOM).display)})"),
|
|
34086
34409
|
sort: "CA_OrderAttribMaster.createddate desc"
|
|
34087
34410
|
};
|
|
34088
34411
|
},
|
|
@@ -34321,7 +34644,7 @@ var FLEX_ATTRIBUTE_READ = createAsyncThunk("flexAttributeApiSlice/flexFullRead",
|
|
|
34321
34644
|
page = payload.page, perpage = payload.perpage, search = payload.search;
|
|
34322
34645
|
_context3.next = 6;
|
|
34323
34646
|
return fetchData({
|
|
34324
|
-
body: JSON.stringify(flexQuery.flexAttrFullRead(page, perpage, search))
|
|
34647
|
+
body: JSON.stringify(flexQuery.flexAttrFullRead(page, perpage, search ? search : ''))
|
|
34325
34648
|
}, __readDocumentUrl__);
|
|
34326
34649
|
|
|
34327
34650
|
case 6:
|
|
@@ -34604,7 +34927,7 @@ var flexCriteriaQuery = {
|
|
|
34604
34927
|
offset: page,
|
|
34605
34928
|
count: perpage
|
|
34606
34929
|
},
|
|
34607
|
-
return_fields: "merge(CA_FlexAttribApplicability, {TotalCount:
|
|
34930
|
+
return_fields: "merge(CA_FlexAttribApplicability, {TotalCount:count(FOR cnt IN CA_FlexAttribApplicability FILTER (LIKE(cnt.winlabelName,'%".concat(search, "%',true)) && cnt.activestatus==true return cnt._id)},{AttribComponents:( for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:merge(document(att.attribCode),{attribtype:document(document(att.attribCode).attribtype)})}) )})"),
|
|
34608
34931
|
sort: "CA_FlexAttribApplicability.createddate desc"
|
|
34609
34932
|
};
|
|
34610
34933
|
},
|
|
@@ -34806,7 +35129,7 @@ var FLEX_CRITERIA_FULL_READ = createAsyncThunk("flexCriteriaSlice/flexCriteriaFu
|
|
|
34806
35129
|
page = payload.page, perpage = payload.perpage, search = payload.search;
|
|
34807
35130
|
_context3.next = 6;
|
|
34808
35131
|
return fetchData({
|
|
34809
|
-
body: JSON.stringify(flexCriteriaQuery.flexCriteriaFullRead(page, perpage, search))
|
|
35132
|
+
body: JSON.stringify(flexCriteriaQuery.flexCriteriaFullRead(page, perpage, search ? search : ''))
|
|
34810
35133
|
}, __readDocumentUrl__);
|
|
34811
35134
|
|
|
34812
35135
|
case 6:
|
|
@@ -36724,13 +37047,17 @@ var queries$2 = {
|
|
|
36724
37047
|
})];
|
|
36725
37048
|
}
|
|
36726
37049
|
},
|
|
36727
|
-
get_general_master_type: function get_general_master_type(type) {
|
|
37050
|
+
get_general_master_type: function get_general_master_type(type, page, perPage, search) {
|
|
37051
|
+
debugger;
|
|
36728
37052
|
return {
|
|
36729
37053
|
"db_name": dbName$1,
|
|
36730
37054
|
"entity": "CodeableConceptMaster",
|
|
36731
|
-
"
|
|
36732
|
-
"
|
|
36733
|
-
|
|
37055
|
+
"filter": "CodeableConceptMaster.Type == '".concat(type, "' &&(LIKE(document(CodeableConceptMaster.coding[0]).code,'%").concat(search, "%',true) ||LIKE(document(CodeableConceptMaster.coding[0]).shortdesc,'%").concat(search, "%',true) || LIKE(document(CodeableConceptMaster.coding[0]).longdesc,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true"),
|
|
37056
|
+
"limit": {
|
|
37057
|
+
"offset": "".concat(page),
|
|
37058
|
+
"count": "".concat(perPage)
|
|
37059
|
+
},
|
|
37060
|
+
"return_fields": "MERGE(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)},{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='".concat(type, "' filter cnt.activestatus==true RETURN cnt._key)})")
|
|
36734
37061
|
};
|
|
36735
37062
|
},
|
|
36736
37063
|
add_new_general_type: function add_new_general_type(data) {
|
|
@@ -37164,6 +37491,9 @@ var GET_GENERAL_MASTER_TYPE = createAsyncThunk("generalMasterSlice/get_general_m
|
|
|
37164
37491
|
var payload,
|
|
37165
37492
|
actions,
|
|
37166
37493
|
type,
|
|
37494
|
+
page,
|
|
37495
|
+
perPage,
|
|
37496
|
+
search,
|
|
37167
37497
|
data,
|
|
37168
37498
|
readData,
|
|
37169
37499
|
_args7 = arguments;
|
|
@@ -37175,10 +37505,10 @@ var GET_GENERAL_MASTER_TYPE = createAsyncThunk("generalMasterSlice/get_general_m
|
|
|
37175
37505
|
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
37176
37506
|
actions = _args7.length > 1 ? _args7[1] : undefined;
|
|
37177
37507
|
_context7.prev = 2;
|
|
37178
|
-
type = payload.type;
|
|
37508
|
+
type = payload.type, page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
37179
37509
|
_context7.next = 7;
|
|
37180
37510
|
return fetchData({
|
|
37181
|
-
body: JSON.stringify(queries$2.get_general_master_type(type))
|
|
37511
|
+
body: JSON.stringify(queries$2.get_general_master_type(type, page, perPage, search ? search : ''))
|
|
37182
37512
|
}, __readDocumentUrl__);
|
|
37183
37513
|
|
|
37184
37514
|
case 7:
|
|
@@ -37561,12 +37891,16 @@ var queries$1 = {
|
|
|
37561
37891
|
}
|
|
37562
37892
|
})];
|
|
37563
37893
|
},
|
|
37564
|
-
symptom_and_specialty_read: function symptom_and_specialty_read() {
|
|
37894
|
+
symptom_and_specialty_read: function symptom_and_specialty_read(search, page, perPage) {
|
|
37565
37895
|
return {
|
|
37566
37896
|
db_name: dbName$1,
|
|
37567
37897
|
entity: "SymptomsMapping",
|
|
37568
|
-
filter: "SymptomsMapping.activestatus==true",
|
|
37569
|
-
|
|
37898
|
+
filter: "SymptomsMapping.activestatus==true ".concat(search ? "&& UPPER(SymptomsMapping.SymptomsName) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(SymptomsMapping.symptomsCode) LIKE '%").concat(search.toUpperCase(), "%'") : ""),
|
|
37899
|
+
limit: {
|
|
37900
|
+
offset: page,
|
|
37901
|
+
count: perPage
|
|
37902
|
+
},
|
|
37903
|
+
return_fields: "merge(SymptomsMapping,{TotalCount:COUNT(".concat(search ? "FOR cnt IN SymptomsMapping filter UPPER(cnt.SymptomsName) LIKE '%".concat(search.toUpperCase(), "%' || UPPER(cnt.symptomsCode) LIKE '%").concat(search.toUpperCase(), "%' RETURN cnt._key") : "FOR cnt IN SymptomsMapping RETURN cnt._key", " ), specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})"),
|
|
37570
37904
|
sort: "SymptomsMapping.createddate"
|
|
37571
37905
|
};
|
|
37572
37906
|
},
|
|
@@ -37702,7 +38036,8 @@ var constructSingleReadJSON = function constructSingleReadJSON(data) {
|
|
|
37702
38036
|
};
|
|
37703
38037
|
|
|
37704
38038
|
var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symptom_and_specialty_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
37705
|
-
var
|
|
38039
|
+
var payload,
|
|
38040
|
+
_ref4,
|
|
37706
38041
|
rejectWithValue,
|
|
37707
38042
|
readqueries,
|
|
37708
38043
|
data,
|
|
@@ -37713,9 +38048,10 @@ var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symp
|
|
|
37713
38048
|
while (1) {
|
|
37714
38049
|
switch (_context2.prev = _context2.next) {
|
|
37715
38050
|
case 0:
|
|
38051
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
37716
38052
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
37717
38053
|
_context2.prev = 2;
|
|
37718
|
-
readqueries = queries$1.symptom_and_specialty_read();
|
|
38054
|
+
readqueries = queries$1.symptom_and_specialty_read(payload === null || payload === void 0 ? void 0 : payload.search, payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage);
|
|
37719
38055
|
_context2.next = 6;
|
|
37720
38056
|
return fetchData({
|
|
37721
38057
|
body: JSON.stringify(readqueries)
|
|
@@ -37727,6 +38063,7 @@ var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symp
|
|
|
37727
38063
|
data.result.map(function (val) {
|
|
37728
38064
|
if (val._key) {
|
|
37729
38065
|
arry.push({
|
|
38066
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
37730
38067
|
id: val.id ? val.id : 0,
|
|
37731
38068
|
_key: val._key ? val._key : "",
|
|
37732
38069
|
status: val.status ? val.status : false,
|
|
@@ -37949,20 +38286,18 @@ var symptomAndSpecialtyActions = {
|
|
|
37949
38286
|
var symptomAndSpecialtySlice$1 = symptomAndSpecialtySlice.reducer;
|
|
37950
38287
|
|
|
37951
38288
|
var queries = {
|
|
37952
|
-
encounterType: function encounterType(
|
|
37953
|
-
// return {
|
|
37954
|
-
// "db_name": dbName,
|
|
37955
|
-
// "entity": "AMPatientClass",
|
|
37956
|
-
// "filter": "AMPatientClass.activestatus==true",
|
|
37957
|
-
// "return_fields": "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
|
|
37958
|
-
// "sort": "document(AMPatientClass.encTypeDesc).display"
|
|
37959
|
-
// }
|
|
38289
|
+
encounterType: function encounterType(page, perPage, search) {
|
|
37960
38290
|
return {
|
|
37961
38291
|
"db_name": dbName$1,
|
|
37962
38292
|
"entity": "AMPatientClass",
|
|
37963
|
-
"filter": "AMPatientClass.activestatus==true",
|
|
37964
|
-
"
|
|
37965
|
-
|
|
38293
|
+
"filter": "(LIKE(AMPatientClass.shortDesc,'%".concat(search, "%',true) ) && AMPatientClass.activestatus==true"),
|
|
38294
|
+
"limit": {
|
|
38295
|
+
"offset": page,
|
|
38296
|
+
"count": perPage
|
|
38297
|
+
},
|
|
38298
|
+
"return_fields": "merge(AMPatientClass,{TotalCount:count(FOR cnt IN AMPatientClass FILTER (LIKE(cnt.shortDesc,'%".concat(search, "%',true)) && cnt.activestatus==true return cnt._key), encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})"),
|
|
38299
|
+
// "merge(AMPatientClass,{encClsByTypes:(for encClsByTypes in (AMPatientClass.encClsByTypes) return merge(encClsByTypes,{encClsType:document(encClsByTypes.encClsType)}))},{encType:document(AMPatientClass.encType)})"
|
|
38300
|
+
"sort": "document(AMPatientClass.encTypeDesc).display"
|
|
37966
38301
|
};
|
|
37967
38302
|
},
|
|
37968
38303
|
//STATUS CHANGE
|
|
@@ -37984,7 +38319,8 @@ var queries = {
|
|
|
37984
38319
|
|
|
37985
38320
|
var _extraReducers$2;
|
|
37986
38321
|
var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
37987
|
-
var
|
|
38322
|
+
var payload,
|
|
38323
|
+
_ref2,
|
|
37988
38324
|
rejectWithValue,
|
|
37989
38325
|
queriesjson,
|
|
37990
38326
|
data,
|
|
@@ -37995,9 +38331,10 @@ var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead",
|
|
|
37995
38331
|
while (1) {
|
|
37996
38332
|
switch (_context.prev = _context.next) {
|
|
37997
38333
|
case 0:
|
|
38334
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
37998
38335
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
37999
38336
|
_context.prev = 2;
|
|
38000
|
-
queriesjson = queries.encounterType();
|
|
38337
|
+
queriesjson = queries.encounterType(payload === null || payload === void 0 ? void 0 : payload.page, payload === null || payload === void 0 ? void 0 : payload.perPage, payload !== null && payload !== void 0 && payload.search ? payload === null || payload === void 0 ? void 0 : payload.search : '');
|
|
38001
38338
|
_context.next = 6;
|
|
38002
38339
|
return fetchData({
|
|
38003
38340
|
body: JSON.stringify(queriesjson)
|
|
@@ -38011,6 +38348,11 @@ var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead",
|
|
|
38011
38348
|
var _val$id, _val$_id, _val$encType$display, _val$encType, _val$encType$code, _val$encType2;
|
|
38012
38349
|
|
|
38013
38350
|
arry.push(_objectSpread2({
|
|
38351
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
38352
|
+
// id: val?.id,
|
|
38353
|
+
// description: val?.encTypeDesc,
|
|
38354
|
+
// code: val?.encType,
|
|
38355
|
+
// encounter_class: val?.encClsDesc + " ( " +val?.encClsType + " )",
|
|
38014
38356
|
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
38015
38357
|
_id: (_val$_id = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
38016
38358
|
description: (_val$encType$display = val === null || val === void 0 ? void 0 : (_val$encType = val.encType) === null || _val$encType === void 0 ? void 0 : _val$encType.display) !== null && _val$encType$display !== void 0 ? _val$encType$display : "",
|