primary_care_admin_binder 0.1.4 → 0.1.5
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 +454 -264
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -364,6 +364,10 @@ function _defineProperty(obj, key, value) {
|
|
|
364
364
|
return obj;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
+
function _objectDestructuringEmpty(obj) {
|
|
368
|
+
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
369
|
+
}
|
|
370
|
+
|
|
367
371
|
function _toConsumableArray(arr) {
|
|
368
372
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
369
373
|
}
|
|
@@ -21726,7 +21730,7 @@ var queries$c = {
|
|
|
21726
21730
|
db_name: dbName,
|
|
21727
21731
|
entity: "Organization",
|
|
21728
21732
|
// filter: "'CodingMaster/11898' IN Organization.OrgType",
|
|
21729
|
-
filter: "Organization.ParentOrgID ==[] && Organization.activestatus==true ",
|
|
21733
|
+
filter: "Organization.ParentOrgID ==[] && Organization.activestatus==true && Organization.isExternal==".concat(type.isexternal),
|
|
21730
21734
|
// return_fields: "MERGE(Organization,{Organization:(FOR org IN Organization FILTER Organization.id IN org.ParentOrgID AND 'CodingMaster/11899' IN org.OrgType RETURN MERGE(org,{facility:(FOR fac IN Organization FILTER 'CodingMaster/11058' IN fac.OrgType AND org.id IN fac.ParentOrgID RETURN fac)}) )})",
|
|
21731
21735
|
return_fields: "MERGE(Organization,{Organization:(FOR org IN Organization FILTER Organization.id IN org.ParentOrgID RETURN MERGE(org,{facility:(FOR fac IN Organization FILTER org.id IN fac.ParentOrgID RETURN fac)}) )})"
|
|
21732
21736
|
};
|
|
@@ -21740,7 +21744,7 @@ var queries$c = {
|
|
|
21740
21744
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})"
|
|
21741
21745
|
};
|
|
21742
21746
|
},
|
|
21743
|
-
|
|
21747
|
+
getParentEntityFull: function getParentEntityFull() {
|
|
21744
21748
|
return {
|
|
21745
21749
|
db_name: dbName,
|
|
21746
21750
|
entity: "Organization",
|
|
@@ -21749,6 +21753,23 @@ var queries$c = {
|
|
|
21749
21753
|
return_fields: "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
21750
21754
|
};
|
|
21751
21755
|
},
|
|
21756
|
+
getParentEntity: function getParentEntity(type) {
|
|
21757
|
+
// return {
|
|
21758
|
+
// db_name: dbName,
|
|
21759
|
+
// entity: "Organization",
|
|
21760
|
+
// sort: "Organization.name",
|
|
21761
|
+
// filter: `Organization.activestatus==true AND Organization.active==true && Organization.isExternal==${type.isexternal} && Organization.OrgType === '${type.entityType}'`,
|
|
21762
|
+
// return_fields:
|
|
21763
|
+
// "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}",
|
|
21764
|
+
// };
|
|
21765
|
+
return {
|
|
21766
|
+
"db_name": dbName,
|
|
21767
|
+
"entity": "Organization",
|
|
21768
|
+
"sort": "Organization.name",
|
|
21769
|
+
"filter": "Organization.activestatus==true AND Organization.active==true && Organization.isExternal==".concat(type.isexternal, " && DOCUMENT(Organization.OrgType)[*].code ANY == '").concat(type.entityType, "'"),
|
|
21770
|
+
"return_fields": "{OrgType: Organization.OrgType, _id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
21771
|
+
};
|
|
21772
|
+
},
|
|
21752
21773
|
getLevelOfCare: function getLevelOfCare() {
|
|
21753
21774
|
return {
|
|
21754
21775
|
db_name: dbName,
|
|
@@ -22109,7 +22130,7 @@ var ReadTreeDetailJson = function ReadTreeDetailJson(data, parentOrgName) {
|
|
|
22109
22130
|
|
|
22110
22131
|
var generateJson$7 = {
|
|
22111
22132
|
insert_json: function insert_json(data, key) {
|
|
22112
|
-
var _data$Identification, _data$Alias, _data$Address, _data$Contact, _data$ContactPersonDe, _data$specialtyDetail, _data$ParentEntity, _data$ParentEntity2, _data$LevelOfCare, _data$imageDetails$, _data$imageDetails$2, _data$imageDetails$3, _data$imageDetails$4;
|
|
22133
|
+
var _data$Identification, _data$Alias, _data$Address, _data$Contact, _data$ContactPersonDe, _data$specialtyDetail, _data$external, _data$ParentEntity, _data$ParentEntity2, _data$LevelOfCare, _data$imageDetails$, _data$imageDetails$2, _data$imageDetails$3, _data$imageDetails$4;
|
|
22113
22134
|
|
|
22114
22135
|
var identifierArr = data === null || data === void 0 ? void 0 : (_data$Identification = data.Identification) === null || _data$Identification === void 0 ? void 0 : _data$Identification.map(function (v, i) {
|
|
22115
22136
|
var _v$use;
|
|
@@ -22247,6 +22268,7 @@ var generateJson$7 = {
|
|
|
22247
22268
|
contact: contactpersondetailsArr,
|
|
22248
22269
|
specialtyDetails: specialtyDetailsArr
|
|
22249
22270
|
}, id), {}, {
|
|
22271
|
+
isExternal: (_data$external = data === null || data === void 0 ? void 0 : data.external) !== null && _data$external !== void 0 ? _data$external : false,
|
|
22250
22272
|
ParentOrgID: data !== null && data !== void 0 && (_data$ParentEntity = data.ParentEntity) !== null && _data$ParentEntity !== void 0 && _data$ParentEntity.value ? [data === null || data === void 0 ? void 0 : (_data$ParentEntity2 = data.ParentEntity) === null || _data$ParentEntity2 === void 0 ? void 0 : _data$ParentEntity2.value] : [],
|
|
22251
22273
|
OrgType: [data.EntityType.value],
|
|
22252
22274
|
levelofcareid: data === null || data === void 0 ? void 0 : (_data$LevelOfCare = data.LevelOfCare) === null || _data$LevelOfCare === void 0 ? void 0 : _data$LevelOfCare.value,
|
|
@@ -22266,7 +22288,7 @@ var generateJson$7 = {
|
|
|
22266
22288
|
};
|
|
22267
22289
|
var generateReadJson$2 = {
|
|
22268
22290
|
read_json: function read_json(data, Parentget) {
|
|
22269
|
-
var _data$identifier, _data$alias, _data$address, _data$telecom, _data$contact, _data$OrgType$, _data$OrgType$2, _data$ParentOrgID, _data$levelofcareid, _data$levelofcareid2, _data$logo$, _data$logo$2, _data$logo$3, _data$logo$4, _data$logo$5;
|
|
22291
|
+
var _data$identifier, _data$alias, _data$address, _data$telecom, _data$contact, _data$OrgType$, _data$OrgType$2, _data$ParentOrgID, _data$levelofcareid, _data$levelofcareid2, _data$isExternal, _data$logo$, _data$logo$2, _data$logo$3, _data$logo$4, _data$logo$5;
|
|
22270
22292
|
|
|
22271
22293
|
var IdentificationArr = data === null || data === void 0 ? void 0 : (_data$identifier = data.identifier) === null || _data$identifier === void 0 ? void 0 : _data$identifier.map(function (v, i) {
|
|
22272
22294
|
var _v$period$, _v$period$2, _v$user, _v$user2, _v$Type, _v$Type2;
|
|
@@ -22455,6 +22477,7 @@ var generateReadJson$2 = {
|
|
|
22455
22477
|
Contact_: ContactArr,
|
|
22456
22478
|
ContactPersonDetails_: ContactPersonDetailsArr,
|
|
22457
22479
|
specialtyDetails: specialtyDetailsarr,
|
|
22480
|
+
external: (_data$isExternal = data === null || data === void 0 ? void 0 : data.isExternal) !== null && _data$isExternal !== void 0 ? _data$isExternal : false,
|
|
22458
22481
|
imageDetails_: data !== null && data !== void 0 && (_data$logo$ = data.logo[0]) !== null && _data$logo$ !== void 0 && _data$logo$.fileid ? [{
|
|
22459
22482
|
fileid: data === null || data === void 0 ? void 0 : (_data$logo$2 = data.logo[0]) === null || _data$logo$2 === void 0 ? void 0 : _data$logo$2.fileid,
|
|
22460
22483
|
filetype: data === null || data === void 0 ? void 0 : (_data$logo$3 = data.logo[0]) === null || _data$logo$3 === void 0 ? void 0 : _data$logo$3.filetype,
|
|
@@ -22467,8 +22490,10 @@ var generateReadJson$2 = {
|
|
|
22467
22490
|
|
|
22468
22491
|
var _extraReducers$k;
|
|
22469
22492
|
var ORGANIZATION_TREE_READ = createAsyncThunk("organizationSlice/organizationTreeList", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
22470
|
-
var
|
|
22493
|
+
var payload,
|
|
22494
|
+
_ref2,
|
|
22471
22495
|
rejectWithValue,
|
|
22496
|
+
type,
|
|
22472
22497
|
data,
|
|
22473
22498
|
getJson,
|
|
22474
22499
|
_args = arguments;
|
|
@@ -22477,11 +22502,13 @@ var ORGANIZATION_TREE_READ = createAsyncThunk("organizationSlice/organizationTre
|
|
|
22477
22502
|
while (1) {
|
|
22478
22503
|
switch (_context.prev = _context.next) {
|
|
22479
22504
|
case 0:
|
|
22505
|
+
payload = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
22480
22506
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
22481
22507
|
_context.prev = 2;
|
|
22508
|
+
type = payload;
|
|
22482
22509
|
_context.next = 6;
|
|
22483
22510
|
return fetchData({
|
|
22484
|
-
body: JSON.stringify(queries$c.getTreeStuct())
|
|
22511
|
+
body: JSON.stringify(queries$c.getTreeStuct(type))
|
|
22485
22512
|
}, __readDocumentUrl__);
|
|
22486
22513
|
|
|
22487
22514
|
case 6:
|
|
@@ -22530,12 +22557,13 @@ var ORGANIZATION_ENTITY_TYPE = createAsyncThunk("organizationSlice/organizationE
|
|
|
22530
22557
|
var _val$coding$, _val$coding$2;
|
|
22531
22558
|
|
|
22532
22559
|
if (val !== null && val !== void 0 && (_val$coding$ = val.coding[0]) !== null && _val$coding$ !== void 0 && _val$coding$.display && val !== null && val !== void 0 && (_val$coding$2 = val.coding[0]) !== null && _val$coding$2 !== void 0 && _val$coding$2._id) {
|
|
22533
|
-
var _val$coding$3;
|
|
22560
|
+
var _val$coding$3, _val$coding, _val$coding$4;
|
|
22534
22561
|
|
|
22535
|
-
result.push({
|
|
22562
|
+
result.push(_objectSpread2({
|
|
22536
22563
|
title: val === null || val === void 0 ? void 0 : (_val$coding$3 = val.coding[0]) === null || _val$coding$3 === void 0 ? void 0 : _val$coding$3.display,
|
|
22537
|
-
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
22538
|
-
|
|
22564
|
+
value: val === null || val === void 0 ? void 0 : val.coding[0]._id,
|
|
22565
|
+
code: val === null || val === void 0 ? void 0 : (_val$coding = val.coding) === null || _val$coding === void 0 ? void 0 : (_val$coding$4 = _val$coding[0]) === null || _val$coding$4 === void 0 ? void 0 : _val$coding$4.code
|
|
22566
|
+
}, val));
|
|
22539
22567
|
}
|
|
22540
22568
|
});
|
|
22541
22569
|
return _context2.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
@@ -22557,8 +22585,10 @@ var ORGANIZATION_ENTITY_TYPE = createAsyncThunk("organizationSlice/organizationE
|
|
|
22557
22585
|
}, _callee2, null, [[2, 12]]);
|
|
22558
22586
|
})));
|
|
22559
22587
|
var ORGANIZATION_GET_PARENT_ENTITY = createAsyncThunk("organizationSlice/orgParEntity", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
22560
|
-
var
|
|
22588
|
+
var payload,
|
|
22589
|
+
_ref6,
|
|
22561
22590
|
rejectWithValue,
|
|
22591
|
+
type,
|
|
22562
22592
|
data,
|
|
22563
22593
|
result,
|
|
22564
22594
|
_args3 = arguments;
|
|
@@ -22567,11 +22597,13 @@ var ORGANIZATION_GET_PARENT_ENTITY = createAsyncThunk("organizationSlice/orgParE
|
|
|
22567
22597
|
while (1) {
|
|
22568
22598
|
switch (_context3.prev = _context3.next) {
|
|
22569
22599
|
case 0:
|
|
22600
|
+
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
22570
22601
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
22571
22602
|
_context3.prev = 2;
|
|
22603
|
+
type = payload;
|
|
22572
22604
|
_context3.next = 6;
|
|
22573
22605
|
return fetchData({
|
|
22574
|
-
body: JSON.stringify(queries$c.getParentEntity())
|
|
22606
|
+
body: JSON.stringify(queries$c.getParentEntity(type))
|
|
22575
22607
|
}, __readDocumentUrl__);
|
|
22576
22608
|
|
|
22577
22609
|
case 6:
|
|
@@ -22672,13 +22704,13 @@ var ORGANIZATION_GET_USE_IDENTIFICATION = createAsyncThunk("organizationSlice/or
|
|
|
22672
22704
|
data = _context5.sent;
|
|
22673
22705
|
result = [];
|
|
22674
22706
|
data.result.map(function (val, i) {
|
|
22675
|
-
var _val$coding$
|
|
22707
|
+
var _val$coding$5, _val$coding$6;
|
|
22676
22708
|
|
|
22677
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
22678
|
-
var _val$coding$
|
|
22709
|
+
if (val !== null && val !== void 0 && (_val$coding$5 = val.coding[0]) !== null && _val$coding$5 !== void 0 && _val$coding$5.display && val !== null && val !== void 0 && (_val$coding$6 = val.coding[0]) !== null && _val$coding$6 !== void 0 && _val$coding$6._id) {
|
|
22710
|
+
var _val$coding$7;
|
|
22679
22711
|
|
|
22680
22712
|
result.push({
|
|
22681
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
22713
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$7 = val.coding[0]) === null || _val$coding$7 === void 0 ? void 0 : _val$coding$7.display,
|
|
22682
22714
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
22683
22715
|
});
|
|
22684
22716
|
}
|
|
@@ -22723,13 +22755,13 @@ var ORGANIZATION_GET_IDTYPE_IDENTIF = createAsyncThunk("organizationSlice/orgIdT
|
|
|
22723
22755
|
data = _context6.sent;
|
|
22724
22756
|
result = [];
|
|
22725
22757
|
data.result.map(function (val, i) {
|
|
22726
|
-
var _val$coding$
|
|
22758
|
+
var _val$coding$8, _val$coding$9;
|
|
22727
22759
|
|
|
22728
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
22729
|
-
var _val$coding$
|
|
22760
|
+
if (val !== null && val !== void 0 && (_val$coding$8 = val.coding[0]) !== null && _val$coding$8 !== void 0 && _val$coding$8.display && val !== null && val !== void 0 && (_val$coding$9 = val.coding[0]) !== null && _val$coding$9 !== void 0 && _val$coding$9._id) {
|
|
22761
|
+
var _val$coding$10;
|
|
22730
22762
|
|
|
22731
22763
|
result.push({
|
|
22732
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
22764
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$10 = val.coding[0]) === null || _val$coding$10 === void 0 ? void 0 : _val$coding$10.display,
|
|
22733
22765
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
22734
22766
|
});
|
|
22735
22767
|
}
|
|
@@ -22774,13 +22806,13 @@ var ORGANIZATION_GET_ALIAS_TYPE = createAsyncThunk("organizationSlice/aliastype"
|
|
|
22774
22806
|
data = _context7.sent;
|
|
22775
22807
|
result = [];
|
|
22776
22808
|
data.result.map(function (val, i) {
|
|
22777
|
-
var _val$coding$
|
|
22809
|
+
var _val$coding$11, _val$coding$12;
|
|
22778
22810
|
|
|
22779
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
22780
|
-
var _val$coding$
|
|
22811
|
+
if (val !== null && val !== void 0 && (_val$coding$11 = val.coding[0]) !== null && _val$coding$11 !== void 0 && _val$coding$11.display && val !== null && val !== void 0 && (_val$coding$12 = val.coding[0]) !== null && _val$coding$12 !== void 0 && _val$coding$12._id) {
|
|
22812
|
+
var _val$coding$13;
|
|
22781
22813
|
|
|
22782
22814
|
result.push({
|
|
22783
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
22815
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$13 = val.coding[0]) === null || _val$coding$13 === void 0 ? void 0 : _val$coding$13.display,
|
|
22784
22816
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
22785
22817
|
});
|
|
22786
22818
|
}
|
|
@@ -22936,13 +22968,13 @@ var ORGANIZATION_GET_ADD_TYPE = createAsyncThunk("organizationSlice/orgAddType",
|
|
|
22936
22968
|
data = _context10.sent;
|
|
22937
22969
|
result = [];
|
|
22938
22970
|
data.result.map(function (val, i) {
|
|
22939
|
-
var _val$coding$
|
|
22971
|
+
var _val$coding$14, _val$coding$15;
|
|
22940
22972
|
|
|
22941
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
22942
|
-
var _val$coding$
|
|
22973
|
+
if (val !== null && val !== void 0 && (_val$coding$14 = val.coding[0]) !== null && _val$coding$14 !== void 0 && _val$coding$14.display && val !== null && val !== void 0 && (_val$coding$15 = val.coding[0]) !== null && _val$coding$15 !== void 0 && _val$coding$15._id) {
|
|
22974
|
+
var _val$coding$16;
|
|
22943
22975
|
|
|
22944
22976
|
result.push({
|
|
22945
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
22977
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$16 = val.coding[0]) === null || _val$coding$16 === void 0 ? void 0 : _val$coding$16.display,
|
|
22946
22978
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
22947
22979
|
});
|
|
22948
22980
|
}
|
|
@@ -22987,13 +23019,13 @@ var ORGANIZATION_GET_ADD_USE = createAsyncThunk("organizationSlice/orgAddUSE", /
|
|
|
22987
23019
|
data = _context11.sent;
|
|
22988
23020
|
result = [];
|
|
22989
23021
|
data.result.map(function (val, i) {
|
|
22990
|
-
var _val$coding$
|
|
23022
|
+
var _val$coding$17, _val$coding$18;
|
|
22991
23023
|
|
|
22992
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
22993
|
-
var _val$coding$
|
|
23024
|
+
if (val !== null && val !== void 0 && (_val$coding$17 = val.coding[0]) !== null && _val$coding$17 !== void 0 && _val$coding$17.display && val !== null && val !== void 0 && (_val$coding$18 = val.coding[0]) !== null && _val$coding$18 !== void 0 && _val$coding$18._id) {
|
|
23025
|
+
var _val$coding$19;
|
|
22994
23026
|
|
|
22995
23027
|
result.push({
|
|
22996
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
23028
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$19 = val.coding[0]) === null || _val$coding$19 === void 0 ? void 0 : _val$coding$19.display,
|
|
22997
23029
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
22998
23030
|
});
|
|
22999
23031
|
}
|
|
@@ -23295,13 +23327,13 @@ var ORGANIZATION_GET_CONTACTDETAILMODE = createAsyncThunk("organizationSlice/org
|
|
|
23295
23327
|
data = _context17.sent;
|
|
23296
23328
|
result = [];
|
|
23297
23329
|
data.result.map(function (val, i) {
|
|
23298
|
-
var _val$coding$
|
|
23330
|
+
var _val$coding$20, _val$coding$21;
|
|
23299
23331
|
|
|
23300
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
23301
|
-
var _val$coding$
|
|
23332
|
+
if (val !== null && val !== void 0 && (_val$coding$20 = val.coding[0]) !== null && _val$coding$20 !== void 0 && _val$coding$20.display && val !== null && val !== void 0 && (_val$coding$21 = val.coding[0]) !== null && _val$coding$21 !== void 0 && _val$coding$21._id) {
|
|
23333
|
+
var _val$coding$22;
|
|
23302
23334
|
|
|
23303
23335
|
result.push({
|
|
23304
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
23336
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$22 = val.coding[0]) === null || _val$coding$22 === void 0 ? void 0 : _val$coding$22.display,
|
|
23305
23337
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
23306
23338
|
});
|
|
23307
23339
|
}
|
|
@@ -23397,13 +23429,13 @@ var ORGANIZATION_GET_CONTACTDETAILUSE = createAsyncThunk("organizationSlice/orgC
|
|
|
23397
23429
|
data = _context19.sent;
|
|
23398
23430
|
result = [];
|
|
23399
23431
|
data.result.map(function (val, i) {
|
|
23400
|
-
var _val$coding$
|
|
23432
|
+
var _val$coding$23, _val$coding$24;
|
|
23401
23433
|
|
|
23402
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
23403
|
-
var _val$coding$
|
|
23434
|
+
if (val !== null && val !== void 0 && (_val$coding$23 = val.coding[0]) !== null && _val$coding$23 !== void 0 && _val$coding$23.display && val !== null && val !== void 0 && (_val$coding$24 = val.coding[0]) !== null && _val$coding$24 !== void 0 && _val$coding$24._id) {
|
|
23435
|
+
var _val$coding$25;
|
|
23404
23436
|
|
|
23405
23437
|
result.push({
|
|
23406
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
23438
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$25 = val.coding[0]) === null || _val$coding$25 === void 0 ? void 0 : _val$coding$25.display,
|
|
23407
23439
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
23408
23440
|
});
|
|
23409
23441
|
}
|
|
@@ -23448,13 +23480,13 @@ var ORGANIZATION_GET_CONTACTDETAILPRIORITY = createAsyncThunk("organizationSlice
|
|
|
23448
23480
|
data = _context20.sent;
|
|
23449
23481
|
result = [];
|
|
23450
23482
|
data.result.map(function (val, i) {
|
|
23451
|
-
var _val$coding$
|
|
23483
|
+
var _val$coding$26, _val$coding$27;
|
|
23452
23484
|
|
|
23453
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
23454
|
-
var _val$coding$
|
|
23485
|
+
if (val !== null && val !== void 0 && (_val$coding$26 = val.coding[0]) !== null && _val$coding$26 !== void 0 && _val$coding$26.display && val !== null && val !== void 0 && (_val$coding$27 = val.coding[0]) !== null && _val$coding$27 !== void 0 && _val$coding$27._id) {
|
|
23486
|
+
var _val$coding$28;
|
|
23455
23487
|
|
|
23456
23488
|
result.push({
|
|
23457
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
23489
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$28 = val.coding[0]) === null || _val$coding$28 === void 0 ? void 0 : _val$coding$28.display,
|
|
23458
23490
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
23459
23491
|
});
|
|
23460
23492
|
}
|
|
@@ -23499,13 +23531,13 @@ var ORGANIZATION_GET_CONTACT_PREFIX = createAsyncThunk("organizationSlice/orgNam
|
|
|
23499
23531
|
data = _context21.sent;
|
|
23500
23532
|
result = [];
|
|
23501
23533
|
data.result.map(function (val, i) {
|
|
23502
|
-
var _val$coding$
|
|
23534
|
+
var _val$coding$29, _val$coding$30;
|
|
23503
23535
|
|
|
23504
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
23505
|
-
var _val$coding$
|
|
23536
|
+
if (val !== null && val !== void 0 && (_val$coding$29 = val.coding[0]) !== null && _val$coding$29 !== void 0 && _val$coding$29.display && val !== null && val !== void 0 && (_val$coding$30 = val.coding[0]) !== null && _val$coding$30 !== void 0 && _val$coding$30._id) {
|
|
23537
|
+
var _val$coding$31;
|
|
23506
23538
|
|
|
23507
23539
|
result.push({
|
|
23508
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
23540
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$31 = val.coding[0]) === null || _val$coding$31 === void 0 ? void 0 : _val$coding$31.display,
|
|
23509
23541
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
23510
23542
|
});
|
|
23511
23543
|
}
|
|
@@ -23550,13 +23582,13 @@ var ORGANIZATION_GET_CONTACT_SUFFIX = createAsyncThunk("organizationSlice/orgNam
|
|
|
23550
23582
|
data = _context22.sent;
|
|
23551
23583
|
result = [];
|
|
23552
23584
|
data.result.map(function (val, i) {
|
|
23553
|
-
var _val$coding$
|
|
23585
|
+
var _val$coding$32, _val$coding$33;
|
|
23554
23586
|
|
|
23555
|
-
if (val !== null && val !== void 0 && (_val$coding$
|
|
23556
|
-
var _val$coding$
|
|
23587
|
+
if (val !== null && val !== void 0 && (_val$coding$32 = val.coding[0]) !== null && _val$coding$32 !== void 0 && _val$coding$32.display && val !== null && val !== void 0 && (_val$coding$33 = val.coding[0]) !== null && _val$coding$33 !== void 0 && _val$coding$33._id) {
|
|
23588
|
+
var _val$coding$34;
|
|
23557
23589
|
|
|
23558
23590
|
result.push({
|
|
23559
|
-
title: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
23591
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding$34 = val.coding[0]) === null || _val$coding$34 === void 0 ? void 0 : _val$coding$34.display,
|
|
23560
23592
|
value: val === null || val === void 0 ? void 0 : val.coding[0]._id
|
|
23561
23593
|
});
|
|
23562
23594
|
}
|
|
@@ -23601,14 +23633,14 @@ var ORGANIZATION_GET_CONTACT_DESI = createAsyncThunk("organizationSlice/position
|
|
|
23601
23633
|
data = _context23.sent;
|
|
23602
23634
|
result = [];
|
|
23603
23635
|
data.result.map(function (val, i) {
|
|
23604
|
-
var _val$
|
|
23636
|
+
var _val$coding2, _val$coding2$;
|
|
23605
23637
|
|
|
23606
|
-
if (val !== null && val !== void 0 && (_val$
|
|
23607
|
-
var _val$
|
|
23638
|
+
if (val !== null && val !== void 0 && (_val$coding2 = val.coding) !== null && _val$coding2 !== void 0 && (_val$coding2$ = _val$coding2[0]) !== null && _val$coding2$ !== void 0 && _val$coding2$.display) {
|
|
23639
|
+
var _val$coding3, _val$coding3$, _val$coding4, _val$coding4$;
|
|
23608
23640
|
|
|
23609
23641
|
result.push({
|
|
23610
|
-
title: val === null || val === void 0 ? void 0 : (_val$
|
|
23611
|
-
value: val === null || val === void 0 ? void 0 : (_val$
|
|
23642
|
+
title: val === null || val === void 0 ? void 0 : (_val$coding3 = val.coding) === null || _val$coding3 === void 0 ? void 0 : (_val$coding3$ = _val$coding3[0]) === null || _val$coding3$ === void 0 ? void 0 : _val$coding3$.display,
|
|
23643
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding4 = val.coding) === null || _val$coding4 === void 0 ? void 0 : (_val$coding4$ = _val$coding4[0]) === null || _val$coding4$ === void 0 ? void 0 : _val$coding4$._id
|
|
23612
23644
|
});
|
|
23613
23645
|
}
|
|
23614
23646
|
});
|
|
@@ -23695,7 +23727,7 @@ var ORG_FROM_GET = createAsyncThunk("organizationSlice/getOrganization", /*#__PU
|
|
|
23695
23727
|
key = payload.key;
|
|
23696
23728
|
_context25.next = 6;
|
|
23697
23729
|
return fetchData({
|
|
23698
|
-
body: JSON.stringify(queries$c.
|
|
23730
|
+
body: JSON.stringify(queries$c.getParentEntityFull())
|
|
23699
23731
|
}, __readDocumentUrl__);
|
|
23700
23732
|
|
|
23701
23733
|
case 6:
|
|
@@ -23757,16 +23789,16 @@ var ORGANIZATION_GET_SPECIALTY_DROP = createAsyncThunk("organizationSlice/specia
|
|
|
23757
23789
|
data = _context26.sent;
|
|
23758
23790
|
result = [];
|
|
23759
23791
|
data.result.map(function (val, i) {
|
|
23760
|
-
var _val$
|
|
23792
|
+
var _val$coding5, _val$coding6, _val$coding6$;
|
|
23761
23793
|
|
|
23762
|
-
if (val !== null && val !== void 0 && (_val$
|
|
23763
|
-
var _val$
|
|
23794
|
+
if (val !== null && val !== void 0 && (_val$coding5 = val.coding) !== null && _val$coding5 !== void 0 && _val$coding5[0] && val !== null && val !== void 0 && (_val$coding6 = val.coding) !== null && _val$coding6 !== void 0 && (_val$coding6$ = _val$coding6[0]) !== null && _val$coding6$ !== void 0 && _val$coding6$._id) {
|
|
23795
|
+
var _val$coding7, _val$coding7$, _val$coding8, _val$coding8$, _val$coding9, _val$coding9$, _val$coding10, _val$coding10$, _val$coding11, _val$coding11$;
|
|
23764
23796
|
|
|
23765
23797
|
result.push({
|
|
23766
|
-
label: (val === null || val === void 0 ? void 0 : (_val$
|
|
23767
|
-
value: val === null || val === void 0 ? void 0 : (_val$
|
|
23768
|
-
name: val === null || val === void 0 ? void 0 : (_val$
|
|
23769
|
-
id: val === null || val === void 0 ? void 0 : (_val$
|
|
23798
|
+
label: (val === null || val === void 0 ? void 0 : (_val$coding7 = val.coding) === null || _val$coding7 === void 0 ? void 0 : (_val$coding7$ = _val$coding7[0]) === null || _val$coding7$ === void 0 ? void 0 : _val$coding7$.display) + " (" + (val === null || val === void 0 ? void 0 : (_val$coding8 = val.coding) === null || _val$coding8 === void 0 ? void 0 : (_val$coding8$ = _val$coding8[0]) === null || _val$coding8$ === void 0 ? void 0 : _val$coding8$.code) + ")",
|
|
23799
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding9 = val.coding) === null || _val$coding9 === void 0 ? void 0 : (_val$coding9$ = _val$coding9[0]) === null || _val$coding9$ === void 0 ? void 0 : _val$coding9$.code,
|
|
23800
|
+
name: val === null || val === void 0 ? void 0 : (_val$coding10 = val.coding) === null || _val$coding10 === void 0 ? void 0 : (_val$coding10$ = _val$coding10[0]) === null || _val$coding10$ === void 0 ? void 0 : _val$coding10$.display,
|
|
23801
|
+
id: val === null || val === void 0 ? void 0 : (_val$coding11 = val.coding) === null || _val$coding11 === void 0 ? void 0 : (_val$coding11$ = _val$coding11[0]) === null || _val$coding11$ === void 0 ? void 0 : _val$coding11$._id
|
|
23770
23802
|
});
|
|
23771
23803
|
}
|
|
23772
23804
|
});
|
|
@@ -29478,7 +29510,7 @@ var query$3 = {
|
|
|
29478
29510
|
db_name: "".concat(dbName),
|
|
29479
29511
|
entity: "CA_OrderSet",
|
|
29480
29512
|
filter: "CA_OrderSet._key == '".concat(_key, "' && CA_OrderSet.activestatus == true"),
|
|
29481
|
-
return_fields: "merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:
|
|
29513
|
+
return_fields: "merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:document(comp.orderCatalog),ordercategory:document(comp.ordercategory),ordertype:document(comp.ordertype),IVDosDurUOM:document(comp.IVDosDurUOM),IVInfusRateUOM:document(comp.IVInfusRateUOM),IVInfusRateVolUOM:document(comp.IVInfusRateVolUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltFreqRateUnit:document(comp.dfltFreqRateUnit),dfltFreqValUnit:document(comp.dfltFreqValUnit),dfltOrderUOM:document(comp.dfltOrderUOM),route:document(comp.route),dosageFreqCode:document(comp.dosageFreqCode)}))})"
|
|
29482
29514
|
};
|
|
29483
29515
|
},
|
|
29484
29516
|
status_update_order_set_master: function status_update_order_set_master(data) {
|
|
@@ -29531,7 +29563,16 @@ var dynamicMaster$1 = {
|
|
|
29531
29563
|
sort: "OrderType.shortdesc"
|
|
29532
29564
|
};
|
|
29533
29565
|
},
|
|
29534
|
-
|
|
29566
|
+
drugType: function drugType() {
|
|
29567
|
+
return {
|
|
29568
|
+
db_name: "".concat(dbName),
|
|
29569
|
+
entity: "DrugType",
|
|
29570
|
+
filter: "DrugType.activestatus == true && DrugType.status == true",
|
|
29571
|
+
return_fields: "KEEP(DrugType,'_id','_key','drugtype','longdesc','shortdesc')",
|
|
29572
|
+
sort: "DrugType.shortdesc"
|
|
29573
|
+
};
|
|
29574
|
+
},
|
|
29575
|
+
orderCatalog: function orderCatalog(order_category, order_drug_type) {
|
|
29535
29576
|
return {
|
|
29536
29577
|
db_name: "".concat(dbName),
|
|
29537
29578
|
entity: "OrderCatalog",
|
|
@@ -29539,6 +29580,15 @@ var dynamicMaster$1 = {
|
|
|
29539
29580
|
return_fields: "merge(keep(OrderCatalog,'id','_key','_id','shortdesc','ordertype','ordercategory','ordercatalog','longdesc'),{ordertype:document(OrderCatalog.ordertype)},{ordercategory:document(OrderCatalog.ordercategory)},{OrderCatalogByEncounterTypeAge:document(OrderCatalog.OrderCatalogByEncounterTypeAge)[*].freqappl})",
|
|
29540
29581
|
sort: "OrderCatalog.shortdesc"
|
|
29541
29582
|
};
|
|
29583
|
+
},
|
|
29584
|
+
drugCatalog: function drugCatalog(drug_type) {
|
|
29585
|
+
return {
|
|
29586
|
+
db_name: "".concat(dbName),
|
|
29587
|
+
entity: "DrugMaster",
|
|
29588
|
+
filter: "DrugMaster.DrugType=='".concat(drug_type, "' && DrugMaster.activestatus == true && DrugMaster.statusactive==true"),
|
|
29589
|
+
return_fields: "merge(keep(DrugMaster,'id','_id','_key','ShortDesc','LongDesc','DrugType'),{DrugType:document(DrugMaster.DrugType)})",
|
|
29590
|
+
sort: "DrugMaster.ShortDesc"
|
|
29591
|
+
};
|
|
29542
29592
|
}
|
|
29543
29593
|
};
|
|
29544
29594
|
|
|
@@ -29575,7 +29625,7 @@ var generateJson$2 = function generateJson(data) {
|
|
|
29575
29625
|
var constructComponents = function constructComponents(data) {
|
|
29576
29626
|
var arr = [];
|
|
29577
29627
|
data.map(function (val) {
|
|
29578
|
-
var _val$id, _val$seqNo, _val$orderCatalog$val, _val$orderCatalog, _val$explanatoryNote, _val$practitionerInst, _parseInt, _val$quantity_type$va, _val$quantity_type, _parseInt2, _val$route$value, _val$route, _parseInt3, _val$frequency_type$v, _val$frequency_type, _parseInt4, _val$rate_type$value, _val$rate_type, _parseInt5, _val$duration_type$va, _val$duration_type, _parseInt6, _val$dosage_freq_code, _val$dosage_freq_code2, _parseInt7, _val$in_infusion_rate, _val$in_infusion_rate2, _parseInt8, _val$in_infusion_rate3, _val$in_infusion_rate4, _parseInt9, _val$iv_dosage_durati, _val$iv_dosage_durati2, _val$parentordercatal, _val$parentordercatal2;
|
|
29628
|
+
var _val$id, _val$seqNo, _val$orderCatalog$val, _val$orderCatalog, _val$orderCategory$va, _val$orderCategory, _val$orderTypeDrugTyp, _val$orderTypeDrugTyp2, _val$explanatoryNote, _val$practitionerInst, _parseInt, _val$quantity_type$va, _val$quantity_type, _parseInt2, _val$route$value, _val$route, _parseInt3, _val$frequency_type$v, _val$frequency_type, _parseInt4, _val$rate_type$value, _val$rate_type, _parseInt5, _val$duration_type$va, _val$duration_type, _parseInt6, _val$dosage_freq_code, _val$dosage_freq_code2, _parseInt7, _val$in_infusion_rate, _val$in_infusion_rate2, _parseInt8, _val$in_infusion_rate3, _val$in_infusion_rate4, _parseInt9, _val$iv_dosage_durati, _val$iv_dosage_durati2, _val$parentordercatal, _val$parentordercatal2;
|
|
29579
29629
|
|
|
29580
29630
|
var _key = {};
|
|
29581
29631
|
|
|
@@ -29590,6 +29640,8 @@ var constructComponents = function constructComponents(data) {
|
|
|
29590
29640
|
}, _key), {}, {
|
|
29591
29641
|
seqNo: (_val$seqNo = val === null || val === void 0 ? void 0 : val.seqNo) !== null && _val$seqNo !== void 0 ? _val$seqNo : 0,
|
|
29592
29642
|
orderCatalog: (_val$orderCatalog$val = val === null || val === void 0 ? void 0 : (_val$orderCatalog = val.orderCatalog) === null || _val$orderCatalog === void 0 ? void 0 : _val$orderCatalog.value) !== null && _val$orderCatalog$val !== void 0 ? _val$orderCatalog$val : "",
|
|
29643
|
+
ordercategory: (_val$orderCategory$va = val === null || val === void 0 ? void 0 : (_val$orderCategory = val.orderCategory) === null || _val$orderCategory === void 0 ? void 0 : _val$orderCategory.value) !== null && _val$orderCategory$va !== void 0 ? _val$orderCategory$va : "",
|
|
29644
|
+
ordertype: (_val$orderTypeDrugTyp = val === null || val === void 0 ? void 0 : (_val$orderTypeDrugTyp2 = val.orderTypeDrugType) === null || _val$orderTypeDrugTyp2 === void 0 ? void 0 : _val$orderTypeDrugTyp2.value) !== null && _val$orderTypeDrugTyp !== void 0 ? _val$orderTypeDrugTyp : "",
|
|
29593
29645
|
explNote: (_val$explanatoryNote = val === null || val === void 0 ? void 0 : val.explanatoryNote) !== null && _val$explanatoryNote !== void 0 ? _val$explanatoryNote : "",
|
|
29594
29646
|
practInstr: (_val$practitionerInst = val === null || val === void 0 ? void 0 : val.practitionerInstructions) !== null && _val$practitionerInst !== void 0 ? _val$practitionerInst : "",
|
|
29595
29647
|
required: val === null || val === void 0 ? void 0 : val.required,
|
|
@@ -29621,7 +29673,7 @@ var constructComponents = function constructComponents(data) {
|
|
|
29621
29673
|
var _val$children;
|
|
29622
29674
|
|
|
29623
29675
|
val === null || val === void 0 ? void 0 : (_val$children = val.children) === null || _val$children === void 0 ? void 0 : _val$children.map(function (val_) {
|
|
29624
|
-
var _val_$id, _val_$seqNo, _val_$orderCatalog$va, _val_$orderCatalog, _val_$explanatoryNote, _val_$practitionerIns, _parseInt10, _val_$quantity_type$v, _val_$quantity_type, _parseInt11, _val_$route$value, _val_$route, _parseInt12, _val_$frequency_type$, _val_$frequency_type, _parseInt13, _val_$rate_type$value, _val_$rate_type, _parseInt14, _val_$duration_type$v, _val_$duration_type, _parseInt15, _val_$dosage_freq_cod, _val_$dosage_freq_cod2, _parseInt16, _val_$in_infusion_rat, _val_$in_infusion_rat2, _parseInt17, _val_$in_infusion_rat3, _val_$in_infusion_rat4, _parseInt18, _val_$iv_dosage_durat, _val_$iv_dosage_durat2, _val_$parentordercata, _val_$parentordercata2;
|
|
29676
|
+
var _val_$id, _val_$seqNo, _val_$orderCatalog$va, _val_$orderCatalog, _val$orderCategory$va2, _val$orderCategory2, _val$orderTypeDrugTyp3, _val$orderTypeDrugTyp4, _val_$explanatoryNote, _val_$practitionerIns, _parseInt10, _val_$quantity_type$v, _val_$quantity_type, _parseInt11, _val_$route$value, _val_$route, _parseInt12, _val_$frequency_type$, _val_$frequency_type, _parseInt13, _val_$rate_type$value, _val_$rate_type, _parseInt14, _val_$duration_type$v, _val_$duration_type, _parseInt15, _val_$dosage_freq_cod, _val_$dosage_freq_cod2, _parseInt16, _val_$in_infusion_rat, _val_$in_infusion_rat2, _parseInt17, _val_$in_infusion_rat3, _val_$in_infusion_rat4, _parseInt18, _val_$iv_dosage_durat, _val_$iv_dosage_durat2, _val_$parentordercata, _val_$parentordercata2;
|
|
29625
29677
|
|
|
29626
29678
|
if (val_ !== null && val_ !== void 0 && val_._key) {
|
|
29627
29679
|
({
|
|
@@ -29633,6 +29685,8 @@ var constructComponents = function constructComponents(data) {
|
|
|
29633
29685
|
id: (_val_$id = val_ === null || val_ === void 0 ? void 0 : val_.id) !== null && _val_$id !== void 0 ? _val_$id : 0,
|
|
29634
29686
|
seqNo: (_val_$seqNo = val_ === null || val_ === void 0 ? void 0 : val_.seqNo) !== null && _val_$seqNo !== void 0 ? _val_$seqNo : 0,
|
|
29635
29687
|
orderCatalog: (_val_$orderCatalog$va = val_ === null || val_ === void 0 ? void 0 : (_val_$orderCatalog = val_.orderCatalog) === null || _val_$orderCatalog === void 0 ? void 0 : _val_$orderCatalog.value) !== null && _val_$orderCatalog$va !== void 0 ? _val_$orderCatalog$va : "",
|
|
29688
|
+
ordercategory: (_val$orderCategory$va2 = val === null || val === void 0 ? void 0 : (_val$orderCategory2 = val.orderCategory) === null || _val$orderCategory2 === void 0 ? void 0 : _val$orderCategory2.value) !== null && _val$orderCategory$va2 !== void 0 ? _val$orderCategory$va2 : "",
|
|
29689
|
+
ordertype: (_val$orderTypeDrugTyp3 = val === null || val === void 0 ? void 0 : (_val$orderTypeDrugTyp4 = val.orderTypeDrugType) === null || _val$orderTypeDrugTyp4 === void 0 ? void 0 : _val$orderTypeDrugTyp4.value) !== null && _val$orderTypeDrugTyp3 !== void 0 ? _val$orderTypeDrugTyp3 : "",
|
|
29636
29690
|
explNote: (_val_$explanatoryNote = val_ === null || val_ === void 0 ? void 0 : val_.explanatoryNote) !== null && _val_$explanatoryNote !== void 0 ? _val_$explanatoryNote : "",
|
|
29637
29691
|
practInstr: (_val_$practitionerIns = val_ === null || val_ === void 0 ? void 0 : val_.practitionerInstructions) !== null && _val_$practitionerIns !== void 0 ? _val_$practitionerIns : "",
|
|
29638
29692
|
required: val_ === null || val_ === void 0 ? void 0 : val_.required,
|
|
@@ -29664,7 +29718,7 @@ var constructComponents = function constructComponents(data) {
|
|
|
29664
29718
|
return arr;
|
|
29665
29719
|
};
|
|
29666
29720
|
|
|
29667
|
-
var generateReadJSON$2 = function generateReadJSON(data
|
|
29721
|
+
var generateReadJSON$2 = function generateReadJSON(data) {
|
|
29668
29722
|
var json = {
|
|
29669
29723
|
//INITAIL STATE
|
|
29670
29724
|
parentSeqNumber: null,
|
|
@@ -29752,121 +29806,130 @@ var getSeqNumber = function getSeqNumber(components) {
|
|
|
29752
29806
|
maxNum = c.seqNo;
|
|
29753
29807
|
}
|
|
29754
29808
|
});
|
|
29755
|
-
debugger;
|
|
29756
29809
|
return maxNum + 1;
|
|
29757
29810
|
};
|
|
29758
29811
|
|
|
29759
|
-
var constructTabelData = function constructTabelData(data
|
|
29812
|
+
var constructTabelData = function constructTabelData(data) {
|
|
29760
29813
|
var arr = [];
|
|
29761
|
-
|
|
29762
|
-
|
|
29763
|
-
|
|
29764
|
-
|
|
29765
|
-
|
|
29766
|
-
|
|
29767
|
-
|
|
29768
|
-
|
|
29769
|
-
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
|
|
29781
|
-
|
|
29782
|
-
|
|
29783
|
-
|
|
29784
|
-
|
|
29785
|
-
|
|
29786
|
-
|
|
29787
|
-
|
|
29788
|
-
|
|
29789
|
-
|
|
29790
|
-
|
|
29791
|
-
|
|
29792
|
-
|
|
29793
|
-
|
|
29794
|
-
|
|
29795
|
-
|
|
29796
|
-
|
|
29797
|
-
|
|
29798
|
-
|
|
29799
|
-
|
|
29800
|
-
|
|
29801
|
-
|
|
29802
|
-
|
|
29803
|
-
|
|
29804
|
-
|
|
29805
|
-
|
|
29806
|
-
|
|
29807
|
-
|
|
29808
|
-
|
|
29809
|
-
|
|
29810
|
-
|
|
29811
|
-
|
|
29812
|
-
|
|
29814
|
+
|
|
29815
|
+
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
29816
|
+
data === null || data === void 0 ? void 0 : data.map(function (val) {
|
|
29817
|
+
if (!(val !== null && val !== void 0 && val.parentCatSeqNo)) {
|
|
29818
|
+
var _val$id, _val$_key, _val$ordercategory$_i, _val$seqNo, _val$ordercategory, _val$ordercategory2, _val$ordercategory3, _val$ordercategory4, _val$ordercategory5, _val$ordertype, _val$ordertype2, _val$ordertype3, _val$ordertype4, _val$orderCatalog, _val$orderCatalog2, _val$orderCatalog3, _val$orderCatalog4, _val$orderCatalog5, _val$orderCatalog6, _val$orderCatalog7, _val$orderCatalog8, _val$dfltOrderUOM, _val$dfltOrderUOM2, _val$dfltOrderUOM3, _val$dfltOrderUOM4, _val$dfltOrderUOM5, _val$dfltOrderUOM6, _val$IVInfusRateVol, _val$IVInfusRateVolUO, _val$IVInfusRateVolUO2, _val$IVInfusRateVolUO3, _val$IVInfusRateVolUO4, _val$IVDosDurValue, _val$IVDosDurUOM, _val$IVDosDurUOM2, _val$IVDosDurUOM3, _val$IVDosDurUOM4, _val$IVDosDurValue2, _val$IVDosDurUOM5, _val$IVDosDurUOM6, _val$IVDosDurUOM7, _val$IVDosDurUOM8, _val$dosageFreqCode, _val$dosageFreqCode2, _val$dosageFreqCode3, _val$dosageFreqCode4, _val$startDay, _val$dfltDuration, _val$dfltDurUOM, _val$dfltDurUOM2, _val$dfltDurUOM3, _val$dfltDurUOM4, _val$dfltDurUOM5, _val$dfltDurUOM6, _val$route, _val$route2, _val$route3, _val$route4, _val$route$shortdesc, _val$route5, _val$dfltFreqVal, _val$dfltFreqValUnit, _val$dfltFreqValUnit2, _val$dfltFreqValUnit3, _val$dfltFreqValUnit4, _val$dfltFreqValUnit5, _val$dfltFreqValUnit6, _val$dfltFreqRate, _val$dfltFreqRateUnit, _val$dfltFreqRateUnit2, _val$dfltFreqRateUnit3, _val$dfltFreqRateUnit4, _val$dfltFreqRateUnit5, _val$dfltFreqRateUnit6, _val$additive, _val$parentSequence, _val$parentSequence2, _val$explNote, _val$practInstr, _constructChildrenTab, _obj;
|
|
29819
|
+
|
|
29820
|
+
var obj = (_obj = {
|
|
29821
|
+
id: (_val$id = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id !== void 0 ? _val$id : 0,
|
|
29822
|
+
_key: (_val$_key = val === null || val === void 0 ? void 0 : val._key) !== null && _val$_key !== void 0 ? _val$_key : 0,
|
|
29823
|
+
typeId: (_val$ordercategory$_i = val === null || val === void 0 ? void 0 : val.ordercategory._id) !== null && _val$ordercategory$_i !== void 0 ? _val$ordercategory$_i : "",
|
|
29824
|
+
seqNo: (_val$seqNo = val === null || val === void 0 ? void 0 : val.seqNo) !== null && _val$seqNo !== void 0 ? _val$seqNo : "",
|
|
29825
|
+
orderCategory: (_val$ordercategory = val === null || val === void 0 ? void 0 : val.ordercategory) !== null && _val$ordercategory !== void 0 ? _val$ordercategory : {}
|
|
29826
|
+
}, _defineProperty(_obj, "orderCategory", val !== null && val !== void 0 && (_val$ordercategory2 = val.ordercategory) !== null && _val$ordercategory2 !== void 0 && _val$ordercategory2._id && val !== null && val !== void 0 && (_val$ordercategory3 = val.ordercategory) !== null && _val$ordercategory3 !== void 0 && _val$ordercategory3.shortdesc ? {
|
|
29827
|
+
value: val === null || val === void 0 ? void 0 : (_val$ordercategory4 = val.ordercategory) === null || _val$ordercategory4 === void 0 ? void 0 : _val$ordercategory4._id,
|
|
29828
|
+
label: val === null || val === void 0 ? void 0 : (_val$ordercategory5 = val.ordercategory) === null || _val$ordercategory5 === void 0 ? void 0 : _val$ordercategory5.shortdesc
|
|
29829
|
+
} : {}), _defineProperty(_obj, "orderTypeDrugType", val !== null && val !== void 0 && (_val$ordertype = val.ordertype) !== null && _val$ordertype !== void 0 && _val$ordertype._id && val !== null && val !== void 0 && (_val$ordertype2 = val.ordertype) !== null && _val$ordertype2 !== void 0 && _val$ordertype2.shortdesc ? {
|
|
29830
|
+
value: val === null || val === void 0 ? void 0 : (_val$ordertype3 = val.ordertype) === null || _val$ordertype3 === void 0 ? void 0 : _val$ordertype3._id,
|
|
29831
|
+
label: val === null || val === void 0 ? void 0 : (_val$ordertype4 = val.ordertype) === null || _val$ordertype4 === void 0 ? void 0 : _val$ordertype4.shortdesc
|
|
29832
|
+
} : {}), _defineProperty(_obj, "orderCatalog", val !== null && val !== void 0 && (_val$orderCatalog = val.orderCatalog) !== null && _val$orderCatalog !== void 0 && _val$orderCatalog._id && val !== null && val !== void 0 && (_val$orderCatalog2 = val.orderCatalog) !== null && _val$orderCatalog2 !== void 0 && _val$orderCatalog2.shortdesc ? {
|
|
29833
|
+
value: val === null || val === void 0 ? void 0 : (_val$orderCatalog3 = val.orderCatalog) === null || _val$orderCatalog3 === void 0 ? void 0 : _val$orderCatalog3._id,
|
|
29834
|
+
label: val === null || val === void 0 ? void 0 : (_val$orderCatalog4 = val.orderCatalog) === null || _val$orderCatalog4 === void 0 ? void 0 : _val$orderCatalog4.shortdesc
|
|
29835
|
+
} : val !== null && val !== void 0 && (_val$orderCatalog5 = val.orderCatalog) !== null && _val$orderCatalog5 !== void 0 && _val$orderCatalog5._id && val !== null && val !== void 0 && (_val$orderCatalog6 = val.orderCatalog) !== null && _val$orderCatalog6 !== void 0 && _val$orderCatalog6.ShortDesc ? {
|
|
29836
|
+
value: val === null || val === void 0 ? void 0 : (_val$orderCatalog7 = val.orderCatalog) === null || _val$orderCatalog7 === void 0 ? void 0 : _val$orderCatalog7._id,
|
|
29837
|
+
label: val === null || val === void 0 ? void 0 : (_val$orderCatalog8 = val.orderCatalog) === null || _val$orderCatalog8 === void 0 ? void 0 : _val$orderCatalog8.ShortDesc
|
|
29838
|
+
} : {}), _defineProperty(_obj, "required", val !== null && val !== void 0 && val.required ? val === null || val === void 0 ? void 0 : val.required : false), _defineProperty(_obj, "requiredT", val !== null && val !== void 0 && val.required ? (val === null || val === void 0 ? void 0 : val.required) === true ? "Yes" : "No" : "No"), _defineProperty(_obj, "quantity_number", val !== null && val !== void 0 && val.dfltOrderQty ? val === null || val === void 0 ? void 0 : val.dfltOrderQty : ""), _defineProperty(_obj, "quantity_type", val !== null && val !== void 0 && (_val$dfltOrderUOM = val.dfltOrderUOM) !== null && _val$dfltOrderUOM !== void 0 && _val$dfltOrderUOM._id && val !== null && val !== void 0 && (_val$dfltOrderUOM2 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM2 !== void 0 && _val$dfltOrderUOM2.display ? {
|
|
29839
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM3 = val.dfltOrderUOM) === null || _val$dfltOrderUOM3 === void 0 ? void 0 : _val$dfltOrderUOM3._id,
|
|
29840
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM4 = val.dfltOrderUOM) === null || _val$dfltOrderUOM4 === void 0 ? void 0 : _val$dfltOrderUOM4.display
|
|
29841
|
+
} : {}), _defineProperty(_obj, "quantityT", val !== null && val !== void 0 && (_val$dfltOrderUOM5 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM5 !== void 0 && _val$dfltOrderUOM5.display && val !== null && val !== void 0 && val.dfltOrderQty ? (val === null || val === void 0 ? void 0 : val.dfltOrderQty) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM6 = val.dfltOrderUOM) === null || _val$dfltOrderUOM6 === void 0 ? void 0 : _val$dfltOrderUOM6.display) : "-"), _defineProperty(_obj, "in_infusion_rate_volume_number", (_val$IVInfusRateVol = val === null || val === void 0 ? void 0 : val.IVInfusRateVol) !== null && _val$IVInfusRateVol !== void 0 ? _val$IVInfusRateVol : ""), _defineProperty(_obj, "in_infusion_rate_volume_type", val !== null && val !== void 0 && (_val$IVInfusRateVolUO = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO !== void 0 && _val$IVInfusRateVolUO._id && val !== null && val !== void 0 && (_val$IVInfusRateVolUO2 = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO2 !== void 0 && _val$IVInfusRateVolUO2.display ? {
|
|
29842
|
+
value: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO3 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO3 === void 0 ? void 0 : _val$IVInfusRateVolUO3._id,
|
|
29843
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO4 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO4 === void 0 ? void 0 : _val$IVInfusRateVolUO4.display
|
|
29844
|
+
} : {}), _defineProperty(_obj, "in_infusion_rate_duration_number", (_val$IVDosDurValue = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue !== void 0 ? _val$IVDosDurValue : ""), _defineProperty(_obj, "in_infusion_rate_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM = val.IVDosDurUOM) !== null && _val$IVDosDurUOM !== void 0 && _val$IVDosDurUOM._id && val !== null && val !== void 0 && (_val$IVDosDurUOM2 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM2 !== void 0 && _val$IVDosDurUOM2.display ? {
|
|
29845
|
+
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM3 = val.IVDosDurUOM) === null || _val$IVDosDurUOM3 === void 0 ? void 0 : _val$IVDosDurUOM3._id,
|
|
29846
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM4 = val.IVDosDurUOM) === null || _val$IVDosDurUOM4 === void 0 ? void 0 : _val$IVDosDurUOM4.display
|
|
29847
|
+
} : {}), _defineProperty(_obj, "iv_dosage_duration_number", (_val$IVDosDurValue2 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue2 !== void 0 ? _val$IVDosDurValue2 : ""), _defineProperty(_obj, "iv_dosage_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM5 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM5 !== void 0 && _val$IVDosDurUOM5._id && val !== null && val !== void 0 && (_val$IVDosDurUOM6 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM6 !== void 0 && _val$IVDosDurUOM6.display ? {
|
|
29848
|
+
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM7 = val.IVDosDurUOM) === null || _val$IVDosDurUOM7 === void 0 ? void 0 : _val$IVDosDurUOM7._id,
|
|
29849
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM8 = val.IVDosDurUOM) === null || _val$IVDosDurUOM8 === void 0 ? void 0 : _val$IVDosDurUOM8.display
|
|
29850
|
+
} : {}), _defineProperty(_obj, "dosage_freq_code", val !== null && val !== void 0 && (_val$dosageFreqCode = val.dosageFreqCode) !== null && _val$dosageFreqCode !== void 0 && _val$dosageFreqCode._id && val !== null && val !== void 0 && (_val$dosageFreqCode2 = val.dosageFreqCode) !== null && _val$dosageFreqCode2 !== void 0 && _val$dosageFreqCode2.shortdesc ? {
|
|
29851
|
+
value: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode3 = val.dosageFreqCode) === null || _val$dosageFreqCode3 === void 0 ? void 0 : _val$dosageFreqCode3._id,
|
|
29852
|
+
label: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode4 = val.dosageFreqCode) === null || _val$dosageFreqCode4 === void 0 ? void 0 : _val$dosageFreqCode4.shortdesc
|
|
29853
|
+
} : {}), _defineProperty(_obj, "startDay", (_val$startDay = val === null || val === void 0 ? void 0 : val.startDay) !== null && _val$startDay !== void 0 ? _val$startDay : ""), _defineProperty(_obj, "duration_number", (_val$dfltDuration = val === null || val === void 0 ? void 0 : val.dfltDuration) !== null && _val$dfltDuration !== void 0 ? _val$dfltDuration : ""), _defineProperty(_obj, "duration_type", val !== null && val !== void 0 && (_val$dfltDurUOM = val.dfltDurUOM) !== null && _val$dfltDurUOM !== void 0 && _val$dfltDurUOM._id && val !== null && val !== void 0 && (_val$dfltDurUOM2 = val.dfltDurUOM) !== null && _val$dfltDurUOM2 !== void 0 && _val$dfltDurUOM2.display ? {
|
|
29854
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM3 = val.dfltDurUOM) === null || _val$dfltDurUOM3 === void 0 ? void 0 : _val$dfltDurUOM3._id,
|
|
29855
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM4 = val.dfltDurUOM) === null || _val$dfltDurUOM4 === void 0 ? void 0 : _val$dfltDurUOM4.display
|
|
29856
|
+
} : {}), _defineProperty(_obj, "durationT", val !== null && val !== void 0 && val.dfltDuration && val !== null && val !== void 0 && (_val$dfltDurUOM5 = val.dfltDurUOM) !== null && _val$dfltDurUOM5 !== void 0 && _val$dfltDurUOM5.display ? (val === null || val === void 0 ? void 0 : val.dfltDuration) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltDurUOM6 = val.dfltDurUOM) === null || _val$dfltDurUOM6 === void 0 ? void 0 : _val$dfltDurUOM6.display) : "-"), _defineProperty(_obj, "route", val !== null && val !== void 0 && (_val$route = val.route) !== null && _val$route !== void 0 && _val$route._id && val !== null && val !== void 0 && (_val$route2 = val.route) !== null && _val$route2 !== void 0 && _val$route2.shortdesc ? {
|
|
29857
|
+
value: val === null || val === void 0 ? void 0 : (_val$route3 = val.route) === null || _val$route3 === void 0 ? void 0 : _val$route3._id,
|
|
29858
|
+
label: val === null || val === void 0 ? void 0 : (_val$route4 = val.route) === null || _val$route4 === void 0 ? void 0 : _val$route4.shortdesc
|
|
29859
|
+
} : {}), _defineProperty(_obj, "routeT", (_val$route$shortdesc = val === null || val === void 0 ? void 0 : (_val$route5 = val.route) === null || _val$route5 === void 0 ? void 0 : _val$route5.shortdesc) !== null && _val$route$shortdesc !== void 0 ? _val$route$shortdesc : "-"), _defineProperty(_obj, "frequency_number", (_val$dfltFreqVal = val === null || val === void 0 ? void 0 : val.dfltFreqVal) !== null && _val$dfltFreqVal !== void 0 ? _val$dfltFreqVal : 0), _defineProperty(_obj, "frequency_type", val !== null && val !== void 0 && (_val$dfltFreqValUnit = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit !== void 0 && _val$dfltFreqValUnit._id && val !== null && val !== void 0 && (_val$dfltFreqValUnit2 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit2 !== void 0 && _val$dfltFreqValUnit2.display ? {
|
|
29860
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit3 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit3 === void 0 ? void 0 : _val$dfltFreqValUnit3._id,
|
|
29861
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit4 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit4 === void 0 ? void 0 : _val$dfltFreqValUnit4.display
|
|
29862
|
+
} : {}), _defineProperty(_obj, "frequencyT", val !== null && val !== void 0 && val.dfltFreqVal && val !== null && val !== void 0 && (_val$dfltFreqValUnit5 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit5 !== void 0 && _val$dfltFreqValUnit5.display ? (val === null || val === void 0 ? void 0 : val.dfltFreqVal) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit6 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit6 === void 0 ? void 0 : _val$dfltFreqValUnit6.display) : "-"), _defineProperty(_obj, "rate_number", (_val$dfltFreqRate = val === null || val === void 0 ? void 0 : val.dfltFreqRate) !== null && _val$dfltFreqRate !== void 0 ? _val$dfltFreqRate : ""), _defineProperty(_obj, "rate_type", val !== null && val !== void 0 && (_val$dfltFreqRateUnit = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit !== void 0 && _val$dfltFreqRateUnit._id && val !== null && val !== void 0 && (_val$dfltFreqRateUnit2 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit2 !== void 0 && _val$dfltFreqRateUnit2.display ? {
|
|
29863
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit3 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit3 === void 0 ? void 0 : _val$dfltFreqRateUnit3._id,
|
|
29864
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit4 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit4 === void 0 ? void 0 : _val$dfltFreqRateUnit4.display
|
|
29865
|
+
} : {}), _defineProperty(_obj, "rateT", val !== null && val !== void 0 && val.dfltFreqRate && val !== null && val !== void 0 && (_val$dfltFreqRateUnit5 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit5 !== void 0 && _val$dfltFreqRateUnit5.display ? (val === null || val === void 0 ? void 0 : val.dfltFreqRate) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit6 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit6 === void 0 ? void 0 : _val$dfltFreqRateUnit6.display) : "-"), _defineProperty(_obj, "additive", (_val$additive = val === null || val === void 0 ? void 0 : val.additive) !== null && _val$additive !== void 0 ? _val$additive : false), _defineProperty(_obj, "additivT", val !== null && val !== void 0 && val.additive ? (val === null || val === void 0 ? void 0 : val.additive) === true ? "Yes" : "No" : "No"), _defineProperty(_obj, "parentSequence", (_val$parentSequence = val === null || val === void 0 ? void 0 : val.parentSequence) !== null && _val$parentSequence !== void 0 ? _val$parentSequence : ""), _defineProperty(_obj, "parentSequenceT", (_val$parentSequence2 = val === null || val === void 0 ? void 0 : val.parentSequence) !== null && _val$parentSequence2 !== void 0 ? _val$parentSequence2 : "-"), _defineProperty(_obj, "explanatoryNote", (_val$explNote = val === null || val === void 0 ? void 0 : val.explNote) !== null && _val$explNote !== void 0 ? _val$explNote : ""), _defineProperty(_obj, "practitionerInstructions", (_val$practInstr = val === null || val === void 0 ? void 0 : val.practInstr) !== null && _val$practInstr !== void 0 ? _val$practInstr : ""), _defineProperty(_obj, "children", (_constructChildrenTab = constructChildrenTabelData(data, val === null || val === void 0 ? void 0 : val.seqNo)) !== null && _constructChildrenTab !== void 0 ? _constructChildrenTab : []), _obj);
|
|
29866
|
+
arr.push(obj);
|
|
29867
|
+
}
|
|
29868
|
+
});
|
|
29869
|
+
}
|
|
29870
|
+
|
|
29813
29871
|
return arr;
|
|
29814
29872
|
};
|
|
29815
29873
|
|
|
29816
29874
|
var constructChildrenTabelData = function constructChildrenTabelData(data, parentCatSeqNo) {
|
|
29817
29875
|
var arr_ = [];
|
|
29818
|
-
|
|
29819
|
-
|
|
29820
|
-
|
|
29821
|
-
|
|
29822
|
-
|
|
29823
|
-
|
|
29824
|
-
|
|
29825
|
-
|
|
29826
|
-
|
|
29827
|
-
|
|
29828
|
-
|
|
29829
|
-
|
|
29830
|
-
|
|
29831
|
-
|
|
29832
|
-
|
|
29833
|
-
|
|
29834
|
-
|
|
29835
|
-
|
|
29836
|
-
|
|
29837
|
-
|
|
29838
|
-
|
|
29839
|
-
|
|
29840
|
-
|
|
29841
|
-
|
|
29842
|
-
|
|
29843
|
-
|
|
29844
|
-
|
|
29845
|
-
|
|
29846
|
-
|
|
29847
|
-
|
|
29848
|
-
|
|
29849
|
-
|
|
29850
|
-
|
|
29851
|
-
|
|
29852
|
-
|
|
29853
|
-
|
|
29854
|
-
|
|
29855
|
-
|
|
29856
|
-
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
|
|
29862
|
-
|
|
29863
|
-
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
29867
|
-
|
|
29868
|
-
|
|
29869
|
-
|
|
29876
|
+
|
|
29877
|
+
if ((data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
29878
|
+
data === null || data === void 0 ? void 0 : data.map(function (val) {
|
|
29879
|
+
if ((val === null || val === void 0 ? void 0 : val.parentCatSeqNo) === parentCatSeqNo) {
|
|
29880
|
+
var _val$id2, _val$_key2, _val$ordercategory$_i2, _val$seqNo2, _val$ordercategory6, _val$ordercategory7, _val$ordercategory8, _val$ordercategory9, _val$ordercategory10, _val$ordertype5, _val$ordertype6, _val$ordertype7, _val$ordertype8, _val$orderCatalog9, _val$orderCatalog10, _val$orderCatalog11, _val$orderCatalog12, _val$orderCatalog13, _val$orderCatalog14, _val$orderCatalog15, _val$orderCatalog16, _val$dfltOrderUOM7, _val$dfltOrderUOM8, _val$dfltOrderUOM9, _val$dfltOrderUOM10, _val$dfltOrderUOM11, _val$dfltOrderUOM12, _val$IVInfusRateVol2, _val$IVInfusRateVolUO5, _val$IVInfusRateVolUO6, _val$IVInfusRateVolUO7, _val$IVInfusRateVolUO8, _val$IVDosDurValue3, _val$IVDosDurUOM9, _val$IVDosDurUOM10, _val$IVDosDurUOM11, _val$IVDosDurUOM12, _val$IVDosDurValue4, _val$IVDosDurUOM13, _val$IVDosDurUOM14, _val$IVDosDurUOM15, _val$IVDosDurUOM16, _val$dosageFreqCode5, _val$dosageFreqCode6, _val$dosageFreqCode7, _val$dosageFreqCode8, _val$startDay2, _val$dfltDuration2, _val$dfltDurUOM7, _val$dfltDurUOM8, _val$dfltDurUOM9, _val$dfltDurUOM10, _val$dfltDurUOM11, _val$dfltDurUOM12, _val$route6, _val$route7, _val$route8, _val$route9, _val$route$shortdesc2, _val$route10, _val$dfltFreqVal2, _val$dfltFreqValUnit7, _val$dfltFreqValUnit8, _val$dfltFreqValUnit9, _val$dfltFreqValUnit10, _val$dfltFreqValUnit11, _val$dfltFreqValUnit12, _val$dfltFreqRate2, _val$dfltFreqRateUnit7, _val$dfltFreqRateUnit8, _val$dfltFreqRateUnit9, _val$dfltFreqRateUnit10, _val$dfltFreqRateUnit11, _val$dfltFreqRateUnit12, _val$additive2, _val$parentCatSeqNo, _val$parentCatSeqNo2, _val$explNote2, _val$practInstr2, _obj_;
|
|
29881
|
+
|
|
29882
|
+
var obj_ = (_obj_ = {
|
|
29883
|
+
id: (_val$id2 = val === null || val === void 0 ? void 0 : val.id) !== null && _val$id2 !== void 0 ? _val$id2 : 0,
|
|
29884
|
+
_key: (_val$_key2 = val === null || val === void 0 ? void 0 : val._key) !== null && _val$_key2 !== void 0 ? _val$_key2 : 0,
|
|
29885
|
+
typeId: (_val$ordercategory$_i2 = val === null || val === void 0 ? void 0 : val.ordercategory._id) !== null && _val$ordercategory$_i2 !== void 0 ? _val$ordercategory$_i2 : "",
|
|
29886
|
+
seqNo: (_val$seqNo2 = val === null || val === void 0 ? void 0 : val.seqNo) !== null && _val$seqNo2 !== void 0 ? _val$seqNo2 : "",
|
|
29887
|
+
orderCategory: (_val$ordercategory6 = val === null || val === void 0 ? void 0 : val.ordercategory) !== null && _val$ordercategory6 !== void 0 ? _val$ordercategory6 : {}
|
|
29888
|
+
}, _defineProperty(_obj_, "orderCategory", val !== null && val !== void 0 && (_val$ordercategory7 = val.ordercategory) !== null && _val$ordercategory7 !== void 0 && _val$ordercategory7._id && val !== null && val !== void 0 && (_val$ordercategory8 = val.ordercategory) !== null && _val$ordercategory8 !== void 0 && _val$ordercategory8.shortdesc ? {
|
|
29889
|
+
value: val === null || val === void 0 ? void 0 : (_val$ordercategory9 = val.ordercategory) === null || _val$ordercategory9 === void 0 ? void 0 : _val$ordercategory9._id,
|
|
29890
|
+
label: val === null || val === void 0 ? void 0 : (_val$ordercategory10 = val.ordercategory) === null || _val$ordercategory10 === void 0 ? void 0 : _val$ordercategory10.shortdesc
|
|
29891
|
+
} : {}), _defineProperty(_obj_, "orderTypeDrugType", val !== null && val !== void 0 && (_val$ordertype5 = val.ordertype) !== null && _val$ordertype5 !== void 0 && _val$ordertype5._id && val !== null && val !== void 0 && (_val$ordertype6 = val.ordertype) !== null && _val$ordertype6 !== void 0 && _val$ordertype6.shortdesc ? {
|
|
29892
|
+
value: val === null || val === void 0 ? void 0 : (_val$ordertype7 = val.ordertype) === null || _val$ordertype7 === void 0 ? void 0 : _val$ordertype7._id,
|
|
29893
|
+
label: val === null || val === void 0 ? void 0 : (_val$ordertype8 = val.ordertype) === null || _val$ordertype8 === void 0 ? void 0 : _val$ordertype8.shortdesc
|
|
29894
|
+
} : {}), _defineProperty(_obj_, "orderCatalog", val !== null && val !== void 0 && (_val$orderCatalog9 = val.orderCatalog) !== null && _val$orderCatalog9 !== void 0 && _val$orderCatalog9._id && val !== null && val !== void 0 && (_val$orderCatalog10 = val.orderCatalog) !== null && _val$orderCatalog10 !== void 0 && _val$orderCatalog10.shortdesc ? {
|
|
29895
|
+
value: val === null || val === void 0 ? void 0 : (_val$orderCatalog11 = val.orderCatalog) === null || _val$orderCatalog11 === void 0 ? void 0 : _val$orderCatalog11._id,
|
|
29896
|
+
label: val === null || val === void 0 ? void 0 : (_val$orderCatalog12 = val.orderCatalog) === null || _val$orderCatalog12 === void 0 ? void 0 : _val$orderCatalog12.shortdesc
|
|
29897
|
+
} : val !== null && val !== void 0 && (_val$orderCatalog13 = val.orderCatalog) !== null && _val$orderCatalog13 !== void 0 && _val$orderCatalog13._id && val !== null && val !== void 0 && (_val$orderCatalog14 = val.orderCatalog) !== null && _val$orderCatalog14 !== void 0 && _val$orderCatalog14.ShortDesc ? {
|
|
29898
|
+
value: val === null || val === void 0 ? void 0 : (_val$orderCatalog15 = val.orderCatalog) === null || _val$orderCatalog15 === void 0 ? void 0 : _val$orderCatalog15._id,
|
|
29899
|
+
label: val === null || val === void 0 ? void 0 : (_val$orderCatalog16 = val.orderCatalog) === null || _val$orderCatalog16 === void 0 ? void 0 : _val$orderCatalog16.ShortDesc
|
|
29900
|
+
} : {}), _defineProperty(_obj_, "required", val !== null && val !== void 0 && val.required ? val === null || val === void 0 ? void 0 : val.required : false), _defineProperty(_obj_, "requiredT", val !== null && val !== void 0 && val.required ? (val === null || val === void 0 ? void 0 : val.required) === true ? "Yes" : "No" : "No"), _defineProperty(_obj_, "quantity_number", val !== null && val !== void 0 && val.dfltOrderQty ? val === null || val === void 0 ? void 0 : val.dfltOrderQty : ""), _defineProperty(_obj_, "quantity_type", val !== null && val !== void 0 && (_val$dfltOrderUOM7 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM7 !== void 0 && _val$dfltOrderUOM7._id && val !== null && val !== void 0 && (_val$dfltOrderUOM8 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM8 !== void 0 && _val$dfltOrderUOM8.display ? {
|
|
29901
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM9 = val.dfltOrderUOM) === null || _val$dfltOrderUOM9 === void 0 ? void 0 : _val$dfltOrderUOM9._id,
|
|
29902
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM10 = val.dfltOrderUOM) === null || _val$dfltOrderUOM10 === void 0 ? void 0 : _val$dfltOrderUOM10.display
|
|
29903
|
+
} : {}), _defineProperty(_obj_, "quantityT", val !== null && val !== void 0 && (_val$dfltOrderUOM11 = val.dfltOrderUOM) !== null && _val$dfltOrderUOM11 !== void 0 && _val$dfltOrderUOM11.display && val !== null && val !== void 0 && val.dfltOrderQty ? (val === null || val === void 0 ? void 0 : val.dfltOrderQty) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltOrderUOM12 = val.dfltOrderUOM) === null || _val$dfltOrderUOM12 === void 0 ? void 0 : _val$dfltOrderUOM12.display) : "-"), _defineProperty(_obj_, "in_infusion_rate_volume_number", (_val$IVInfusRateVol2 = val === null || val === void 0 ? void 0 : val.IVInfusRateVol) !== null && _val$IVInfusRateVol2 !== void 0 ? _val$IVInfusRateVol2 : ""), _defineProperty(_obj_, "in_infusion_rate_volume_type", val !== null && val !== void 0 && (_val$IVInfusRateVolUO5 = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO5 !== void 0 && _val$IVInfusRateVolUO5._id && val !== null && val !== void 0 && (_val$IVInfusRateVolUO6 = val.IVInfusRateVolUOM) !== null && _val$IVInfusRateVolUO6 !== void 0 && _val$IVInfusRateVolUO6.display ? {
|
|
29904
|
+
value: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO7 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO7 === void 0 ? void 0 : _val$IVInfusRateVolUO7._id,
|
|
29905
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVInfusRateVolUO8 = val.IVInfusRateVolUOM) === null || _val$IVInfusRateVolUO8 === void 0 ? void 0 : _val$IVInfusRateVolUO8.display
|
|
29906
|
+
} : {}), _defineProperty(_obj_, "in_infusion_rate_duration_number", (_val$IVDosDurValue3 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue3 !== void 0 ? _val$IVDosDurValue3 : ""), _defineProperty(_obj_, "in_infusion_rate_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM9 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM9 !== void 0 && _val$IVDosDurUOM9._id && val !== null && val !== void 0 && (_val$IVDosDurUOM10 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM10 !== void 0 && _val$IVDosDurUOM10.display ? {
|
|
29907
|
+
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM11 = val.IVDosDurUOM) === null || _val$IVDosDurUOM11 === void 0 ? void 0 : _val$IVDosDurUOM11._id,
|
|
29908
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM12 = val.IVDosDurUOM) === null || _val$IVDosDurUOM12 === void 0 ? void 0 : _val$IVDosDurUOM12.display
|
|
29909
|
+
} : {}), _defineProperty(_obj_, "iv_dosage_duration_number", (_val$IVDosDurValue4 = val === null || val === void 0 ? void 0 : val.IVDosDurValue) !== null && _val$IVDosDurValue4 !== void 0 ? _val$IVDosDurValue4 : ""), _defineProperty(_obj_, "iv_dosage_duration_type", val !== null && val !== void 0 && (_val$IVDosDurUOM13 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM13 !== void 0 && _val$IVDosDurUOM13._id && val !== null && val !== void 0 && (_val$IVDosDurUOM14 = val.IVDosDurUOM) !== null && _val$IVDosDurUOM14 !== void 0 && _val$IVDosDurUOM14.display ? {
|
|
29910
|
+
value: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM15 = val.IVDosDurUOM) === null || _val$IVDosDurUOM15 === void 0 ? void 0 : _val$IVDosDurUOM15._id,
|
|
29911
|
+
label: val === null || val === void 0 ? void 0 : (_val$IVDosDurUOM16 = val.IVDosDurUOM) === null || _val$IVDosDurUOM16 === void 0 ? void 0 : _val$IVDosDurUOM16.display
|
|
29912
|
+
} : {}), _defineProperty(_obj_, "dosage_freq_code", val !== null && val !== void 0 && (_val$dosageFreqCode5 = val.dosageFreqCode) !== null && _val$dosageFreqCode5 !== void 0 && _val$dosageFreqCode5._id && val !== null && val !== void 0 && (_val$dosageFreqCode6 = val.dosageFreqCode) !== null && _val$dosageFreqCode6 !== void 0 && _val$dosageFreqCode6.shortdesc ? {
|
|
29913
|
+
value: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode7 = val.dosageFreqCode) === null || _val$dosageFreqCode7 === void 0 ? void 0 : _val$dosageFreqCode7._id,
|
|
29914
|
+
label: val === null || val === void 0 ? void 0 : (_val$dosageFreqCode8 = val.dosageFreqCode) === null || _val$dosageFreqCode8 === void 0 ? void 0 : _val$dosageFreqCode8.shortdesc
|
|
29915
|
+
} : {}), _defineProperty(_obj_, "startDay", (_val$startDay2 = val === null || val === void 0 ? void 0 : val.startDay) !== null && _val$startDay2 !== void 0 ? _val$startDay2 : ""), _defineProperty(_obj_, "duration_number", (_val$dfltDuration2 = val === null || val === void 0 ? void 0 : val.dfltDuration) !== null && _val$dfltDuration2 !== void 0 ? _val$dfltDuration2 : ""), _defineProperty(_obj_, "duration_type", val !== null && val !== void 0 && (_val$dfltDurUOM7 = val.dfltDurUOM) !== null && _val$dfltDurUOM7 !== void 0 && _val$dfltDurUOM7._id && val !== null && val !== void 0 && (_val$dfltDurUOM8 = val.dfltDurUOM) !== null && _val$dfltDurUOM8 !== void 0 && _val$dfltDurUOM8.display ? {
|
|
29916
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM9 = val.dfltDurUOM) === null || _val$dfltDurUOM9 === void 0 ? void 0 : _val$dfltDurUOM9._id,
|
|
29917
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltDurUOM10 = val.dfltDurUOM) === null || _val$dfltDurUOM10 === void 0 ? void 0 : _val$dfltDurUOM10.display
|
|
29918
|
+
} : {}), _defineProperty(_obj_, "durationT", val !== null && val !== void 0 && val.dfltDuration && val !== null && val !== void 0 && (_val$dfltDurUOM11 = val.dfltDurUOM) !== null && _val$dfltDurUOM11 !== void 0 && _val$dfltDurUOM11.display ? (val === null || val === void 0 ? void 0 : val.dfltDuration) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltDurUOM12 = val.dfltDurUOM) === null || _val$dfltDurUOM12 === void 0 ? void 0 : _val$dfltDurUOM12.display) : "-"), _defineProperty(_obj_, "route", val !== null && val !== void 0 && (_val$route6 = val.route) !== null && _val$route6 !== void 0 && _val$route6._id && val !== null && val !== void 0 && (_val$route7 = val.route) !== null && _val$route7 !== void 0 && _val$route7.shortdesc ? {
|
|
29919
|
+
value: val === null || val === void 0 ? void 0 : (_val$route8 = val.route) === null || _val$route8 === void 0 ? void 0 : _val$route8._id,
|
|
29920
|
+
label: val === null || val === void 0 ? void 0 : (_val$route9 = val.route) === null || _val$route9 === void 0 ? void 0 : _val$route9.shortdesc
|
|
29921
|
+
} : {}), _defineProperty(_obj_, "routeT", (_val$route$shortdesc2 = val === null || val === void 0 ? void 0 : (_val$route10 = val.route) === null || _val$route10 === void 0 ? void 0 : _val$route10.shortdesc) !== null && _val$route$shortdesc2 !== void 0 ? _val$route$shortdesc2 : "-"), _defineProperty(_obj_, "frequency_number", (_val$dfltFreqVal2 = val === null || val === void 0 ? void 0 : val.dfltFreqVal) !== null && _val$dfltFreqVal2 !== void 0 ? _val$dfltFreqVal2 : 0), _defineProperty(_obj_, "frequency_type", val !== null && val !== void 0 && (_val$dfltFreqValUnit7 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit7 !== void 0 && _val$dfltFreqValUnit7._id && val !== null && val !== void 0 && (_val$dfltFreqValUnit8 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit8 !== void 0 && _val$dfltFreqValUnit8.display ? {
|
|
29922
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit9 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit9 === void 0 ? void 0 : _val$dfltFreqValUnit9._id,
|
|
29923
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit10 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit10 === void 0 ? void 0 : _val$dfltFreqValUnit10.display
|
|
29924
|
+
} : {}), _defineProperty(_obj_, "frequencyT", val !== null && val !== void 0 && val.dfltFreqVal && val !== null && val !== void 0 && (_val$dfltFreqValUnit11 = val.dfltFreqValUnit) !== null && _val$dfltFreqValUnit11 !== void 0 && _val$dfltFreqValUnit11.display ? (val === null || val === void 0 ? void 0 : val.dfltFreqVal) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqValUnit12 = val.dfltFreqValUnit) === null || _val$dfltFreqValUnit12 === void 0 ? void 0 : _val$dfltFreqValUnit12.display) : "-"), _defineProperty(_obj_, "rate_number", (_val$dfltFreqRate2 = val === null || val === void 0 ? void 0 : val.dfltFreqRate) !== null && _val$dfltFreqRate2 !== void 0 ? _val$dfltFreqRate2 : ""), _defineProperty(_obj_, "rate_type", val !== null && val !== void 0 && (_val$dfltFreqRateUnit7 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit7 !== void 0 && _val$dfltFreqRateUnit7._id && val !== null && val !== void 0 && (_val$dfltFreqRateUnit8 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit8 !== void 0 && _val$dfltFreqRateUnit8.display ? {
|
|
29925
|
+
value: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit9 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit9 === void 0 ? void 0 : _val$dfltFreqRateUnit9._id,
|
|
29926
|
+
label: val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit10 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit10 === void 0 ? void 0 : _val$dfltFreqRateUnit10.display
|
|
29927
|
+
} : {}), _defineProperty(_obj_, "rateT", val !== null && val !== void 0 && val.dfltFreqRate && val !== null && val !== void 0 && (_val$dfltFreqRateUnit11 = val.dfltFreqRateUnit) !== null && _val$dfltFreqRateUnit11 !== void 0 && _val$dfltFreqRateUnit11.display ? (val === null || val === void 0 ? void 0 : val.dfltFreqRate) + " " + (val === null || val === void 0 ? void 0 : (_val$dfltFreqRateUnit12 = val.dfltFreqRateUnit) === null || _val$dfltFreqRateUnit12 === void 0 ? void 0 : _val$dfltFreqRateUnit12.display) : "-"), _defineProperty(_obj_, "additive", (_val$additive2 = val === null || val === void 0 ? void 0 : val.additive) !== null && _val$additive2 !== void 0 ? _val$additive2 : false), _defineProperty(_obj_, "additivT", val !== null && val !== void 0 && val.additive ? (val === null || val === void 0 ? void 0 : val.additive) === true ? "Yes" : "No" : "No"), _defineProperty(_obj_, "parentSequence", (_val$parentCatSeqNo = val === null || val === void 0 ? void 0 : val.parentCatSeqNo) !== null && _val$parentCatSeqNo !== void 0 ? _val$parentCatSeqNo : ""), _defineProperty(_obj_, "parentSequenceT", (_val$parentCatSeqNo2 = val === null || val === void 0 ? void 0 : val.parentCatSeqNo) !== null && _val$parentCatSeqNo2 !== void 0 ? _val$parentCatSeqNo2 : "-"), _defineProperty(_obj_, "explanatoryNote", (_val$explNote2 = val === null || val === void 0 ? void 0 : val.explNote) !== null && _val$explNote2 !== void 0 ? _val$explNote2 : ""), _defineProperty(_obj_, "practitionerInstructions", (_val$practInstr2 = val === null || val === void 0 ? void 0 : val.practInstr) !== null && _val$practInstr2 !== void 0 ? _val$practInstr2 : ""), _obj_);
|
|
29928
|
+
arr_.push(obj_);
|
|
29929
|
+
}
|
|
29930
|
+
});
|
|
29931
|
+
}
|
|
29932
|
+
|
|
29870
29933
|
return arr_;
|
|
29871
29934
|
};
|
|
29872
29935
|
|
|
@@ -30156,9 +30219,9 @@ var ORDER_CATEGORY_MASTER = createAsyncThunk("orderSetMasterApiSlice/order_categ
|
|
|
30156
30219
|
}
|
|
30157
30220
|
}
|
|
30158
30221
|
}, _callee7, null, [[2, 12]]);
|
|
30159
|
-
}))); //
|
|
30222
|
+
}))); //ORDER__MASTER
|
|
30160
30223
|
|
|
30161
|
-
var
|
|
30224
|
+
var ORDER__MASTER = createAsyncThunk("orderSetMasterApiSlice/order__master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
30162
30225
|
var payload,
|
|
30163
30226
|
_ref13,
|
|
30164
30227
|
rejectWithValue,
|
|
@@ -30209,14 +30272,12 @@ var ORDER_DRUG_MASTER = createAsyncThunk("orderSetMasterApiSlice/order_drug_mast
|
|
|
30209
30272
|
}
|
|
30210
30273
|
}
|
|
30211
30274
|
}, _callee8, null, [[2, 13]]);
|
|
30212
|
-
}))); //
|
|
30275
|
+
}))); //DRUG__MASTER
|
|
30213
30276
|
|
|
30214
|
-
var
|
|
30277
|
+
var DRUG__MASTER = createAsyncThunk("orderSetMasterApiSlice/drug__master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
|
|
30215
30278
|
var payload,
|
|
30216
30279
|
_ref15,
|
|
30217
30280
|
rejectWithValue,
|
|
30218
|
-
order_category,
|
|
30219
|
-
order_drug_type,
|
|
30220
30281
|
data_arr,
|
|
30221
30282
|
arry,
|
|
30222
30283
|
_args9 = arguments;
|
|
@@ -30228,10 +30289,12 @@ var ORDER_DRUG_CATALOG_MASTER = createAsyncThunk("orderSetMasterApiSlice/order_d
|
|
|
30228
30289
|
payload = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {};
|
|
30229
30290
|
_ref15 = _args9.length > 1 ? _args9[1] : undefined, rejectWithValue = _ref15.rejectWithValue;
|
|
30230
30291
|
_context9.prev = 2;
|
|
30231
|
-
|
|
30292
|
+
|
|
30293
|
+
_objectDestructuringEmpty(payload);
|
|
30294
|
+
|
|
30232
30295
|
_context9.next = 6;
|
|
30233
30296
|
return fetchData({
|
|
30234
|
-
body: JSON.stringify(dynamicMaster$1.
|
|
30297
|
+
body: JSON.stringify(dynamicMaster$1.drugType())
|
|
30235
30298
|
}, __readDocumentUrl__);
|
|
30236
30299
|
|
|
30237
30300
|
case 6:
|
|
@@ -30241,30 +30304,143 @@ var ORDER_DRUG_CATALOG_MASTER = createAsyncThunk("orderSetMasterApiSlice/order_d
|
|
|
30241
30304
|
return data_arr.result.map(function (val) {
|
|
30242
30305
|
arry.push({
|
|
30243
30306
|
value: val._id,
|
|
30244
|
-
label: val.shortdesc
|
|
30245
|
-
freqApplicable: val !== null && val !== void 0 && val.OrderCatalogByEncounterTypeAge ? constOrderCatalogByEncounterTypeAge(val === null || val === void 0 ? void 0 : val.OrderCatalogByEncounterTypeAge) : false
|
|
30307
|
+
label: val.shortdesc
|
|
30246
30308
|
});
|
|
30247
30309
|
});
|
|
30248
30310
|
|
|
30249
30311
|
case 10:
|
|
30250
|
-
debugger;
|
|
30251
30312
|
return _context9.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
30252
30313
|
data: arry
|
|
30253
30314
|
}));
|
|
30254
30315
|
|
|
30255
|
-
case
|
|
30256
|
-
_context9.prev =
|
|
30316
|
+
case 13:
|
|
30317
|
+
_context9.prev = 13;
|
|
30257
30318
|
_context9.t0 = _context9["catch"](2);
|
|
30258
30319
|
return _context9.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
30259
30320
|
message: _context9.t0.message
|
|
30260
30321
|
})));
|
|
30261
30322
|
|
|
30262
|
-
case
|
|
30323
|
+
case 16:
|
|
30263
30324
|
case "end":
|
|
30264
30325
|
return _context9.stop();
|
|
30265
30326
|
}
|
|
30266
30327
|
}
|
|
30267
|
-
}, _callee9, null, [[2,
|
|
30328
|
+
}, _callee9, null, [[2, 13]]);
|
|
30329
|
+
}))); //ORDER__CATALOG_MASTER
|
|
30330
|
+
|
|
30331
|
+
var ORDER__CATALOG_MASTER = createAsyncThunk("orderSetMasterApiSlice/order__catalog_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {
|
|
30332
|
+
var payload,
|
|
30333
|
+
_ref17,
|
|
30334
|
+
rejectWithValue,
|
|
30335
|
+
order_category,
|
|
30336
|
+
order_drug_type,
|
|
30337
|
+
data_arr,
|
|
30338
|
+
arry,
|
|
30339
|
+
_args10 = arguments;
|
|
30340
|
+
|
|
30341
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
30342
|
+
while (1) {
|
|
30343
|
+
switch (_context10.prev = _context10.next) {
|
|
30344
|
+
case 0:
|
|
30345
|
+
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
30346
|
+
_ref17 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref17.rejectWithValue;
|
|
30347
|
+
_context10.prev = 2;
|
|
30348
|
+
order_category = payload.order_category, order_drug_type = payload.order_drug_type;
|
|
30349
|
+
_context10.next = 6;
|
|
30350
|
+
return fetchData({
|
|
30351
|
+
body: JSON.stringify(dynamicMaster$1.orderCatalog(order_category, order_drug_type))
|
|
30352
|
+
}, __readDocumentUrl__);
|
|
30353
|
+
|
|
30354
|
+
case 6:
|
|
30355
|
+
data_arr = _context10.sent;
|
|
30356
|
+
arry = [];
|
|
30357
|
+
_context10.next = 10;
|
|
30358
|
+
return data_arr.result.map(function (val) {
|
|
30359
|
+
arry.push({
|
|
30360
|
+
value: val._id,
|
|
30361
|
+
label: val.shortdesc,
|
|
30362
|
+
freqApplicable: val !== null && val !== void 0 && val.OrderCatalogByEncounterTypeAge ? constOrderCatalogByEncounterTypeAge(val === null || val === void 0 ? void 0 : val.OrderCatalogByEncounterTypeAge) : false
|
|
30363
|
+
});
|
|
30364
|
+
});
|
|
30365
|
+
|
|
30366
|
+
case 10:
|
|
30367
|
+
debugger;
|
|
30368
|
+
return _context10.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
30369
|
+
data: arry
|
|
30370
|
+
}));
|
|
30371
|
+
|
|
30372
|
+
case 14:
|
|
30373
|
+
_context10.prev = 14;
|
|
30374
|
+
_context10.t0 = _context10["catch"](2);
|
|
30375
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
30376
|
+
message: _context10.t0.message
|
|
30377
|
+
})));
|
|
30378
|
+
|
|
30379
|
+
case 17:
|
|
30380
|
+
case "end":
|
|
30381
|
+
return _context10.stop();
|
|
30382
|
+
}
|
|
30383
|
+
}
|
|
30384
|
+
}, _callee10, null, [[2, 14]]);
|
|
30385
|
+
}))); //DRUG__CATALOG_MASTER
|
|
30386
|
+
|
|
30387
|
+
var DRUG__CATALOG_MASTER = createAsyncThunk("orderSetMasterApiSlice/drug__catalog_master", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {
|
|
30388
|
+
var payload,
|
|
30389
|
+
_ref19,
|
|
30390
|
+
rejectWithValue,
|
|
30391
|
+
drug_type,
|
|
30392
|
+
data_arr,
|
|
30393
|
+
arry,
|
|
30394
|
+
_args11 = arguments;
|
|
30395
|
+
|
|
30396
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
30397
|
+
while (1) {
|
|
30398
|
+
switch (_context11.prev = _context11.next) {
|
|
30399
|
+
case 0:
|
|
30400
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
30401
|
+
_ref19 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
|
|
30402
|
+
_context11.prev = 2;
|
|
30403
|
+
drug_type = payload.drug_type;
|
|
30404
|
+
_context11.next = 6;
|
|
30405
|
+
return fetchData({
|
|
30406
|
+
body: JSON.stringify(dynamicMaster$1.drugCatalog(drug_type))
|
|
30407
|
+
}, __readDocumentUrl__);
|
|
30408
|
+
|
|
30409
|
+
case 6:
|
|
30410
|
+
data_arr = _context11.sent;
|
|
30411
|
+
arry = [];
|
|
30412
|
+
_context11.next = 10;
|
|
30413
|
+
return data_arr.result.map(function (val) {
|
|
30414
|
+
arry.push({
|
|
30415
|
+
value: val === null || val === void 0 ? void 0 : val._id,
|
|
30416
|
+
label: val === null || val === void 0 ? void 0 : val.ShortDesc // freqApplicable: val?.OrderCatalogByEncounterTypeAge
|
|
30417
|
+
// ? constOrderCatalogByEncounterTypeAge(
|
|
30418
|
+
// val?.OrderCatalogByEncounterTypeAge
|
|
30419
|
+
// )
|
|
30420
|
+
// : false,
|
|
30421
|
+
|
|
30422
|
+
});
|
|
30423
|
+
});
|
|
30424
|
+
|
|
30425
|
+
case 10:
|
|
30426
|
+
debugger;
|
|
30427
|
+
return _context11.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
30428
|
+
data: arry
|
|
30429
|
+
}));
|
|
30430
|
+
|
|
30431
|
+
case 14:
|
|
30432
|
+
_context11.prev = 14;
|
|
30433
|
+
_context11.t0 = _context11["catch"](2);
|
|
30434
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
30435
|
+
message: _context11.t0.message
|
|
30436
|
+
})));
|
|
30437
|
+
|
|
30438
|
+
case 17:
|
|
30439
|
+
case "end":
|
|
30440
|
+
return _context11.stop();
|
|
30441
|
+
}
|
|
30442
|
+
}
|
|
30443
|
+
}, _callee11, null, [[2, 14]]);
|
|
30268
30444
|
})));
|
|
30269
30445
|
|
|
30270
30446
|
var constOrderCatalogByEncounterTypeAge = function constOrderCatalogByEncounterTypeAge(data) {
|
|
@@ -30284,137 +30460,135 @@ var constOrderCatalogByEncounterTypeAge = function constOrderCatalogByEncounterT
|
|
|
30284
30460
|
}; //UPSERT_ORDER_SET
|
|
30285
30461
|
|
|
30286
30462
|
|
|
30287
|
-
var UPSERT_ORDER_SET = createAsyncThunk("orderSetMasterApiSlice/order_set_upsertS", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
30463
|
+
var UPSERT_ORDER_SET = createAsyncThunk("orderSetMasterApiSlice/order_set_upsertS", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
30288
30464
|
var payload,
|
|
30289
|
-
|
|
30465
|
+
_ref21,
|
|
30290
30466
|
rejectWithValue,
|
|
30291
30467
|
dataList,
|
|
30292
30468
|
queriesjson,
|
|
30293
30469
|
data,
|
|
30294
|
-
|
|
30470
|
+
_args12 = arguments;
|
|
30295
30471
|
|
|
30296
|
-
return regeneratorRuntime.wrap(function
|
|
30472
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
30297
30473
|
while (1) {
|
|
30298
|
-
switch (
|
|
30474
|
+
switch (_context12.prev = _context12.next) {
|
|
30299
30475
|
case 0:
|
|
30300
|
-
payload =
|
|
30301
|
-
|
|
30302
|
-
|
|
30476
|
+
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
30477
|
+
_ref21 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
|
|
30478
|
+
_context12.prev = 2;
|
|
30303
30479
|
dataList = payload.dataList;
|
|
30304
30480
|
queriesjson = generateJson$2(dataList);
|
|
30305
|
-
|
|
30481
|
+
_context12.next = 7;
|
|
30306
30482
|
return fetchData({
|
|
30307
30483
|
body: JSON.stringify(queriesjson)
|
|
30308
30484
|
}, __uspsertUrl__);
|
|
30309
30485
|
|
|
30310
30486
|
case 7:
|
|
30311
|
-
data =
|
|
30312
|
-
return
|
|
30487
|
+
data = _context12.sent;
|
|
30488
|
+
return _context12.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
30313
30489
|
data: data
|
|
30314
30490
|
}));
|
|
30315
30491
|
|
|
30316
30492
|
case 11:
|
|
30317
|
-
|
|
30318
|
-
|
|
30319
|
-
return
|
|
30320
|
-
message:
|
|
30493
|
+
_context12.prev = 11;
|
|
30494
|
+
_context12.t0 = _context12["catch"](2);
|
|
30495
|
+
return _context12.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
30496
|
+
message: _context12.t0.message
|
|
30321
30497
|
})));
|
|
30322
30498
|
|
|
30323
30499
|
case 14:
|
|
30324
30500
|
case "end":
|
|
30325
|
-
return
|
|
30501
|
+
return _context12.stop();
|
|
30326
30502
|
}
|
|
30327
30503
|
}
|
|
30328
|
-
},
|
|
30504
|
+
}, _callee12, null, [[2, 11]]);
|
|
30329
30505
|
}))); //ORDER_SET_SINGLE_READ
|
|
30330
30506
|
|
|
30331
|
-
var ORDER_SET_SINGLE_READ = createAsyncThunk("orderSetMasterApiSlice/order_set_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
30507
|
+
var ORDER_SET_SINGLE_READ = createAsyncThunk("orderSetMasterApiSlice/order_set_single_read", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
30332
30508
|
var payload,
|
|
30333
|
-
|
|
30509
|
+
_ref23,
|
|
30334
30510
|
rejectWithValue,
|
|
30335
|
-
getState,
|
|
30336
30511
|
_key,
|
|
30337
30512
|
data,
|
|
30338
30513
|
readJSON,
|
|
30339
|
-
|
|
30514
|
+
_args13 = arguments;
|
|
30340
30515
|
|
|
30341
|
-
return regeneratorRuntime.wrap(function
|
|
30516
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
30342
30517
|
while (1) {
|
|
30343
|
-
switch (
|
|
30518
|
+
switch (_context13.prev = _context13.next) {
|
|
30344
30519
|
case 0:
|
|
30345
|
-
payload =
|
|
30346
|
-
|
|
30347
|
-
|
|
30520
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
30521
|
+
_ref23 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
|
|
30522
|
+
_context13.prev = 2;
|
|
30348
30523
|
_key = payload._key;
|
|
30349
|
-
|
|
30350
|
-
_context11.next = 8;
|
|
30524
|
+
_context13.next = 6;
|
|
30351
30525
|
return fetchData({
|
|
30352
30526
|
body: JSON.stringify(query$3.orderSetListById(_key))
|
|
30353
30527
|
}, __readDocumentUrl__);
|
|
30354
30528
|
|
|
30355
|
-
case
|
|
30356
|
-
data =
|
|
30529
|
+
case 6:
|
|
30530
|
+
data = _context13.sent;
|
|
30357
30531
|
readJSON = generateReadJSON$2(data.result[0] ? data.result[0] : null);
|
|
30358
|
-
return
|
|
30532
|
+
return _context13.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
30359
30533
|
data: readJSON
|
|
30360
30534
|
}));
|
|
30361
30535
|
|
|
30362
|
-
case
|
|
30363
|
-
|
|
30364
|
-
|
|
30365
|
-
alert(
|
|
30366
|
-
return
|
|
30367
|
-
message:
|
|
30536
|
+
case 11:
|
|
30537
|
+
_context13.prev = 11;
|
|
30538
|
+
_context13.t0 = _context13["catch"](2);
|
|
30539
|
+
alert(_context13.t0.message);
|
|
30540
|
+
return _context13.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
30541
|
+
message: _context13.t0.message
|
|
30368
30542
|
})));
|
|
30369
30543
|
|
|
30370
|
-
case
|
|
30544
|
+
case 15:
|
|
30371
30545
|
case "end":
|
|
30372
|
-
return
|
|
30546
|
+
return _context13.stop();
|
|
30373
30547
|
}
|
|
30374
30548
|
}
|
|
30375
|
-
},
|
|
30549
|
+
}, _callee13, null, [[2, 11]]);
|
|
30376
30550
|
}))); //DELETE_ORDER_SET_COMPONENT
|
|
30377
30551
|
|
|
30378
|
-
var DELETE_ORDER_SET_COMPONENT = createAsyncThunk("orderSetMasterApiSlice/order_set_component_delete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
30552
|
+
var DELETE_ORDER_SET_COMPONENT = createAsyncThunk("orderSetMasterApiSlice/order_set_component_delete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
|
|
30379
30553
|
var payload,
|
|
30380
|
-
|
|
30554
|
+
_ref25,
|
|
30381
30555
|
rejectWithValue,
|
|
30382
30556
|
_key,
|
|
30383
30557
|
data,
|
|
30384
|
-
|
|
30558
|
+
_args14 = arguments;
|
|
30385
30559
|
|
|
30386
|
-
return regeneratorRuntime.wrap(function
|
|
30560
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
30387
30561
|
while (1) {
|
|
30388
|
-
switch (
|
|
30562
|
+
switch (_context14.prev = _context14.next) {
|
|
30389
30563
|
case 0:
|
|
30390
|
-
payload =
|
|
30391
|
-
|
|
30392
|
-
|
|
30564
|
+
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
30565
|
+
_ref25 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
30566
|
+
_context14.prev = 2;
|
|
30393
30567
|
_key = payload._key;
|
|
30394
|
-
|
|
30568
|
+
_context14.next = 6;
|
|
30395
30569
|
return fetchData({
|
|
30396
30570
|
body: JSON.stringify(query$3.orderSetComponentDelete(_key))
|
|
30397
30571
|
}, __softDelete__);
|
|
30398
30572
|
|
|
30399
30573
|
case 6:
|
|
30400
|
-
data =
|
|
30401
|
-
return
|
|
30574
|
+
data = _context14.sent;
|
|
30575
|
+
return _context14.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
30402
30576
|
data: data
|
|
30403
30577
|
}));
|
|
30404
30578
|
|
|
30405
30579
|
case 10:
|
|
30406
|
-
|
|
30407
|
-
|
|
30408
|
-
return
|
|
30409
|
-
message:
|
|
30580
|
+
_context14.prev = 10;
|
|
30581
|
+
_context14.t0 = _context14["catch"](2);
|
|
30582
|
+
return _context14.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
30583
|
+
message: _context14.t0.message
|
|
30410
30584
|
})));
|
|
30411
30585
|
|
|
30412
30586
|
case 13:
|
|
30413
30587
|
case "end":
|
|
30414
|
-
return
|
|
30588
|
+
return _context14.stop();
|
|
30415
30589
|
}
|
|
30416
30590
|
}
|
|
30417
|
-
},
|
|
30591
|
+
}, _callee14, null, [[2, 10]]);
|
|
30418
30592
|
})));
|
|
30419
30593
|
var orderSetMasterSlice = createSlice({
|
|
30420
30594
|
name: "orderSetMasterApiSlice",
|
|
@@ -30423,8 +30597,10 @@ var orderSetMasterSlice = createSlice({
|
|
|
30423
30597
|
order_set_single_read: _objectSpread2({}, defaultState.List),
|
|
30424
30598
|
order_set_master_status_change: _objectSpread2({}, defaultState.List),
|
|
30425
30599
|
order_set_masters: _objectSpread2({}, defaultState.List),
|
|
30426
|
-
|
|
30427
|
-
|
|
30600
|
+
order__masters: _objectSpread2({}, defaultState.List),
|
|
30601
|
+
drug__masters: _objectSpread2({}, defaultState.List),
|
|
30602
|
+
order__catalog_masters: _objectSpread2({}, defaultState.List),
|
|
30603
|
+
drug__catalog_masters: _objectSpread2({}, defaultState.List),
|
|
30428
30604
|
order_category_masters: _objectSpread2({}, defaultState.List),
|
|
30429
30605
|
order_set_upsert: _objectSpread2({}, defaultState.List),
|
|
30430
30606
|
order_set_component_delete: _objectSpread2({}, defaultState.List)
|
|
@@ -30459,18 +30635,30 @@ var orderSetMasterSlice = createSlice({
|
|
|
30459
30635
|
state.order_set_masters.loading = true, state.order_set_masters.error = false, state.order_set_masters.loading = true;
|
|
30460
30636
|
}), _defineProperty(_extraReducers$8, ORDER_SET_MASTER_MASTER.rejected, function (state, action) {
|
|
30461
30637
|
state.order_set_masters.loading = false, state.order_set_masters.error = true, state.order_set_masters = action.payload;
|
|
30462
|
-
}), _defineProperty(_extraReducers$8,
|
|
30463
|
-
state.
|
|
30464
|
-
}), _defineProperty(_extraReducers$8,
|
|
30465
|
-
state.
|
|
30466
|
-
}), _defineProperty(_extraReducers$8,
|
|
30467
|
-
state.
|
|
30468
|
-
}), _defineProperty(_extraReducers$8,
|
|
30469
|
-
state.
|
|
30470
|
-
}), _defineProperty(_extraReducers$8,
|
|
30471
|
-
state.
|
|
30472
|
-
}), _defineProperty(_extraReducers$8,
|
|
30473
|
-
state.
|
|
30638
|
+
}), _defineProperty(_extraReducers$8, ORDER__MASTER.fulfilled, function (state, action) {
|
|
30639
|
+
state.order__masters.loading = false, state.order__masters.error = false, state.order__masters = action.payload;
|
|
30640
|
+
}), _defineProperty(_extraReducers$8, ORDER__MASTER.pending, function (state, action) {
|
|
30641
|
+
state.order__masters.loading = true, state.order__masters.error = false, state.order__masters.loading = true;
|
|
30642
|
+
}), _defineProperty(_extraReducers$8, ORDER__MASTER.rejected, function (state, action) {
|
|
30643
|
+
state.order__masters.loading = false, state.order__masters.error = true, state.order__masters = action.payload;
|
|
30644
|
+
}), _defineProperty(_extraReducers$8, DRUG__MASTER.fulfilled, function (state, action) {
|
|
30645
|
+
state.drug__masters.loading = false, state.drug__masters.error = false, state.drug__masters = action.payload;
|
|
30646
|
+
}), _defineProperty(_extraReducers$8, DRUG__MASTER.pending, function (state, action) {
|
|
30647
|
+
state.drug__masters.loading = true, state.drug__masters.error = false, state.drug__masters.loading = true;
|
|
30648
|
+
}), _defineProperty(_extraReducers$8, DRUG__MASTER.rejected, function (state, action) {
|
|
30649
|
+
state.drug__masters.loading = false, state.drug__masters.error = true, state.drug__masters = action.payload;
|
|
30650
|
+
}), _defineProperty(_extraReducers$8, ORDER__CATALOG_MASTER.fulfilled, function (state, action) {
|
|
30651
|
+
state.order__catalog_masters.loading = false, state.order__catalog_masters.error = false, state.order__catalog_masters = action.payload;
|
|
30652
|
+
}), _defineProperty(_extraReducers$8, ORDER__CATALOG_MASTER.pending, function (state, action) {
|
|
30653
|
+
state.order__catalog_masters.loading = true, state.order__catalog_masters.error = false, state.order__catalog_masters.loading = true;
|
|
30654
|
+
}), _defineProperty(_extraReducers$8, ORDER__CATALOG_MASTER.rejected, function (state, action) {
|
|
30655
|
+
state.order__catalog_masters.loading = false, state.order__catalog_masters.error = true, state.order__catalog_masters = action.payload;
|
|
30656
|
+
}), _defineProperty(_extraReducers$8, DRUG__CATALOG_MASTER.fulfilled, function (state, action) {
|
|
30657
|
+
state.drug__catalog_masters.loading = false, state.drug__catalog_masters.error = false, state.drug__catalog_masters = action.payload;
|
|
30658
|
+
}), _defineProperty(_extraReducers$8, DRUG__CATALOG_MASTER.pending, function (state, action) {
|
|
30659
|
+
state.drug__catalog_masters.loading = true, state.drug__catalog_masters.error = false, state.drug__catalog_masters.loading = true;
|
|
30660
|
+
}), _defineProperty(_extraReducers$8, DRUG__CATALOG_MASTER.rejected, function (state, action) {
|
|
30661
|
+
state.drug__catalog_masters.loading = false, state.drug__catalog_masters.error = true, state.drug__catalog_masters = action.payload;
|
|
30474
30662
|
}), _defineProperty(_extraReducers$8, ORDER_CATEGORY_MASTER.fulfilled, function (state, action) {
|
|
30475
30663
|
state.order_category_masters.loading = false, state.order_category_masters.error = false, state.order_category_masters = action.payload;
|
|
30476
30664
|
}), _defineProperty(_extraReducers$8, ORDER_CATEGORY_MASTER.pending, function (state, action) {
|
|
@@ -30495,8 +30683,10 @@ var orderSetMasterActions = {
|
|
|
30495
30683
|
GET_ORDER_SET_LIST: GET_ORDER_SET_LIST,
|
|
30496
30684
|
ORDER_SET_MASTER_STATUS_CHANGE: ORDER_SET_MASTER_STATUS_CHANGE,
|
|
30497
30685
|
ORDER_SET_MASTER_MASTER: ORDER_SET_MASTER_MASTER,
|
|
30498
|
-
|
|
30499
|
-
|
|
30686
|
+
ORDER__MASTER: ORDER__MASTER,
|
|
30687
|
+
DRUG__MASTER: DRUG__MASTER,
|
|
30688
|
+
ORDER__CATALOG_MASTER: ORDER__CATALOG_MASTER,
|
|
30689
|
+
DRUG__CATALOG_MASTER: DRUG__CATALOG_MASTER,
|
|
30500
30690
|
ORDER_CATEGORY_MASTER: ORDER_CATEGORY_MASTER,
|
|
30501
30691
|
UPSERT_ORDER_SET: UPSERT_ORDER_SET,
|
|
30502
30692
|
ORDER_SET_SINGLE_READ: ORDER_SET_SINGLE_READ,
|