primary_care_admin_binder 0.1.57 → 0.1.60
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 +686 -339
- 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,20 +12451,27 @@ 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:
|
|
12374
12458
|
// "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
12375
12459
|
// filter: "LocationMaster.activestatus==true",
|
|
12376
12460
|
// isTraversal: "true",
|
|
12377
|
-
// sort: "LocationMaster.createddate",
|
|
12461
|
+
// sort: "LocationMaster.createddate",
|
|
12378
12462
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
12379
12463
|
// };
|
|
12380
12464
|
return {
|
|
12381
12465
|
db_name: dbName$1,
|
|
12382
12466
|
entity: "LocationMaster",
|
|
12383
|
-
|
|
12467
|
+
limit: {
|
|
12468
|
+
"offset": page,
|
|
12469
|
+
"count": perPage
|
|
12470
|
+
},
|
|
12471
|
+
filter: "LocationMaster.activestatus==true",
|
|
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)}))})"
|
|
12474
|
+
|
|
12384
12475
|
};
|
|
12385
12476
|
},
|
|
12386
12477
|
locationlistupsert: function locationlistupsert(data) {
|
|
@@ -12698,6 +12789,8 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12698
12789
|
_ref2,
|
|
12699
12790
|
rejectWithValue,
|
|
12700
12791
|
type,
|
|
12792
|
+
page,
|
|
12793
|
+
perPage,
|
|
12701
12794
|
data,
|
|
12702
12795
|
arry,
|
|
12703
12796
|
_args = arguments;
|
|
@@ -12709,56 +12802,59 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
|
|
|
12709
12802
|
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
12710
12803
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
12711
12804
|
_context.prev = 2;
|
|
12712
|
-
type = payload.type;
|
|
12805
|
+
type = payload.type, page = payload.page, perPage = payload.perPage;
|
|
12713
12806
|
_context.next = 6;
|
|
12714
12807
|
return fetchData({
|
|
12715
|
-
body: JSON.stringify(queries$m.locationlist(type))
|
|
12808
|
+
body: JSON.stringify(queries$m.locationlist(type, page, perPage))
|
|
12716
12809
|
}, __readDocumentUrl__);
|
|
12717
12810
|
|
|
12718
12811
|
case 6:
|
|
12719
12812
|
data = _context.sent;
|
|
12813
|
+
debugger;
|
|
12720
12814
|
arry = [];
|
|
12721
|
-
|
|
12815
|
+
console.log("data", data.result);
|
|
12816
|
+
_context.next = 12;
|
|
12722
12817
|
return data.result.map(function (val) {
|
|
12723
12818
|
if (val.locationID) {
|
|
12724
|
-
var _val$locationType, _val$locationType$, _val$
|
|
12819
|
+
var _val$locationType, _val$locationType$, _val$locationType2, _val$locationType2$, _val$locationType2$$c, _val$locationType2$$c2, _val$locationType3, _val$locationType3$, _val$locationType4, _val$locationType4$, _val$locationType4$$c, _val$locationType4$$c2, _val$locationType5, _val$locationType5$, _val$locationType5$$c, _val$locationType5$$c2, _val$locationType6, _val$locationType6$, _val$locationType6$$c, _val$locationType6$$c2, _val$locationType7, _val$locationType7$, _val$locationType7$$c, _val$locationType7$$c2, _val$locationType8, _val$locationType8$, _val$locationType8$$c, _val$locationType8$$c2;
|
|
12725
12820
|
|
|
12726
12821
|
arry.push({
|
|
12727
12822
|
location_id: val.locationID,
|
|
12728
|
-
location_type: ((_val$locationType = val.locationType) === null || _val$locationType === void 0 ? void 0 : (_val$locationType$ = _val$locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : (_val$locationType$$
|
|
12729
|
-
location_type_code: (_val$
|
|
12730
|
-
location_type_name: (_val$
|
|
12731
|
-
location_type_id: (_val$
|
|
12732
|
-
location_type_key: (_val$
|
|
12823
|
+
location_type: val.locationType.length > 0 ? (((_val$locationType = val.locationType) === null || _val$locationType === void 0 ? void 0 : (_val$locationType$ = _val$locationType[0]) === null || _val$locationType$ === void 0 ? void 0 : _val$locationType$.coding) !== null ? (_val$locationType2 = val.locationType) === null || _val$locationType2 === void 0 ? void 0 : (_val$locationType2$ = _val$locationType2[0]) === null || _val$locationType2$ === void 0 ? void 0 : (_val$locationType2$$c = _val$locationType2$.coding) === null || _val$locationType2$$c === void 0 ? void 0 : (_val$locationType2$$c2 = _val$locationType2$$c[0]) === null || _val$locationType2$$c2 === void 0 ? void 0 : _val$locationType2$$c2.code : "") + " - " + (((_val$locationType3 = val.locationType) === null || _val$locationType3 === void 0 ? void 0 : (_val$locationType3$ = _val$locationType3[0]) === null || _val$locationType3$ === void 0 ? void 0 : _val$locationType3$.coding) !== null ? (_val$locationType4 = val.locationType) === null || _val$locationType4 === void 0 ? void 0 : (_val$locationType4$ = _val$locationType4[0]) === null || _val$locationType4$ === void 0 ? void 0 : (_val$locationType4$$c = _val$locationType4$.coding) === null || _val$locationType4$$c === void 0 ? void 0 : (_val$locationType4$$c2 = _val$locationType4$$c[0]) === null || _val$locationType4$$c2 === void 0 ? void 0 : _val$locationType4$$c2.Type : "") : "-",
|
|
12824
|
+
location_type_code: (_val$locationType5 = val.locationType) === null || _val$locationType5 === void 0 ? void 0 : (_val$locationType5$ = _val$locationType5[0]) === null || _val$locationType5$ === void 0 ? void 0 : (_val$locationType5$$c = _val$locationType5$.coding) === null || _val$locationType5$$c === void 0 ? void 0 : (_val$locationType5$$c2 = _val$locationType5$$c[0]) === null || _val$locationType5$$c2 === void 0 ? void 0 : _val$locationType5$$c2.code,
|
|
12825
|
+
location_type_name: (_val$locationType6 = val.locationType) === null || _val$locationType6 === void 0 ? void 0 : (_val$locationType6$ = _val$locationType6[0]) === null || _val$locationType6$ === void 0 ? void 0 : (_val$locationType6$$c = _val$locationType6$.coding) === null || _val$locationType6$$c === void 0 ? void 0 : (_val$locationType6$$c2 = _val$locationType6$$c[0]) === null || _val$locationType6$$c2 === void 0 ? void 0 : _val$locationType6$$c2.Type,
|
|
12826
|
+
location_type_id: (_val$locationType7 = val.locationType) === null || _val$locationType7 === void 0 ? void 0 : (_val$locationType7$ = _val$locationType7[0]) === null || _val$locationType7$ === void 0 ? void 0 : (_val$locationType7$$c = _val$locationType7$.coding) === null || _val$locationType7$$c === void 0 ? void 0 : (_val$locationType7$$c2 = _val$locationType7$$c[0]) === null || _val$locationType7$$c2 === void 0 ? void 0 : _val$locationType7$$c2._id,
|
|
12827
|
+
location_type_key: (_val$locationType8 = val.locationType) === null || _val$locationType8 === void 0 ? void 0 : (_val$locationType8$ = _val$locationType8[0]) === null || _val$locationType8$ === void 0 ? void 0 : (_val$locationType8$$c = _val$locationType8$.coding) === null || _val$locationType8$$c === void 0 ? void 0 : (_val$locationType8$$c2 = _val$locationType8$$c[0]) === null || _val$locationType8$$c2 === void 0 ? void 0 : _val$locationType8$$c2._key,
|
|
12733
12828
|
long_description: val.longdesc,
|
|
12734
12829
|
short_description: val.shortdesc,
|
|
12735
12830
|
_key: val._key,
|
|
12736
12831
|
id: val.id,
|
|
12737
12832
|
_id: val._id,
|
|
12738
12833
|
status: val.status === "Active" ? true : false,
|
|
12739
|
-
active_status: val.activestatus
|
|
12834
|
+
active_status: val.activestatus,
|
|
12835
|
+
totalCount: val === null || val === void 0 ? void 0 : val.TotalCount
|
|
12740
12836
|
});
|
|
12741
12837
|
}
|
|
12742
12838
|
});
|
|
12743
12839
|
|
|
12744
|
-
case
|
|
12840
|
+
case 12:
|
|
12745
12841
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12746
12842
|
data: arry
|
|
12747
12843
|
}));
|
|
12748
12844
|
|
|
12749
|
-
case
|
|
12750
|
-
_context.prev =
|
|
12845
|
+
case 15:
|
|
12846
|
+
_context.prev = 15;
|
|
12751
12847
|
_context.t0 = _context["catch"](2);
|
|
12752
12848
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12753
12849
|
message: _context.t0.message
|
|
12754
12850
|
})));
|
|
12755
12851
|
|
|
12756
|
-
case
|
|
12852
|
+
case 18:
|
|
12757
12853
|
case "end":
|
|
12758
12854
|
return _context.stop();
|
|
12759
12855
|
}
|
|
12760
12856
|
}
|
|
12761
|
-
}, _callee, null, [[2,
|
|
12857
|
+
}, _callee, null, [[2, 15]]);
|
|
12762
12858
|
})));
|
|
12763
12859
|
var LOCATION_LIST_UPSERT = createAsyncThunk("locationSlice/locationlistupsert", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
12764
12860
|
var payload,
|
|
@@ -12825,32 +12921,33 @@ var LOCATION_MASTER_INSERT = createAsyncThunk("locationApiSlice/locationinsert",
|
|
|
12825
12921
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
12826
12922
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
12827
12923
|
_context3.prev = 2;
|
|
12924
|
+
debugger;
|
|
12828
12925
|
data = payload.data, _key = payload._key;
|
|
12829
12926
|
queriesjson = generateJSON(data, _key);
|
|
12830
|
-
_context3.next =
|
|
12927
|
+
_context3.next = 8;
|
|
12831
12928
|
return fetchData({
|
|
12832
12929
|
body: JSON.stringify(queriesjson)
|
|
12833
12930
|
}, __uspsertUrl__);
|
|
12834
12931
|
|
|
12835
|
-
case
|
|
12932
|
+
case 8:
|
|
12836
12933
|
dataRes = _context3.sent;
|
|
12837
12934
|
return _context3.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
12838
12935
|
data: dataRes
|
|
12839
12936
|
}));
|
|
12840
12937
|
|
|
12841
|
-
case
|
|
12842
|
-
_context3.prev =
|
|
12938
|
+
case 12:
|
|
12939
|
+
_context3.prev = 12;
|
|
12843
12940
|
_context3.t0 = _context3["catch"](2);
|
|
12844
12941
|
return _context3.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
12845
12942
|
message: _context3.t0.message
|
|
12846
12943
|
})));
|
|
12847
12944
|
|
|
12848
|
-
case
|
|
12945
|
+
case 15:
|
|
12849
12946
|
case "end":
|
|
12850
12947
|
return _context3.stop();
|
|
12851
12948
|
}
|
|
12852
12949
|
}
|
|
12853
|
-
}, _callee3, null, [[2,
|
|
12950
|
+
}, _callee3, null, [[2, 12]]);
|
|
12854
12951
|
})));
|
|
12855
12952
|
var locationSlice = createSlice({
|
|
12856
12953
|
name: "locationApiSlice",
|
|
@@ -14095,13 +14192,17 @@ var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
|
14095
14192
|
|
|
14096
14193
|
// import { dbName } from "../../qdm_query_ids";
|
|
14097
14194
|
var queries$l = {
|
|
14098
|
-
fullread: function fullread(
|
|
14195
|
+
fullread: function fullread(page, perPage, search) {
|
|
14099
14196
|
return {
|
|
14100
14197
|
db_name: dbName$1,
|
|
14101
14198
|
entity: "OrderType",
|
|
14102
14199
|
sort: "OrderType.createddate",
|
|
14103
|
-
filter: "OrderType.activestatus == true",
|
|
14104
|
-
|
|
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))})"
|
|
14105
14206
|
};
|
|
14106
14207
|
},
|
|
14107
14208
|
OrderCategory: function OrderCategory() {
|
|
@@ -14176,7 +14277,8 @@ var queries$l = {
|
|
|
14176
14277
|
|
|
14177
14278
|
var _extraReducers$C;
|
|
14178
14279
|
var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
14179
|
-
var
|
|
14280
|
+
var payload,
|
|
14281
|
+
_ref2,
|
|
14180
14282
|
rejectWithValue,
|
|
14181
14283
|
queriesjson,
|
|
14182
14284
|
data,
|
|
@@ -14187,9 +14289,10 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
|
|
|
14187
14289
|
while (1) {
|
|
14188
14290
|
switch (_context.prev = _context.next) {
|
|
14189
14291
|
case 0:
|
|
14292
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
14190
14293
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
14191
14294
|
_context.prev = 2;
|
|
14192
|
-
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 : '');
|
|
14193
14296
|
_context.next = 6;
|
|
14194
14297
|
return fetchData({
|
|
14195
14298
|
body: JSON.stringify(queriesjson)
|
|
@@ -14205,6 +14308,7 @@ var ORDERTYPEREAD = createAsyncThunk("ordertypeSlice/ordertypeRead", /*#__PURE__
|
|
|
14205
14308
|
var _val$ordercategory3, _val$ordercategory4, _val$ordercategory5, _val$ordercategory6;
|
|
14206
14309
|
|
|
14207
14310
|
arry.push({
|
|
14311
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
14208
14312
|
code: val === null || val === void 0 ? void 0 : (_val$ordercategory3 = val.ordercategory) === null || _val$ordercategory3 === void 0 ? void 0 : _val$ordercategory3.ordercategory,
|
|
14209
14313
|
"short": val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
14210
14314
|
"long": val === null || val === void 0 ? void 0 : val.longdesc,
|
|
@@ -14467,13 +14571,18 @@ var ordertypeSlice$1 = ordertypeSlice.reducer;
|
|
|
14467
14571
|
|
|
14468
14572
|
// import { dbName } from "../../qdm_query_ids";
|
|
14469
14573
|
var queries$k = {
|
|
14470
|
-
fullread: function fullread(
|
|
14574
|
+
fullread: function fullread(page, perPage, search) {
|
|
14575
|
+
debugger;
|
|
14471
14576
|
return {
|
|
14472
14577
|
db_name: dbName$1,
|
|
14473
14578
|
entity: "CodeableConceptMaster",
|
|
14474
14579
|
sort: "CodeableConceptMaster.createddate",
|
|
14475
|
-
filter: "CodeableConceptMaster.
|
|
14476
|
-
|
|
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))})"
|
|
14477
14586
|
};
|
|
14478
14587
|
},
|
|
14479
14588
|
Insert: function Insert(data) {
|
|
@@ -14545,22 +14654,22 @@ var queries$k = {
|
|
|
14545
14654
|
// },
|
|
14546
14655
|
// ];
|
|
14547
14656
|
return [{
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
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
|
|
14561
14670
|
},
|
|
14562
|
-
|
|
14563
|
-
|
|
14671
|
+
filter: {
|
|
14672
|
+
_key: data === null || data === void 0 ? void 0 : data._key
|
|
14564
14673
|
}
|
|
14565
14674
|
}];
|
|
14566
14675
|
}
|
|
@@ -14568,7 +14677,8 @@ var queries$k = {
|
|
|
14568
14677
|
|
|
14569
14678
|
var _extraReducers$B;
|
|
14570
14679
|
var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
14571
|
-
var
|
|
14680
|
+
var payload,
|
|
14681
|
+
_ref2,
|
|
14572
14682
|
rejectWithValue,
|
|
14573
14683
|
queriesjson,
|
|
14574
14684
|
data,
|
|
@@ -14579,9 +14689,10 @@ var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PU
|
|
|
14579
14689
|
while (1) {
|
|
14580
14690
|
switch (_context.prev = _context.next) {
|
|
14581
14691
|
case 0:
|
|
14692
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
14582
14693
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
14583
14694
|
_context.prev = 2;
|
|
14584
|
-
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 : '');
|
|
14585
14696
|
_context.next = 6;
|
|
14586
14697
|
return fetchData({
|
|
14587
14698
|
body: JSON.stringify(queriesjson)
|
|
@@ -14597,6 +14708,7 @@ var ORDERNATUREREAD = createAsyncThunk("ordertypeSlice/ordernatureread", /*#__PU
|
|
|
14597
14708
|
var _val$coding$3, _val$coding$4, _val$coding$5;
|
|
14598
14709
|
|
|
14599
14710
|
arry.push(_objectSpread2({
|
|
14711
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
14600
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,
|
|
14601
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,
|
|
14602
14714
|
"long": val === null || val === void 0 ? void 0 : val.coding[0].display,
|
|
@@ -14800,12 +14912,21 @@ var queries$j = {
|
|
|
14800
14912
|
var _ref$isSingle = _ref.isSingle,
|
|
14801
14913
|
isSingle = _ref$isSingle === void 0 ? false : _ref$isSingle,
|
|
14802
14914
|
_ref$key = _ref.key,
|
|
14803
|
-
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;
|
|
14804
14921
|
var obj = {
|
|
14805
14922
|
db_name: dbName$1,
|
|
14806
14923
|
entity: "OrderCategory",
|
|
14807
|
-
filter: "OrderCategory.activestatus == true",
|
|
14808
|
-
|
|
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", ")})"),
|
|
14809
14930
|
sort: "OrderCategory.createddate ASC"
|
|
14810
14931
|
};
|
|
14811
14932
|
|
|
@@ -14875,12 +14996,21 @@ var queries$j = {
|
|
|
14875
14996
|
var _ref4$isSingle = _ref4.isSingle,
|
|
14876
14997
|
isSingle = _ref4$isSingle === void 0 ? false : _ref4$isSingle,
|
|
14877
14998
|
_ref4$key = _ref4.key,
|
|
14878
|
-
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;
|
|
14879
15005
|
var obj = {
|
|
14880
15006
|
db_name: dbName$1,
|
|
14881
15007
|
entity: "CodeableConceptMaster",
|
|
14882
|
-
filter: "CodeableConceptMaster.
|
|
14883
|
-
|
|
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))})"
|
|
14884
15014
|
};
|
|
14885
15015
|
|
|
14886
15016
|
if (isSingle) {
|
|
@@ -14934,21 +15064,21 @@ var queries$j = {
|
|
|
14934
15064
|
// _key: key,
|
|
14935
15065
|
// };
|
|
14936
15066
|
newData = [{
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
15067
|
+
db_name: dbName$1,
|
|
15068
|
+
entity: "CodingMaster",
|
|
15069
|
+
is_metadata: true,
|
|
15070
|
+
filter: {
|
|
15071
|
+
_key: key
|
|
14942
15072
|
},
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
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",
|
|
14952
15082
|
shortdesc: shortdesc
|
|
14953
15083
|
}
|
|
14954
15084
|
}];
|
|
@@ -15011,7 +15141,8 @@ var modeActions = [{
|
|
|
15011
15141
|
id: id,
|
|
15012
15142
|
coding_id: coding_id,
|
|
15013
15143
|
key: key,
|
|
15014
|
-
codeable: codeable
|
|
15144
|
+
codeable: codeable,
|
|
15145
|
+
total_count: codeable === null || codeable === void 0 ? void 0 : codeable.TotalCount
|
|
15015
15146
|
};
|
|
15016
15147
|
});
|
|
15017
15148
|
}
|
|
@@ -15098,8 +15229,10 @@ var categoryActions = [{
|
|
|
15098
15229
|
longdesc = _ref.longdesc,
|
|
15099
15230
|
id = _ref.id,
|
|
15100
15231
|
_key = _ref._key,
|
|
15101
|
-
status = _ref.status
|
|
15232
|
+
status = _ref.status,
|
|
15233
|
+
TotalCount = _ref.TotalCount;
|
|
15102
15234
|
return {
|
|
15235
|
+
total_count: TotalCount,
|
|
15103
15236
|
category: ordercategory,
|
|
15104
15237
|
shortdesc: shortdesc,
|
|
15105
15238
|
longdesc: longdesc,
|
|
@@ -15237,29 +15370,29 @@ var orderMasterSlice$1 = orderMasterSlice.reducer;
|
|
|
15237
15370
|
var queries$i = {
|
|
15238
15371
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
15239
15372
|
return [{
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
|
|
15243
|
-
|
|
15373
|
+
db_name: dbName$1,
|
|
15374
|
+
entity: "CodeableConceptMaster",
|
|
15375
|
+
filter: {
|
|
15376
|
+
_key: data._key
|
|
15244
15377
|
},
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15378
|
+
is_metadata: true,
|
|
15379
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15380
|
+
doc: {
|
|
15381
|
+
status: data.status
|
|
15249
15382
|
}
|
|
15250
15383
|
}];
|
|
15251
15384
|
},
|
|
15252
15385
|
status_update_holiday: function status_update_holiday(data) {
|
|
15253
15386
|
return [{
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15257
|
-
|
|
15387
|
+
db_name: dbName$1,
|
|
15388
|
+
entity: "Holiday",
|
|
15389
|
+
filter: {
|
|
15390
|
+
_key: data._key
|
|
15258
15391
|
},
|
|
15259
|
-
|
|
15260
|
-
|
|
15261
|
-
|
|
15262
|
-
|
|
15392
|
+
is_metadata: true,
|
|
15393
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15394
|
+
doc: {
|
|
15395
|
+
status: data.status
|
|
15263
15396
|
}
|
|
15264
15397
|
}];
|
|
15265
15398
|
},
|
|
@@ -15297,50 +15430,69 @@ var queries$i = {
|
|
|
15297
15430
|
}
|
|
15298
15431
|
|
|
15299
15432
|
return [_objectSpread2(_objectSpread2({
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15433
|
+
db_name: dbName$1,
|
|
15434
|
+
entity: "Holiday",
|
|
15435
|
+
is_metadata: true
|
|
15303
15436
|
}, filter), {}, {
|
|
15304
|
-
|
|
15305
|
-
|
|
15437
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
15438
|
+
doc: _objectSpread2(_objectSpread2({
|
|
15306
15439
|
// "_id": "string",
|
|
15307
15440
|
// "CalYear": "number",
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
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,
|
|
15312
15445
|
// "active": "boolean",
|
|
15313
|
-
|
|
15314
|
-
|
|
15315
|
-
|
|
15446
|
+
id: 0,
|
|
15447
|
+
repeat_every_year: data.repeat,
|
|
15448
|
+
status: data.status
|
|
15316
15449
|
}, organization_id), entitytype)
|
|
15317
15450
|
})];
|
|
15318
15451
|
},
|
|
15319
15452
|
holiday_read: function holiday_read(data) {
|
|
15453
|
+
// alert(JSON.stringify(data))
|
|
15454
|
+
var dataSearched = data.search ? data.search : '';
|
|
15320
15455
|
var filter = {
|
|
15321
|
-
|
|
15456
|
+
filter: "Holiday.activestatus == true"
|
|
15457
|
+
};
|
|
15458
|
+
var limit = {
|
|
15459
|
+
limit: {
|
|
15460
|
+
offset: 0,
|
|
15461
|
+
count: 10
|
|
15462
|
+
}
|
|
15322
15463
|
};
|
|
15323
15464
|
|
|
15324
|
-
if (data.
|
|
15465
|
+
if (data.search) {
|
|
15325
15466
|
filter = {
|
|
15326
|
-
|
|
15467
|
+
filter: "( LIKe(Holiday.HoidayReason,'%".concat(data.search, "%',true) || LIKE(Holiday.HolidayType,'%").concat(data.search, "%',true) ) && Holiday.activestatus == true")
|
|
15327
15468
|
};
|
|
15328
15469
|
}
|
|
15329
15470
|
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
|
|
15335
|
-
|
|
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)}))})")
|
|
15336
15486
|
});
|
|
15337
15487
|
},
|
|
15338
15488
|
holiday_master: {
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
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 \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type == 'APPTYPE' && (LIKE(CodeableConceptMaster.shortdesc,'%").concat(search, "%',true) || LIKE(CodeableConceptMaster.code,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true\",\n \"limit\" : { \"offset\" : ").concat(page, ", \"count\": ").concat(perPage, "},\n \"return_fields\": \"MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.activestatus==true && cnt.Type=='APPTYPE' RETURN cnt._key) ,coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }");
|
|
15342
15495
|
},
|
|
15343
|
-
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 }"),
|
|
15344
15496
|
upsert: function upsert(data) {
|
|
15345
15497
|
var filter = {};
|
|
15346
15498
|
var metadata = {};
|
|
@@ -15367,25 +15519,25 @@ var queries$i = {
|
|
|
15367
15519
|
}
|
|
15368
15520
|
|
|
15369
15521
|
return [_objectSpread2(_objectSpread2({
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15522
|
+
db_name: dbName$1,
|
|
15523
|
+
entity: "CodeableConceptMaster",
|
|
15524
|
+
is_metadata: true,
|
|
15525
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
15374
15526
|
}, filter), {}, {
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
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
|
|
15385
15537
|
}, metadata), coding_key)],
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15538
|
+
Type: data.type,
|
|
15539
|
+
id: 0,
|
|
15540
|
+
status: true
|
|
15389
15541
|
}
|
|
15390
15542
|
})];
|
|
15391
15543
|
}
|
|
@@ -15439,7 +15591,8 @@ var CODEABLE_CONCEPT_MASTER_STATUS_CHANGE = createAsyncThunk("availabilityManage
|
|
|
15439
15591
|
}, _callee, null, [[2, 11]]);
|
|
15440
15592
|
})));
|
|
15441
15593
|
var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appointment_type_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
15442
|
-
var
|
|
15594
|
+
var payload,
|
|
15595
|
+
_ref4,
|
|
15443
15596
|
rejectWithValue,
|
|
15444
15597
|
data,
|
|
15445
15598
|
arry,
|
|
@@ -15449,11 +15602,12 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
|
|
|
15449
15602
|
while (1) {
|
|
15450
15603
|
switch (_context2.prev = _context2.next) {
|
|
15451
15604
|
case 0:
|
|
15605
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
15452
15606
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
15453
15607
|
_context2.prev = 2;
|
|
15454
15608
|
_context2.next = 5;
|
|
15455
15609
|
return fetchData({
|
|
15456
|
-
body: queries$i.appointment_type_read
|
|
15610
|
+
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 : '')
|
|
15457
15611
|
}, __readDocumentUrl__);
|
|
15458
15612
|
|
|
15459
15613
|
case 5:
|
|
@@ -15464,6 +15618,7 @@ var APPOINTMENT_TYPE_READ = createAsyncThunk("availabilityManagementSlice/appoin
|
|
|
15464
15618
|
var _val$coding$0$_key, _val$coding, _val$coding$;
|
|
15465
15619
|
|
|
15466
15620
|
arry.push({
|
|
15621
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
15467
15622
|
"code": val.coding[0].code ? val.coding[0].code : "",
|
|
15468
15623
|
"description": val.coding[0].display ? val.coding[0].display : "",
|
|
15469
15624
|
"id": val.coding[0].id ? val.coding[0].id : 0,
|
|
@@ -15747,6 +15902,8 @@ var HOLIDAY_READ = createAsyncThunk("holidaySlice/holidy_list", /*#__PURE__*/_as
|
|
|
15747
15902
|
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
15748
15903
|
_ref7 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
15749
15904
|
_context5.prev = 2;
|
|
15905
|
+
// console.clear()
|
|
15906
|
+
// alert(JSON.stringify(payload));
|
|
15750
15907
|
readqueries = queries$i.holiday_read(payload);
|
|
15751
15908
|
_context5.next = 6;
|
|
15752
15909
|
return fetchData({
|
|
@@ -15759,6 +15916,7 @@ var HOLIDAY_READ = createAsyncThunk("holidaySlice/holidy_list", /*#__PURE__*/_as
|
|
|
15759
15916
|
data.result.map(function (val) {
|
|
15760
15917
|
if (val._key) {
|
|
15761
15918
|
arry.push({
|
|
15919
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
15762
15920
|
"date": val.CalDate ? utcTOLocal(val.CalDate, "DD-MM-YY") : null,
|
|
15763
15921
|
"CalDate": val.CalDate ? val.CalDate : null,
|
|
15764
15922
|
"day": val.CalDay ? val.CalDay : "",
|
|
@@ -15950,12 +16108,19 @@ var queries$h = {
|
|
|
15950
16108
|
};
|
|
15951
16109
|
},
|
|
15952
16110
|
res_table_data: function res_table_data(entityType, entityName) {
|
|
16111
|
+
var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
16112
|
+
var perpage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10;
|
|
15953
16113
|
return {
|
|
15954
16114
|
db_name: dbName$1,
|
|
15955
16115
|
entity: "ResourcebyApptType",
|
|
15956
16116
|
// filter: "ResourcebyApptType.activestatus==true AND DOCUMENT(ResourcebyApptType.entityType).display=='Hospital' AND DOCUMENT(ResourcebyApptType.organization_id).name=='KMCH Hospital'",
|
|
15957
16117
|
filter: "ResourcebyApptType.activestatus==true ".concat(entityType, " ").concat(entityName),
|
|
15958
|
-
|
|
16118
|
+
// 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`,
|
|
16119
|
+
limit: {
|
|
16120
|
+
offset: page,
|
|
16121
|
+
count: perpage
|
|
16122
|
+
},
|
|
16123
|
+
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) })"
|
|
15959
16124
|
};
|
|
15960
16125
|
},
|
|
15961
16126
|
resource_type_drop_down: function resource_type_drop_down() {
|
|
@@ -16339,7 +16504,7 @@ var RESOURCE_BY_TABLE_DATA = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16339
16504
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
16340
16505
|
_context4.prev = 2;
|
|
16341
16506
|
// let { entityTypeQ, entityNameQ } = payload;
|
|
16342
|
-
queriesjson = queries$h.res_table_data(payload.entityTypeQ, payload.entityNameQ);
|
|
16507
|
+
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);
|
|
16343
16508
|
_context4.next = 6;
|
|
16344
16509
|
return fetchData({
|
|
16345
16510
|
body: JSON.stringify(queriesjson)
|
|
@@ -16355,7 +16520,8 @@ var RESOURCE_BY_TABLE_DATA = createAsyncThunk("resourceByAppointmentTypesSlice/r
|
|
|
16355
16520
|
code: val.ApptTypeCode.code,
|
|
16356
16521
|
resources: val.TotNoOfResourcesRequired.length,
|
|
16357
16522
|
status: val.status,
|
|
16358
|
-
allData: val
|
|
16523
|
+
allData: val,
|
|
16524
|
+
total_count: val.TotalCount
|
|
16359
16525
|
});
|
|
16360
16526
|
}
|
|
16361
16527
|
});
|
|
@@ -16882,9 +17048,44 @@ var resourceByAppointmentTypes = {
|
|
|
16882
17048
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
16883
17049
|
|
|
16884
17050
|
var queries$g = {
|
|
16885
|
-
drug_category_read:
|
|
16886
|
-
|
|
16887
|
-
|
|
17051
|
+
drug_category_read: function drug_category_read(page, perPage, search) {
|
|
17052
|
+
return {
|
|
17053
|
+
db_name: dbName$1,
|
|
17054
|
+
entity: "DrugCategory",
|
|
17055
|
+
filter: "(LIKE(DrugCategory.drugcategory,'%".concat(search, "%',true) || LIKE(DrugCategory.shortdesc,'%").concat(search, "%',true) || LIKE(DrugCategory.longdesc,'%").concat(search, "%',true)) && DrugCategory.activestatus == true"),
|
|
17056
|
+
limit: {
|
|
17057
|
+
offset: page,
|
|
17058
|
+
count: perPage
|
|
17059
|
+
},
|
|
17060
|
+
return_fields: "MERGE(DrugCategory, {TotalCount:COUNT(FOR cnt IN DrugCategory RETURN cnt._key)})"
|
|
17061
|
+
};
|
|
17062
|
+
},
|
|
17063
|
+
drug_type_read: function drug_type_read(page, perPage, search) {
|
|
17064
|
+
return {
|
|
17065
|
+
db_name: dbName$1,
|
|
17066
|
+
entity: "DrugType",
|
|
17067
|
+
filter: "(LIKE(DrugType.drugtype,'%".concat(search, "%',true) || LIKE(DrugType.shortdesc,'%").concat(search, "%',true) || LIKE(DrugType.longdesc,'%").concat(search, "%',true)) && DrugType.activestatus == true"),
|
|
17068
|
+
limit: {
|
|
17069
|
+
offset: page,
|
|
17070
|
+
count: perPage
|
|
17071
|
+
},
|
|
17072
|
+
sort: "DrugType.id",
|
|
17073
|
+
return_fields: "MERGE(DrugType, {TotalCount:COUNT(FOR cnt IN DrugType RETURN cnt._key)})"
|
|
17074
|
+
};
|
|
17075
|
+
},
|
|
17076
|
+
drug_dosage: function drug_dosage(page, perPage, search) {
|
|
17077
|
+
return {
|
|
17078
|
+
db_name: dbName$1,
|
|
17079
|
+
entity: "DosageForm",
|
|
17080
|
+
sort: "DosageForm.dosageform",
|
|
17081
|
+
filter: "(LIKE(DosageForm.dosageform,'%".concat(search, "%',true) || LIKE(DosageForm.UOM,'%").concat(search, "%',true) || LIKE(DosageForm.longdesc,'%").concat(search, "%',true)) && DosageForm.activestatus == true"),
|
|
17082
|
+
limit: {
|
|
17083
|
+
offset: page,
|
|
17084
|
+
count: perPage
|
|
17085
|
+
},
|
|
17086
|
+
return_fields: "MERGE(DosageForm, {TotalCount:COUNT(FOR cnt IN DosageForm RETURN cnt._key)})"
|
|
17087
|
+
};
|
|
17088
|
+
},
|
|
16888
17089
|
drug_dosage_upsert: function drug_dosage_upsert(data) {
|
|
16889
17090
|
var filter = {};
|
|
16890
17091
|
|
|
@@ -16897,35 +17098,47 @@ var queries$g = {
|
|
|
16897
17098
|
}
|
|
16898
17099
|
|
|
16899
17100
|
return [_objectSpread2(_objectSpread2({
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
17101
|
+
db_name: dbName$1,
|
|
17102
|
+
entity: "DosageForm",
|
|
17103
|
+
is_metadata: true
|
|
16903
17104
|
}, filter), {}, {
|
|
16904
|
-
|
|
16905
|
-
|
|
17105
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17106
|
+
doc: {
|
|
16906
17107
|
// "id":0,
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
|
|
16910
|
-
|
|
17108
|
+
dosageform: data.drug_dosage ? data.drug_dosage : "",
|
|
17109
|
+
shortdesc: data.short_description ? data.short_description : "",
|
|
17110
|
+
longdesc: data.long_description ? data.long_description : "",
|
|
17111
|
+
status: data.status ? data.status : false
|
|
16911
17112
|
}
|
|
16912
17113
|
})];
|
|
16913
17114
|
},
|
|
16914
17115
|
status_update_drug_dosage: function status_update_drug_dosage(data) {
|
|
16915
17116
|
return [{
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
17117
|
+
db_name: dbName$1,
|
|
17118
|
+
entity: "DosageForm",
|
|
17119
|
+
filter: {
|
|
17120
|
+
_key: data._key
|
|
16920
17121
|
},
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
17122
|
+
is_metadata: true,
|
|
17123
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17124
|
+
doc: {
|
|
17125
|
+
status: data.status
|
|
16925
17126
|
}
|
|
16926
17127
|
}];
|
|
16927
17128
|
},
|
|
16928
|
-
drug_class:
|
|
17129
|
+
drug_class: function drug_class(page, perPage, search) {
|
|
17130
|
+
return {
|
|
17131
|
+
db_name: dbName$1,
|
|
17132
|
+
entity: "DrugClass",
|
|
17133
|
+
filter: "(LIKE(DrugClass.drugclass,'%".concat(search, "%',true) || LIKE(DrugClass.longdesc,'%").concat(search, "%',true) || LIKE(DrugClass.shortdesc,'%").concat(search, "%',true)) && DrugClass.activestatus == true"),
|
|
17134
|
+
limit: {
|
|
17135
|
+
offset: page,
|
|
17136
|
+
count: perPage
|
|
17137
|
+
},
|
|
17138
|
+
sort: "DrugClass.drugclass",
|
|
17139
|
+
return_fields: "MERGE(DrugClass, {TotalCount:COUNT(FOR cnt IN DrugClass RETURN cnt._key)})"
|
|
17140
|
+
};
|
|
17141
|
+
},
|
|
16929
17142
|
drug_class_upsert: function drug_class_upsert(data) {
|
|
16930
17143
|
var filter = {};
|
|
16931
17144
|
|
|
@@ -16938,46 +17151,58 @@ var queries$g = {
|
|
|
16938
17151
|
}
|
|
16939
17152
|
|
|
16940
17153
|
return [_objectSpread2(_objectSpread2({
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
17154
|
+
db_name: dbName$1,
|
|
17155
|
+
entity: "DrugClass",
|
|
17156
|
+
is_metadata: true
|
|
16944
17157
|
}, filter), {}, {
|
|
16945
|
-
|
|
16946
|
-
|
|
17158
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17159
|
+
doc: {
|
|
16947
17160
|
// "id":0,
|
|
16948
|
-
|
|
16949
|
-
|
|
16950
|
-
|
|
16951
|
-
|
|
17161
|
+
drugclass: data.drug_class ? data.drug_class : "",
|
|
17162
|
+
shortdesc: data.short_description ? data.short_description : "",
|
|
17163
|
+
longdesc: data.long_description ? data.long_description : "",
|
|
17164
|
+
status: data.status ? data.status : false
|
|
16952
17165
|
}
|
|
16953
17166
|
})];
|
|
16954
17167
|
},
|
|
16955
17168
|
status_update_drug_class: function status_update_drug_class(data) {
|
|
16956
17169
|
return [{
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
17170
|
+
db_name: dbName$1,
|
|
17171
|
+
entity: "DrugClass",
|
|
17172
|
+
filter: {
|
|
17173
|
+
_key: data._key
|
|
16961
17174
|
},
|
|
16962
|
-
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
17175
|
+
is_metadata: true,
|
|
17176
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17177
|
+
doc: {
|
|
17178
|
+
status: data.status
|
|
16966
17179
|
}
|
|
16967
17180
|
}];
|
|
16968
17181
|
},
|
|
16969
|
-
drug_routes:
|
|
17182
|
+
drug_routes: function drug_routes(page, perPage, search) {
|
|
17183
|
+
return {
|
|
17184
|
+
db_name: dbName$1,
|
|
17185
|
+
entity: "DrugRoutes",
|
|
17186
|
+
sort: "DrugRoutes.routecode",
|
|
17187
|
+
filter: "(LIKE(DrugRoutes.routecode,'%".concat(search, "%',true) || LIKE(DrugRoutes.UOM,'%").concat(search, "%',true) || LIKE(DrugRoutes.longdesc,'%").concat(search, "%',true)) && DrugRoutes.activestatus == true"),
|
|
17188
|
+
limit: {
|
|
17189
|
+
"offset": page,
|
|
17190
|
+
"count": perPage
|
|
17191
|
+
},
|
|
17192
|
+
return_fields: "MERGE(DrugRoutes, {TotalCount:COUNT(FOR cnt IN DrugRoutes RETURN cnt._key)})"
|
|
17193
|
+
};
|
|
17194
|
+
},
|
|
16970
17195
|
status_update_drug_routes: function status_update_drug_routes(data) {
|
|
16971
17196
|
return [{
|
|
16972
|
-
|
|
16973
|
-
|
|
16974
|
-
|
|
16975
|
-
|
|
17197
|
+
db_name: dbName$1,
|
|
17198
|
+
entity: "DrugRoutes",
|
|
17199
|
+
filter: {
|
|
17200
|
+
_key: data._key
|
|
16976
17201
|
},
|
|
16977
|
-
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
17202
|
+
is_metadata: true,
|
|
17203
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17204
|
+
doc: {
|
|
17205
|
+
status: data.status
|
|
16981
17206
|
}
|
|
16982
17207
|
}];
|
|
16983
17208
|
},
|
|
@@ -16993,18 +17218,18 @@ var queries$g = {
|
|
|
16993
17218
|
}
|
|
16994
17219
|
|
|
16995
17220
|
return [_objectSpread2(_objectSpread2({
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
17221
|
+
db_name: dbName$1,
|
|
17222
|
+
entity: "DrugRoutes",
|
|
17223
|
+
is_metadata: true
|
|
16999
17224
|
}, filter), {}, {
|
|
17000
|
-
|
|
17001
|
-
|
|
17225
|
+
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
17226
|
+
doc: {
|
|
17002
17227
|
// "id":0,
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17006
|
-
|
|
17007
|
-
|
|
17228
|
+
routecode: data.drug_routes ? data.drug_routes : "",
|
|
17229
|
+
routeadverb: data.route_adverb ? data.route_adverb : "",
|
|
17230
|
+
shortdesc: data.short_description ? data.short_description : "",
|
|
17231
|
+
longdesc: data.long_description ? data.long_description : "",
|
|
17232
|
+
status: data.status ? data.status : false
|
|
17008
17233
|
}
|
|
17009
17234
|
})];
|
|
17010
17235
|
}
|
|
@@ -17012,7 +17237,8 @@ var queries$g = {
|
|
|
17012
17237
|
|
|
17013
17238
|
var _extraReducers$x;
|
|
17014
17239
|
var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17015
|
-
var
|
|
17240
|
+
var payload,
|
|
17241
|
+
_ref2,
|
|
17016
17242
|
rejectWithValue,
|
|
17017
17243
|
data,
|
|
17018
17244
|
arry,
|
|
@@ -17022,11 +17248,12 @@ var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list"
|
|
|
17022
17248
|
while (1) {
|
|
17023
17249
|
switch (_context.prev = _context.next) {
|
|
17024
17250
|
case 0:
|
|
17251
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17025
17252
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17026
17253
|
_context.prev = 2;
|
|
17027
17254
|
_context.next = 5;
|
|
17028
17255
|
return fetchData({
|
|
17029
|
-
body: queries$g.drug_category_read
|
|
17256
|
+
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 : ''))
|
|
17030
17257
|
}, __readDocumentUrl__);
|
|
17031
17258
|
|
|
17032
17259
|
case 5:
|
|
@@ -17035,6 +17262,7 @@ var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list"
|
|
|
17035
17262
|
data.result.map(function (val) {
|
|
17036
17263
|
if (val._key) {
|
|
17037
17264
|
arry.push({
|
|
17265
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17038
17266
|
"drug_category": val.drugcategory ? val.drugcategory : "",
|
|
17039
17267
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17040
17268
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17061,7 +17289,8 @@ var DRUG_CATEGORY_READ = createAsyncThunk("drugCategorySlice/drug_category_list"
|
|
|
17061
17289
|
}, _callee, null, [[2, 11]]);
|
|
17062
17290
|
})));
|
|
17063
17291
|
var DRUG_TYPE_READ = createAsyncThunk("drugCategorySlice/drug_type_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
17064
|
-
var
|
|
17292
|
+
var payload,
|
|
17293
|
+
_ref4,
|
|
17065
17294
|
rejectWithValue,
|
|
17066
17295
|
data,
|
|
17067
17296
|
arry,
|
|
@@ -17071,11 +17300,12 @@ var DRUG_TYPE_READ = createAsyncThunk("drugCategorySlice/drug_type_list", /*#__P
|
|
|
17071
17300
|
while (1) {
|
|
17072
17301
|
switch (_context2.prev = _context2.next) {
|
|
17073
17302
|
case 0:
|
|
17303
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
17074
17304
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
17075
17305
|
_context2.prev = 2;
|
|
17076
17306
|
_context2.next = 5;
|
|
17077
17307
|
return fetchData({
|
|
17078
|
-
body: queries$g.drug_type_read
|
|
17308
|
+
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 : ''))
|
|
17079
17309
|
}, __readDocumentUrl__);
|
|
17080
17310
|
|
|
17081
17311
|
case 5:
|
|
@@ -17084,6 +17314,7 @@ var DRUG_TYPE_READ = createAsyncThunk("drugCategorySlice/drug_type_list", /*#__P
|
|
|
17084
17314
|
data.result.map(function (val) {
|
|
17085
17315
|
if (val._key) {
|
|
17086
17316
|
arry.push({
|
|
17317
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17087
17318
|
"drug_type": val.drugtype ? val.drugtype : "",
|
|
17088
17319
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17089
17320
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17137,7 +17368,8 @@ var drugCategorySlice$1 = drugCategorySlice.reducer;
|
|
|
17137
17368
|
|
|
17138
17369
|
var _extraReducers$w;
|
|
17139
17370
|
var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17140
|
-
var
|
|
17371
|
+
var payload,
|
|
17372
|
+
_ref2,
|
|
17141
17373
|
rejectWithValue,
|
|
17142
17374
|
data,
|
|
17143
17375
|
arry,
|
|
@@ -17147,11 +17379,12 @@ var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#_
|
|
|
17147
17379
|
while (1) {
|
|
17148
17380
|
switch (_context.prev = _context.next) {
|
|
17149
17381
|
case 0:
|
|
17382
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17150
17383
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17151
17384
|
_context.prev = 2;
|
|
17152
17385
|
_context.next = 5;
|
|
17153
17386
|
return fetchData({
|
|
17154
|
-
body: queries$g.drug_dosage
|
|
17387
|
+
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 : ''))
|
|
17155
17388
|
}, __readDocumentUrl__);
|
|
17156
17389
|
|
|
17157
17390
|
case 5:
|
|
@@ -17160,6 +17393,7 @@ var DRUG_DOSAGE_READ = createAsyncThunk("drugDosageSlice/drug_dosage_list", /*#_
|
|
|
17160
17393
|
data.result.map(function (val) {
|
|
17161
17394
|
if (val._key) {
|
|
17162
17395
|
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17396
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17163
17397
|
"drug_dosage": val.dosageform ? val.dosageform : "",
|
|
17164
17398
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17165
17399
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17317,7 +17551,8 @@ var drugDosageSlice$1 = drugDosageSlice.reducer;
|
|
|
17317
17551
|
|
|
17318
17552
|
var _extraReducers$v;
|
|
17319
17553
|
var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17320
|
-
var
|
|
17554
|
+
var payload,
|
|
17555
|
+
_ref2,
|
|
17321
17556
|
rejectWithValue,
|
|
17322
17557
|
data,
|
|
17323
17558
|
arry,
|
|
@@ -17327,11 +17562,12 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
|
|
|
17327
17562
|
while (1) {
|
|
17328
17563
|
switch (_context.prev = _context.next) {
|
|
17329
17564
|
case 0:
|
|
17565
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17330
17566
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17331
17567
|
_context.prev = 2;
|
|
17332
17568
|
_context.next = 5;
|
|
17333
17569
|
return fetchData({
|
|
17334
|
-
body: queries$g.drug_class
|
|
17570
|
+
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 : ''))
|
|
17335
17571
|
}, __readDocumentUrl__);
|
|
17336
17572
|
|
|
17337
17573
|
case 5:
|
|
@@ -17340,6 +17576,7 @@ var DRUG_CLASS_READ = createAsyncThunk("drugClassSlice/drug_class_list", /*#__PU
|
|
|
17340
17576
|
data.result.map(function (val) {
|
|
17341
17577
|
if (val._key) {
|
|
17342
17578
|
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17579
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17343
17580
|
"drug_class": val.drugclass ? val.drugclass : "",
|
|
17344
17581
|
"short_description": val.shortdesc ? val.shortdesc : "",
|
|
17345
17582
|
"long_description": val.longdesc ? val.longdesc : "",
|
|
@@ -17497,7 +17734,8 @@ var drugClassSlice$1 = drugClassSlice.reducer;
|
|
|
17497
17734
|
|
|
17498
17735
|
var _extraReducers$u;
|
|
17499
17736
|
var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
17500
|
-
var
|
|
17737
|
+
var payload,
|
|
17738
|
+
_ref2,
|
|
17501
17739
|
rejectWithValue,
|
|
17502
17740
|
data,
|
|
17503
17741
|
arry,
|
|
@@ -17507,11 +17745,12 @@ var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#_
|
|
|
17507
17745
|
while (1) {
|
|
17508
17746
|
switch (_context.prev = _context.next) {
|
|
17509
17747
|
case 0:
|
|
17748
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
17510
17749
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
17511
17750
|
_context.prev = 2;
|
|
17512
17751
|
_context.next = 5;
|
|
17513
17752
|
return fetchData({
|
|
17514
|
-
body: queries$g.drug_routes
|
|
17753
|
+
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 : ''))
|
|
17515
17754
|
}, __readDocumentUrl__);
|
|
17516
17755
|
|
|
17517
17756
|
case 5:
|
|
@@ -17520,6 +17759,7 @@ var DRUG_ROUTES_READ = createAsyncThunk("drugRoutesSlice/drug_routes_list", /*#_
|
|
|
17520
17759
|
data.result.map(function (val) {
|
|
17521
17760
|
if (val._key) {
|
|
17522
17761
|
arry.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
17762
|
+
"total_count": val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
17523
17763
|
"drug_routes": val.routecode ? val.routecode : "-",
|
|
17524
17764
|
"short_description": val.shortdesc ? val.shortdesc : "-",
|
|
17525
17765
|
"long_description": val.longdesc ? val.longdesc : "-",
|
|
@@ -20374,7 +20614,7 @@ var drugMasterSlice$1 = drugMasterSlice.reducer;
|
|
|
20374
20614
|
|
|
20375
20615
|
// import { dbName } from "../../qdm_query_ids";
|
|
20376
20616
|
var queries$e = {
|
|
20377
|
-
fullread: function fullread(
|
|
20617
|
+
fullread: function fullread(page, perPage, search) {
|
|
20378
20618
|
// return {
|
|
20379
20619
|
// db_name: dbName,
|
|
20380
20620
|
// entity: "DrugRouteDirection",
|
|
@@ -20387,8 +20627,12 @@ var queries$e = {
|
|
|
20387
20627
|
"db_name": dbName$1,
|
|
20388
20628
|
"entity": "DrugRouteDirection",
|
|
20389
20629
|
"sort": "DrugRouteDirection.RouteDirectionCode",
|
|
20390
|
-
"filter": "DrugRouteDirection.activestatus == true
|
|
20391
|
-
"
|
|
20630
|
+
"filter": "(LIKE(DrugRouteDirection.RouteDirectionCode,'%".concat(search, "%',true) || LIKE(DrugRouteDirection.UOM,'%").concat(search, "%',true) || LIKE(DrugRouteDirection.longdesc,'%").concat(search, "%',true)) && DrugRouteDirection.activestatus == true"),
|
|
20631
|
+
"limit": {
|
|
20632
|
+
"offset": page,
|
|
20633
|
+
"count": perPage
|
|
20634
|
+
},
|
|
20635
|
+
"return_fields": "merge(DrugRouteDirection,{TotalCount:COUNT(FOR cnt IN DrugRouteDirection RETURN cnt._key),DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})"
|
|
20392
20636
|
};
|
|
20393
20637
|
},
|
|
20394
20638
|
DosageFormDropDown: function DosageFormDropDown() {
|
|
@@ -20461,7 +20705,8 @@ var queries$e = {
|
|
|
20461
20705
|
|
|
20462
20706
|
var _extraReducers$s;
|
|
20463
20707
|
var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_direction_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
20464
|
-
var
|
|
20708
|
+
var payload,
|
|
20709
|
+
_ref2,
|
|
20465
20710
|
rejectWithValue,
|
|
20466
20711
|
queriesjson,
|
|
20467
20712
|
data,
|
|
@@ -20472,9 +20717,10 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
|
|
|
20472
20717
|
while (1) {
|
|
20473
20718
|
switch (_context.prev = _context.next) {
|
|
20474
20719
|
case 0:
|
|
20720
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
20475
20721
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
20476
20722
|
_context.prev = 2;
|
|
20477
|
-
queriesjson = queries$e.fullread();
|
|
20723
|
+
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 : '');
|
|
20478
20724
|
_context.next = 6;
|
|
20479
20725
|
return fetchData({
|
|
20480
20726
|
body: JSON.stringify(queriesjson)
|
|
@@ -20489,6 +20735,7 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
|
|
|
20489
20735
|
var _val$DoseForm, _val$DoseForm2;
|
|
20490
20736
|
|
|
20491
20737
|
arry.push({
|
|
20738
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
20492
20739
|
code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
|
|
20493
20740
|
// action_id: val?.Action?._id,
|
|
20494
20741
|
// action: val?.Action?.display,
|
|
@@ -22385,7 +22632,8 @@ var UPSERT_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/save_perf
|
|
|
22385
22632
|
}, _callee5, null, [[2, 12]]);
|
|
22386
22633
|
})));
|
|
22387
22634
|
var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingLocationRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
22388
|
-
var
|
|
22635
|
+
var payload,
|
|
22636
|
+
_ref12,
|
|
22389
22637
|
rejectWithValue,
|
|
22390
22638
|
read,
|
|
22391
22639
|
data,
|
|
@@ -22395,14 +22643,19 @@ var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingL
|
|
|
22395
22643
|
while (1) {
|
|
22396
22644
|
switch (_context6.prev = _context6.next) {
|
|
22397
22645
|
case 0:
|
|
22646
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
22398
22647
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
22399
22648
|
_context6.prev = 2;
|
|
22400
22649
|
read = {
|
|
22401
22650
|
"db_name": dbName$1,
|
|
22402
22651
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
22403
22652
|
"sort": "CA_PerformingLocationforOrdLocn.createddate",
|
|
22404
|
-
"filter": "CA_PerformingLocationforOrdLocn.activestatus==true",
|
|
22405
|
-
"
|
|
22653
|
+
"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"),
|
|
22654
|
+
"limit": {
|
|
22655
|
+
"offset": payload === null || payload === void 0 ? void 0 : payload.page,
|
|
22656
|
+
"count": payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
22657
|
+
},
|
|
22658
|
+
"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)}))})"
|
|
22406
22659
|
};
|
|
22407
22660
|
_context6.next = 6;
|
|
22408
22661
|
return fetchData({
|
|
@@ -22601,8 +22854,24 @@ var query$8 = {
|
|
|
22601
22854
|
},
|
|
22602
22855
|
readQuery: function readQuery(_ref2) {
|
|
22603
22856
|
var entity_type = _ref2.entity_type,
|
|
22604
|
-
entity_name = _ref2.entity_name
|
|
22605
|
-
|
|
22857
|
+
entity_name = _ref2.entity_name,
|
|
22858
|
+
_ref2$page = _ref2.page,
|
|
22859
|
+
page = _ref2$page === void 0 ? 0 : _ref2$page,
|
|
22860
|
+
_ref2$perPage = _ref2.perPage,
|
|
22861
|
+
perPage = _ref2$perPage === void 0 ? 10 : _ref2$perPage,
|
|
22862
|
+
_ref2$search = _ref2.search,
|
|
22863
|
+
search = _ref2$search === void 0 ? "" : _ref2$search;
|
|
22864
|
+
return JSON.stringify({
|
|
22865
|
+
db_name: dbName$1,
|
|
22866
|
+
entity: "ResourceTimeTable",
|
|
22867
|
+
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(), "%'") : ""),
|
|
22868
|
+
limit: {
|
|
22869
|
+
offset: page,
|
|
22870
|
+
count: perPage
|
|
22871
|
+
},
|
|
22872
|
+
sort: "ResourceTimeTable.createddate",
|
|
22873
|
+
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)} )) })")
|
|
22874
|
+
});
|
|
22606
22875
|
},
|
|
22607
22876
|
readGroup: function readGroup() {
|
|
22608
22877
|
return "{\n \"db_name\": \"".concat(ruleDBName, "\",\n \"entity\": \"Groups\",\n \"filter\": \"Groups.activestatus==true\",\n \"return_fields\": \"{label : Groups.name, value:Groups.id}\"\n }");
|
|
@@ -22617,11 +22886,11 @@ var query$8 = {
|
|
|
22617
22886
|
},
|
|
22618
22887
|
applicableAppTypes_: function applicableAppTypes_() {
|
|
22619
22888
|
return {
|
|
22620
|
-
|
|
22621
|
-
|
|
22622
|
-
|
|
22623
|
-
|
|
22624
|
-
|
|
22889
|
+
db_name: "primarycare",
|
|
22890
|
+
entity: "CodingMaster",
|
|
22891
|
+
filter: "CodingMaster.Type == 'APPTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true",
|
|
22892
|
+
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status','activestatus')",
|
|
22893
|
+
sort: "CodingMaster.display"
|
|
22625
22894
|
};
|
|
22626
22895
|
}
|
|
22627
22896
|
};
|
|
@@ -22841,6 +23110,7 @@ var makeJson = function makeJson(data) {
|
|
|
22841
23110
|
var _val$ResourceType, _val$ResourceRole$dis, _val$ResourceRole, _val$ResourceRole2;
|
|
22842
23111
|
|
|
22843
23112
|
return _objectSpread2(_objectSpread2({}, val), {}, {
|
|
23113
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
22844
23114
|
start_date: utcTOLocal(val.EffectiveFrom, "DD-MM-YYYY"),
|
|
22845
23115
|
end_date: val.EffectiveTo ? utcTOLocal(val.EffectiveTo, "DD-MM-YYYY") : "",
|
|
22846
23116
|
resource_type: val === null || val === void 0 ? void 0 : (_val$ResourceType = val.ResourceType) === null || _val$ResourceType === void 0 ? void 0 : _val$ResourceType.display,
|
|
@@ -22957,6 +23227,9 @@ var actionsList = [{
|
|
|
22957
23227
|
queryName: "readQuery",
|
|
22958
23228
|
type: "List",
|
|
22959
23229
|
url: __readDocumentUrl__,
|
|
23230
|
+
// makePayload: (payload) => {
|
|
23231
|
+
// alert(JSON.stringify(payload))
|
|
23232
|
+
// },
|
|
22960
23233
|
makeReturnData: makeJson
|
|
22961
23234
|
}, {
|
|
22962
23235
|
name: "READ_GROUPS",
|
|
@@ -26066,20 +26339,28 @@ var organizationSlice$1 = organizationSlice.reducer;
|
|
|
26066
26339
|
var organization_role_actions = _objectSpread2({}, organizationActions);
|
|
26067
26340
|
|
|
26068
26341
|
var queries$b = {
|
|
26069
|
-
careTypeRead: function careTypeRead() {
|
|
26342
|
+
careTypeRead: function careTypeRead(page, perPage, search) {
|
|
26070
26343
|
return {
|
|
26071
26344
|
db_name: dbName$1,
|
|
26072
26345
|
entity: "CareType",
|
|
26073
|
-
filter: "CareType.activestatus==true",
|
|
26074
|
-
|
|
26346
|
+
filter: "(LIKE(CareType.careType,'%".concat(search, "%',true) || LIKE(CareType.description,'%").concat(search, "%',true) ) && CareType.activestatus==true"),
|
|
26347
|
+
limit: {
|
|
26348
|
+
"offset": page,
|
|
26349
|
+
"count": perPage
|
|
26350
|
+
},
|
|
26351
|
+
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}")
|
|
26075
26352
|
};
|
|
26076
26353
|
},
|
|
26077
|
-
levelOfCareRead: function levelOfCareRead() {
|
|
26354
|
+
levelOfCareRead: function levelOfCareRead(page, perPage, search) {
|
|
26078
26355
|
return {
|
|
26079
26356
|
db_name: dbName$1,
|
|
26080
26357
|
entity: "LevelOfCare",
|
|
26081
|
-
filter: "LevelOfCare.activestatus==true",
|
|
26082
|
-
|
|
26358
|
+
filter: "(LIKE(LevelOfCare.levelofcareCode,'%".concat(search, "%',true) || LIKE(LevelOfCare.careType,'%").concat(search, "%',true) || LIKE(LevelOfCare.description,'%").concat(search, "%',true)) && LevelOfCare.activestatus==true"),
|
|
26359
|
+
limit: {
|
|
26360
|
+
"offset": page,
|
|
26361
|
+
"count": perPage
|
|
26362
|
+
},
|
|
26363
|
+
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}"),
|
|
26083
26364
|
sort: "LevelOfCare.createddate"
|
|
26084
26365
|
};
|
|
26085
26366
|
},
|
|
@@ -26132,12 +26413,16 @@ var queries$b = {
|
|
|
26132
26413
|
})];
|
|
26133
26414
|
},
|
|
26134
26415
|
//HEALTH CARE SERVICE READ
|
|
26135
|
-
healthCareServiceRead: function healthCareServiceRead() {
|
|
26416
|
+
healthCareServiceRead: function healthCareServiceRead(page, perPage, search) {
|
|
26136
26417
|
return {
|
|
26137
26418
|
db_name: dbName$1,
|
|
26138
26419
|
entity: "HealthcareService",
|
|
26139
|
-
filter: "HealthcareService.activestatus==true",
|
|
26140
|
-
|
|
26420
|
+
filter: "(LIKE(HealthcareService.healthcareservicecode,'%".concat(search, "%',true) || LIKE(HealthcareService.category,'%").concat(search, "%',true) || LIKE(HealthcareService.Type,'%").concat(search, "%',true)) && HealthcareService.activestatus==true"),
|
|
26421
|
+
limit: {
|
|
26422
|
+
"offset": page,
|
|
26423
|
+
"count": perPage
|
|
26424
|
+
},
|
|
26425
|
+
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)})}"),
|
|
26141
26426
|
sort: "HealthcareService.createddate"
|
|
26142
26427
|
};
|
|
26143
26428
|
},
|
|
@@ -26453,7 +26738,8 @@ var _extraReducers$n;
|
|
|
26453
26738
|
//CARE TYPE READ
|
|
26454
26739
|
|
|
26455
26740
|
var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
26456
|
-
var
|
|
26741
|
+
var payload,
|
|
26742
|
+
_ref2,
|
|
26457
26743
|
rejectWithValue,
|
|
26458
26744
|
data,
|
|
26459
26745
|
arry,
|
|
@@ -26463,11 +26749,12 @@ var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead",
|
|
|
26463
26749
|
while (1) {
|
|
26464
26750
|
switch (_context.prev = _context.next) {
|
|
26465
26751
|
case 0:
|
|
26752
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
26466
26753
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
26467
26754
|
_context.prev = 2;
|
|
26468
26755
|
_context.next = 5;
|
|
26469
26756
|
return fetchData({
|
|
26470
|
-
body: JSON.stringify(queries$b.careTypeRead())
|
|
26757
|
+
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 : ''))
|
|
26471
26758
|
}, __readDocumentUrl__);
|
|
26472
26759
|
|
|
26473
26760
|
case 5:
|
|
@@ -26477,6 +26764,7 @@ var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead",
|
|
|
26477
26764
|
if (data.result) {
|
|
26478
26765
|
data.result.map(function (val) {
|
|
26479
26766
|
arry.push({
|
|
26767
|
+
total_count: val.TotalCount,
|
|
26480
26768
|
id: val.id,
|
|
26481
26769
|
_id: val._id,
|
|
26482
26770
|
careType: val.careType,
|
|
@@ -26506,7 +26794,8 @@ var CARE_TYPE_READ = createAsyncThunk("organizationConfigApiSlice/careTypeRead",
|
|
|
26506
26794
|
}))); //LEVEL OF CARE READ
|
|
26507
26795
|
|
|
26508
26796
|
var LEVEL_OF_CARE_READ = createAsyncThunk("organizationConfigApiSlice/levelOfCareRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
26509
|
-
var
|
|
26797
|
+
var payload,
|
|
26798
|
+
_ref4,
|
|
26510
26799
|
rejectWithValue,
|
|
26511
26800
|
data,
|
|
26512
26801
|
arry,
|
|
@@ -26516,11 +26805,12 @@ var LEVEL_OF_CARE_READ = createAsyncThunk("organizationConfigApiSlice/levelOfCar
|
|
|
26516
26805
|
while (1) {
|
|
26517
26806
|
switch (_context2.prev = _context2.next) {
|
|
26518
26807
|
case 0:
|
|
26808
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
26519
26809
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
26520
26810
|
_context2.prev = 2;
|
|
26521
26811
|
_context2.next = 5;
|
|
26522
26812
|
return fetchData({
|
|
26523
|
-
body: JSON.stringify(queries$b.levelOfCareRead())
|
|
26813
|
+
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 : ''))
|
|
26524
26814
|
}, __readDocumentUrl__);
|
|
26525
26815
|
|
|
26526
26816
|
case 5:
|
|
@@ -26532,6 +26822,7 @@ var LEVEL_OF_CARE_READ = createAsyncThunk("organizationConfigApiSlice/levelOfCar
|
|
|
26532
26822
|
var _val$id, _val$_id, _val$key, _val$levelofcareCode, _val$description, _val$careType$descrip, _val$careType$_id, _val$active;
|
|
26533
26823
|
|
|
26534
26824
|
arry.push({
|
|
26825
|
+
total_count: val.TotalCount,
|
|
26535
26826
|
id: (_val$id = val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
26536
26827
|
_id: (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
26537
26828
|
key: (_val$key = val.key) !== null && _val$key !== void 0 ? _val$key : "",
|
|
@@ -26698,7 +26989,8 @@ var LEVEL_OF_CARE_INSERT = createAsyncThunk("organizationConfigApiSlice/levelOfC
|
|
|
26698
26989
|
}))); //HEALTH CARE SERVICE READ
|
|
26699
26990
|
|
|
26700
26991
|
var HEALTH_CARE_SERVICE_READ = createAsyncThunk("organizationConfigApiSlice/healthCareServiceRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
26701
|
-
var
|
|
26992
|
+
var payload,
|
|
26993
|
+
_ref12,
|
|
26702
26994
|
rejectWithValue,
|
|
26703
26995
|
data,
|
|
26704
26996
|
arry,
|
|
@@ -26708,11 +27000,12 @@ var HEALTH_CARE_SERVICE_READ = createAsyncThunk("organizationConfigApiSlice/heal
|
|
|
26708
27000
|
while (1) {
|
|
26709
27001
|
switch (_context6.prev = _context6.next) {
|
|
26710
27002
|
case 0:
|
|
27003
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
26711
27004
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
26712
27005
|
_context6.prev = 2;
|
|
26713
27006
|
_context6.next = 5;
|
|
26714
27007
|
return fetchData({
|
|
26715
|
-
body: JSON.stringify(queries$b.healthCareServiceRead())
|
|
27008
|
+
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 : ''))
|
|
26716
27009
|
}, __readDocumentUrl__);
|
|
26717
27010
|
|
|
26718
27011
|
case 5:
|
|
@@ -26724,6 +27017,7 @@ var HEALTH_CARE_SERVICE_READ = createAsyncThunk("organizationConfigApiSlice/heal
|
|
|
26724
27017
|
var _val$id2, _val$_id2, _val$_key, _val$healthcareservic, _val$name, _val$category$display, _val$category, _val$Type$display, _val$Type, _val$active2;
|
|
26725
27018
|
|
|
26726
27019
|
arry.push({
|
|
27020
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
26727
27021
|
id: (_val$id2 = val.id) !== null && _val$id2 !== void 0 ? _val$id2 : "",
|
|
26728
27022
|
_id: (_val$_id2 = val._id) !== null && _val$_id2 !== void 0 ? _val$_id2 : "",
|
|
26729
27023
|
_key: (_val$_key = val._key) !== null && _val$_key !== void 0 ? _val$_key : "",
|
|
@@ -28804,9 +29098,13 @@ var queries$7 = {
|
|
|
28804
29098
|
return {
|
|
28805
29099
|
"db_name": dbName$1,
|
|
28806
29100
|
"entity": "Person",
|
|
28807
|
-
"filter": "Person.activestatus==true",
|
|
29101
|
+
"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"),
|
|
28808
29102
|
"sort": "Person.createddate",
|
|
28809
|
-
"
|
|
29103
|
+
"limit": {
|
|
29104
|
+
"offset": data === null || data === void 0 ? void 0 : data.page,
|
|
29105
|
+
"count": data === null || data === void 0 ? void 0 : data.perPage
|
|
29106
|
+
},
|
|
29107
|
+
"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)})"
|
|
28810
29108
|
};
|
|
28811
29109
|
},
|
|
28812
29110
|
person_delete: function person_delete(data) {
|
|
@@ -30234,7 +30532,8 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
30234
30532
|
}, _callee3, null, [[2, 36]]);
|
|
30235
30533
|
})));
|
|
30236
30534
|
var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
30237
|
-
var
|
|
30535
|
+
var payload,
|
|
30536
|
+
_ref8,
|
|
30238
30537
|
rejectWithValue,
|
|
30239
30538
|
read,
|
|
30240
30539
|
data,
|
|
@@ -30244,14 +30543,19 @@ var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__
|
|
|
30244
30543
|
while (1) {
|
|
30245
30544
|
switch (_context4.prev = _context4.next) {
|
|
30246
30545
|
case 0:
|
|
30546
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
30247
30547
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
30248
30548
|
_context4.prev = 2;
|
|
30249
30549
|
read = {
|
|
30250
30550
|
"db_name": dbName$1,
|
|
30251
30551
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
30252
30552
|
"sort": "CA_OrderCatalogPrivilegeLevel.createddate",
|
|
30253
|
-
"filter": "CA_OrderCatalogPrivilegeLevel.activestatus==true",
|
|
30254
|
-
"
|
|
30553
|
+
"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"),
|
|
30554
|
+
"limit": {
|
|
30555
|
+
"offset": payload === null || payload === void 0 ? void 0 : payload.page,
|
|
30556
|
+
"count": payload === null || payload === void 0 ? void 0 : payload.perPage
|
|
30557
|
+
},
|
|
30558
|
+
"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)}))})"
|
|
30255
30559
|
};
|
|
30256
30560
|
_context4.next = 6;
|
|
30257
30561
|
return fetchData({
|
|
@@ -30326,13 +30630,17 @@ var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasu
|
|
|
30326
30630
|
|
|
30327
30631
|
// import { dbName } from "../../qdm_query_ids";
|
|
30328
30632
|
var queries$5 = {
|
|
30329
|
-
fullread: function fullread() {
|
|
30633
|
+
fullread: function fullread(page, perPage, search) {
|
|
30330
30634
|
return {
|
|
30331
30635
|
db_name: dbName$1,
|
|
30332
30636
|
entity: "DrugUOM",
|
|
30333
|
-
filter: "DrugUOM.activestatus == true",
|
|
30637
|
+
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"),
|
|
30638
|
+
limit: {
|
|
30639
|
+
offset: page,
|
|
30640
|
+
count: perPage
|
|
30641
|
+
},
|
|
30334
30642
|
sort: "DrugUOM.createddate",
|
|
30335
|
-
return_fields: "merge(DrugUOM,{UOMType:(for i in CodingMaster filter i._id == DrugUOM.UOMType return merge(i,{coding:document(i.coding)}))})"
|
|
30643
|
+
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)}))})"
|
|
30336
30644
|
};
|
|
30337
30645
|
},
|
|
30338
30646
|
DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
|
|
@@ -30354,10 +30662,10 @@ var queries$5 = {
|
|
|
30354
30662
|
// "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})",
|
|
30355
30663
|
// };
|
|
30356
30664
|
return {
|
|
30357
|
-
|
|
30358
|
-
|
|
30359
|
-
|
|
30360
|
-
|
|
30665
|
+
db_name: dbName$1,
|
|
30666
|
+
entity: "DrugUOM",
|
|
30667
|
+
filter: "DrugUOM.activestatus == true && DrugUOM.UOMType == '".concat(id, "' && LOWER(DrugUOM.UOM) !=LOWER('").concat(type, "') && DrugUOM.status==true"),
|
|
30668
|
+
return_fields: "{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}"
|
|
30361
30669
|
};
|
|
30362
30670
|
},
|
|
30363
30671
|
To_UOM_Read_line: function To_UOM_Read_line(key) {
|
|
@@ -30484,7 +30792,8 @@ var generateReadJson$1 = {
|
|
|
30484
30792
|
|
|
30485
30793
|
var _extraReducers$e;
|
|
30486
30794
|
var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
30487
|
-
var
|
|
30795
|
+
var payload,
|
|
30796
|
+
_ref2,
|
|
30488
30797
|
rejectWithValue,
|
|
30489
30798
|
queriesjson,
|
|
30490
30799
|
data,
|
|
@@ -30495,9 +30804,10 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
|
|
|
30495
30804
|
while (1) {
|
|
30496
30805
|
switch (_context.prev = _context.next) {
|
|
30497
30806
|
case 0:
|
|
30807
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
30498
30808
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
30499
30809
|
_context.prev = 2;
|
|
30500
|
-
queriesjson = queries$5.fullread();
|
|
30810
|
+
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 : '');
|
|
30501
30811
|
_context.next = 6;
|
|
30502
30812
|
return fetchData({
|
|
30503
30813
|
body: JSON.stringify(queriesjson)
|
|
@@ -30511,6 +30821,7 @@ var DRUG_UOM_READ = createAsyncThunk("drugRoutesSlice/drug_uom_list", /*#__PURE_
|
|
|
30511
30821
|
var _val$UOMType$;
|
|
30512
30822
|
|
|
30513
30823
|
arry.push({
|
|
30824
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
30514
30825
|
type: val === null || val === void 0 ? void 0 : (_val$UOMType$ = val.UOMType[0]) === null || _val$UOMType$ === void 0 ? void 0 : _val$UOMType$.display,
|
|
30515
30826
|
longDesc: val === null || val === void 0 ? void 0 : val.longdesc,
|
|
30516
30827
|
shortDesc: val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
@@ -30839,12 +31150,17 @@ var drugMasterUOMSlice$1 = drugMasterUOMSlice.reducer;
|
|
|
30839
31150
|
|
|
30840
31151
|
// import { dbName } from "../../qdm_query_ids";
|
|
30841
31152
|
var queries$4 = {
|
|
30842
|
-
fullread: function fullread(
|
|
31153
|
+
fullread: function fullread(page, perPage, search) {
|
|
30843
31154
|
return {
|
|
30844
31155
|
db_name: dbName$1,
|
|
30845
31156
|
entity: "FrequencyMaster",
|
|
30846
31157
|
sort: "FrequencyMaster.freqcode",
|
|
30847
|
-
|
|
31158
|
+
filter: "(LIKE(FrequencyMaster.freqcode,".concat(search, ",true) || LIKE(FrequencyMaster.UOM,").concat(search, ",true) || LIKE(FrequencyMaster.longdesc,").concat(search, ",true)) && FrequencyMaster.activestatus == true"),
|
|
31159
|
+
limit: {
|
|
31160
|
+
offset: page,
|
|
31161
|
+
count: perPage
|
|
31162
|
+
},
|
|
31163
|
+
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)})"
|
|
30848
31164
|
};
|
|
30849
31165
|
},
|
|
30850
31166
|
SCHEDULEBY: function SCHEDULEBY() {
|
|
@@ -31028,7 +31344,8 @@ var generateReadJson = {
|
|
|
31028
31344
|
|
|
31029
31345
|
var _extraReducers$d;
|
|
31030
31346
|
var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequncy_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
31031
|
-
var
|
|
31347
|
+
var payload,
|
|
31348
|
+
_ref2,
|
|
31032
31349
|
rejectWithValue,
|
|
31033
31350
|
queriesjson,
|
|
31034
31351
|
data,
|
|
@@ -31039,9 +31356,10 @@ var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequn
|
|
|
31039
31356
|
while (1) {
|
|
31040
31357
|
switch (_context.prev = _context.next) {
|
|
31041
31358
|
case 0:
|
|
31359
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
31042
31360
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
31043
31361
|
_context.prev = 2;
|
|
31044
|
-
queriesjson = queries$4.fullread();
|
|
31362
|
+
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 : '');
|
|
31045
31363
|
_context.next = 6;
|
|
31046
31364
|
return fetchData({
|
|
31047
31365
|
body: JSON.stringify(queriesjson)
|
|
@@ -31053,6 +31371,7 @@ var DRUG_FREQUENCY_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_frequn
|
|
|
31053
31371
|
data.result.map(function (val) {
|
|
31054
31372
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.longdesc) {
|
|
31055
31373
|
arry.push({
|
|
31374
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
31056
31375
|
code: val === null || val === void 0 ? void 0 : val.freqcode,
|
|
31057
31376
|
longDesc: val === null || val === void 0 ? void 0 : val.longdesc,
|
|
31058
31377
|
shortDesc: val === null || val === void 0 ? void 0 : val.shortdesc,
|
|
@@ -31548,12 +31867,16 @@ var drugFrequencySlice = drugMasterFREQUENCYSlice.reducer;
|
|
|
31548
31867
|
var drug_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, drugCategoryActions), drugDosageActions), drugClassActions), drugRoutesActions), drugDirectionRoutesActions), drugMasterUomActions), drugMasterActions), drugMasterFrequencyActions);
|
|
31549
31868
|
|
|
31550
31869
|
var query$5 = {
|
|
31551
|
-
orderSetList: function orderSetList() {
|
|
31870
|
+
orderSetList: function orderSetList(page, perPage, search) {
|
|
31552
31871
|
return {
|
|
31553
31872
|
db_name: "".concat(dbName$1),
|
|
31554
31873
|
entity: "CA_OrderSet",
|
|
31555
|
-
filter: "CA_OrderSet.activestatus == true",
|
|
31556
|
-
|
|
31874
|
+
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(), "%'") : ""),
|
|
31875
|
+
limit: {
|
|
31876
|
+
"offset": page,
|
|
31877
|
+
"count": perPage
|
|
31878
|
+
},
|
|
31879
|
+
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", ")})"),
|
|
31557
31880
|
sort: "CA_OrderSet.createddate"
|
|
31558
31881
|
};
|
|
31559
31882
|
},
|
|
@@ -32110,7 +32433,8 @@ var fetchMaster$3 = function fetchMaster(name, query) {
|
|
|
32110
32433
|
|
|
32111
32434
|
|
|
32112
32435
|
var GET_ORDER_SET_LIST = createAsyncThunk("orderSetMasterApiSlice/order_set_master_lis", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
32113
|
-
var
|
|
32436
|
+
var payload,
|
|
32437
|
+
_ref5,
|
|
32114
32438
|
rejectWithValue,
|
|
32115
32439
|
data,
|
|
32116
32440
|
_args4 = arguments;
|
|
@@ -32119,32 +32443,33 @@ var GET_ORDER_SET_LIST = createAsyncThunk("orderSetMasterApiSlice/order_set_mast
|
|
|
32119
32443
|
while (1) {
|
|
32120
32444
|
switch (_context4.prev = _context4.next) {
|
|
32121
32445
|
case 0:
|
|
32446
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
32122
32447
|
_ref5 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
32123
32448
|
_context4.prev = 2;
|
|
32124
|
-
_context4.next =
|
|
32449
|
+
_context4.next = 6;
|
|
32125
32450
|
return fetchData({
|
|
32126
|
-
body: JSON.stringify(query$5.orderSetList())
|
|
32451
|
+
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 : ''))
|
|
32127
32452
|
}, __readDocumentUrl__);
|
|
32128
32453
|
|
|
32129
|
-
case
|
|
32454
|
+
case 6:
|
|
32130
32455
|
data = _context4.sent;
|
|
32131
32456
|
return _context4.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
32132
32457
|
data: data.result
|
|
32133
32458
|
}));
|
|
32134
32459
|
|
|
32135
|
-
case
|
|
32136
|
-
_context4.prev =
|
|
32460
|
+
case 10:
|
|
32461
|
+
_context4.prev = 10;
|
|
32137
32462
|
_context4.t0 = _context4["catch"](2);
|
|
32138
32463
|
return _context4.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
32139
32464
|
message: _context4.t0.message
|
|
32140
32465
|
})));
|
|
32141
32466
|
|
|
32142
|
-
case
|
|
32467
|
+
case 13:
|
|
32143
32468
|
case "end":
|
|
32144
32469
|
return _context4.stop();
|
|
32145
32470
|
}
|
|
32146
32471
|
}
|
|
32147
|
-
}, _callee4, null, [[2,
|
|
32472
|
+
}, _callee4, null, [[2, 10]]);
|
|
32148
32473
|
}))); //ORDER_SET_MASTER_STATUS_CHANGE
|
|
32149
32474
|
|
|
32150
32475
|
var ORDER_SET_MASTER_STATUS_CHANGE = createAsyncThunk("orderSetMasterApiSlice/order_set_master_status_chang", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
@@ -33647,16 +33972,16 @@ var orderSetApplicabilityActions = {
|
|
|
33647
33972
|
var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
33648
33973
|
|
|
33649
33974
|
var query$3 = {
|
|
33650
|
-
getList: function getList(page, perpage) {
|
|
33975
|
+
getList: function getList(page, perpage, search) {
|
|
33651
33976
|
return {
|
|
33652
33977
|
db_name: "".concat(dbName$1),
|
|
33653
33978
|
entity: "AllergyMaster",
|
|
33654
|
-
filter: "AllergyMaster.activestatus == true",
|
|
33979
|
+
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(), "%'") : ""),
|
|
33655
33980
|
limit: {
|
|
33656
33981
|
offset: page,
|
|
33657
33982
|
count: perpage
|
|
33658
33983
|
},
|
|
33659
|
-
return_fields: "{TotalCount:
|
|
33984
|
+
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)})}"),
|
|
33660
33985
|
sort: "AllergyMaster.shortdesc"
|
|
33661
33986
|
};
|
|
33662
33987
|
}
|
|
@@ -33845,6 +34170,7 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
33845
34170
|
rejectWithValue,
|
|
33846
34171
|
_page,
|
|
33847
34172
|
_perpage,
|
|
34173
|
+
_search,
|
|
33848
34174
|
data,
|
|
33849
34175
|
readJSON,
|
|
33850
34176
|
_args4 = arguments;
|
|
@@ -33855,14 +34181,15 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
33855
34181
|
case 0:
|
|
33856
34182
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {
|
|
33857
34183
|
page: page,
|
|
33858
|
-
perpage: perpage
|
|
34184
|
+
perpage: perpage,
|
|
34185
|
+
search: search
|
|
33859
34186
|
};
|
|
33860
34187
|
_ref5 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
33861
34188
|
_context4.prev = 2;
|
|
33862
|
-
_page = payload.page, _perpage = payload.perpage;
|
|
34189
|
+
_page = payload.page, _perpage = payload.perpage, _search = payload.search;
|
|
33863
34190
|
_context4.next = 6;
|
|
33864
34191
|
return fetchData({
|
|
33865
|
-
body: JSON.stringify(query$3.getList(_page, _perpage))
|
|
34192
|
+
body: JSON.stringify(query$3.getList(_page, _perpage, _search ? _search : ''))
|
|
33866
34193
|
}, __readDocumentUrl__);
|
|
33867
34194
|
|
|
33868
34195
|
case 6:
|
|
@@ -34077,7 +34404,7 @@ var flexQuery = {
|
|
|
34077
34404
|
offset: page,
|
|
34078
34405
|
count: perpage
|
|
34079
34406
|
},
|
|
34080
|
-
return_fields: "merge(CA_OrderAttribMaster,{TotalCount:COUNT(FOR cnt IN CA_OrderAttribMaster
|
|
34407
|
+
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)})"),
|
|
34081
34408
|
sort: "CA_OrderAttribMaster.createddate desc"
|
|
34082
34409
|
};
|
|
34083
34410
|
},
|
|
@@ -34316,7 +34643,7 @@ var FLEX_ATTRIBUTE_READ = createAsyncThunk("flexAttributeApiSlice/flexFullRead",
|
|
|
34316
34643
|
page = payload.page, perpage = payload.perpage, search = payload.search;
|
|
34317
34644
|
_context3.next = 6;
|
|
34318
34645
|
return fetchData({
|
|
34319
|
-
body: JSON.stringify(flexQuery.flexAttrFullRead(page, perpage, search))
|
|
34646
|
+
body: JSON.stringify(flexQuery.flexAttrFullRead(page, perpage, search ? search : ''))
|
|
34320
34647
|
}, __readDocumentUrl__);
|
|
34321
34648
|
|
|
34322
34649
|
case 6:
|
|
@@ -34599,7 +34926,7 @@ var flexCriteriaQuery = {
|
|
|
34599
34926
|
offset: page,
|
|
34600
34927
|
count: perpage
|
|
34601
34928
|
},
|
|
34602
|
-
return_fields: "merge(CA_FlexAttribApplicability, {TotalCount:
|
|
34929
|
+
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)})}) )})"),
|
|
34603
34930
|
sort: "CA_FlexAttribApplicability.createddate desc"
|
|
34604
34931
|
};
|
|
34605
34932
|
},
|
|
@@ -34801,7 +35128,7 @@ var FLEX_CRITERIA_FULL_READ = createAsyncThunk("flexCriteriaSlice/flexCriteriaFu
|
|
|
34801
35128
|
page = payload.page, perpage = payload.perpage, search = payload.search;
|
|
34802
35129
|
_context3.next = 6;
|
|
34803
35130
|
return fetchData({
|
|
34804
|
-
body: JSON.stringify(flexCriteriaQuery.flexCriteriaFullRead(page, perpage, search))
|
|
35131
|
+
body: JSON.stringify(flexCriteriaQuery.flexCriteriaFullRead(page, perpage, search ? search : ''))
|
|
34805
35132
|
}, __readDocumentUrl__);
|
|
34806
35133
|
|
|
34807
35134
|
case 6:
|
|
@@ -36719,13 +37046,18 @@ var queries$2 = {
|
|
|
36719
37046
|
})];
|
|
36720
37047
|
}
|
|
36721
37048
|
},
|
|
36722
|
-
get_general_master_type: function get_general_master_type(type) {
|
|
37049
|
+
get_general_master_type: function get_general_master_type(type, page, perPage, search) {
|
|
37050
|
+
debugger;
|
|
36723
37051
|
return {
|
|
36724
37052
|
"db_name": dbName$1,
|
|
36725
37053
|
"entity": "CodeableConceptMaster",
|
|
36726
37054
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
36727
|
-
"filter": "CodeableConceptMaster.Type=='".concat(type, "' && CodeableConceptMaster.activestatus==true"),
|
|
36728
|
-
"
|
|
37055
|
+
"filter": "CodeableConceptMaster.Type == '".concat(type, "' && (LIKE(CodeableConceptMaster.shortdesc,'%").concat(search, "%',true) || LIKE(CodeableConceptMaster.longdesc,'%").concat(search, "%',true) || LIKE(CodeableConceptMaster.code,'%").concat(search, "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true"),
|
|
37056
|
+
"limit": {
|
|
37057
|
+
"offset": page,
|
|
37058
|
+
"count": perPage
|
|
37059
|
+
},
|
|
37060
|
+
"return_fields": "MERGE(CodeableConceptMaster,{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='".concat(type, "' filter cnt.activestatus==true RETURN cnt._key), coding:document(CodeableConceptMaster.coding)})")
|
|
36729
37061
|
};
|
|
36730
37062
|
},
|
|
36731
37063
|
add_new_general_type: function add_new_general_type(data) {
|
|
@@ -37159,6 +37491,9 @@ var GET_GENERAL_MASTER_TYPE = createAsyncThunk("generalMasterSlice/get_general_m
|
|
|
37159
37491
|
var payload,
|
|
37160
37492
|
actions,
|
|
37161
37493
|
type,
|
|
37494
|
+
page,
|
|
37495
|
+
perPage,
|
|
37496
|
+
search,
|
|
37162
37497
|
data,
|
|
37163
37498
|
readData,
|
|
37164
37499
|
_args7 = arguments;
|
|
@@ -37170,10 +37505,10 @@ var GET_GENERAL_MASTER_TYPE = createAsyncThunk("generalMasterSlice/get_general_m
|
|
|
37170
37505
|
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
37171
37506
|
actions = _args7.length > 1 ? _args7[1] : undefined;
|
|
37172
37507
|
_context7.prev = 2;
|
|
37173
|
-
type = payload.type;
|
|
37508
|
+
type = payload.type, page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
37174
37509
|
_context7.next = 7;
|
|
37175
37510
|
return fetchData({
|
|
37176
|
-
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 : ''))
|
|
37177
37512
|
}, __readDocumentUrl__);
|
|
37178
37513
|
|
|
37179
37514
|
case 7:
|
|
@@ -37556,12 +37891,16 @@ var queries$1 = {
|
|
|
37556
37891
|
}
|
|
37557
37892
|
})];
|
|
37558
37893
|
},
|
|
37559
|
-
symptom_and_specialty_read: function symptom_and_specialty_read() {
|
|
37894
|
+
symptom_and_specialty_read: function symptom_and_specialty_read(search, page, perPage) {
|
|
37560
37895
|
return {
|
|
37561
37896
|
db_name: dbName$1,
|
|
37562
37897
|
entity: "SymptomsMapping",
|
|
37563
|
-
filter: "SymptomsMapping.activestatus==true",
|
|
37564
|
-
|
|
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)}))})"),
|
|
37565
37904
|
sort: "SymptomsMapping.createddate"
|
|
37566
37905
|
};
|
|
37567
37906
|
},
|
|
@@ -37697,7 +38036,8 @@ var constructSingleReadJSON = function constructSingleReadJSON(data) {
|
|
|
37697
38036
|
};
|
|
37698
38037
|
|
|
37699
38038
|
var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symptom_and_specialty_list", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
37700
|
-
var
|
|
38039
|
+
var payload,
|
|
38040
|
+
_ref4,
|
|
37701
38041
|
rejectWithValue,
|
|
37702
38042
|
readqueries,
|
|
37703
38043
|
data,
|
|
@@ -37708,9 +38048,10 @@ var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symp
|
|
|
37708
38048
|
while (1) {
|
|
37709
38049
|
switch (_context2.prev = _context2.next) {
|
|
37710
38050
|
case 0:
|
|
38051
|
+
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
37711
38052
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
37712
38053
|
_context2.prev = 2;
|
|
37713
|
-
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);
|
|
37714
38055
|
_context2.next = 6;
|
|
37715
38056
|
return fetchData({
|
|
37716
38057
|
body: JSON.stringify(readqueries)
|
|
@@ -37722,6 +38063,7 @@ var SYMPTOM_AND_SPECIALTY_READ = createAsyncThunk("symptomAndSpecialtySlice/symp
|
|
|
37722
38063
|
data.result.map(function (val) {
|
|
37723
38064
|
if (val._key) {
|
|
37724
38065
|
arry.push({
|
|
38066
|
+
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
37725
38067
|
id: val.id ? val.id : 0,
|
|
37726
38068
|
_key: val._key ? val._key : "",
|
|
37727
38069
|
status: val.status ? val.status : false,
|
|
@@ -37944,20 +38286,18 @@ var symptomAndSpecialtyActions = {
|
|
|
37944
38286
|
var symptomAndSpecialtySlice$1 = symptomAndSpecialtySlice.reducer;
|
|
37945
38287
|
|
|
37946
38288
|
var queries = {
|
|
37947
|
-
encounterType: function encounterType(
|
|
37948
|
-
// return {
|
|
37949
|
-
// "db_name": dbName,
|
|
37950
|
-
// "entity": "AMPatientClass",
|
|
37951
|
-
// "filter": "AMPatientClass.activestatus==true",
|
|
37952
|
-
// "return_fields": "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
|
|
37953
|
-
// "sort": "document(AMPatientClass.encTypeDesc).display"
|
|
37954
|
-
// }
|
|
38289
|
+
encounterType: function encounterType(page, perPage, search) {
|
|
37955
38290
|
return {
|
|
37956
38291
|
"db_name": dbName$1,
|
|
37957
38292
|
"entity": "AMPatientClass",
|
|
37958
|
-
"filter": "AMPatientClass.activestatus==true",
|
|
37959
|
-
"
|
|
37960
|
-
|
|
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"
|
|
37961
38301
|
};
|
|
37962
38302
|
},
|
|
37963
38303
|
//STATUS CHANGE
|
|
@@ -37979,7 +38319,8 @@ var queries = {
|
|
|
37979
38319
|
|
|
37980
38320
|
var _extraReducers$2;
|
|
37981
38321
|
var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
37982
|
-
var
|
|
38322
|
+
var payload,
|
|
38323
|
+
_ref2,
|
|
37983
38324
|
rejectWithValue,
|
|
37984
38325
|
queriesjson,
|
|
37985
38326
|
data,
|
|
@@ -37990,9 +38331,10 @@ var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead",
|
|
|
37990
38331
|
while (1) {
|
|
37991
38332
|
switch (_context.prev = _context.next) {
|
|
37992
38333
|
case 0:
|
|
38334
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
37993
38335
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
37994
38336
|
_context.prev = 2;
|
|
37995
|
-
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 : '');
|
|
37996
38338
|
_context.next = 6;
|
|
37997
38339
|
return fetchData({
|
|
37998
38340
|
body: JSON.stringify(queriesjson)
|
|
@@ -38006,6 +38348,11 @@ var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead",
|
|
|
38006
38348
|
var _val$id, _val$_id, _val$encType$display, _val$encType, _val$encType$code, _val$encType2;
|
|
38007
38349
|
|
|
38008
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 + " )",
|
|
38009
38356
|
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
38010
38357
|
_id: (_val$_id = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
38011
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 : "",
|