primary_care_admin_binder 0.1.190 → 0.1.191
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 +439 -220
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10385,38 +10385,71 @@ var vitalsMeasureCodeSlice$1 = vitalsMeasureCodeSlice.reducer;
|
|
|
10385
10385
|
var query$a = {
|
|
10386
10386
|
entityName: function entityName(data) {
|
|
10387
10387
|
return {
|
|
10388
|
-
db_name:
|
|
10388
|
+
db_name: dbName,
|
|
10389
10389
|
entity: "Organization",
|
|
10390
10390
|
sort: "Organization.name",
|
|
10391
10391
|
filter: "Organization.activestatus==true",
|
|
10392
10392
|
return_fields: "Organization"
|
|
10393
10393
|
};
|
|
10394
10394
|
},
|
|
10395
|
-
entityType:
|
|
10396
|
-
|
|
10395
|
+
entityType: function entityType() {
|
|
10396
|
+
return {
|
|
10397
|
+
appcode: dbName,
|
|
10398
|
+
filter: {
|
|
10399
|
+
type: ["ORGTYPE"],
|
|
10400
|
+
tenantid: "",
|
|
10401
|
+
facilityid: "",
|
|
10402
|
+
lang: ""
|
|
10403
|
+
},
|
|
10404
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
10405
|
+
};
|
|
10406
|
+
},
|
|
10407
|
+
gender: function gender() {
|
|
10408
|
+
return {
|
|
10409
|
+
appcode: dbName,
|
|
10410
|
+
filter: {
|
|
10411
|
+
type: ["GENDER"],
|
|
10412
|
+
tenantid: "",
|
|
10413
|
+
facilityid: "",
|
|
10414
|
+
lang: ""
|
|
10415
|
+
},
|
|
10416
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
10417
|
+
};
|
|
10418
|
+
},
|
|
10397
10419
|
specialityCodeOrgId: function specialityCodeOrgId(data) {
|
|
10398
10420
|
return {
|
|
10399
|
-
db_name:
|
|
10421
|
+
db_name: dbName,
|
|
10400
10422
|
entity: "Organization",
|
|
10401
10423
|
filter: "Organization._id=='".concat(data.id, "' && Organization.activestatus==true"),
|
|
10402
10424
|
return_fields: "KEEP(Organization,'_id','id','name','specialtydetails')"
|
|
10403
10425
|
};
|
|
10404
10426
|
},
|
|
10405
|
-
specialityCode:
|
|
10406
|
-
|
|
10427
|
+
specialityCode: function specialityCode() {
|
|
10428
|
+
return {
|
|
10429
|
+
appcode: dbName,
|
|
10430
|
+
filter: {
|
|
10431
|
+
type: ["SPECIALTY"],
|
|
10432
|
+
tenantid: "",
|
|
10433
|
+
facilityid: "",
|
|
10434
|
+
lang: ""
|
|
10435
|
+
},
|
|
10436
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
10437
|
+
};
|
|
10438
|
+
},
|
|
10439
|
+
diagnosis: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Diagnosis\",\n \"filter\": \"Diagnosis.activestatus==true\",\n \"return_fields\": \"{'_id':Diagnosis._id,'icdcode':Diagnosis.icdcode,'icdname':Diagnosis.icdname,'parenticdcode':Diagnosis.parenticdcode}\"\n }"),
|
|
10407
10440
|
ageRanges: function ageRanges() {
|
|
10408
10441
|
return {
|
|
10409
|
-
appcode:
|
|
10442
|
+
appcode: dbName,
|
|
10410
10443
|
requestid: query_ids["ageRanges"]
|
|
10411
10444
|
};
|
|
10412
10445
|
},
|
|
10413
|
-
vitalcode: "{\n \"db_name\": \"".concat(
|
|
10446
|
+
vitalcode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsCodes\",\n \"sort\":\"VitalsCodes.vitalscode\",\n \"filter\": \"VitalsCodes.activestatus==true && VitalsCodes.status==true\",\n \"return_fields\": \"KEEP(VitalsCodes,'_id','vitalscode','shortdesc','longdesc')\"\n }"),
|
|
10414
10447
|
ageCategory: function ageCategory(ageRangeId) {
|
|
10415
10448
|
var str = String(ageRangeId || "");
|
|
10416
10449
|
var idx = str.lastIndexOf("/");
|
|
10417
10450
|
var key = idx !== -1 ? str.slice(idx + 1) : str;
|
|
10418
10451
|
return {
|
|
10419
|
-
appcode:
|
|
10452
|
+
appcode: dbName,
|
|
10420
10453
|
filter: {
|
|
10421
10454
|
_id: key || ageRangeId
|
|
10422
10455
|
},
|
|
@@ -10425,7 +10458,7 @@ var query$a = {
|
|
|
10425
10458
|
},
|
|
10426
10459
|
VitalApplicableRead: function VitalApplicableRead(page, perPage, search) {
|
|
10427
10460
|
return {
|
|
10428
|
-
appcode:
|
|
10461
|
+
appcode: dbName,
|
|
10429
10462
|
filter: {
|
|
10430
10463
|
page: page,
|
|
10431
10464
|
perPage: perPage,
|
|
@@ -10439,7 +10472,7 @@ var query$a = {
|
|
|
10439
10472
|
var idx = idStr.lastIndexOf("/");
|
|
10440
10473
|
var key = idx !== -1 ? idStr.slice(idx + 1) : idStr;
|
|
10441
10474
|
return {
|
|
10442
|
-
appcode:
|
|
10475
|
+
appcode: dbName,
|
|
10443
10476
|
filter: {
|
|
10444
10477
|
_id: key || id
|
|
10445
10478
|
},
|
|
@@ -10448,7 +10481,7 @@ var query$a = {
|
|
|
10448
10481
|
},
|
|
10449
10482
|
Diagnosis: function Diagnosis(input_text) {
|
|
10450
10483
|
return {
|
|
10451
|
-
db_name:
|
|
10484
|
+
db_name: dbName,
|
|
10452
10485
|
entity: "Diagnosis",
|
|
10453
10486
|
filter: "Diagnosis.activestatus==true AND Diagnosis.icdname LIKE '%25".concat(input_text, "%25'"),
|
|
10454
10487
|
return_fields: "KEEP(Diagnosis,'_id','icdcode','icdname','parenticdcode')"
|
|
@@ -10830,6 +10863,11 @@ var GET_ENTITY_NAME = createAsyncThunk("vitalApplicableApiSlice/entityName", /*#
|
|
|
10830
10863
|
var GET_ENTITY_TYPE_VITALAPP = createAsyncThunk("vitalApplicableApiSlice/entityType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
10831
10864
|
var _ref4,
|
|
10832
10865
|
rejectWithValue,
|
|
10866
|
+
_ref5,
|
|
10867
|
+
_data$0$ORGTYPE$Value,
|
|
10868
|
+
_data$,
|
|
10869
|
+
queryObj,
|
|
10870
|
+
bodyPayload,
|
|
10833
10871
|
data,
|
|
10834
10872
|
resultList,
|
|
10835
10873
|
arr,
|
|
@@ -10840,17 +10878,18 @@ var GET_ENTITY_TYPE_VITALAPP = createAsyncThunk("vitalApplicableApiSlice/entityT
|
|
|
10840
10878
|
case 0:
|
|
10841
10879
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
10842
10880
|
_context2.p = 1;
|
|
10881
|
+
queryObj = typeof query$a.entityType === "function" ? query$a.entityType() : query$a.entityType;
|
|
10882
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
|
|
10843
10883
|
_context2.n = 2;
|
|
10844
10884
|
return fetchData({
|
|
10845
|
-
body:
|
|
10846
|
-
},
|
|
10885
|
+
body: bodyPayload
|
|
10886
|
+
}, __baseUrl__$1);
|
|
10847
10887
|
case 2:
|
|
10848
10888
|
data = _context2.v;
|
|
10849
|
-
resultList =
|
|
10889
|
+
resultList = (_ref5 = (_data$0$ORGTYPE$Value = (_data$ = data[0]) === null || _data$ === void 0 || (_data$ = _data$.ORGTYPE) === null || _data$ === void 0 ? void 0 : _data$.Value) !== null && _data$0$ORGTYPE$Value !== void 0 ? _data$0$ORGTYPE$Value : data === null || data === void 0 ? void 0 : data.result) !== null && _ref5 !== void 0 ? _ref5 : Array.isArray(data) ? data : [];
|
|
10850
10890
|
arr = [];
|
|
10851
10891
|
resultList.forEach(function (val) {
|
|
10852
10892
|
if (!val) return;
|
|
10853
|
-
// CodingMaster returns {_id, display, ...}, fallback for CodeableConceptMaster coding array
|
|
10854
10893
|
var codObj = Array.isArray(val === null || val === void 0 ? void 0 : val.coding) && _typeof(val.coding[0]) === "object" ? val.coding[0] : null;
|
|
10855
10894
|
arr.push({
|
|
10856
10895
|
value: (codObj === null || codObj === void 0 ? void 0 : codObj._id) || val._id || val.value || "",
|
|
@@ -10870,7 +10909,7 @@ var GET_ENTITY_TYPE_VITALAPP = createAsyncThunk("vitalApplicableApiSlice/entityT
|
|
|
10870
10909
|
}, _callee2, null, [[1, 3]]);
|
|
10871
10910
|
})));
|
|
10872
10911
|
var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
10873
|
-
var
|
|
10912
|
+
var _ref7,
|
|
10874
10913
|
rejectWithValue,
|
|
10875
10914
|
data,
|
|
10876
10915
|
resultList,
|
|
@@ -10880,7 +10919,7 @@ var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE
|
|
|
10880
10919
|
return _regenerator().w(function (_context3) {
|
|
10881
10920
|
while (1) switch (_context3.p = _context3.n) {
|
|
10882
10921
|
case 0:
|
|
10883
|
-
|
|
10922
|
+
_ref7 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
10884
10923
|
_context3.p = 1;
|
|
10885
10924
|
_context3.n = 2;
|
|
10886
10925
|
return fetchData({
|
|
@@ -10912,8 +10951,13 @@ var VITAL_CODE = createAsyncThunk("vitalApplicableApiSlice/vitalCode", /*#__PURE
|
|
|
10912
10951
|
}, _callee3, null, [[1, 3]]);
|
|
10913
10952
|
})));
|
|
10914
10953
|
var GENDER = createAsyncThunk("vitalApplicableApiSlice/gender", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
10915
|
-
var
|
|
10954
|
+
var _ref9,
|
|
10916
10955
|
rejectWithValue,
|
|
10956
|
+
_ref0,
|
|
10957
|
+
_data$0$GENDER$Value,
|
|
10958
|
+
_data$2,
|
|
10959
|
+
queryObj,
|
|
10960
|
+
bodyPayload,
|
|
10917
10961
|
data,
|
|
10918
10962
|
resultList,
|
|
10919
10963
|
arr,
|
|
@@ -10922,19 +10966,20 @@ var GENDER = createAsyncThunk("vitalApplicableApiSlice/gender", /*#__PURE__*/_as
|
|
|
10922
10966
|
return _regenerator().w(function (_context4) {
|
|
10923
10967
|
while (1) switch (_context4.p = _context4.n) {
|
|
10924
10968
|
case 0:
|
|
10925
|
-
|
|
10969
|
+
_ref9 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
|
|
10926
10970
|
_context4.p = 1;
|
|
10971
|
+
queryObj = typeof query$a.gender === "function" ? query$a.gender() : query$a.gender;
|
|
10972
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
|
|
10927
10973
|
_context4.n = 2;
|
|
10928
10974
|
return fetchData({
|
|
10929
|
-
body:
|
|
10930
|
-
},
|
|
10975
|
+
body: bodyPayload
|
|
10976
|
+
}, __baseUrl__$1);
|
|
10931
10977
|
case 2:
|
|
10932
10978
|
data = _context4.v;
|
|
10933
|
-
resultList =
|
|
10979
|
+
resultList = (_ref0 = (_data$0$GENDER$Value = (_data$2 = data[0]) === null || _data$2 === void 0 || (_data$2 = _data$2.GENDER) === null || _data$2 === void 0 ? void 0 : _data$2.Value) !== null && _data$0$GENDER$Value !== void 0 ? _data$0$GENDER$Value : data === null || data === void 0 ? void 0 : data.result) !== null && _ref0 !== void 0 ? _ref0 : Array.isArray(data) ? data : [];
|
|
10934
10980
|
arr = [];
|
|
10935
10981
|
resultList.forEach(function (val) {
|
|
10936
10982
|
if (!val) return;
|
|
10937
|
-
// CodingMaster returns {_id, display, ...}, fallback for CodeableConceptMaster coding array
|
|
10938
10983
|
var codObj = Array.isArray(val === null || val === void 0 ? void 0 : val.coding) && _typeof(val.coding[0]) === "object" ? val.coding[0] : null;
|
|
10939
10984
|
var idVal = String((codObj === null || codObj === void 0 ? void 0 : codObj._id) || val._id || val.value || "");
|
|
10940
10985
|
arr.push(_objectSpread2(_objectSpread2({}, val), {}, {
|
|
@@ -10956,8 +11001,13 @@ var GENDER = createAsyncThunk("vitalApplicableApiSlice/gender", /*#__PURE__*/_as
|
|
|
10956
11001
|
}, _callee4, null, [[1, 3]]);
|
|
10957
11002
|
})));
|
|
10958
11003
|
var SPECIALITY_CODE = createAsyncThunk("vitalApplicableApiSlice/specialityCode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
10959
|
-
var
|
|
11004
|
+
var _ref10,
|
|
10960
11005
|
rejectWithValue,
|
|
11006
|
+
_ref11,
|
|
11007
|
+
_data$0$SPECIALTY$Val,
|
|
11008
|
+
_data$3,
|
|
11009
|
+
queryObj,
|
|
11010
|
+
bodyPayload,
|
|
10961
11011
|
data,
|
|
10962
11012
|
resultList,
|
|
10963
11013
|
arr,
|
|
@@ -10966,15 +11016,17 @@ var SPECIALITY_CODE = createAsyncThunk("vitalApplicableApiSlice/specialityCode",
|
|
|
10966
11016
|
return _regenerator().w(function (_context5) {
|
|
10967
11017
|
while (1) switch (_context5.p = _context5.n) {
|
|
10968
11018
|
case 0:
|
|
10969
|
-
|
|
11019
|
+
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
10970
11020
|
_context5.p = 1;
|
|
11021
|
+
queryObj = typeof query$a.specialityCode === "function" ? query$a.specialityCode() : query$a.specialityCode;
|
|
11022
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
|
|
10971
11023
|
_context5.n = 2;
|
|
10972
11024
|
return fetchData({
|
|
10973
|
-
body:
|
|
10974
|
-
},
|
|
11025
|
+
body: bodyPayload
|
|
11026
|
+
}, __baseUrl__$1);
|
|
10975
11027
|
case 2:
|
|
10976
11028
|
data = _context5.v;
|
|
10977
|
-
resultList =
|
|
11029
|
+
resultList = (_ref11 = (_data$0$SPECIALTY$Val = (_data$3 = data[0]) === null || _data$3 === void 0 || (_data$3 = _data$3.SPECIALTY) === null || _data$3 === void 0 ? void 0 : _data$3.Value) !== null && _data$0$SPECIALTY$Val !== void 0 ? _data$0$SPECIALTY$Val : data === null || data === void 0 ? void 0 : data.result) !== null && _ref11 !== void 0 ? _ref11 : Array.isArray(data) ? data : [];
|
|
10978
11030
|
arr = [];
|
|
10979
11031
|
resultList.forEach(function (val) {
|
|
10980
11032
|
if (!val) return;
|
|
@@ -10997,7 +11049,7 @@ var SPECIALITY_CODE = createAsyncThunk("vitalApplicableApiSlice/specialityCode",
|
|
|
10997
11049
|
}, _callee5, null, [[1, 3]]);
|
|
10998
11050
|
})));
|
|
10999
11051
|
var DIAGNOSIS = createAsyncThunk("vitalApplicableApiSlice/diagnosis", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
11000
|
-
var
|
|
11052
|
+
var _ref13,
|
|
11001
11053
|
rejectWithValue,
|
|
11002
11054
|
data,
|
|
11003
11055
|
resultList,
|
|
@@ -11007,7 +11059,7 @@ var DIAGNOSIS = createAsyncThunk("vitalApplicableApiSlice/diagnosis", /*#__PURE_
|
|
|
11007
11059
|
return _regenerator().w(function (_context6) {
|
|
11008
11060
|
while (1) switch (_context6.p = _context6.n) {
|
|
11009
11061
|
case 0:
|
|
11010
|
-
|
|
11062
|
+
_ref13 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
|
|
11011
11063
|
_context6.p = 1;
|
|
11012
11064
|
_context6.n = 2;
|
|
11013
11065
|
return fetchData({
|
|
@@ -11038,7 +11090,7 @@ var DIAGNOSIS = createAsyncThunk("vitalApplicableApiSlice/diagnosis", /*#__PURE_
|
|
|
11038
11090
|
})));
|
|
11039
11091
|
var DIAGNOSIS_MASTERS = createAsyncThunk("vitalApplicableApiSlice/diagnosisMaster", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
11040
11092
|
var payload,
|
|
11041
|
-
|
|
11093
|
+
_ref15,
|
|
11042
11094
|
rejectWithValue,
|
|
11043
11095
|
input_text,
|
|
11044
11096
|
data,
|
|
@@ -11050,7 +11102,7 @@ var DIAGNOSIS_MASTERS = createAsyncThunk("vitalApplicableApiSlice/diagnosisMaste
|
|
|
11050
11102
|
while (1) switch (_context7.p = _context7.n) {
|
|
11051
11103
|
case 0:
|
|
11052
11104
|
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
11053
|
-
|
|
11105
|
+
_ref15 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
|
|
11054
11106
|
_context7.p = 1;
|
|
11055
11107
|
input_text = payload.input_text;
|
|
11056
11108
|
_context7.n = 2;
|
|
@@ -11081,12 +11133,12 @@ var DIAGNOSIS_MASTERS = createAsyncThunk("vitalApplicableApiSlice/diagnosisMaste
|
|
|
11081
11133
|
}, _callee7, null, [[1, 3]]);
|
|
11082
11134
|
})));
|
|
11083
11135
|
var AGE_RANGES_CODE = createAsyncThunk("vitalApplicableApiSlice/agerangesCode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
|
|
11084
|
-
var
|
|
11136
|
+
var _ref17,
|
|
11085
11137
|
rejectWithValue,
|
|
11086
11138
|
data,
|
|
11087
11139
|
result,
|
|
11088
11140
|
_data$0$result,
|
|
11089
|
-
_data
|
|
11141
|
+
_data$4,
|
|
11090
11142
|
_data$result,
|
|
11091
11143
|
getRawId,
|
|
11092
11144
|
arr,
|
|
@@ -11095,7 +11147,7 @@ var AGE_RANGES_CODE = createAsyncThunk("vitalApplicableApiSlice/agerangesCode",
|
|
|
11095
11147
|
return _regenerator().w(function (_context8) {
|
|
11096
11148
|
while (1) switch (_context8.p = _context8.n) {
|
|
11097
11149
|
case 0:
|
|
11098
|
-
|
|
11150
|
+
_ref17 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
|
|
11099
11151
|
_context8.p = 1;
|
|
11100
11152
|
_context8.n = 2;
|
|
11101
11153
|
return fetchData({
|
|
@@ -11105,7 +11157,7 @@ var AGE_RANGES_CODE = createAsyncThunk("vitalApplicableApiSlice/agerangesCode",
|
|
|
11105
11157
|
data = _context8.v;
|
|
11106
11158
|
result = [];
|
|
11107
11159
|
if (Array.isArray(data)) {
|
|
11108
|
-
result = (_data$0$result = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data
|
|
11160
|
+
result = (_data$0$result = (_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : _data$4.result) !== null && _data$0$result !== void 0 ? _data$0$result : data;
|
|
11109
11161
|
} else {
|
|
11110
11162
|
result = (_data$result = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result !== void 0 ? _data$result : [];
|
|
11111
11163
|
}
|
|
@@ -11143,13 +11195,13 @@ var AGE_RANGES_CODE = createAsyncThunk("vitalApplicableApiSlice/agerangesCode",
|
|
|
11143
11195
|
})));
|
|
11144
11196
|
var AGE_RANGES_CATEGORY = createAsyncThunk("vitalApplicableApiSlice/agerangesCategory", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
|
|
11145
11197
|
var payload,
|
|
11146
|
-
|
|
11198
|
+
_ref19,
|
|
11147
11199
|
rejectWithValue,
|
|
11148
11200
|
ageRangeId,
|
|
11149
11201
|
data,
|
|
11150
11202
|
dataResult,
|
|
11151
11203
|
_data$0$result2,
|
|
11152
|
-
_data$
|
|
11204
|
+
_data$5,
|
|
11153
11205
|
_data$result2,
|
|
11154
11206
|
arr,
|
|
11155
11207
|
_args9 = arguments,
|
|
@@ -11158,7 +11210,7 @@ var AGE_RANGES_CATEGORY = createAsyncThunk("vitalApplicableApiSlice/agerangesCat
|
|
|
11158
11210
|
while (1) switch (_context9.p = _context9.n) {
|
|
11159
11211
|
case 0:
|
|
11160
11212
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
11161
|
-
|
|
11213
|
+
_ref19 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
|
|
11162
11214
|
_context9.p = 1;
|
|
11163
11215
|
ageRangeId = payload.ageRangeId;
|
|
11164
11216
|
_context9.n = 2;
|
|
@@ -11169,7 +11221,7 @@ var AGE_RANGES_CATEGORY = createAsyncThunk("vitalApplicableApiSlice/agerangesCat
|
|
|
11169
11221
|
data = _context9.v;
|
|
11170
11222
|
dataResult = [];
|
|
11171
11223
|
if (Array.isArray(data)) {
|
|
11172
|
-
dataResult = (_data$0$result2 = (_data$
|
|
11224
|
+
dataResult = (_data$0$result2 = (_data$5 = data[0]) === null || _data$5 === void 0 ? void 0 : _data$5.result) !== null && _data$0$result2 !== void 0 ? _data$0$result2 : data;
|
|
11173
11225
|
} else {
|
|
11174
11226
|
dataResult = (_data$result2 = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result2 !== void 0 ? _data$result2 : [];
|
|
11175
11227
|
}
|
|
@@ -11202,7 +11254,7 @@ var AGE_RANGES_CATEGORY = createAsyncThunk("vitalApplicableApiSlice/agerangesCat
|
|
|
11202
11254
|
})));
|
|
11203
11255
|
var SAVE_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/savevitalapplicable", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
|
|
11204
11256
|
var payload,
|
|
11205
|
-
|
|
11257
|
+
_ref21,
|
|
11206
11258
|
rejectWithValue,
|
|
11207
11259
|
list,
|
|
11208
11260
|
body,
|
|
@@ -11214,7 +11266,7 @@ var SAVE_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/savevitala
|
|
|
11214
11266
|
while (1) switch (_context0.p = _context0.n) {
|
|
11215
11267
|
case 0:
|
|
11216
11268
|
payload = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : {};
|
|
11217
|
-
|
|
11269
|
+
_ref21 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
|
|
11218
11270
|
_context0.p = 1;
|
|
11219
11271
|
list = payload.list;
|
|
11220
11272
|
body = generateSaveJSON$1(list);
|
|
@@ -11239,7 +11291,7 @@ var SAVE_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/savevitala
|
|
|
11239
11291
|
})));
|
|
11240
11292
|
var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsapplicableread", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {
|
|
11241
11293
|
var payload,
|
|
11242
|
-
|
|
11294
|
+
_ref23,
|
|
11243
11295
|
rejectWithValue,
|
|
11244
11296
|
getState,
|
|
11245
11297
|
search,
|
|
@@ -11257,7 +11309,7 @@ var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsappl
|
|
|
11257
11309
|
while (1) switch (_context1.p = _context1.n) {
|
|
11258
11310
|
case 0:
|
|
11259
11311
|
payload = _args1.length > 0 && _args1[0] !== undefined ? _args1[0] : {};
|
|
11260
|
-
|
|
11312
|
+
_ref23 = _args1.length > 1 ? _args1[1] : undefined, rejectWithValue = _ref23.rejectWithValue, getState = _ref23.getState;
|
|
11261
11313
|
_context1.p = 1;
|
|
11262
11314
|
search = payload.search;
|
|
11263
11315
|
state = getState();
|
|
@@ -11304,7 +11356,7 @@ var READ_VITAL_APPLICABLE = createAsyncThunk("vitalApplicableApiSlice/vitalsappl
|
|
|
11304
11356
|
})));
|
|
11305
11357
|
var UPDATE_VITAL_APPLICABLE_STATUS = createAsyncThunk("vitalApplicableApiSlice/vitalsApplicableUpdate", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
|
|
11306
11358
|
var payload,
|
|
11307
|
-
|
|
11359
|
+
_ref25,
|
|
11308
11360
|
rejectWithValue,
|
|
11309
11361
|
editId,
|
|
11310
11362
|
status,
|
|
@@ -11316,7 +11368,7 @@ var UPDATE_VITAL_APPLICABLE_STATUS = createAsyncThunk("vitalApplicableApiSlice/v
|
|
|
11316
11368
|
while (1) switch (_context10.p = _context10.n) {
|
|
11317
11369
|
case 0:
|
|
11318
11370
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
11319
|
-
|
|
11371
|
+
_ref25 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
11320
11372
|
_context10.p = 1;
|
|
11321
11373
|
editId = payload.editId, status = payload.status;
|
|
11322
11374
|
body = generateApplicableUpdateJSON(editId, status);
|
|
@@ -11340,7 +11392,7 @@ var UPDATE_VITAL_APPLICABLE_STATUS = createAsyncThunk("vitalApplicableApiSlice/v
|
|
|
11340
11392
|
})));
|
|
11341
11393
|
var EDIT_VITAL_APPLICABLE = createAsyncThunk("vitalsApplicableSlice/editvitalApplicable", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
11342
11394
|
var payload,
|
|
11343
|
-
|
|
11395
|
+
_ref27,
|
|
11344
11396
|
rejectWithValue,
|
|
11345
11397
|
getState,
|
|
11346
11398
|
id,
|
|
@@ -11358,7 +11410,7 @@ var EDIT_VITAL_APPLICABLE = createAsyncThunk("vitalsApplicableSlice/editvitalApp
|
|
|
11358
11410
|
while (1) switch (_context11.p = _context11.n) {
|
|
11359
11411
|
case 0:
|
|
11360
11412
|
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
11361
|
-
|
|
11413
|
+
_ref27 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref27.rejectWithValue, getState = _ref27.getState;
|
|
11362
11414
|
_context11.p = 1;
|
|
11363
11415
|
id = payload.id;
|
|
11364
11416
|
state = getState();
|
|
@@ -11405,7 +11457,7 @@ var EDIT_VITAL_APPLICABLE = createAsyncThunk("vitalsApplicableSlice/editvitalApp
|
|
|
11405
11457
|
}, _callee11, null, [[1, 3]]);
|
|
11406
11458
|
})));
|
|
11407
11459
|
var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialityCodeOrgid", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
|
|
11408
|
-
var
|
|
11460
|
+
var _ref29,
|
|
11409
11461
|
rejectWithValue,
|
|
11410
11462
|
_query$ageRanges,
|
|
11411
11463
|
specialtyQuery,
|
|
@@ -11417,7 +11469,7 @@ var SPECIALITY_CODE_ORG_ID = createAsyncThunk("vitalApplicableApiSlice/specialit
|
|
|
11417
11469
|
return _regenerator().w(function (_context12) {
|
|
11418
11470
|
while (1) switch (_context12.p = _context12.n) {
|
|
11419
11471
|
case 0:
|
|
11420
|
-
|
|
11472
|
+
_ref29 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref29.rejectWithValue;
|
|
11421
11473
|
_context12.p = 1;
|
|
11422
11474
|
// Query CodingMaster for SPECIALTY type codes (org-independent)
|
|
11423
11475
|
specialtyQuery = JSON.stringify({
|
|
@@ -11579,13 +11631,46 @@ var vitalsApplicableActions = {
|
|
|
11579
11631
|
var vitalsApplicableSlice$1 = vitalsApplicableSlice.reducer;
|
|
11580
11632
|
|
|
11581
11633
|
var query$9 = {
|
|
11582
|
-
gender:
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11634
|
+
gender: function gender() {
|
|
11635
|
+
return {
|
|
11636
|
+
appcode: dbName,
|
|
11637
|
+
filter: {
|
|
11638
|
+
type: ["GENDER"],
|
|
11639
|
+
tenantid: "",
|
|
11640
|
+
facilityid: "",
|
|
11641
|
+
lang: ""
|
|
11642
|
+
},
|
|
11643
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
11644
|
+
};
|
|
11645
|
+
},
|
|
11646
|
+
unitAllowed: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\":\"VitalsMeasureCodes.ObsValMeasCode\",\n \"filter\": \"VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes.status==true\",\n \"return_fields\": \"VitalsMeasureCodes\"\n }"),
|
|
11647
|
+
referenceUnitAllowed: function referenceUnitAllowed() {
|
|
11648
|
+
return {
|
|
11649
|
+
appcode: dbName,
|
|
11650
|
+
filter: {
|
|
11651
|
+
type: ["VITALSUOM"],
|
|
11652
|
+
tenantid: "",
|
|
11653
|
+
facilityid: "",
|
|
11654
|
+
lang: ""
|
|
11655
|
+
},
|
|
11656
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
11657
|
+
};
|
|
11658
|
+
},
|
|
11659
|
+
referenceCodeableConcepts: function referenceCodeableConcepts() {
|
|
11660
|
+
return {
|
|
11661
|
+
appcode: dbName,
|
|
11662
|
+
filter: {
|
|
11663
|
+
type: ["VITALSUOM"],
|
|
11664
|
+
tenantid: "",
|
|
11665
|
+
facilityid: "",
|
|
11666
|
+
lang: ""
|
|
11667
|
+
},
|
|
11668
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
11669
|
+
};
|
|
11670
|
+
},
|
|
11586
11671
|
ageRanges: function ageRanges() {
|
|
11587
11672
|
return {
|
|
11588
|
-
appcode:
|
|
11673
|
+
appcode: dbName,
|
|
11589
11674
|
requestid: query_ids["ageRanges"]
|
|
11590
11675
|
};
|
|
11591
11676
|
},
|
|
@@ -11594,17 +11679,17 @@ var query$9 = {
|
|
|
11594
11679
|
var idx = str.lastIndexOf("/");
|
|
11595
11680
|
var key = idx !== -1 ? str.slice(idx + 1) : str;
|
|
11596
11681
|
return {
|
|
11597
|
-
appcode:
|
|
11682
|
+
appcode: dbName,
|
|
11598
11683
|
filter: {
|
|
11599
11684
|
_id: key || ageRangeId
|
|
11600
11685
|
},
|
|
11601
11686
|
requestid: query_ids.ageCategory
|
|
11602
11687
|
};
|
|
11603
11688
|
},
|
|
11604
|
-
category: "{\n \"db_name\": \"".concat(
|
|
11689
|
+
category: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeCategory\",\n \"filter\": \"AgeCategory.activestatus==true\",\n \"return_fields\": \"{_id:AgeCategory._id, id:AgeCategory.id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, UOM:AgeCategory.UOM}\"\n}"),
|
|
11605
11690
|
defaultUnit: function defaultUnit(AllowedUnit) {
|
|
11606
11691
|
return {
|
|
11607
|
-
db_name:
|
|
11692
|
+
db_name: dbName,
|
|
11608
11693
|
entity: "VitalsMeasureCodes",
|
|
11609
11694
|
filter: "VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes._id IN ('".concat(AllowedUnit.join("','"), "')"),
|
|
11610
11695
|
return_fields: "VitalsMeasureCodes"
|
|
@@ -11612,7 +11697,7 @@ var query$9 = {
|
|
|
11612
11697
|
},
|
|
11613
11698
|
VitalReadSearch: function VitalReadSearch(page, perPage, search) {
|
|
11614
11699
|
return {
|
|
11615
|
-
appcode:
|
|
11700
|
+
appcode: dbName,
|
|
11616
11701
|
filter: {
|
|
11617
11702
|
searchval: search,
|
|
11618
11703
|
page: page,
|
|
@@ -11623,7 +11708,7 @@ var query$9 = {
|
|
|
11623
11708
|
},
|
|
11624
11709
|
VitalRead: function VitalRead(page, perPage) {
|
|
11625
11710
|
return {
|
|
11626
|
-
appcode:
|
|
11711
|
+
appcode: dbName,
|
|
11627
11712
|
filter: {
|
|
11628
11713
|
page: page,
|
|
11629
11714
|
perPage: perPage
|
|
@@ -11633,7 +11718,7 @@ var query$9 = {
|
|
|
11633
11718
|
},
|
|
11634
11719
|
editVitalmaster: function editVitalmaster(_id) {
|
|
11635
11720
|
return {
|
|
11636
|
-
appcode:
|
|
11721
|
+
appcode: dbName,
|
|
11637
11722
|
filter: {
|
|
11638
11723
|
_id: _id
|
|
11639
11724
|
},
|
|
@@ -11642,7 +11727,7 @@ var query$9 = {
|
|
|
11642
11727
|
},
|
|
11643
11728
|
deleteVitalMaster: function deleteVitalMaster(id) {
|
|
11644
11729
|
return {
|
|
11645
|
-
appcode:
|
|
11730
|
+
appcode: dbName,
|
|
11646
11731
|
entity: "VitalsCodes",
|
|
11647
11732
|
filter: "VitalsCodes._id=='".concat(id, "'")
|
|
11648
11733
|
};
|
|
@@ -11882,9 +11967,14 @@ var _extraReducers$y;
|
|
|
11882
11967
|
var MASTER_GENDER = createAsyncThunk("vitalsMasterSectionApiSlice/gender", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
11883
11968
|
var _ref2,
|
|
11884
11969
|
rejectWithValue,
|
|
11885
|
-
|
|
11970
|
+
_ref3,
|
|
11971
|
+
_data$0$GENDER$Value,
|
|
11972
|
+
_data$,
|
|
11973
|
+
queryObj,
|
|
11974
|
+
bodyPayload,
|
|
11886
11975
|
data,
|
|
11887
11976
|
arr,
|
|
11977
|
+
resultData,
|
|
11888
11978
|
_args = arguments,
|
|
11889
11979
|
_t;
|
|
11890
11980
|
return _regenerator().w(function (_context) {
|
|
@@ -11892,19 +11982,22 @@ var MASTER_GENDER = createAsyncThunk("vitalsMasterSectionApiSlice/gender", /*#__
|
|
|
11892
11982
|
case 0:
|
|
11893
11983
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
11894
11984
|
_context.p = 1;
|
|
11985
|
+
queryObj = typeof query$9.gender === "function" ? query$9.gender() : query$9.gender;
|
|
11986
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
|
|
11895
11987
|
_context.n = 2;
|
|
11896
11988
|
return fetchData({
|
|
11897
|
-
body:
|
|
11898
|
-
},
|
|
11989
|
+
body: bodyPayload
|
|
11990
|
+
}, __baseUrl__$1);
|
|
11899
11991
|
case 2:
|
|
11900
11992
|
data = _context.v;
|
|
11901
11993
|
arr = [];
|
|
11902
|
-
|
|
11994
|
+
resultData = (_ref3 = (_data$0$GENDER$Value = (_data$ = data[0]) === null || _data$ === void 0 || (_data$ = _data$.GENDER) === null || _data$ === void 0 ? void 0 : _data$.Value) !== null && _data$0$GENDER$Value !== void 0 ? _data$0$GENDER$Value : data === null || data === void 0 ? void 0 : data.result) !== null && _ref3 !== void 0 ? _ref3 : Array.isArray(data) ? data : [];
|
|
11995
|
+
resultData.map(function (val) {
|
|
11903
11996
|
arr.push({
|
|
11904
11997
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
11905
11998
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
11906
11999
|
});
|
|
11907
|
-
})
|
|
12000
|
+
});
|
|
11908
12001
|
return _context.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
11909
12002
|
data: arr
|
|
11910
12003
|
}));
|
|
@@ -11918,25 +12011,34 @@ var MASTER_GENDER = createAsyncThunk("vitalsMasterSectionApiSlice/gender", /*#__
|
|
|
11918
12011
|
}, _callee, null, [[1, 3]]);
|
|
11919
12012
|
})));
|
|
11920
12013
|
var REFERENCE_UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/referenceUnitAllowed", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
11921
|
-
var
|
|
12014
|
+
var _ref5,
|
|
11922
12015
|
rejectWithValue,
|
|
12016
|
+
_ref6,
|
|
12017
|
+
_data$0$VITALSUOM$Val,
|
|
12018
|
+
_data$2,
|
|
12019
|
+
queryObj,
|
|
12020
|
+
bodyPayload,
|
|
11923
12021
|
data,
|
|
11924
12022
|
arr,
|
|
12023
|
+
resultData,
|
|
11925
12024
|
_args2 = arguments,
|
|
11926
12025
|
_t2;
|
|
11927
12026
|
return _regenerator().w(function (_context2) {
|
|
11928
12027
|
while (1) switch (_context2.p = _context2.n) {
|
|
11929
12028
|
case 0:
|
|
11930
|
-
|
|
12029
|
+
_ref5 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
11931
12030
|
_context2.p = 1;
|
|
12031
|
+
queryObj = typeof query$9.referenceUnitAllowed === "function" ? query$9.referenceUnitAllowed() : query$9.referenceUnitAllowed;
|
|
12032
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(queryObj);
|
|
11932
12033
|
_context2.n = 2;
|
|
11933
12034
|
return fetchData({
|
|
11934
|
-
body:
|
|
11935
|
-
},
|
|
12035
|
+
body: bodyPayload
|
|
12036
|
+
}, __baseUrl__$1);
|
|
11936
12037
|
case 2:
|
|
11937
12038
|
data = _context2.v;
|
|
11938
12039
|
arr = [];
|
|
11939
|
-
data && data.result.
|
|
12040
|
+
resultData = (_ref6 = (_data$0$VITALSUOM$Val = (_data$2 = data[0]) === null || _data$2 === void 0 || (_data$2 = _data$2.VITALSUOM) === null || _data$2 === void 0 ? void 0 : _data$2.Value) !== null && _data$0$VITALSUOM$Val !== void 0 ? _data$0$VITALSUOM$Val : data === null || data === void 0 ? void 0 : data.result) !== null && _ref6 !== void 0 ? _ref6 : Array.isArray(data) ? data : [];
|
|
12041
|
+
resultData.map(function (val) {
|
|
11940
12042
|
arr.push({
|
|
11941
12043
|
value: val === null || val === void 0 ? void 0 : val._id,
|
|
11942
12044
|
label: val === null || val === void 0 ? void 0 : val.display
|
|
@@ -11955,7 +12057,7 @@ var REFERENCE_UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/refer
|
|
|
11955
12057
|
}, _callee2, null, [[1, 3]]);
|
|
11956
12058
|
})));
|
|
11957
12059
|
var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
11958
|
-
var
|
|
12060
|
+
var _ref8,
|
|
11959
12061
|
rejectWithValue,
|
|
11960
12062
|
data,
|
|
11961
12063
|
arr,
|
|
@@ -11964,7 +12066,7 @@ var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /
|
|
|
11964
12066
|
return _regenerator().w(function (_context3) {
|
|
11965
12067
|
while (1) switch (_context3.p = _context3.n) {
|
|
11966
12068
|
case 0:
|
|
11967
|
-
|
|
12069
|
+
_ref8 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
11968
12070
|
_context3.p = 1;
|
|
11969
12071
|
_context3.n = 2;
|
|
11970
12072
|
return fetchData({
|
|
@@ -11992,13 +12094,13 @@ var UNIT_ALLOWED = createAsyncThunk("vitalsMasterSectionApiSlice/unitAllowed", /
|
|
|
11992
12094
|
}, _callee3, null, [[1, 3]]);
|
|
11993
12095
|
})));
|
|
11994
12096
|
var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerangesCode", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
11995
|
-
var
|
|
12097
|
+
var _ref0,
|
|
11996
12098
|
rejectWithValue,
|
|
11997
12099
|
data,
|
|
11998
12100
|
result,
|
|
11999
12101
|
_data$0$result,
|
|
12000
|
-
_data
|
|
12001
|
-
_data$
|
|
12102
|
+
_data$3,
|
|
12103
|
+
_data$result,
|
|
12002
12104
|
getRawId,
|
|
12003
12105
|
arr,
|
|
12004
12106
|
_args4 = arguments,
|
|
@@ -12006,7 +12108,7 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
|
|
|
12006
12108
|
return _regenerator().w(function (_context4) {
|
|
12007
12109
|
while (1) switch (_context4.p = _context4.n) {
|
|
12008
12110
|
case 0:
|
|
12009
|
-
|
|
12111
|
+
_ref0 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref0.rejectWithValue;
|
|
12010
12112
|
_context4.p = 1;
|
|
12011
12113
|
_context4.n = 2;
|
|
12012
12114
|
return fetchData({
|
|
@@ -12016,9 +12118,9 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
|
|
|
12016
12118
|
data = _context4.v;
|
|
12017
12119
|
result = [];
|
|
12018
12120
|
if (Array.isArray(data)) {
|
|
12019
|
-
result = (_data$0$result = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data
|
|
12121
|
+
result = (_data$0$result = (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : _data$3.result) !== null && _data$0$result !== void 0 ? _data$0$result : data; // case 2, else case 3
|
|
12020
12122
|
} else {
|
|
12021
|
-
result = (_data$
|
|
12123
|
+
result = (_data$result = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result !== void 0 ? _data$result : []; // case 1
|
|
12022
12124
|
}
|
|
12023
12125
|
getRawId = function getRawId(val) {
|
|
12024
12126
|
var str = String(val || "");
|
|
@@ -12052,7 +12154,7 @@ var REFERENCE_AGERANGES = createAsyncThunk("vitalsMasterSectionApiSlice/agerange
|
|
|
12052
12154
|
})));
|
|
12053
12155
|
var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice/referenceCategory", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
12054
12156
|
var payload,
|
|
12055
|
-
|
|
12157
|
+
_ref10,
|
|
12056
12158
|
rejectWithValue,
|
|
12057
12159
|
getState,
|
|
12058
12160
|
ageRangeId,
|
|
@@ -12071,8 +12173,8 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
|
|
|
12071
12173
|
_codeableConcepts$res,
|
|
12072
12174
|
dataResult,
|
|
12073
12175
|
_data$0$result2,
|
|
12074
|
-
_data$
|
|
12075
|
-
_data$
|
|
12176
|
+
_data$4,
|
|
12177
|
+
_data$result2,
|
|
12076
12178
|
res,
|
|
12077
12179
|
_args5 = arguments,
|
|
12078
12180
|
_t5;
|
|
@@ -12080,7 +12182,7 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
|
|
|
12080
12182
|
while (1) switch (_context5.p = _context5.n) {
|
|
12081
12183
|
case 0:
|
|
12082
12184
|
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
12083
|
-
|
|
12185
|
+
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue, getState = _ref10.getState;
|
|
12084
12186
|
_context5.p = 1;
|
|
12085
12187
|
ageRangeId = payload.ageRangeId;
|
|
12086
12188
|
state = getState();
|
|
@@ -12123,9 +12225,9 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
|
|
|
12123
12225
|
}
|
|
12124
12226
|
dataResult = [];
|
|
12125
12227
|
if (Array.isArray(data)) {
|
|
12126
|
-
dataResult = (_data$0$result2 = (_data$
|
|
12228
|
+
dataResult = (_data$0$result2 = (_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : _data$4.result) !== null && _data$0$result2 !== void 0 ? _data$0$result2 : data;
|
|
12127
12229
|
} else {
|
|
12128
|
-
dataResult = (_data$
|
|
12230
|
+
dataResult = (_data$result2 = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result2 !== void 0 ? _data$result2 : [];
|
|
12129
12231
|
}
|
|
12130
12232
|
// nested-array shape [[{...}]] is handled below
|
|
12131
12233
|
if (Array.isArray(dataResult[0])) {
|
|
@@ -12146,7 +12248,7 @@ var REFERENCE_AGERANGES_CATEGORY = createAsyncThunk("vitalsMasterSectionApiSlice
|
|
|
12146
12248
|
})));
|
|
12147
12249
|
var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
12148
12250
|
var payload,
|
|
12149
|
-
|
|
12251
|
+
_ref12,
|
|
12150
12252
|
rejectWithValue,
|
|
12151
12253
|
AllowedUnit,
|
|
12152
12254
|
data,
|
|
@@ -12157,7 +12259,7 @@ var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /
|
|
|
12157
12259
|
while (1) switch (_context6.p = _context6.n) {
|
|
12158
12260
|
case 0:
|
|
12159
12261
|
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
12160
|
-
|
|
12262
|
+
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
12161
12263
|
_context6.p = 1;
|
|
12162
12264
|
AllowedUnit = payload.AllowedUnit;
|
|
12163
12265
|
_context6.n = 2;
|
|
@@ -12187,7 +12289,7 @@ var DEFAULT_UNIT = createAsyncThunk("vitalsMasterSectionApiSlice/defaultunit", /
|
|
|
12187
12289
|
})));
|
|
12188
12290
|
var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalmaster", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {
|
|
12189
12291
|
var payload,
|
|
12190
|
-
|
|
12292
|
+
_ref14,
|
|
12191
12293
|
rejectWithValue,
|
|
12192
12294
|
list,
|
|
12193
12295
|
body,
|
|
@@ -12198,7 +12300,7 @@ var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalm
|
|
|
12198
12300
|
while (1) switch (_context7.p = _context7.n) {
|
|
12199
12301
|
case 0:
|
|
12200
12302
|
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
12201
|
-
|
|
12303
|
+
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
12202
12304
|
_context7.p = 1;
|
|
12203
12305
|
list = payload.list;
|
|
12204
12306
|
body = generateJSON$1(list);
|
|
@@ -12222,7 +12324,7 @@ var SAVE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/savevitalm
|
|
|
12222
12324
|
})));
|
|
12223
12325
|
var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterread", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
|
|
12224
12326
|
var payload,
|
|
12225
|
-
|
|
12327
|
+
_ref16,
|
|
12226
12328
|
rejectWithValue,
|
|
12227
12329
|
page,
|
|
12228
12330
|
perPage,
|
|
@@ -12235,7 +12337,7 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
|
|
|
12235
12337
|
while (1) switch (_context8.p = _context8.n) {
|
|
12236
12338
|
case 0:
|
|
12237
12339
|
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
12238
|
-
|
|
12340
|
+
_ref16 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref16.rejectWithValue;
|
|
12239
12341
|
_context8.p = 1;
|
|
12240
12342
|
page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
12241
12343
|
_context8.n = 2;
|
|
@@ -12259,7 +12361,7 @@ var READ_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMast
|
|
|
12259
12361
|
})));
|
|
12260
12362
|
var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/vitalsMasterUpdate", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {
|
|
12261
12363
|
var payload,
|
|
12262
|
-
|
|
12364
|
+
_ref18,
|
|
12263
12365
|
rejectWithValue,
|
|
12264
12366
|
editId,
|
|
12265
12367
|
status,
|
|
@@ -12271,7 +12373,7 @@ var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/v
|
|
|
12271
12373
|
while (1) switch (_context9.p = _context9.n) {
|
|
12272
12374
|
case 0:
|
|
12273
12375
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
12274
|
-
|
|
12376
|
+
_ref18 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref18.rejectWithValue;
|
|
12275
12377
|
_context9.p = 1;
|
|
12276
12378
|
editId = payload.editId, status = payload.status;
|
|
12277
12379
|
body = generateUpdateJSON$1(editId, status);
|
|
@@ -12295,7 +12397,7 @@ var UPDATE_VITAL_MASTER_STATUS = createAsyncThunk("vitalsMasterSectionApiSlice/v
|
|
|
12295
12397
|
})));
|
|
12296
12398
|
var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMasterDelete", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0() {
|
|
12297
12399
|
var payload,
|
|
12298
|
-
|
|
12400
|
+
_ref20,
|
|
12299
12401
|
rejectWithValue,
|
|
12300
12402
|
id,
|
|
12301
12403
|
data,
|
|
@@ -12305,7 +12407,7 @@ var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMas
|
|
|
12305
12407
|
while (1) switch (_context0.p = _context0.n) {
|
|
12306
12408
|
case 0:
|
|
12307
12409
|
payload = _args0.length > 0 && _args0[0] !== undefined ? _args0[0] : {};
|
|
12308
|
-
|
|
12410
|
+
_ref20 = _args0.length > 1 ? _args0[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
12309
12411
|
_context0.p = 1;
|
|
12310
12412
|
id = payload.id;
|
|
12311
12413
|
_context0.n = 2;
|
|
@@ -12327,12 +12429,12 @@ var DELETE_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/vitalMas
|
|
|
12327
12429
|
}, _callee0, null, [[1, 3]]);
|
|
12328
12430
|
})));
|
|
12329
12431
|
var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalMaster", /*#__PURE__*/function () {
|
|
12330
|
-
var
|
|
12432
|
+
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(payload, _ref21) {
|
|
12331
12433
|
var rejectWithValue, getState, body, data, state, ccState, category, categoryResult, _category$0$result2, _category$2, _category$result2, rawList, resVal, firstKey, innerVal, res, _t1;
|
|
12332
12434
|
return _regenerator().w(function (_context1) {
|
|
12333
12435
|
while (1) switch (_context1.p = _context1.n) {
|
|
12334
12436
|
case 0:
|
|
12335
|
-
rejectWithValue =
|
|
12437
|
+
rejectWithValue = _ref21.rejectWithValue, getState = _ref21.getState;
|
|
12336
12438
|
_context1.p = 1;
|
|
12337
12439
|
body = JSON.stringify({
|
|
12338
12440
|
appcode: dbName,
|
|
@@ -12396,14 +12498,14 @@ var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalM
|
|
|
12396
12498
|
}, _callee1, null, [[1, 4]]);
|
|
12397
12499
|
}));
|
|
12398
12500
|
return function (_x, _x2) {
|
|
12399
|
-
return
|
|
12501
|
+
return _ref22.apply(this, arguments);
|
|
12400
12502
|
};
|
|
12401
12503
|
}());
|
|
12402
12504
|
var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforVitalType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {
|
|
12403
12505
|
var payload,
|
|
12404
|
-
|
|
12506
|
+
_ref24,
|
|
12405
12507
|
rejectWithValue,
|
|
12406
|
-
_data$
|
|
12508
|
+
_data$5,
|
|
12407
12509
|
body,
|
|
12408
12510
|
data,
|
|
12409
12511
|
arry,
|
|
@@ -12413,7 +12515,7 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
|
|
|
12413
12515
|
while (1) switch (_context10.p = _context10.n) {
|
|
12414
12516
|
case 0:
|
|
12415
12517
|
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : "";
|
|
12416
|
-
|
|
12518
|
+
_ref24 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
12417
12519
|
_context10.p = 1;
|
|
12418
12520
|
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
12419
12521
|
body = {
|
|
@@ -12433,7 +12535,7 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
|
|
|
12433
12535
|
case 2:
|
|
12434
12536
|
data = _context10.v;
|
|
12435
12537
|
arry = [];
|
|
12436
|
-
(_data$
|
|
12538
|
+
(_data$5 = data[0]) === null || _data$5 === void 0 || (_data$5 = _data$5.OBSERVATIONTYPE) === null || _data$5 === void 0 || (_data$5 = _data$5.Value) === null || _data$5 === void 0 || _data$5.map(function (item) {
|
|
12437
12539
|
return arry.push({
|
|
12438
12540
|
_id: item._id,
|
|
12439
12541
|
value: item._id,
|
|
@@ -12454,9 +12556,9 @@ var GET_GENERAL_DATA_VITAL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/
|
|
|
12454
12556
|
})));
|
|
12455
12557
|
var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforLoadType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
12456
12558
|
var payload,
|
|
12457
|
-
|
|
12559
|
+
_ref26,
|
|
12458
12560
|
rejectWithValue,
|
|
12459
|
-
_data$
|
|
12561
|
+
_data$6,
|
|
12460
12562
|
body,
|
|
12461
12563
|
data,
|
|
12462
12564
|
arry,
|
|
@@ -12466,7 +12568,7 @@ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/g
|
|
|
12466
12568
|
while (1) switch (_context11.p = _context11.n) {
|
|
12467
12569
|
case 0:
|
|
12468
12570
|
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : "";
|
|
12469
|
-
|
|
12571
|
+
_ref26 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
12470
12572
|
_context11.p = 1;
|
|
12471
12573
|
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
12472
12574
|
body = {
|
|
@@ -12486,7 +12588,7 @@ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/g
|
|
|
12486
12588
|
case 2:
|
|
12487
12589
|
data = _context11.v;
|
|
12488
12590
|
arry = [];
|
|
12489
|
-
(_data$
|
|
12591
|
+
(_data$6 = data[0]) === null || _data$6 === void 0 || (_data$6 = _data$6.RULEQUERYORGM) === null || _data$6 === void 0 || (_data$6 = _data$6.Value) === null || _data$6 === void 0 || _data$6.map(function (item) {
|
|
12490
12592
|
return arry.push({
|
|
12491
12593
|
_id: item._id,
|
|
12492
12594
|
value: item._id,
|
|
@@ -12507,9 +12609,9 @@ var GET_GENERAL_DATA_LOAD_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/g
|
|
|
12507
12609
|
})));
|
|
12508
12610
|
var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlice/getGeneralDataforControlType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
|
|
12509
12611
|
var payload,
|
|
12510
|
-
|
|
12612
|
+
_ref28,
|
|
12511
12613
|
rejectWithValue,
|
|
12512
|
-
_data$
|
|
12614
|
+
_data$7,
|
|
12513
12615
|
body,
|
|
12514
12616
|
data,
|
|
12515
12617
|
arry,
|
|
@@ -12519,7 +12621,7 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
|
|
|
12519
12621
|
while (1) switch (_context12.p = _context12.n) {
|
|
12520
12622
|
case 0:
|
|
12521
12623
|
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : "";
|
|
12522
|
-
|
|
12624
|
+
_ref28 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
12523
12625
|
_context12.p = 1;
|
|
12524
12626
|
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
12525
12627
|
body = {
|
|
@@ -12539,7 +12641,7 @@ var GET_GENERAL_DATA_CONTROL_TYPE = createAsyncThunk("vitalsMasterSectionApiSlic
|
|
|
12539
12641
|
case 2:
|
|
12540
12642
|
data = _context12.v;
|
|
12541
12643
|
arry = [];
|
|
12542
|
-
(_data$
|
|
12644
|
+
(_data$7 = data[0]) === null || _data$7 === void 0 || (_data$7 = _data$7.RESULTREPORTDATATYPE) === null || _data$7 === void 0 || (_data$7 = _data$7.Value) === null || _data$7 === void 0 || _data$7.map(function (item) {
|
|
12543
12645
|
return arry.push({
|
|
12544
12646
|
_id: item._id,
|
|
12545
12647
|
value: item._id,
|
|
@@ -36623,16 +36725,15 @@ var user_management_actions = _objectSpread2(_objectSpread2(_objectSpread2(_obje
|
|
|
36623
36725
|
|
|
36624
36726
|
var queries$6 = {
|
|
36625
36727
|
parameterSetupAdminRead: function parameterSetupAdminRead(page, perPage) {
|
|
36728
|
+
var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
36626
36729
|
return {
|
|
36627
|
-
|
|
36628
|
-
|
|
36629
|
-
filter:
|
|
36630
|
-
|
|
36631
|
-
|
|
36632
|
-
|
|
36633
|
-
}
|
|
36634
|
-
return_fields: "merge(EntityParametersSetup,{TotalCount:COUNT(FOR CNT IN EntityParametersSetup RETURN CNT._key)},{entitytype:document(EntityParametersSetup.entitytype),entityid:document(EntityParametersSetup.entityid),moduleid:document(EntityParametersSetup.moduleid),parameterid:document(EntityParametersSetup.parameterid)},{parametervalue:CONTAINS(EntityParametersSetup.parametervalue,'CodingMaster')?document(EntityParametersSetup.parametervalue):EntityParametersSetup.parametervalue})",
|
|
36635
|
-
sort: "EntityParametersSetup.createddate DESC"
|
|
36730
|
+
appcode: dbName,
|
|
36731
|
+
requestid: "f7e3ce80-3b34-457e-af4d-ef7781dc0f6a",
|
|
36732
|
+
filter: {
|
|
36733
|
+
search: search || "",
|
|
36734
|
+
page: page !== null && page !== void 0 ? page : 0,
|
|
36735
|
+
perPage: perPage !== null && perPage !== void 0 ? perPage : 10
|
|
36736
|
+
}
|
|
36636
36737
|
};
|
|
36637
36738
|
},
|
|
36638
36739
|
parameterSetupAdminUpsert: function parameterSetupAdminUpsert(data) {
|
|
@@ -36677,8 +36778,13 @@ var PARAMETER_SETUP_ADMIN_READ = createAsyncThunk("parameterSetupApiSlice/parame
|
|
|
36677
36778
|
rejectWithValue,
|
|
36678
36779
|
_payload$page,
|
|
36679
36780
|
_payload$perPage,
|
|
36781
|
+
_payload$search,
|
|
36782
|
+
_data$0$result,
|
|
36783
|
+
_data$,
|
|
36784
|
+
_data$result,
|
|
36680
36785
|
data,
|
|
36681
36786
|
arry,
|
|
36787
|
+
resultList,
|
|
36682
36788
|
_args = arguments,
|
|
36683
36789
|
_t;
|
|
36684
36790
|
return _regenerator().w(function (_context) {
|
|
@@ -36689,14 +36795,15 @@ var PARAMETER_SETUP_ADMIN_READ = createAsyncThunk("parameterSetupApiSlice/parame
|
|
|
36689
36795
|
_context.p = 1;
|
|
36690
36796
|
_context.n = 2;
|
|
36691
36797
|
return fetchData({
|
|
36692
|
-
body: JSON.stringify(queries$6.parameterSetupAdminRead((_payload$page = payload === null || payload === void 0 ? void 0 : payload.page) !== null && _payload$page !== void 0 ? _payload$page : 0, (_payload$perPage = payload === null || payload === void 0 ? void 0 : payload.perPage) !== null && _payload$perPage !== void 0 ? _payload$perPage : 10))
|
|
36693
|
-
},
|
|
36798
|
+
body: JSON.stringify(queries$6.parameterSetupAdminRead((_payload$page = payload === null || payload === void 0 ? void 0 : payload.page) !== null && _payload$page !== void 0 ? _payload$page : 0, (_payload$perPage = payload === null || payload === void 0 ? void 0 : payload.perPage) !== null && _payload$perPage !== void 0 ? _payload$perPage : 10, (_payload$search = payload === null || payload === void 0 ? void 0 : payload.search) !== null && _payload$search !== void 0 ? _payload$search : ""))
|
|
36799
|
+
}, __baseUrl__$1);
|
|
36694
36800
|
case 2:
|
|
36695
36801
|
data = _context.v;
|
|
36696
36802
|
arry = [];
|
|
36697
|
-
|
|
36698
|
-
|
|
36699
|
-
|
|
36803
|
+
resultList = Array.isArray(data) ? (_data$0$result = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.result) !== null && _data$0$result !== void 0 ? _data$0$result : data : (_data$result = data === null || data === void 0 ? void 0 : data.result) !== null && _data$result !== void 0 ? _data$result : [];
|
|
36804
|
+
if (Array.isArray(resultList)) {
|
|
36805
|
+
resultList.map(function (val) {
|
|
36806
|
+
var _val$parameterid, _val$parameterid2, _val$id, _val$_id, _ref3, _val$_key, _val$entitytype$displ, _val$entitytype, _val$entityid$name, _val$entityid, _ref4, _val$parameterid$shor, _val$parameterid3, _val$parameterid4, _ref5, _val$active;
|
|
36700
36807
|
var parametervalue = "";
|
|
36701
36808
|
if ((val === null || val === void 0 || (_val$parameterid = val.parameterid) === null || _val$parameterid === void 0 || (_val$parameterid = _val$parameterid.gmconfigvalues) === null || _val$parameterid === void 0 ? void 0 : _val$parameterid.ParameterType) === "List Box") {
|
|
36702
36809
|
var _val$parametervalue;
|
|
@@ -36714,12 +36821,12 @@ var PARAMETER_SETUP_ADMIN_READ = createAsyncThunk("parameterSetupApiSlice/parame
|
|
|
36714
36821
|
total_count: val === null || val === void 0 ? void 0 : val.TotalCount,
|
|
36715
36822
|
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : "",
|
|
36716
36823
|
_id: (_val$_id = val === null || val === void 0 ? void 0 : val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
36717
|
-
key: (_val$
|
|
36824
|
+
key: (_ref3 = (_val$_key = val === null || val === void 0 ? void 0 : val._key) !== null && _val$_key !== void 0 ? _val$_key : val === null || val === void 0 ? void 0 : val.key) !== null && _ref3 !== void 0 ? _ref3 : "",
|
|
36718
36825
|
entityType: (_val$entitytype$displ = val === null || val === void 0 || (_val$entitytype = val.entitytype) === null || _val$entitytype === void 0 ? void 0 : _val$entitytype.display) !== null && _val$entitytype$displ !== void 0 ? _val$entitytype$displ : "",
|
|
36719
36826
|
facility: (_val$entityid$name = val === null || val === void 0 || (_val$entityid = val.entityid) === null || _val$entityid === void 0 ? void 0 : _val$entityid.name) !== null && _val$entityid$name !== void 0 ? _val$entityid$name : "",
|
|
36720
|
-
parameterId: (_val$parameterid$shor = val === null || val === void 0 || (_val$parameterid3 = val.parameterid) === null || _val$parameterid3 === void 0 ? void 0 : _val$parameterid3.shortdesc) !== null && _val$parameterid$shor !== void 0 ? _val$parameterid$shor : "",
|
|
36827
|
+
parameterId: (_ref4 = (_val$parameterid$shor = val === null || val === void 0 || (_val$parameterid3 = val.parameterid) === null || _val$parameterid3 === void 0 ? void 0 : _val$parameterid3.shortdesc) !== null && _val$parameterid$shor !== void 0 ? _val$parameterid$shor : val === null || val === void 0 || (_val$parameterid4 = val.parameterid) === null || _val$parameterid4 === void 0 ? void 0 : _val$parameterid4.display) !== null && _ref4 !== void 0 ? _ref4 : "",
|
|
36721
36828
|
parameterValue: parametervalue,
|
|
36722
|
-
status: (_val$active = val === null || val === void 0 ? void 0 : val.active) !== null && _val$active !== void 0 ? _val$active : ""
|
|
36829
|
+
status: (_ref5 = (_val$active = val === null || val === void 0 ? void 0 : val.active) !== null && _val$active !== void 0 ? _val$active : val === null || val === void 0 ? void 0 : val.activestatus) !== null && _ref5 !== void 0 ? _ref5 : ""
|
|
36723
36830
|
});
|
|
36724
36831
|
});
|
|
36725
36832
|
}
|
|
@@ -36739,7 +36846,7 @@ var PARAMETER_SETUP_ADMIN_READ = createAsyncThunk("parameterSetupApiSlice/parame
|
|
|
36739
36846
|
//PARAMETER_SETUP_ADMIN_UPSERT
|
|
36740
36847
|
var PARAMETER_SETUP_ADMIN_UPSERT = createAsyncThunk("parameterSetupApiSlice/parameterSetupAdminUpsert", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
36741
36848
|
var payload,
|
|
36742
|
-
|
|
36849
|
+
_ref7,
|
|
36743
36850
|
rejectWithValue,
|
|
36744
36851
|
queriesjson,
|
|
36745
36852
|
res,
|
|
@@ -36749,7 +36856,7 @@ var PARAMETER_SETUP_ADMIN_UPSERT = createAsyncThunk("parameterSetupApiSlice/para
|
|
|
36749
36856
|
while (1) switch (_context2.p = _context2.n) {
|
|
36750
36857
|
case 0:
|
|
36751
36858
|
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
36752
|
-
|
|
36859
|
+
_ref7 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
36753
36860
|
_context2.p = 1;
|
|
36754
36861
|
queriesjson = queries$6.parameterSetupAdminUpsert(payload);
|
|
36755
36862
|
_context2.n = 2;
|
|
@@ -36774,7 +36881,7 @@ var PARAMETER_SETUP_ADMIN_UPSERT = createAsyncThunk("parameterSetupApiSlice/para
|
|
|
36774
36881
|
//PARAMETER_SETUP_ADMIN_SINGLE_READ
|
|
36775
36882
|
var PARAMETER_SETUP_ADMIN_SINGLE_READ = createAsyncThunk("parameterSetupApiSlice/parameterSetupAdminSingleRead", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
36776
36883
|
var payload,
|
|
36777
|
-
|
|
36884
|
+
_ref9,
|
|
36778
36885
|
rejectWithValue,
|
|
36779
36886
|
_key,
|
|
36780
36887
|
data,
|
|
@@ -36785,7 +36892,7 @@ var PARAMETER_SETUP_ADMIN_SINGLE_READ = createAsyncThunk("parameterSetupApiSlice
|
|
|
36785
36892
|
while (1) switch (_context3.p = _context3.n) {
|
|
36786
36893
|
case 0:
|
|
36787
36894
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
36788
|
-
|
|
36895
|
+
_ref9 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
|
|
36789
36896
|
_context3.p = 1;
|
|
36790
36897
|
_key = payload._key;
|
|
36791
36898
|
_context3.n = 2;
|
|
@@ -36844,10 +36951,8 @@ var parameterSetupSlice$1 = parameterSetupSlice.reducer;
|
|
|
36844
36951
|
var masterQuery$4 = {
|
|
36845
36952
|
entityTypeMater: function entityTypeMater() {
|
|
36846
36953
|
return {
|
|
36847
|
-
|
|
36848
|
-
|
|
36849
|
-
filter: "CodingMaster.code=='OT003' && CodingMaster.Type=='ORGTYPE' && CodingMaster.status==true && CodingMaster.activestatus==true",
|
|
36850
|
-
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
36954
|
+
appcode: dbName,
|
|
36955
|
+
requestid: "3cd9377b-28a6-4a7e-bfc6-e75e063a4d58"
|
|
36851
36956
|
};
|
|
36852
36957
|
},
|
|
36853
36958
|
facilityByEntityType: function facilityByEntityType() {
|
|
@@ -36884,6 +36989,9 @@ var ENTITY_TYPE_MASTER = createAsyncThunk("parameterSetupMasterAPISlice/entityTy
|
|
|
36884
36989
|
rejectWithValue,
|
|
36885
36990
|
data,
|
|
36886
36991
|
arry,
|
|
36992
|
+
resultList,
|
|
36993
|
+
_data$0$result,
|
|
36994
|
+
_data$,
|
|
36887
36995
|
_args = arguments,
|
|
36888
36996
|
_t;
|
|
36889
36997
|
return _regenerator().w(function (_context) {
|
|
@@ -36894,14 +37002,23 @@ var ENTITY_TYPE_MASTER = createAsyncThunk("parameterSetupMasterAPISlice/entityTy
|
|
|
36894
37002
|
_context.n = 2;
|
|
36895
37003
|
return fetchData({
|
|
36896
37004
|
body: JSON.stringify(masterQuery$4.entityTypeMater())
|
|
36897
|
-
},
|
|
37005
|
+
}, __baseUrl__$1);
|
|
36898
37006
|
case 2:
|
|
36899
37007
|
data = _context.v;
|
|
36900
37008
|
arry = [];
|
|
36901
|
-
|
|
36902
|
-
|
|
37009
|
+
resultList = [];
|
|
37010
|
+
if (Array.isArray(data)) {
|
|
37011
|
+
resultList = (_data$0$result = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.result) !== null && _data$0$result !== void 0 ? _data$0$result : data;
|
|
37012
|
+
} else if (data !== null && data !== void 0 && data.result) {
|
|
37013
|
+
resultList = Array.isArray(data.result) ? data.result : [data.result];
|
|
37014
|
+
} else if (data && _typeof(data) === "object") {
|
|
37015
|
+
resultList = [data];
|
|
37016
|
+
}
|
|
37017
|
+
(resultList || []).forEach(function (val) {
|
|
37018
|
+
var _ref3, _val$_id, _val$display;
|
|
37019
|
+
if (!val) return;
|
|
36903
37020
|
arry.push({
|
|
36904
|
-
value: (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : "",
|
|
37021
|
+
value: (_ref3 = (_val$_id = val._id) !== null && _val$_id !== void 0 ? _val$_id : val.id) !== null && _ref3 !== void 0 ? _ref3 : "",
|
|
36905
37022
|
label: (_val$display = val.display) !== null && _val$display !== void 0 ? _val$display : ""
|
|
36906
37023
|
});
|
|
36907
37024
|
});
|
|
@@ -36919,7 +37036,7 @@ var ENTITY_TYPE_MASTER = createAsyncThunk("parameterSetupMasterAPISlice/entityTy
|
|
|
36919
37036
|
}, _callee, null, [[1, 3]]);
|
|
36920
37037
|
})));
|
|
36921
37038
|
var FACILITY_BY_ENTITY_TYPE = createAsyncThunk("parameterSetupMasterAPISlice/facilityByEntityType", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
36922
|
-
var
|
|
37039
|
+
var _ref5,
|
|
36923
37040
|
rejectWithValue,
|
|
36924
37041
|
data,
|
|
36925
37042
|
arry,
|
|
@@ -36928,7 +37045,7 @@ var FACILITY_BY_ENTITY_TYPE = createAsyncThunk("parameterSetupMasterAPISlice/fac
|
|
|
36928
37045
|
return _regenerator().w(function (_context2) {
|
|
36929
37046
|
while (1) switch (_context2.p = _context2.n) {
|
|
36930
37047
|
case 0:
|
|
36931
|
-
|
|
37048
|
+
_ref5 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
36932
37049
|
_context2.p = 1;
|
|
36933
37050
|
_context2.n = 2;
|
|
36934
37051
|
return fetchData({
|
|
@@ -36958,7 +37075,7 @@ var FACILITY_BY_ENTITY_TYPE = createAsyncThunk("parameterSetupMasterAPISlice/fac
|
|
|
36958
37075
|
}, _callee2, null, [[1, 3]]);
|
|
36959
37076
|
})));
|
|
36960
37077
|
var APPLICATION_PARAMETER = createAsyncThunk("parameterSetupMasterAPISlice/applicationParameter", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
36961
|
-
var
|
|
37078
|
+
var _ref7,
|
|
36962
37079
|
rejectWithValue,
|
|
36963
37080
|
data,
|
|
36964
37081
|
arry,
|
|
@@ -36967,7 +37084,7 @@ var APPLICATION_PARAMETER = createAsyncThunk("parameterSetupMasterAPISlice/appli
|
|
|
36967
37084
|
return _regenerator().w(function (_context3) {
|
|
36968
37085
|
while (1) switch (_context3.p = _context3.n) {
|
|
36969
37086
|
case 0:
|
|
36970
|
-
|
|
37087
|
+
_ref7 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
36971
37088
|
_context3.p = 1;
|
|
36972
37089
|
_context3.n = 2;
|
|
36973
37090
|
return fetchData({
|
|
@@ -37001,7 +37118,7 @@ var APPLICATION_PARAMETER = createAsyncThunk("parameterSetupMasterAPISlice/appli
|
|
|
37001
37118
|
})));
|
|
37002
37119
|
var APPLICATION_PARAMETER_SOURCE_MASTER = createAsyncThunk("parameterSetupMasterAPISlice/applicationParameterSourceMaster", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
37003
37120
|
var payload,
|
|
37004
|
-
|
|
37121
|
+
_ref9,
|
|
37005
37122
|
rejectWithValue,
|
|
37006
37123
|
type,
|
|
37007
37124
|
data,
|
|
@@ -37012,7 +37129,7 @@ var APPLICATION_PARAMETER_SOURCE_MASTER = createAsyncThunk("parameterSetupMaster
|
|
|
37012
37129
|
while (1) switch (_context4.p = _context4.n) {
|
|
37013
37130
|
case 0:
|
|
37014
37131
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
37015
|
-
|
|
37132
|
+
_ref9 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
|
|
37016
37133
|
_context4.p = 1;
|
|
37017
37134
|
type = payload.type;
|
|
37018
37135
|
_context4.n = 2;
|
|
@@ -39690,9 +39807,20 @@ var query$4 = {
|
|
|
39690
39807
|
|
|
39691
39808
|
var masterQuery$2 = {
|
|
39692
39809
|
//name
|
|
39693
|
-
facilityName: "{\n \"db_name\": \"".concat(
|
|
39810
|
+
facilityName: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"lower(first(document(Organization.OrgType)[*].display)) == 'facility' && Organization.activestatus==true && Organization.active == true \",\n \"return_fields\": \"{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}\",\n \"sort\": \"Organization.name\"\n }"),
|
|
39694
39811
|
// coding[0]?.display
|
|
39695
|
-
speciality:
|
|
39812
|
+
speciality: function speciality() {
|
|
39813
|
+
return {
|
|
39814
|
+
appcode: dbName,
|
|
39815
|
+
filter: {
|
|
39816
|
+
type: ["SPECIALTY"],
|
|
39817
|
+
tenantid: "",
|
|
39818
|
+
facilityid: "",
|
|
39819
|
+
lang: ""
|
|
39820
|
+
},
|
|
39821
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
39822
|
+
};
|
|
39823
|
+
},
|
|
39696
39824
|
// coding[0]?.display
|
|
39697
39825
|
practitionerType: "{\n \"db_name\": \"".concat(_dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"first(document(CodeableConceptMaster.coding)[*].display)\"\n }"),
|
|
39698
39826
|
//array of string
|
|
@@ -39944,14 +40072,16 @@ var loopMasters$3 = function loopMasters() {
|
|
|
39944
40072
|
var json = {};
|
|
39945
40073
|
data.map(function (val, i) {
|
|
39946
40074
|
var arr = [];
|
|
39947
|
-
val.data.map(function (value, i_) {
|
|
40075
|
+
((val === null || val === void 0 ? void 0 : val.data) || []).map(function (value, i_) {
|
|
39948
40076
|
if (fileds$1.includes(val.name)) {
|
|
39949
|
-
|
|
39950
|
-
|
|
40077
|
+
var _value$coding, _value$coding2;
|
|
40078
|
+
var displayVal = (value === null || value === void 0 || (_value$coding = value.coding) === null || _value$coding === void 0 || (_value$coding = _value$coding[0]) === null || _value$coding === void 0 ? void 0 : _value$coding.display) || (value === null || value === void 0 ? void 0 : value.display) || "";
|
|
40079
|
+
var idVal = (value === null || value === void 0 || (_value$coding2 = value.coding) === null || _value$coding2 === void 0 || (_value$coding2 = _value$coding2[0]) === null || _value$coding2 === void 0 ? void 0 : _value$coding2._id) || (value === null || value === void 0 ? void 0 : value._id) || "";
|
|
40080
|
+
if (displayVal || idVal) {
|
|
39951
40081
|
arr.push({
|
|
39952
|
-
label:
|
|
39953
|
-
value:
|
|
39954
|
-
_id:
|
|
40082
|
+
label: displayVal,
|
|
40083
|
+
value: idVal,
|
|
40084
|
+
_id: idVal
|
|
39955
40085
|
});
|
|
39956
40086
|
}
|
|
39957
40087
|
} else if ("facilityName" === val.name) {
|
|
@@ -39969,8 +40099,8 @@ var loopMasters$3 = function loopMasters() {
|
|
|
39969
40099
|
}
|
|
39970
40100
|
});
|
|
39971
40101
|
json[val.name] = arr;
|
|
39972
|
-
resolve(json);
|
|
39973
40102
|
});
|
|
40103
|
+
resolve(json);
|
|
39974
40104
|
})["catch"](function (err) {
|
|
39975
40105
|
resolve([]);
|
|
39976
40106
|
console.log(err);
|
|
@@ -39985,27 +40115,55 @@ var loopMasters$3 = function loopMasters() {
|
|
|
39985
40115
|
};
|
|
39986
40116
|
}());
|
|
39987
40117
|
};
|
|
39988
|
-
var fetchMaster$3 = function fetchMaster(name,
|
|
40118
|
+
var fetchMaster$3 = function fetchMaster(name, queryFn) {
|
|
39989
40119
|
return new es6Promise.Promise(/*#__PURE__*/function () {
|
|
39990
40120
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(resolve, reject) {
|
|
39991
|
-
var data;
|
|
40121
|
+
var queryObj, isQdm, url, bodyPayload, data, listData, _firstObj$firstKey, firstObj, firstKey;
|
|
39992
40122
|
return _regenerator().w(function (_context3) {
|
|
39993
|
-
while (1) switch (_context3.n) {
|
|
40123
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
39994
40124
|
case 0:
|
|
40125
|
+
_context3.p = 0;
|
|
40126
|
+
queryObj = typeof queryFn === "function" ? queryFn() : queryFn;
|
|
40127
|
+
isQdm = _typeof(queryObj) === "object" && (queryObj === null || queryObj === void 0 ? void 0 : queryObj.requestid);
|
|
40128
|
+
url = isQdm ? __baseUrl__$1 : __readDocumentUrl__;
|
|
40129
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(_objectSpread2(_objectSpread2({}, queryObj), {}, {
|
|
40130
|
+
appcode: (queryObj === null || queryObj === void 0 ? void 0 : queryObj.appcode) || dbName
|
|
40131
|
+
}));
|
|
39995
40132
|
_context3.n = 1;
|
|
39996
40133
|
return fetchData({
|
|
39997
|
-
body:
|
|
39998
|
-
},
|
|
40134
|
+
body: bodyPayload
|
|
40135
|
+
}, url);
|
|
39999
40136
|
case 1:
|
|
40000
40137
|
data = _context3.v;
|
|
40138
|
+
listData = [];
|
|
40139
|
+
if (isQdm && Array.isArray(data) && data[0]) {
|
|
40140
|
+
firstObj = data[0];
|
|
40141
|
+
firstKey = Object.keys(firstObj)[0];
|
|
40142
|
+
if (firstKey && (_firstObj$firstKey = firstObj[firstKey]) !== null && _firstObj$firstKey !== void 0 && _firstObj$firstKey.Value) {
|
|
40143
|
+
listData = firstObj[firstKey].Value;
|
|
40144
|
+
} else {
|
|
40145
|
+
listData = data;
|
|
40146
|
+
}
|
|
40147
|
+
} else if (data !== null && data !== void 0 && data.result) {
|
|
40148
|
+
listData = data.result;
|
|
40149
|
+
}
|
|
40001
40150
|
resolve({
|
|
40002
|
-
data:
|
|
40151
|
+
data: listData,
|
|
40003
40152
|
name: name
|
|
40004
40153
|
});
|
|
40154
|
+
_context3.n = 3;
|
|
40155
|
+
break;
|
|
40005
40156
|
case 2:
|
|
40157
|
+
_context3.p = 2;
|
|
40158
|
+
_context3.v;
|
|
40159
|
+
resolve({
|
|
40160
|
+
data: [],
|
|
40161
|
+
name: name
|
|
40162
|
+
});
|
|
40163
|
+
case 3:
|
|
40006
40164
|
return _context3.a(2);
|
|
40007
40165
|
}
|
|
40008
|
-
}, _callee3);
|
|
40166
|
+
}, _callee3, null, [[0, 2]]);
|
|
40009
40167
|
}));
|
|
40010
40168
|
return function (_x4, _x5) {
|
|
40011
40169
|
return _ref3.apply(this, arguments);
|
|
@@ -40021,7 +40179,7 @@ var GET_ORDER_SET_APPLICABILITY_LIST = createAsyncThunk("orderSetApplicabilitySl
|
|
|
40021
40179
|
data,
|
|
40022
40180
|
readJSON,
|
|
40023
40181
|
_args4 = arguments,
|
|
40024
|
-
|
|
40182
|
+
_t2;
|
|
40025
40183
|
return _regenerator().w(function (_context4) {
|
|
40026
40184
|
while (1) switch (_context4.p = _context4.n) {
|
|
40027
40185
|
case 0:
|
|
@@ -40041,9 +40199,9 @@ var GET_ORDER_SET_APPLICABILITY_LIST = createAsyncThunk("orderSetApplicabilitySl
|
|
|
40041
40199
|
}));
|
|
40042
40200
|
case 3:
|
|
40043
40201
|
_context4.p = 3;
|
|
40044
|
-
|
|
40202
|
+
_t2 = _context4.v;
|
|
40045
40203
|
return _context4.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40046
|
-
message:
|
|
40204
|
+
message: _t2.message
|
|
40047
40205
|
})));
|
|
40048
40206
|
}
|
|
40049
40207
|
}, _callee4, null, [[1, 3]]);
|
|
@@ -40060,7 +40218,7 @@ var GET_ORDER_SET_APPLICABILITY_SINGLE_READ = createAsyncThunk("orderSetApplicab
|
|
|
40060
40218
|
data,
|
|
40061
40219
|
readJSON,
|
|
40062
40220
|
_args5 = arguments,
|
|
40063
|
-
|
|
40221
|
+
_t3;
|
|
40064
40222
|
return _regenerator().w(function (_context5) {
|
|
40065
40223
|
while (1) switch (_context5.p = _context5.n) {
|
|
40066
40224
|
case 0:
|
|
@@ -40080,9 +40238,9 @@ var GET_ORDER_SET_APPLICABILITY_SINGLE_READ = createAsyncThunk("orderSetApplicab
|
|
|
40080
40238
|
}));
|
|
40081
40239
|
case 3:
|
|
40082
40240
|
_context5.p = 3;
|
|
40083
|
-
|
|
40241
|
+
_t3 = _context5.v;
|
|
40084
40242
|
return _context5.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40085
|
-
message:
|
|
40243
|
+
message: _t3.message
|
|
40086
40244
|
})));
|
|
40087
40245
|
}
|
|
40088
40246
|
}, _callee5, null, [[1, 3]]);
|
|
@@ -40094,7 +40252,7 @@ var ORDER_SET_APPLICABILITY_MASTER = createAsyncThunk("orderSetApplicabilitySlic
|
|
|
40094
40252
|
rejectWithValue,
|
|
40095
40253
|
data,
|
|
40096
40254
|
_args6 = arguments,
|
|
40097
|
-
|
|
40255
|
+
_t4;
|
|
40098
40256
|
return _regenerator().w(function (_context6) {
|
|
40099
40257
|
while (1) switch (_context6.p = _context6.n) {
|
|
40100
40258
|
case 0:
|
|
@@ -40109,9 +40267,9 @@ var ORDER_SET_APPLICABILITY_MASTER = createAsyncThunk("orderSetApplicabilitySlic
|
|
|
40109
40267
|
}));
|
|
40110
40268
|
case 3:
|
|
40111
40269
|
_context6.p = 3;
|
|
40112
|
-
|
|
40270
|
+
_t4 = _context6.v;
|
|
40113
40271
|
return _context6.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40114
|
-
message:
|
|
40272
|
+
message: _t4.message
|
|
40115
40273
|
})));
|
|
40116
40274
|
}
|
|
40117
40275
|
}, _callee6, null, [[1, 3]]);
|
|
@@ -40128,7 +40286,7 @@ var ORDER_SET_APP_PRACTITIONER = createAsyncThunk("orderSetApplicabilitySlice/or
|
|
|
40128
40286
|
data_arr,
|
|
40129
40287
|
arry,
|
|
40130
40288
|
_args7 = arguments,
|
|
40131
|
-
|
|
40289
|
+
_t5;
|
|
40132
40290
|
return _regenerator().w(function (_context7) {
|
|
40133
40291
|
while (1) switch (_context7.p = _context7.n) {
|
|
40134
40292
|
case 0:
|
|
@@ -40157,9 +40315,9 @@ var ORDER_SET_APP_PRACTITIONER = createAsyncThunk("orderSetApplicabilitySlice/or
|
|
|
40157
40315
|
}));
|
|
40158
40316
|
case 4:
|
|
40159
40317
|
_context7.p = 4;
|
|
40160
|
-
|
|
40318
|
+
_t5 = _context7.v;
|
|
40161
40319
|
return _context7.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40162
|
-
message:
|
|
40320
|
+
message: _t5.message
|
|
40163
40321
|
})));
|
|
40164
40322
|
}
|
|
40165
40323
|
}, _callee7, null, [[1, 4]]);
|
|
@@ -40174,7 +40332,7 @@ var ORDER_SET_APP_DIAGNOSIS_GROUP = createAsyncThunk("orderSetApplicabilitySlice
|
|
|
40174
40332
|
data_arr,
|
|
40175
40333
|
arry,
|
|
40176
40334
|
_args8 = arguments,
|
|
40177
|
-
|
|
40335
|
+
_t6;
|
|
40178
40336
|
return _regenerator().w(function (_context8) {
|
|
40179
40337
|
while (1) switch (_context8.p = _context8.n) {
|
|
40180
40338
|
case 0:
|
|
@@ -40203,9 +40361,9 @@ var ORDER_SET_APP_DIAGNOSIS_GROUP = createAsyncThunk("orderSetApplicabilitySlice
|
|
|
40203
40361
|
}));
|
|
40204
40362
|
case 4:
|
|
40205
40363
|
_context8.p = 4;
|
|
40206
|
-
|
|
40364
|
+
_t6 = _context8.v;
|
|
40207
40365
|
return _context8.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40208
|
-
message:
|
|
40366
|
+
message: _t6.message
|
|
40209
40367
|
})));
|
|
40210
40368
|
}
|
|
40211
40369
|
}, _callee8, null, [[1, 4]]);
|
|
@@ -40221,7 +40379,7 @@ var ORDER_SET_APP_DIAGNOSIS_CODE = createAsyncThunk("orderSetApplicabilitySlice/
|
|
|
40221
40379
|
data_arr,
|
|
40222
40380
|
arry,
|
|
40223
40381
|
_args9 = arguments,
|
|
40224
|
-
|
|
40382
|
+
_t7;
|
|
40225
40383
|
return _regenerator().w(function (_context9) {
|
|
40226
40384
|
while (1) switch (_context9.p = _context9.n) {
|
|
40227
40385
|
case 0:
|
|
@@ -40250,9 +40408,9 @@ var ORDER_SET_APP_DIAGNOSIS_CODE = createAsyncThunk("orderSetApplicabilitySlice/
|
|
|
40250
40408
|
}));
|
|
40251
40409
|
case 4:
|
|
40252
40410
|
_context9.p = 4;
|
|
40253
|
-
|
|
40411
|
+
_t7 = _context9.v;
|
|
40254
40412
|
return _context9.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40255
|
-
message:
|
|
40413
|
+
message: _t7.message
|
|
40256
40414
|
})));
|
|
40257
40415
|
}
|
|
40258
40416
|
}, _callee9, null, [[1, 4]]);
|
|
@@ -40267,7 +40425,7 @@ var ORDER_SET_APP_LOCATION = createAsyncThunk("orderSetApplicabilitySlice/order_
|
|
|
40267
40425
|
data_arr,
|
|
40268
40426
|
arry,
|
|
40269
40427
|
_args0 = arguments,
|
|
40270
|
-
|
|
40428
|
+
_t8;
|
|
40271
40429
|
return _regenerator().w(function (_context0) {
|
|
40272
40430
|
while (1) switch (_context0.p = _context0.n) {
|
|
40273
40431
|
case 0:
|
|
@@ -40296,9 +40454,9 @@ var ORDER_SET_APP_LOCATION = createAsyncThunk("orderSetApplicabilitySlice/order_
|
|
|
40296
40454
|
}));
|
|
40297
40455
|
case 4:
|
|
40298
40456
|
_context0.p = 4;
|
|
40299
|
-
|
|
40457
|
+
_t8 = _context0.v;
|
|
40300
40458
|
return _context0.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40301
|
-
message:
|
|
40459
|
+
message: _t8.message
|
|
40302
40460
|
})));
|
|
40303
40461
|
}
|
|
40304
40462
|
}, _callee0, null, [[1, 4]]);
|
|
@@ -40312,7 +40470,7 @@ var DELETE_ORDER_SET_APPLICABILITY = createAsyncThunk("orderSetApplicabilitySlic
|
|
|
40312
40470
|
_key,
|
|
40313
40471
|
data,
|
|
40314
40472
|
_args1 = arguments,
|
|
40315
|
-
|
|
40473
|
+
_t9;
|
|
40316
40474
|
return _regenerator().w(function (_context1) {
|
|
40317
40475
|
while (1) switch (_context1.p = _context1.n) {
|
|
40318
40476
|
case 0:
|
|
@@ -40331,9 +40489,9 @@ var DELETE_ORDER_SET_APPLICABILITY = createAsyncThunk("orderSetApplicabilitySlic
|
|
|
40331
40489
|
}));
|
|
40332
40490
|
case 3:
|
|
40333
40491
|
_context1.p = 3;
|
|
40334
|
-
|
|
40492
|
+
_t9 = _context1.v;
|
|
40335
40493
|
return _context1.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40336
|
-
message:
|
|
40494
|
+
message: _t9.message
|
|
40337
40495
|
})));
|
|
40338
40496
|
}
|
|
40339
40497
|
}, _callee1, null, [[1, 3]]);
|
|
@@ -40349,7 +40507,7 @@ var ORDER_SET_APPLICABILITY_UPSERT = createAsyncThunk("orderSetApplicabilitySlic
|
|
|
40349
40507
|
queriesjson,
|
|
40350
40508
|
data,
|
|
40351
40509
|
_args10 = arguments,
|
|
40352
|
-
|
|
40510
|
+
_t0;
|
|
40353
40511
|
return _regenerator().w(function (_context10) {
|
|
40354
40512
|
while (1) switch (_context10.p = _context10.n) {
|
|
40355
40513
|
case 0:
|
|
@@ -40369,9 +40527,9 @@ var ORDER_SET_APPLICABILITY_UPSERT = createAsyncThunk("orderSetApplicabilitySlic
|
|
|
40369
40527
|
}));
|
|
40370
40528
|
case 3:
|
|
40371
40529
|
_context10.p = 3;
|
|
40372
|
-
|
|
40530
|
+
_t0 = _context10.v;
|
|
40373
40531
|
return _context10.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40374
|
-
message:
|
|
40532
|
+
message: _t0.message
|
|
40375
40533
|
})));
|
|
40376
40534
|
}
|
|
40377
40535
|
}, _callee10, null, [[1, 3]]);
|
|
@@ -40387,7 +40545,7 @@ var ORDER_SET_APP_SPECIALTY = createAsyncThunk("orderSetApplicabilitySlice/order
|
|
|
40387
40545
|
data_arr,
|
|
40388
40546
|
arry,
|
|
40389
40547
|
_args11 = arguments,
|
|
40390
|
-
|
|
40548
|
+
_t1;
|
|
40391
40549
|
return _regenerator().w(function (_context11) {
|
|
40392
40550
|
while (1) switch (_context11.p = _context11.n) {
|
|
40393
40551
|
case 0:
|
|
@@ -40416,9 +40574,9 @@ var ORDER_SET_APP_SPECIALTY = createAsyncThunk("orderSetApplicabilitySlice/order
|
|
|
40416
40574
|
}));
|
|
40417
40575
|
case 4:
|
|
40418
40576
|
_context11.p = 4;
|
|
40419
|
-
|
|
40577
|
+
_t1 = _context11.v;
|
|
40420
40578
|
return _context11.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40421
|
-
message:
|
|
40579
|
+
message: _t1.message
|
|
40422
40580
|
})));
|
|
40423
40581
|
}
|
|
40424
40582
|
}, _callee11, null, [[1, 4]]);
|
|
@@ -40592,9 +40750,42 @@ var generateReadJSON$1 = function generateReadJSON(data) {
|
|
|
40592
40750
|
};
|
|
40593
40751
|
|
|
40594
40752
|
var masterQuery$1 = {
|
|
40595
|
-
allergyTypeIndicator:
|
|
40596
|
-
|
|
40597
|
-
|
|
40753
|
+
allergyTypeIndicator: function allergyTypeIndicator() {
|
|
40754
|
+
return {
|
|
40755
|
+
appcode: dbName,
|
|
40756
|
+
filter: {
|
|
40757
|
+
type: ["ALTYPE"],
|
|
40758
|
+
tenantid: "",
|
|
40759
|
+
facilityid: "",
|
|
40760
|
+
lang: ""
|
|
40761
|
+
},
|
|
40762
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
40763
|
+
};
|
|
40764
|
+
},
|
|
40765
|
+
conceptIdType: function conceptIdType() {
|
|
40766
|
+
return {
|
|
40767
|
+
appcode: dbName,
|
|
40768
|
+
filter: {
|
|
40769
|
+
type: ["CONCEPTIDTTYPE"],
|
|
40770
|
+
tenantid: "",
|
|
40771
|
+
facilityid: "",
|
|
40772
|
+
lang: ""
|
|
40773
|
+
},
|
|
40774
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
40775
|
+
};
|
|
40776
|
+
},
|
|
40777
|
+
extSystemSourceId: function extSystemSourceId() {
|
|
40778
|
+
return {
|
|
40779
|
+
appcode: dbName,
|
|
40780
|
+
filter: {
|
|
40781
|
+
type: ["DBSOURCE"],
|
|
40782
|
+
tenantid: "",
|
|
40783
|
+
facilityid: "",
|
|
40784
|
+
lang: ""
|
|
40785
|
+
},
|
|
40786
|
+
requestid: "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
40787
|
+
};
|
|
40788
|
+
}
|
|
40598
40789
|
};
|
|
40599
40790
|
|
|
40600
40791
|
var _extraReducers$b;
|
|
@@ -40626,7 +40817,7 @@ var loopMasters$2 = function loopMasters() {
|
|
|
40626
40817
|
var json = {};
|
|
40627
40818
|
data.map(function (val) {
|
|
40628
40819
|
var arr = [];
|
|
40629
|
-
val.data.map(function (value) {
|
|
40820
|
+
((val === null || val === void 0 ? void 0 : val.data) || []).map(function (value) {
|
|
40630
40821
|
if (fileds.includes(val.name)) {
|
|
40631
40822
|
arr.push({
|
|
40632
40823
|
label: value === null || value === void 0 ? void 0 : value.display,
|
|
@@ -40635,10 +40826,10 @@ var loopMasters$2 = function loopMasters() {
|
|
|
40635
40826
|
}
|
|
40636
40827
|
});
|
|
40637
40828
|
json[val.name] = arr;
|
|
40638
|
-
resolve(json);
|
|
40639
40829
|
});
|
|
40830
|
+
resolve(json);
|
|
40640
40831
|
})["catch"](function (err) {
|
|
40641
|
-
resolve(
|
|
40832
|
+
resolve({});
|
|
40642
40833
|
console.log(err);
|
|
40643
40834
|
});
|
|
40644
40835
|
case 1:
|
|
@@ -40651,27 +40842,55 @@ var loopMasters$2 = function loopMasters() {
|
|
|
40651
40842
|
};
|
|
40652
40843
|
}());
|
|
40653
40844
|
};
|
|
40654
|
-
var fetchMaster$2 = function fetchMaster(name,
|
|
40845
|
+
var fetchMaster$2 = function fetchMaster(name, queryFn) {
|
|
40655
40846
|
return new es6Promise.Promise(/*#__PURE__*/function () {
|
|
40656
40847
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(resolve, reject) {
|
|
40657
|
-
var data;
|
|
40848
|
+
var queryObj, bodyPayload, data, listData, _firstObj$firstKey, firstObj, firstKey;
|
|
40658
40849
|
return _regenerator().w(function (_context3) {
|
|
40659
|
-
while (1) switch (_context3.n) {
|
|
40850
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
40660
40851
|
case 0:
|
|
40852
|
+
_context3.p = 0;
|
|
40853
|
+
queryObj = typeof queryFn === "function" ? queryFn() : queryFn;
|
|
40854
|
+
bodyPayload = typeof queryObj === "string" ? queryObj : JSON.stringify(_objectSpread2(_objectSpread2({}, queryObj), {}, {
|
|
40855
|
+
appcode: (queryObj === null || queryObj === void 0 ? void 0 : queryObj.appcode) || dbName
|
|
40856
|
+
}));
|
|
40661
40857
|
_context3.n = 1;
|
|
40662
40858
|
return fetchData({
|
|
40663
|
-
body:
|
|
40664
|
-
},
|
|
40859
|
+
body: bodyPayload
|
|
40860
|
+
}, __baseUrl__$1);
|
|
40665
40861
|
case 1:
|
|
40666
40862
|
data = _context3.v;
|
|
40863
|
+
listData = [];
|
|
40864
|
+
if (Array.isArray(data) && data[0]) {
|
|
40865
|
+
firstObj = data[0];
|
|
40866
|
+
firstKey = Object.keys(firstObj)[0];
|
|
40867
|
+
if (firstKey && (_firstObj$firstKey = firstObj[firstKey]) !== null && _firstObj$firstKey !== void 0 && _firstObj$firstKey.Value) {
|
|
40868
|
+
listData = firstObj[firstKey].Value;
|
|
40869
|
+
} else if (firstKey && Array.isArray(firstObj[firstKey])) {
|
|
40870
|
+
listData = firstObj[firstKey];
|
|
40871
|
+
} else {
|
|
40872
|
+
listData = data;
|
|
40873
|
+
}
|
|
40874
|
+
} else if (data !== null && data !== void 0 && data.result) {
|
|
40875
|
+
listData = data.result;
|
|
40876
|
+
}
|
|
40667
40877
|
resolve({
|
|
40668
|
-
data:
|
|
40878
|
+
data: listData,
|
|
40669
40879
|
name: name
|
|
40670
40880
|
});
|
|
40881
|
+
_context3.n = 3;
|
|
40882
|
+
break;
|
|
40671
40883
|
case 2:
|
|
40884
|
+
_context3.p = 2;
|
|
40885
|
+
_context3.v;
|
|
40886
|
+
resolve({
|
|
40887
|
+
data: [],
|
|
40888
|
+
name: name
|
|
40889
|
+
});
|
|
40890
|
+
case 3:
|
|
40672
40891
|
return _context3.a(2);
|
|
40673
40892
|
}
|
|
40674
|
-
}, _callee3);
|
|
40893
|
+
}, _callee3, null, [[0, 2]]);
|
|
40675
40894
|
}));
|
|
40676
40895
|
return function (_x4, _x5) {
|
|
40677
40896
|
return _ref3.apply(this, arguments);
|
|
@@ -40688,7 +40907,7 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
40688
40907
|
data,
|
|
40689
40908
|
readJSON,
|
|
40690
40909
|
_args4 = arguments,
|
|
40691
|
-
|
|
40910
|
+
_t2;
|
|
40692
40911
|
return _regenerator().w(function (_context4) {
|
|
40693
40912
|
while (1) switch (_context4.p = _context4.n) {
|
|
40694
40913
|
case 0:
|
|
@@ -40712,9 +40931,9 @@ var GET_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_mast
|
|
|
40712
40931
|
}));
|
|
40713
40932
|
case 3:
|
|
40714
40933
|
_context4.p = 3;
|
|
40715
|
-
|
|
40934
|
+
_t2 = _context4.v;
|
|
40716
40935
|
return _context4.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40717
|
-
message:
|
|
40936
|
+
message: _t2.message
|
|
40718
40937
|
})));
|
|
40719
40938
|
}
|
|
40720
40939
|
}, _callee4, null, [[1, 3]]);
|
|
@@ -40727,7 +40946,7 @@ var UPSERT_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/save_aller
|
|
|
40727
40946
|
queriesjson,
|
|
40728
40947
|
data,
|
|
40729
40948
|
_args5 = arguments,
|
|
40730
|
-
|
|
40949
|
+
_t3;
|
|
40731
40950
|
return _regenerator().w(function (_context5) {
|
|
40732
40951
|
while (1) switch (_context5.p = _context5.n) {
|
|
40733
40952
|
case 0:
|
|
@@ -40747,10 +40966,10 @@ var UPSERT_ALLERGEN_MASTER = createAsyncThunk("allergenMasterApiSlice/save_aller
|
|
|
40747
40966
|
}));
|
|
40748
40967
|
case 3:
|
|
40749
40968
|
_context5.p = 3;
|
|
40750
|
-
|
|
40751
|
-
alert(
|
|
40969
|
+
_t3 = _context5.v;
|
|
40970
|
+
alert(_t3.message);
|
|
40752
40971
|
return _context5.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40753
|
-
message:
|
|
40972
|
+
message: _t3.message
|
|
40754
40973
|
})));
|
|
40755
40974
|
}
|
|
40756
40975
|
}, _callee5, null, [[1, 3]]);
|
|
@@ -40764,7 +40983,7 @@ var UPDATE_ALLERGEN_MASTER_STATUS = createAsyncThunk("allergenMasterApiSlice/upd
|
|
|
40764
40983
|
queriesjson,
|
|
40765
40984
|
data,
|
|
40766
40985
|
_args6 = arguments,
|
|
40767
|
-
|
|
40986
|
+
_t4;
|
|
40768
40987
|
return _regenerator().w(function (_context6) {
|
|
40769
40988
|
while (1) switch (_context6.p = _context6.n) {
|
|
40770
40989
|
case 0:
|
|
@@ -40796,10 +41015,10 @@ var UPDATE_ALLERGEN_MASTER_STATUS = createAsyncThunk("allergenMasterApiSlice/upd
|
|
|
40796
41015
|
}));
|
|
40797
41016
|
case 3:
|
|
40798
41017
|
_context6.p = 3;
|
|
40799
|
-
|
|
40800
|
-
alert(
|
|
41018
|
+
_t4 = _context6.v;
|
|
41019
|
+
alert(_t4.message);
|
|
40801
41020
|
return _context6.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40802
|
-
message:
|
|
41021
|
+
message: _t4.message
|
|
40803
41022
|
})));
|
|
40804
41023
|
}
|
|
40805
41024
|
}, _callee6, null, [[1, 3]]);
|
|
@@ -40811,7 +41030,7 @@ var ALLERGEN_MASTER_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_m
|
|
|
40811
41030
|
rejectWithValue,
|
|
40812
41031
|
data,
|
|
40813
41032
|
_args7 = arguments,
|
|
40814
|
-
|
|
41033
|
+
_t5;
|
|
40815
41034
|
return _regenerator().w(function (_context7) {
|
|
40816
41035
|
while (1) switch (_context7.p = _context7.n) {
|
|
40817
41036
|
case 0:
|
|
@@ -40826,9 +41045,9 @@ var ALLERGEN_MASTER_MASTER = createAsyncThunk("allergenMasterApiSlice/allergen_m
|
|
|
40826
41045
|
}));
|
|
40827
41046
|
case 3:
|
|
40828
41047
|
_context7.p = 3;
|
|
40829
|
-
|
|
41048
|
+
_t5 = _context7.v;
|
|
40830
41049
|
return _context7.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
40831
|
-
message:
|
|
41050
|
+
message: _t5.message
|
|
40832
41051
|
})));
|
|
40833
41052
|
}
|
|
40834
41053
|
}, _callee7, null, [[1, 3]]);
|