primary_care_admin_binder 0.1.111 → 0.1.113
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 +795 -417
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2508,6 +2508,7 @@ var __holidayAddUrl__ = "".concat(process.env.REACT_APP_APPOINTMENT_API, "/api/a
|
|
|
2508
2508
|
// metadata db name & Id
|
|
2509
2509
|
var metaDatadbName$1 = process.env.REACT_APP_METADATA_DB_NAME;
|
|
2510
2510
|
var metaDataId$1 = process.env.REACT_APP_METADATAID;
|
|
2511
|
+
var tenantId = process.env.REACT_APP_TENANTID;
|
|
2511
2512
|
|
|
2512
2513
|
var moment = createCommonjsModule(function (module, exports) {
|
|
2513
2514
|
(function (global, factory) {
|
|
@@ -11429,7 +11430,7 @@ var generateUpdateJSON$1 = function generateUpdateJSON(editID, Status) {
|
|
|
11429
11430
|
};
|
|
11430
11431
|
|
|
11431
11432
|
//for edit read JSON
|
|
11432
|
-
var generateReadResJson
|
|
11433
|
+
var generateReadResJson = function generateReadResJson(data, state, ageCategory) {
|
|
11433
11434
|
var list = data.map(function (v) {
|
|
11434
11435
|
return {
|
|
11435
11436
|
editData: v._id,
|
|
@@ -11966,7 +11967,7 @@ var EDIT_VITAL_MASTER = createAsyncThunk("vitalsMasterSectionApiSlice/editvitalM
|
|
|
11966
11967
|
}, __readDocumentUrl__);
|
|
11967
11968
|
case 11:
|
|
11968
11969
|
data = _context11.sent;
|
|
11969
|
-
res = generateReadResJson
|
|
11970
|
+
res = generateReadResJson(data.result, ccState, category.result);
|
|
11970
11971
|
return _context11.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
11971
11972
|
data: res
|
|
11972
11973
|
}));
|
|
@@ -23237,12 +23238,19 @@ var masterQuery$5 = {
|
|
|
23237
23238
|
};
|
|
23238
23239
|
var orderTypedata = {
|
|
23239
23240
|
ordertype: function ordertype(type) {
|
|
23241
|
+
// return{
|
|
23242
|
+
// db_name: dbName,
|
|
23243
|
+
// entity: "OrderType",
|
|
23244
|
+
// filter: `OrderType.activestatus==true && OrderType.status==true && OrderType.ordercategory=='${type}'`,
|
|
23245
|
+
// return_fields: "merge(OrderType,{ordercategory:(document(OrderType.ordercategory))})",
|
|
23246
|
+
// sort: "OrderType.ordertype"
|
|
23247
|
+
// }
|
|
23240
23248
|
return {
|
|
23241
|
-
db_name: dbName$1,
|
|
23242
|
-
|
|
23243
|
-
|
|
23244
|
-
|
|
23245
|
-
|
|
23249
|
+
"db_name": dbName$1,
|
|
23250
|
+
"filter": {
|
|
23251
|
+
"ordercategoryId": type
|
|
23252
|
+
},
|
|
23253
|
+
"queryid": "b4c429f4-45d0-438d-89b8-3ca31134ae4a"
|
|
23246
23254
|
};
|
|
23247
23255
|
}
|
|
23248
23256
|
};
|
|
@@ -23262,40 +23270,67 @@ var Query = {
|
|
|
23262
23270
|
order_catalog_read: function order_catalog_read(_ref) {
|
|
23263
23271
|
var page = _ref.page,
|
|
23264
23272
|
perPage = _ref.perPage;
|
|
23273
|
+
// return {
|
|
23274
|
+
// "db_name": dbName,
|
|
23275
|
+
// "entity": "OrderCatalog",
|
|
23276
|
+
// "sort": "OrderCatalog.createddate ASC",
|
|
23277
|
+
// "limit": {
|
|
23278
|
+
// "offset": page,
|
|
23279
|
+
// "count": perPage
|
|
23280
|
+
// },
|
|
23281
|
+
// "filter": "OrderCatalog.activestatus==true",
|
|
23282
|
+
// "return_fields": "MERGE(OrderCatalog,{TotalCount:COUNT(FOR cnt IN OrderCatalog RETURN cnt._key)},{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})"
|
|
23283
|
+
// };
|
|
23284
|
+
|
|
23265
23285
|
return {
|
|
23266
23286
|
"db_name": dbName$1,
|
|
23267
|
-
"
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
"offset": page,
|
|
23271
|
-
"count": perPage
|
|
23287
|
+
"filter": {
|
|
23288
|
+
"page": page,
|
|
23289
|
+
"perPage": perPage
|
|
23272
23290
|
},
|
|
23273
|
-
"
|
|
23274
|
-
"return_fields": "MERGE(OrderCatalog,{TotalCount:COUNT(FOR cnt IN OrderCatalog RETURN cnt._key)},{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})"
|
|
23291
|
+
"queryid": "0b70b829-2e3e-49b2-85e4-1be22332f351"
|
|
23275
23292
|
};
|
|
23276
23293
|
},
|
|
23277
23294
|
order_catalog_read_search: function order_catalog_read_search(_ref2) {
|
|
23278
23295
|
var page = _ref2.page,
|
|
23279
23296
|
perPage = _ref2.perPage,
|
|
23280
23297
|
search = _ref2.search;
|
|
23298
|
+
// return {
|
|
23299
|
+
// "db_name": dbName,
|
|
23300
|
+
// "entity": "OrderCatalog",
|
|
23301
|
+
// "sort": "OrderCatalog.createddate ASC",
|
|
23302
|
+
// "limit": {
|
|
23303
|
+
// "offset": page,
|
|
23304
|
+
// "count": perPage
|
|
23305
|
+
// },
|
|
23306
|
+
// "filter": `(like(OrderCatalog.shortdesc,'%${search}%',true) || like(OrderCatalog.longdesc,'%${search}%',true) || like(OrderCatalog.ordercatalog,'%${search}%',true)) && OrderCatalog.activestatus==true`,
|
|
23307
|
+
// "return_fields": `MERGE(OrderCatalog,{TotalCount:COUNT(FOR cnt IN OrderCatalog FILTER (like(cnt.shortdesc,'%${search}%',true) || like(cnt.longdesc,'%${search}%',true) || like(cnt.ordercatalog,'%${search}%',true)) && cnt.activestatus==true RETURN cnt._key)},{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})`
|
|
23308
|
+
// }
|
|
23309
|
+
|
|
23281
23310
|
return {
|
|
23282
|
-
"db_name":
|
|
23283
|
-
"
|
|
23284
|
-
|
|
23285
|
-
|
|
23286
|
-
"
|
|
23287
|
-
"count": perPage
|
|
23311
|
+
"db_name": "primarycareng",
|
|
23312
|
+
"filter": {
|
|
23313
|
+
"searchval": search,
|
|
23314
|
+
"page": page,
|
|
23315
|
+
"perPage": perPage
|
|
23288
23316
|
},
|
|
23289
|
-
"
|
|
23290
|
-
"return_fields": "MERGE(OrderCatalog,{TotalCount:COUNT(FOR cnt IN OrderCatalog FILTER (like(cnt.shortdesc,'%".concat(search, "%',true) || like(cnt.longdesc,'%").concat(search, "%',true) || like(cnt.ordercatalog,'%").concat(search, "%',true)) && cnt.activestatus==true RETURN cnt._key)},{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltFastingPeriodUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenBodySite:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenBodySite return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenCollectionMethod:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenCollectionMethod return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenType:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenType return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltSpecimenVolumeUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenVolumeUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),dfltqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),maxorderqtyUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.maxorderqtyUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),repeatCheckUOM:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.repeatCheckUOM return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)})),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(for docs in CodeableConceptMaster filter docs._id==doc.perfOrganizationEntity return merge(doc,{coding:(for cod in CodingMaster filter cod._id in docs.coding return cod.display)}))})),dfltSpecimenContainer:(for doc in CodeableConceptMaster filter doc._id==OrderCatalog.dfltSpecimenContainer return merge(doc,{coding:(for cod in CodingMaster filter cod._id in doc.coding return cod.display)}))})")
|
|
23317
|
+
"queryid": "603d2995-cff2-4cd3-b89d-13d21be3c79f"
|
|
23291
23318
|
};
|
|
23292
23319
|
},
|
|
23293
23320
|
editOrderCatalog: function editOrderCatalog(id) {
|
|
23321
|
+
// return {
|
|
23322
|
+
// db_name: dbName,
|
|
23323
|
+
// entity: "OrderCatalog",
|
|
23324
|
+
// filter: `OrderCatalog.activestatus==true && OrderCatalog._id=='${id}'`,
|
|
23325
|
+
// return_fields:
|
|
23326
|
+
// "MERGE(OrderCatalog,{ordercategory:(document(OrderCatalog.ordercategory)),ordertype:(document(OrderCatalog.ordertype)),healthcareservicecode:(document(OrderCatalog.healthcareservicecode)),OrderCatalogByEncounterTypeAge:(for doc in CA_OrderCatalogByEncounterTypeAge filter doc._id in OrderCatalog.OrderCatalogByEncounterTypeAge return doc),OrderAttribApplicability:(for doc in CA_OrderAttribApplicability filter doc._id in OrderCatalog.OrderAttribApplicability return doc),dfltFastingPeriodUOM:document(OrderCatalog.dfltFastingPeriodUOM),dfltSpecimenBodySite:document(OrderCatalog.dfltSpecimenBodySite),dfltSpecimenCollectionMethod:document(OrderCatalog.dfltSpecimenCollectionMethod),dfltSpecimenType:document(OrderCatalog.dfltSpecimenType),dfltSpecimenVolumeUOM:document(OrderCatalog.dfltSpecimenVolumeUOM),dfltqtyUOM:document(OrderCatalog.dfltqtyUOM),maxorderqtyUOM:document(OrderCatalog.maxorderqtyUOM),repeatCheckUOM:document(OrderCatalog.repeatCheckUOM),AvailablebyPerOrganization:(for doc in to_array(OrderCatalog.AvailablebyPerOrganization) return merge(doc,{perforganizationId:(document(doc.perforganizationId)),perfOrganizationEntity:(document(doc.perfOrganizationEntity))})),dfltSpecimenContainer:document(OrderCatalog.dfltSpecimenContainer),repeatCheckAction:document(OrderCatalog.repeatCheckAction),resourcedefinition:(for i in TO_ARRAY(OrderCatalog.resourcedefinition) return {resourcetype:{label:document(i.resourcetype).display,value:document(i.resourcetype)._id,_id:document(i.resourcetype)._id},resourcerole:{label:document(i.resourcerole).display,value:document(i.resourcerole)._id,_id:document(i.resourcerole)._id},resourcename:(for resn in i.resourcename return {_id:document(resn)._id,value:document(resn)._id,label:CONCAT(document(document(resn).personid).name[0].fulname)}), resourcedepartment:(for resourcedepartment in i.resourcedepartment return {_id : document(resourcedepartment)._id,label:document(resourcedepartment).display,value : document(resourcedepartment)._id})}),observationdetails:(for obs in TO_ARRAY(OrderCatalog.observationdetails) return MERGE (obs,{vitalcode:{label:document(obs.vitalcode).longdesc,value:document(obs.vitalcode)._id,_id:document(obs.vitalcode)._id}}))})"
|
|
23327
|
+
// };
|
|
23294
23328
|
return {
|
|
23295
|
-
db_name: dbName$1,
|
|
23296
|
-
|
|
23297
|
-
|
|
23298
|
-
|
|
23329
|
+
"db_name": dbName$1,
|
|
23330
|
+
"filter": {
|
|
23331
|
+
"id": id
|
|
23332
|
+
},
|
|
23333
|
+
"queryid": "d2d0ea53-0a1c-4569-a033-f2a3716e3f1d"
|
|
23299
23334
|
};
|
|
23300
23335
|
},
|
|
23301
23336
|
attributeDelete: function attributeDelete(id) {
|
|
@@ -23306,18 +23341,79 @@ var Query = {
|
|
|
23306
23341
|
};
|
|
23307
23342
|
},
|
|
23308
23343
|
entityTypeName: function entityTypeName(name) {
|
|
23344
|
+
// return {
|
|
23345
|
+
// db_name: dbName,
|
|
23346
|
+
// entity: "Organization",
|
|
23347
|
+
// sort: "Organization.name",
|
|
23348
|
+
// filter: `Organization.OrgType ANY =='${name}' && Organization.activestatus==true`,
|
|
23349
|
+
// return_fields: "Organization",
|
|
23350
|
+
// };
|
|
23351
|
+
|
|
23309
23352
|
return {
|
|
23310
|
-
db_name: dbName$1,
|
|
23311
|
-
|
|
23312
|
-
|
|
23313
|
-
|
|
23314
|
-
|
|
23353
|
+
"db_name": dbName$1,
|
|
23354
|
+
"filter": {
|
|
23355
|
+
"Orgname": name
|
|
23356
|
+
},
|
|
23357
|
+
"queryid": "b0931347-d3eb-4627-b799-cc701cb8f6c9"
|
|
23315
23358
|
};
|
|
23316
23359
|
}
|
|
23317
23360
|
};
|
|
23318
23361
|
|
|
23319
|
-
var
|
|
23320
|
-
var _data$
|
|
23362
|
+
var generateSaveChargeCode = function generateSaveChargeCode(data) {
|
|
23363
|
+
var _data$healthcareServi, _data$code, _data$longdes, _data$DuplicatePeriod, _data$shortdes;
|
|
23364
|
+
var filter = {};
|
|
23365
|
+
if (data !== null && data !== void 0 && (_data$healthcareServi = data.healthcareService) !== null && _data$healthcareServi !== void 0 && _data$healthcareServi.value) {
|
|
23366
|
+
var _data$healthcareServi2;
|
|
23367
|
+
filter = {
|
|
23368
|
+
filter: {
|
|
23369
|
+
_id: data === null || data === void 0 ? void 0 : (_data$healthcareServi2 = data.healthcareService) === null || _data$healthcareServi2 === void 0 ? void 0 : _data$healthcareServi2._id
|
|
23370
|
+
}
|
|
23371
|
+
};
|
|
23372
|
+
}
|
|
23373
|
+
return [_objectSpread2$1(_objectSpread2$1({
|
|
23374
|
+
db_name: dbName$1,
|
|
23375
|
+
entity: "RC_ChargeCode",
|
|
23376
|
+
is_metadata: true,
|
|
23377
|
+
metadataId: metaDataId$1,
|
|
23378
|
+
metadata_dbname: metaDatadbName$1
|
|
23379
|
+
}, filter), {}, {
|
|
23380
|
+
doc: {
|
|
23381
|
+
baseqty: 1,
|
|
23382
|
+
chargecode: (_data$code = data === null || data === void 0 ? void 0 : data.code) !== null && _data$code !== void 0 ? _data$code : "",
|
|
23383
|
+
facilityid: "",
|
|
23384
|
+
id: 0,
|
|
23385
|
+
longdesc: (_data$longdes = data.longdes) !== null && _data$longdes !== void 0 ? _data$longdes : "",
|
|
23386
|
+
maxdurnuom: data.DuplicatePeriod ? data === null || data === void 0 ? void 0 : (_data$DuplicatePeriod = data.DuplicatePeriod) === null || _data$DuplicatePeriod === void 0 ? void 0 : _data$DuplicatePeriod._id : "",
|
|
23387
|
+
maxdurnval: data.no ? parseInt(data.no) : 0,
|
|
23388
|
+
maxordqtyuom: data.Maxorder ? data.Maxorder._id : "",
|
|
23389
|
+
maxordqtyval: data.Qtyno ? parseInt(data.maxno) : 0,
|
|
23390
|
+
shortdesc: (_data$shortdes = data.shortdes) !== null && _data$shortdes !== void 0 ? _data$shortdes : "",
|
|
23391
|
+
tenantid: tenantId
|
|
23392
|
+
}
|
|
23393
|
+
})];
|
|
23394
|
+
};
|
|
23395
|
+
var generateSaveJSON = function generateSaveJSON(data, rcchargeCode) {
|
|
23396
|
+
var _data$resourceList, _data$observationList, _data$characteristicJ, _data$itemdesc$value, _data$itemdesc, _data$DuplicatePeriod2, _data$CheckAction;
|
|
23397
|
+
var resourceresult = data === null || data === void 0 ? void 0 : (_data$resourceList = data.resourceList) === null || _data$resourceList === void 0 ? void 0 : _data$resourceList.map(function (item) {
|
|
23398
|
+
return {
|
|
23399
|
+
resourcetype: item.resourcetype._id,
|
|
23400
|
+
resourcerole: item.resourcerole._id,
|
|
23401
|
+
resourcedepartment: item.resourcedepartment.map(function (department) {
|
|
23402
|
+
return department._id;
|
|
23403
|
+
}),
|
|
23404
|
+
resourcename: item.resourcename.map(function (name) {
|
|
23405
|
+
return name._id;
|
|
23406
|
+
})
|
|
23407
|
+
};
|
|
23408
|
+
});
|
|
23409
|
+
var observationresult = data === null || data === void 0 ? void 0 : (_data$observationList = data.observationList) === null || _data$observationList === void 0 ? void 0 : _data$observationList.map(function (item) {
|
|
23410
|
+
var _item$vitalcode;
|
|
23411
|
+
return {
|
|
23412
|
+
ismandatory: item === null || item === void 0 ? void 0 : item.mandatory,
|
|
23413
|
+
Sequence: item === null || item === void 0 ? void 0 : item.sequence,
|
|
23414
|
+
vitalcode: item === null || item === void 0 ? void 0 : (_item$vitalcode = item.vitalcode) === null || _item$vitalcode === void 0 ? void 0 : _item$vitalcode._id
|
|
23415
|
+
};
|
|
23416
|
+
});
|
|
23321
23417
|
var filter = {};
|
|
23322
23418
|
if (data.editData) {
|
|
23323
23419
|
filter = {
|
|
@@ -23347,7 +23443,7 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
23347
23443
|
ordercategory: data.orderCategory ? data.orderCategory.value : "",
|
|
23348
23444
|
grouporindv: data.groupOrIndividual ? data.groupOrIndividual.value : "",
|
|
23349
23445
|
ordertype: data.orderType ? data.orderType.value : "",
|
|
23350
|
-
healthcareservicecode:
|
|
23446
|
+
healthcareservicecode: rcchargeCode ? rcchargeCode : "",
|
|
23351
23447
|
//reflexonresult: "boolean",
|
|
23352
23448
|
completeonorder: data.characteristicJson[0].checked,
|
|
23353
23449
|
mappingmoduleId: "",
|
|
@@ -23373,11 +23469,11 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
23373
23469
|
consentformid: data.ConsentForm ? data.ConsentForm.value : "",
|
|
23374
23470
|
checkforrepeatorders: data.checkSwitch,
|
|
23375
23471
|
repeatcheckperiod: data.no ? parseInt(data.no) : 0,
|
|
23376
|
-
repeatCheckUOM: data.DuplicatePeriod ? data.DuplicatePeriod.
|
|
23377
|
-
repeatCheckAction: data.CheckAction ? data.CheckAction.
|
|
23472
|
+
repeatCheckUOM: data.DuplicatePeriod ? data === null || data === void 0 ? void 0 : (_data$DuplicatePeriod2 = data.DuplicatePeriod) === null || _data$DuplicatePeriod2 === void 0 ? void 0 : _data$DuplicatePeriod2._id : "",
|
|
23473
|
+
repeatCheckAction: data.CheckAction ? data === null || data === void 0 ? void 0 : (_data$CheckAction = data.CheckAction) === null || _data$CheckAction === void 0 ? void 0 : _data$CheckAction._id : "",
|
|
23378
23474
|
status: data.status,
|
|
23379
|
-
dfltqtyUOM: data.DefaultQuantity ? data.DefaultQuantity.
|
|
23380
|
-
maxorderqtyUOM: data.Maxorder ? data.Maxorder.
|
|
23475
|
+
dfltqtyUOM: data.DefaultQuantity ? data.DefaultQuantity._id : "",
|
|
23476
|
+
maxorderqtyUOM: data.Maxorder ? data.Maxorder._id : "",
|
|
23381
23477
|
dfltSpecimenType: data.SpecimenType ? data.SpecimenType.value : "",
|
|
23382
23478
|
dfltSpecimenVolume: data.VolumeQuantity ? parseInt(data.VolumeQuantity) : 0,
|
|
23383
23479
|
dfltSpecimenVolumeUOM: data.Volume ? data.Volume.value : "",
|
|
@@ -23388,18 +23484,20 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
23388
23484
|
dfltFastingPeriodUOM: data.FastingPeriod ? data.FastingPeriod.value : "",
|
|
23389
23485
|
OrderCatalogByEncounterTypeAge: getInstructionAndFrequency(data.instructions, data.frequency, data.Frequency_applicability),
|
|
23390
23486
|
draftstatus: data.draftstatus,
|
|
23391
|
-
OrderAttribApplicability: getAttributes(data.AttributeList, data.attribute)
|
|
23487
|
+
OrderAttribApplicability: getAttributes(data.AttributeList, data.attribute),
|
|
23488
|
+
resourcedefinition: resourceresult !== null && resourceresult !== void 0 ? resourceresult : [],
|
|
23489
|
+
observationdetails: observationresult !== null && observationresult !== void 0 ? observationresult : []
|
|
23392
23490
|
}
|
|
23393
23491
|
})];
|
|
23394
23492
|
};
|
|
23395
23493
|
var getAvailability = function getAvailability(data) {
|
|
23396
23494
|
var arr = data.map(function (v) {
|
|
23397
|
-
var _v$entity_name$
|
|
23495
|
+
var _v$entity_name$_id, _v$entity_name, _v$entity_name2, _v$appointment, _parseInt, _v$entity_type$_id, _v$entity_type;
|
|
23398
23496
|
return {
|
|
23399
|
-
perforganizationId: (_v$entity_name$
|
|
23497
|
+
perforganizationId: (_v$entity_name$_id = v === null || v === void 0 ? void 0 : (_v$entity_name = v.entity_name) === null || _v$entity_name === void 0 ? void 0 : _v$entity_name._id) !== null && _v$entity_name$_id !== void 0 ? _v$entity_name$_id : v === null || v === void 0 ? void 0 : (_v$entity_name2 = v.entity_name) === null || _v$entity_name2 === void 0 ? void 0 : _v$entity_name2.value,
|
|
23400
23498
|
apptreqd: (_v$appointment = v === null || v === void 0 ? void 0 : v.appointment) !== null && _v$appointment !== void 0 ? _v$appointment : false,
|
|
23401
23499
|
apptDurnInMinutes: (_parseInt = parseInt(v.duration)) !== null && _parseInt !== void 0 ? _parseInt : null,
|
|
23402
|
-
perfOrganizationEntity: (_v$entity_type$
|
|
23500
|
+
perfOrganizationEntity: (_v$entity_type$_id = v === null || v === void 0 ? void 0 : (_v$entity_type = v.entity_type) === null || _v$entity_type === void 0 ? void 0 : _v$entity_type._id) !== null && _v$entity_type$_id !== void 0 ? _v$entity_type$_id : null,
|
|
23403
23501
|
EffFrDate: v !== null && v !== void 0 && v.effective_from ? getUtcTime(moment(v.effective_from, "DD/MM/YYYY")) : null,
|
|
23404
23502
|
EffToDate: v !== null && v !== void 0 && v.effective_to ? getUtcTime(moment(v === null || v === void 0 ? void 0 : v.effective_to, "DD/MM/YYYY")) : null
|
|
23405
23503
|
};
|
|
@@ -23408,6 +23506,7 @@ var getAvailability = function getAvailability(data) {
|
|
|
23408
23506
|
};
|
|
23409
23507
|
var getAttributes = function getAttributes(data, attri) {
|
|
23410
23508
|
var arr = data.map(function (v, i) {
|
|
23509
|
+
var _v$isMandatory;
|
|
23411
23510
|
return {
|
|
23412
23511
|
_id: v._id,
|
|
23413
23512
|
id: 0,
|
|
@@ -23415,10 +23514,11 @@ var getAttributes = function getAttributes(data, attri) {
|
|
|
23415
23514
|
winlabelName: attri,
|
|
23416
23515
|
AttribComponents: [{
|
|
23417
23516
|
attribSeq: i + 1,
|
|
23418
|
-
attribCode: v.Attcode.
|
|
23517
|
+
attribCode: v.Attcode.value,
|
|
23419
23518
|
attribdefaultVal: v.defaultValue.label,
|
|
23420
23519
|
attribType: v.type,
|
|
23421
|
-
attribLabel: v.label
|
|
23520
|
+
attribLabel: v.label,
|
|
23521
|
+
mandatory: (_v$isMandatory = v === null || v === void 0 ? void 0 : v.isMandatory) !== null && _v$isMandatory !== void 0 ? _v$isMandatory : false
|
|
23422
23522
|
}]
|
|
23423
23523
|
};
|
|
23424
23524
|
});
|
|
@@ -23432,8 +23532,8 @@ var getInstructionAndFrequency = function getInstructionAndFrequency(insdata, fr
|
|
|
23432
23532
|
id: 0,
|
|
23433
23533
|
serviceapplicability: "Service",
|
|
23434
23534
|
setuptypeInd: "Instruction",
|
|
23435
|
-
encountertype: v.encounterType ? v.encounterType.
|
|
23436
|
-
gendercode: v.gender ? v.gender.
|
|
23535
|
+
encountertype: v.encounterType ? v.encounterType._id : "",
|
|
23536
|
+
gendercode: v.gender ? v.gender._id : "",
|
|
23437
23537
|
agegroup: v.ageRange ? v.ageRange.value : "",
|
|
23438
23538
|
agecatgcode: v.agecategory ? v.agecategory.map(function (a) {
|
|
23439
23539
|
return a.value;
|
|
@@ -23453,19 +23553,19 @@ var getInstructionAndFrequency = function getInstructionAndFrequency(insdata, fr
|
|
|
23453
23553
|
serviceapplicability: "Service",
|
|
23454
23554
|
setuptypeInd: "DefaultValues",
|
|
23455
23555
|
ordercatalog: "string",
|
|
23456
|
-
encountertype: v.encounterType ? v.encounterType.
|
|
23457
|
-
gendercode: v.gender ? v.gender.
|
|
23556
|
+
encountertype: v.encounterType ? v.encounterType._id : "",
|
|
23557
|
+
gendercode: v.gender ? v.gender._id : "",
|
|
23458
23558
|
agegroup: v.ageRange ? v.ageRange.value : "",
|
|
23459
23559
|
agecatgcode: v.agecategory ? v.agecategory.map(function (a) {
|
|
23460
23560
|
return a.value;
|
|
23461
23561
|
}) : [],
|
|
23462
23562
|
freqappl: freapp,
|
|
23463
23563
|
dfltfreqValue: v.freqvalue ? parseInt(v.freqvalue) : 0,
|
|
23464
|
-
dfltfreqValueUnit: v.freqValSelect ? v.freqValSelect.
|
|
23564
|
+
dfltfreqValueUnit: v.freqValSelect ? v.freqValSelect._id : "",
|
|
23465
23565
|
dfltfreqRate: v.freqrate ? parseInt(v.freqrate) : 0,
|
|
23466
|
-
dfltfreqRateUnit: v.freqRatSelect ? v.freqRatSelect.
|
|
23566
|
+
dfltfreqRateUnit: v.freqRatSelect ? v.freqRatSelect._id : "",
|
|
23467
23567
|
dfltduration: v.freqdura ? parseInt(v.freqdura) : 0,
|
|
23468
|
-
dfltdurationType: v.freqDuraSelect ? v.freqDuraSelect.
|
|
23568
|
+
dfltdurationType: v.freqDuraSelect ? v.freqDuraSelect._id : "",
|
|
23469
23569
|
maxdurnallowedinDays: v.freqmax ? parseInt(v.freqmax) : 0
|
|
23470
23570
|
});
|
|
23471
23571
|
});
|
|
@@ -23479,8 +23579,7 @@ var generateResJson = function generateResJson(data) {
|
|
|
23479
23579
|
code: val.ordercatalog ? val.ordercatalog : "",
|
|
23480
23580
|
"short": val.shortdesc ? val.shortdesc : "",
|
|
23481
23581
|
"long": val.longdesc ? val.longdesc : "",
|
|
23482
|
-
status: val.status ? val.status : false
|
|
23483
|
-
draft: val.draftstatus
|
|
23582
|
+
status: val.status ? val.status : false
|
|
23484
23583
|
}, val);
|
|
23485
23584
|
});
|
|
23486
23585
|
return list;
|
|
@@ -23503,32 +23602,21 @@ var generateUpdateJSON = function generateUpdateJSON(editID, Status) {
|
|
|
23503
23602
|
}];
|
|
23504
23603
|
};
|
|
23505
23604
|
|
|
23506
|
-
|
|
23507
|
-
var
|
|
23508
|
-
var _val$catalogsynonym, _val$ordercategory, _val$ordertype, _val$healthcareservic, _val$dfltqtyUOM, _val$maxorderqtyUOM, _val$repeatCheckUOM, _val$repeatCheckActio, _val$dfltSpecimenType, _val$dfltSpecimenVolu, _val$dfltSpecimenBody, _val$dfltFastingPerio, _val$dfltSpecimenCont, _val$dfltSpecimenColl;
|
|
23605
|
+
var generateReadResJsonData = function generateReadResJsonData(val, state, resState) {
|
|
23606
|
+
var _val$catalogsynonym2, _val$ordercategory2, _val$ordertype2, _val$healthcareservic2, _val$dfltqtyUOM2, _val$maxorderqtyUOM2, _val$repeatCheckUOM2, _val$repeatCheckActio2, _generateAttribute2, _val$dfltSpecimenType2, _val$dfltSpecimenVolu2, _val$dfltSpecimenBody2, _val$dfltFastingPerio2, _val$dfltSpecimenCont2, _val$dfltSpecimenColl2, _generateResoure2, _generateObservation2;
|
|
23509
23607
|
return {
|
|
23510
23608
|
code: val.ordercatalog,
|
|
23511
23609
|
longdes: val.longdesc,
|
|
23512
23610
|
shortdes: val.shortdesc,
|
|
23513
|
-
catalogSynonym: (_val$
|
|
23514
|
-
orderCategory: val !== null && val !== void 0 && val.ordercategory && val !== null && val !== void 0 && (_val$
|
|
23515
|
-
|
|
23516
|
-
|
|
23517
|
-
orderType: val.ordertype && (_val$ordertype = val.ordertype) !== null && _val$ordertype !== void 0 && _val$ordertype._id ? state.order_catalog_masters.data.orderType.find(function (sys) {
|
|
23518
|
-
return val.ordertype._id.indexOf(sys.value) > -1;
|
|
23519
|
-
}) : null,
|
|
23520
|
-
healthcareService: val.healthcareservicecode && (_val$healthcareservic = val.healthcareservicecode) !== null && _val$healthcareservic !== void 0 && _val$healthcareservic._id ? state.order_catalog_masters.data.healthService.find(function (sys) {
|
|
23521
|
-
return val.healthcareservicecode._id.indexOf(sys.value) > -1;
|
|
23522
|
-
}) : null,
|
|
23611
|
+
catalogSynonym: (_val$catalogsynonym2 = val.catalogsynonym) !== null && _val$catalogsynonym2 !== void 0 ? _val$catalogsynonym2 : "",
|
|
23612
|
+
orderCategory: val !== null && val !== void 0 && val.ordercategory && val !== null && val !== void 0 && (_val$ordercategory2 = val.ordercategory) !== null && _val$ordercategory2 !== void 0 && _val$ordercategory2._id ? val === null || val === void 0 ? void 0 : val.ordercategory : null,
|
|
23613
|
+
orderType: val.ordertype && (_val$ordertype2 = val.ordertype) !== null && _val$ordertype2 !== void 0 && _val$ordertype2._id ? val.ordertype : null,
|
|
23614
|
+
healthcareService: val.healthcareservicecode && (_val$healthcareservic2 = val.healthcareservicecode) !== null && _val$healthcareservic2 !== void 0 && _val$healthcareservic2._id ? val.healthcareservicecode : null,
|
|
23523
23615
|
Qtyno: val.dfltqty,
|
|
23524
|
-
DefaultQuantity: val.dfltqtyUOM && (_val$
|
|
23525
|
-
return val.dfltqtyUOM._id.indexOf(sys.value) > -1;
|
|
23526
|
-
}) : null,
|
|
23616
|
+
DefaultQuantity: val.dfltqtyUOM && (_val$dfltqtyUOM2 = val.dfltqtyUOM) !== null && _val$dfltqtyUOM2 !== void 0 && _val$dfltqtyUOM2._id ? val.dfltqtyUOM : null,
|
|
23527
23617
|
AllowQtyCheck: val.allowqtychange,
|
|
23528
23618
|
maxno: val.maxorderqty,
|
|
23529
|
-
Maxorder: val.maxorderqtyUOM && (_val$
|
|
23530
|
-
return val.maxorderqtyUOM._id.indexOf(sys.value) > -1;
|
|
23531
|
-
}) : null,
|
|
23619
|
+
Maxorder: val.maxorderqtyUOM && (_val$maxorderqtyUOM2 = val.maxorderqtyUOM) !== null && _val$maxorderqtyUOM2 !== void 0 && _val$maxorderqtyUOM2._id ? val.maxorderqtyUOM : null,
|
|
23532
23620
|
explantorymsg: val.explanatorynote,
|
|
23533
23621
|
characteristicJson: [{
|
|
23534
23622
|
label: "Complete On Order",
|
|
@@ -23557,65 +23645,76 @@ var generateReadResJson = function generateReadResJson(val, state) {
|
|
|
23557
23645
|
}) : null,
|
|
23558
23646
|
checkSwitch: val.checkforrepeatorders,
|
|
23559
23647
|
no: val.repeatcheckperiod,
|
|
23560
|
-
DuplicatePeriod: val.repeatCheckUOM && (_val$
|
|
23561
|
-
|
|
23562
|
-
}) : null,
|
|
23563
|
-
CheckAction: val.repeatCheckAction && (_val$repeatCheckActio = val.repeatCheckAction) !== null && _val$repeatCheckActio !== void 0 && _val$repeatCheckActio._id ? state.order_catalog_masters.data.checkaction.find(function (sys) {
|
|
23564
|
-
return val.repeatCheckAction._id.indexOf(sys.value) > -1;
|
|
23565
|
-
}) : null,
|
|
23648
|
+
DuplicatePeriod: val.repeatCheckUOM && (_val$repeatCheckUOM2 = val.repeatCheckUOM) !== null && _val$repeatCheckUOM2 !== void 0 && _val$repeatCheckUOM2._id ? val.repeatCheckUOM : null,
|
|
23649
|
+
CheckAction: val.repeatCheckAction && (_val$repeatCheckActio2 = val.repeatCheckAction) !== null && _val$repeatCheckActio2 !== void 0 && _val$repeatCheckActio2._id ? val.repeatCheckAction : null,
|
|
23566
23650
|
consentSwitch: val.consentreqd,
|
|
23567
23651
|
ConsentForm: null,
|
|
23568
23652
|
attribute: val.OrderAttribApplicability.length > 0 ? val.OrderAttribApplicability[0].winlabelName : "",
|
|
23569
|
-
AttributeList: generateAttribute(val.OrderAttribApplicability, state),
|
|
23570
|
-
FacilityData: generatefaciltity(val.AvailablebyPerOrganization
|
|
23571
|
-
SpecimenType: val.dfltSpecimenType && (_val$
|
|
23572
|
-
return val.dfltSpecimenType._id.indexOf(sys.value) > -1;
|
|
23573
|
-
}) : null,
|
|
23653
|
+
AttributeList: (_generateAttribute2 = generateAttribute(val.OrderAttribApplicability, state)) !== null && _generateAttribute2 !== void 0 ? _generateAttribute2 : [],
|
|
23654
|
+
FacilityData: generatefaciltity(val.AvailablebyPerOrganization),
|
|
23655
|
+
SpecimenType: val.dfltSpecimenType && (_val$dfltSpecimenType2 = val.dfltSpecimenType) !== null && _val$dfltSpecimenType2 !== void 0 && _val$dfltSpecimenType2._id ? val.dfltSpecimenType : null,
|
|
23574
23656
|
VolumeQuantity: val.dfltSpecimenVolume,
|
|
23575
|
-
Volume: val.dfltSpecimenVolumeUOM && (_val$
|
|
23576
|
-
|
|
23577
|
-
}) : null,
|
|
23578
|
-
BodyType: val.dfltSpecimenBodySite && (_val$dfltSpecimenBody = val.dfltSpecimenBodySite) !== null && _val$dfltSpecimenBody !== void 0 && _val$dfltSpecimenBody._id ? state.order_catalog_masters.data.bodySite.find(function (sys) {
|
|
23579
|
-
return val.dfltSpecimenBodySite._id.indexOf(sys.value) > -1;
|
|
23580
|
-
}) : null,
|
|
23657
|
+
Volume: val.dfltSpecimenVolumeUOM && (_val$dfltSpecimenVolu2 = val.dfltSpecimenVolumeUOM) !== null && _val$dfltSpecimenVolu2 !== void 0 && _val$dfltSpecimenVolu2._id ? dfltSpecimenVolumeUOM : null,
|
|
23658
|
+
BodyType: val.dfltSpecimenBodySite && (_val$dfltSpecimenBody2 = val.dfltSpecimenBodySite) !== null && _val$dfltSpecimenBody2 !== void 0 && _val$dfltSpecimenBody2._id ? dfltSpecimenBodySite : null,
|
|
23581
23659
|
FastingPeriodQuantity: val.dfltFastingPeriod,
|
|
23582
|
-
FastingPeriod: val.dfltFastingPeriodUOM && (_val$
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
|
|
23586
|
-
|
|
23587
|
-
|
|
23588
|
-
CollectionMethod: val.dfltSpecimenCollectionMethod && (_val$dfltSpecimenColl = val.dfltSpecimenCollectionMethod) !== null && _val$dfltSpecimenColl !== void 0 && _val$dfltSpecimenColl._id ? state.order_catalog_masters.data.collectionMethod.find(function (sys) {
|
|
23589
|
-
return val.dfltSpecimenCollectionMethod._id.indexOf(sys.value) > -1;
|
|
23590
|
-
}) : null,
|
|
23591
|
-
instructions: generateInstruction(val.OrderCatalogByEncounterTypeAge, state),
|
|
23592
|
-
Frequency_applicability: generateFrequency(val.OrderCatalogByEncounterTypeAge, state).length > 0 ? true : false,
|
|
23593
|
-
frequency: generateFrequency(val.OrderCatalogByEncounterTypeAge, state),
|
|
23660
|
+
FastingPeriod: val.dfltFastingPeriodUOM && (_val$dfltFastingPerio2 = val.dfltFastingPeriodUOM) !== null && _val$dfltFastingPerio2 !== void 0 && _val$dfltFastingPerio2._id ? val.dfltFastingPeriodUOM : null,
|
|
23661
|
+
SpecimenContainer: val.dfltSpecimenContainer && (_val$dfltSpecimenCont2 = val.dfltSpecimenContainer) !== null && _val$dfltSpecimenCont2 !== void 0 && _val$dfltSpecimenCont2._id ? val.dfltSpecimenContainer : null,
|
|
23662
|
+
CollectionMethod: val.dfltSpecimenCollectionMethod && (_val$dfltSpecimenColl2 = val.dfltSpecimenCollectionMethod) !== null && _val$dfltSpecimenColl2 !== void 0 && _val$dfltSpecimenColl2._id ? val.dfltSpecimenCollectionMethod : null,
|
|
23663
|
+
instructions: generateInstruction(val.OrderCatalogByEncounterTypeAge),
|
|
23664
|
+
Frequency_applicability: generateFrequency(val.OrderCatalogByEncounterTypeAge).length > 0 ? true : false,
|
|
23665
|
+
frequency: generateFrequency(val.OrderCatalogByEncounterTypeAge),
|
|
23594
23666
|
editData: val._key,
|
|
23595
23667
|
id: val.id,
|
|
23596
23668
|
draftstatus: val.draftstatus,
|
|
23597
|
-
status: val.status
|
|
23669
|
+
status: val.status,
|
|
23670
|
+
resourceList: (_generateResoure2 = generateResoure(val.resourcedefinition)) !== null && _generateResoure2 !== void 0 ? _generateResoure2 : [],
|
|
23671
|
+
observationList: (_generateObservation2 = generateObservation(val.observationdetails)) !== null && _generateObservation2 !== void 0 ? _generateObservation2 : []
|
|
23672
|
+
// observationList: val.observationdetails
|
|
23598
23673
|
};
|
|
23599
23674
|
};
|
|
23675
|
+
|
|
23600
23676
|
var generateAttribute = function generateAttribute(data, state) {
|
|
23601
23677
|
var arr = data.map(function (v) {
|
|
23602
23678
|
return {
|
|
23603
|
-
Attcode: state.
|
|
23604
|
-
return v.AttribComponents[0].attribCode.indexOf(sys.
|
|
23679
|
+
Attcode: state.order_catalog_attrcode.data.find(function (sys) {
|
|
23680
|
+
return v.AttribComponents[0].attribCode.indexOf(sys.value) > -1;
|
|
23605
23681
|
}),
|
|
23606
23682
|
label: v.AttribComponents[0].attribLabel,
|
|
23607
23683
|
type: v.AttribComponents[0].attribType,
|
|
23608
23684
|
defaultValue: v.AttribComponents[0].attribType === "Number" || v.AttribComponents[0].attribType === "Text" ? {
|
|
23609
23685
|
label: v.AttribComponents[0].attribdefaultVal
|
|
23610
|
-
} : getDefautlValue(v, state.
|
|
23611
|
-
_id: v._key
|
|
23686
|
+
} : getDefautlValue(v, state.order_catalog_attrcode.data),
|
|
23687
|
+
_id: v._key,
|
|
23688
|
+
isMandatory: v.AttribComponents[0].mandatory
|
|
23689
|
+
};
|
|
23690
|
+
});
|
|
23691
|
+
return arr;
|
|
23692
|
+
};
|
|
23693
|
+
var generateResoure = function generateResoure(data, state) {
|
|
23694
|
+
var arr = data === null || data === void 0 ? void 0 : data.map(function (v) {
|
|
23695
|
+
return {
|
|
23696
|
+
resourcetype: v === null || v === void 0 ? void 0 : v.resourcetype,
|
|
23697
|
+
resourcerole: v === null || v === void 0 ? void 0 : v.resourcerole,
|
|
23698
|
+
resourcedepartment: v === null || v === void 0 ? void 0 : v.resourcedepartment,
|
|
23699
|
+
resourcename: v === null || v === void 0 ? void 0 : v.resourcename
|
|
23700
|
+
};
|
|
23701
|
+
});
|
|
23702
|
+
return arr;
|
|
23703
|
+
};
|
|
23704
|
+
var generateObservation = function generateObservation(data) {
|
|
23705
|
+
var arr = data === null || data === void 0 ? void 0 : data.map(function (v) {
|
|
23706
|
+
var _v$Sequence, _v$ismandatory, _v$vitalcode;
|
|
23707
|
+
return {
|
|
23708
|
+
sequence: (_v$Sequence = v === null || v === void 0 ? void 0 : v.Sequence) !== null && _v$Sequence !== void 0 ? _v$Sequence : "",
|
|
23709
|
+
mandatory: (_v$ismandatory = v === null || v === void 0 ? void 0 : v.ismandatory) !== null && _v$ismandatory !== void 0 ? _v$ismandatory : "",
|
|
23710
|
+
vitalcode: (_v$vitalcode = v === null || v === void 0 ? void 0 : v.vitalcode) !== null && _v$vitalcode !== void 0 ? _v$vitalcode : ""
|
|
23612
23711
|
};
|
|
23613
23712
|
});
|
|
23614
23713
|
return arr;
|
|
23615
23714
|
};
|
|
23616
23715
|
var getDefautlValue = function getDefautlValue(v, attr) {
|
|
23617
23716
|
var obj = attr.find(function (sys) {
|
|
23618
|
-
return v.AttribComponents[0].attribCode.indexOf(sys.
|
|
23717
|
+
return v.AttribComponents[0].attribCode.indexOf(sys.value) > -1;
|
|
23619
23718
|
});
|
|
23620
23719
|
var value = obj.AttribValidValues.find(function (sys) {
|
|
23621
23720
|
return v.AttribComponents[0].attribdefaultVal.indexOf(sys.label) > -1;
|
|
@@ -23667,15 +23766,9 @@ var generateInstruction = function generateInstruction(data, state) {
|
|
|
23667
23766
|
|
|
23668
23767
|
var instructionArr = obj === null || obj === void 0 ? void 0 : (_obj$Instruction = obj.Instruction) === null || _obj$Instruction === void 0 ? void 0 : (_obj$Instruction$data = _obj$Instruction.data) === null || _obj$Instruction$data === void 0 ? void 0 : _obj$Instruction$data.map(function (v) {
|
|
23669
23768
|
return {
|
|
23670
|
-
encounterType: v.encountertype ?
|
|
23671
|
-
|
|
23672
|
-
|
|
23673
|
-
gender: v.gendercode ? state.order_catalog_masters.data.gender.find(function (sys) {
|
|
23674
|
-
return v.gendercode.indexOf(sys.value) > -1;
|
|
23675
|
-
}) : null,
|
|
23676
|
-
ageRange: v.agegroup ? state.order_catalog_masters.data.ageGroup.find(function (sys) {
|
|
23677
|
-
return v.agegroup.indexOf(sys.value) > -1;
|
|
23678
|
-
}) : null,
|
|
23769
|
+
encounterType: v.encountertype ? v.encountertype : null,
|
|
23770
|
+
gender: v.gendercode ? v.gendercode : null,
|
|
23771
|
+
ageRange: v.agegroup ? v.agegroup : null,
|
|
23679
23772
|
agecategory: v.agecatgcode.map(function (v) {
|
|
23680
23773
|
return {
|
|
23681
23774
|
label: "",
|
|
@@ -23738,15 +23831,9 @@ var generateFrequency = function generateFrequency(data, state) {
|
|
|
23738
23831
|
var frequency = [];
|
|
23739
23832
|
frequency = obj === null || obj === void 0 ? void 0 : (_obj$DefaultValues = obj.DefaultValues) === null || _obj$DefaultValues === void 0 ? void 0 : (_obj$DefaultValues$da = _obj$DefaultValues.data) === null || _obj$DefaultValues$da === void 0 ? void 0 : _obj$DefaultValues$da.map(function (v) {
|
|
23740
23833
|
return {
|
|
23741
|
-
encounterType: v.encountertype ?
|
|
23742
|
-
|
|
23743
|
-
|
|
23744
|
-
gender: v.gendercode ? state.order_catalog_masters.data.gender.find(function (sys) {
|
|
23745
|
-
return v.gendercode.indexOf(sys.value) > -1;
|
|
23746
|
-
}) : null,
|
|
23747
|
-
ageRange: v.agegroup ? state.order_catalog_masters.data.ageGroup.find(function (sys) {
|
|
23748
|
-
return v.agegroup.indexOf(sys.value) > -1;
|
|
23749
|
-
}) : null,
|
|
23834
|
+
encounterType: v.encountertype ? v.encountertype : null,
|
|
23835
|
+
gender: v.gendercode ? v.gendercode : null,
|
|
23836
|
+
ageRange: v.agegroup ? v.agegroup : null,
|
|
23750
23837
|
agecategory: v.agecatgcode.map(function (v) {
|
|
23751
23838
|
return {
|
|
23752
23839
|
label: "",
|
|
@@ -23754,17 +23841,11 @@ var generateFrequency = function generateFrequency(data, state) {
|
|
|
23754
23841
|
};
|
|
23755
23842
|
}),
|
|
23756
23843
|
freqvalue: v.dfltfreqValue,
|
|
23757
|
-
freqValSelect: v.dfltfreqValueUnit ?
|
|
23758
|
-
return v.dfltfreqValueUnit.indexOf(sys.value) > -1;
|
|
23759
|
-
}) : null,
|
|
23844
|
+
freqValSelect: v.dfltfreqValueUnit ? v.dfltfreqValueUnit : null,
|
|
23760
23845
|
freqrate: v.dfltfreqRate,
|
|
23761
|
-
freqRatSelect: v.dfltfreqRateUnit ?
|
|
23762
|
-
return v.dfltfreqRateUnit.indexOf(sys.value) > -1;
|
|
23763
|
-
}) : null,
|
|
23846
|
+
freqRatSelect: v.dfltfreqRateUnit ? v.dfltfreqRateUnit : null,
|
|
23764
23847
|
freqdura: v.dfltduration,
|
|
23765
|
-
freqDuraSelect: v.dfltdurationType ?
|
|
23766
|
-
return v.dfltdurationType.indexOf(sys.value) > -1;
|
|
23767
|
-
}) : null,
|
|
23848
|
+
freqDuraSelect: v.dfltdurationType ? v.dfltdurationType : null,
|
|
23768
23849
|
freqmax: v.maxdurnallowedinDays,
|
|
23769
23850
|
_id: v._id
|
|
23770
23851
|
};
|
|
@@ -23776,9 +23857,7 @@ var generatefaciltity = function generatefaciltity(data, state) {
|
|
|
23776
23857
|
var facilityArr = data.map(function (v) {
|
|
23777
23858
|
var _v$apptreqd, _v$apptDurnInMinutes;
|
|
23778
23859
|
return {
|
|
23779
|
-
entity_type: v.perfOrganizationEntity && v.perfOrganizationEntity._id ?
|
|
23780
|
-
return v.perfOrganizationEntity._id.indexOf(sys.value) > -1;
|
|
23781
|
-
}) : null,
|
|
23860
|
+
entity_type: v.perfOrganizationEntity && v.perfOrganizationEntity._id ? v.perfOrganizationEntity : null,
|
|
23782
23861
|
// entity_name: v.perforganizationId
|
|
23783
23862
|
// ? state.order_catalog_masters.data.entitytName.find(
|
|
23784
23863
|
// (sys) => v.perforganizationId._id.indexOf(sys.value) > -1
|
|
@@ -23864,33 +23943,39 @@ var loopMasters$5 = function loopMasters() {
|
|
|
23864
23943
|
if (value.coding[0] !== null) {
|
|
23865
23944
|
arr.push({
|
|
23866
23945
|
label: value.coding[0].display,
|
|
23867
|
-
value: value.coding[0]._id
|
|
23946
|
+
value: value.coding[0]._id,
|
|
23947
|
+
_id: value.coding[0]._id
|
|
23868
23948
|
});
|
|
23869
23949
|
}
|
|
23870
23950
|
} else if ("orderCategory" === val.name) {
|
|
23871
23951
|
arr.push({
|
|
23872
23952
|
label: value.ordercategory,
|
|
23873
|
-
value: value._id
|
|
23953
|
+
value: value._id,
|
|
23954
|
+
_id: value._id
|
|
23874
23955
|
});
|
|
23875
23956
|
} else if ("orderType" === val.name) {
|
|
23876
23957
|
arr.push({
|
|
23877
23958
|
label: value.ordertype,
|
|
23878
|
-
value: value._id
|
|
23959
|
+
value: value._id,
|
|
23960
|
+
_id: value._id
|
|
23879
23961
|
});
|
|
23880
23962
|
} else if ("healthService" === val.name) {
|
|
23881
23963
|
arr.push({
|
|
23882
23964
|
label: value.name,
|
|
23883
|
-
value: value._id
|
|
23965
|
+
value: value._id,
|
|
23966
|
+
_id: value._id
|
|
23884
23967
|
});
|
|
23885
23968
|
} else if ("entitytName" === val.name) {
|
|
23886
23969
|
arr.push({
|
|
23887
23970
|
label: value.name,
|
|
23888
|
-
value: value._id
|
|
23971
|
+
value: value._id,
|
|
23972
|
+
_id: value._id
|
|
23889
23973
|
});
|
|
23890
23974
|
} else if ("ageGroup" === val.name) {
|
|
23891
23975
|
arr.push({
|
|
23892
23976
|
label: value.agerangecode,
|
|
23893
|
-
value: value._id
|
|
23977
|
+
value: value._id,
|
|
23978
|
+
_id: value._id
|
|
23894
23979
|
});
|
|
23895
23980
|
} else if ("attrcode" === val.name) {
|
|
23896
23981
|
var _value$AttribValidVal;
|
|
@@ -23991,170 +24076,167 @@ var ORDER_CATALOG_MASTERS = createAsyncThunk("orderCatalogApiSlice/order_catalog
|
|
|
23991
24076
|
}
|
|
23992
24077
|
}, _callee4, null, [[2, 10]]);
|
|
23993
24078
|
})));
|
|
23994
|
-
var
|
|
23995
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(payload, _ref6) {
|
|
23996
|
-
var rejectWithValue, _data$, _data$$GRPORIND, _data$$GRPORIND$Value, body, data, arry;
|
|
23997
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
23998
|
-
while (1) {
|
|
23999
|
-
switch (_context5.prev = _context5.next) {
|
|
24000
|
-
case 0:
|
|
24001
|
-
rejectWithValue = _ref6.rejectWithValue;
|
|
24002
|
-
_context5.prev = 1;
|
|
24003
|
-
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
24004
|
-
body = {
|
|
24005
|
-
"db_name": dbName$1,
|
|
24006
|
-
"filter": {
|
|
24007
|
-
"type": ["GRPORIND"],
|
|
24008
|
-
"tenantid": "",
|
|
24009
|
-
"facilityid": "",
|
|
24010
|
-
"lang": ""
|
|
24011
|
-
},
|
|
24012
|
-
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
24013
|
-
};
|
|
24014
|
-
_context5.next = 5;
|
|
24015
|
-
return fetchData({
|
|
24016
|
-
body: JSON.stringify(body)
|
|
24017
|
-
}, __baseUrl__$1);
|
|
24018
|
-
case 5:
|
|
24019
|
-
data = _context5.sent;
|
|
24020
|
-
arry = [];
|
|
24021
|
-
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$GRPORIND = _data$.GRPORIND) === null || _data$$GRPORIND === void 0 ? void 0 : (_data$$GRPORIND$Value = _data$$GRPORIND.Value) === null || _data$$GRPORIND$Value === void 0 ? void 0 : _data$$GRPORIND$Value.map(function (item) {
|
|
24022
|
-
return arry.push({
|
|
24023
|
-
_id: item._id,
|
|
24024
|
-
value: item._id,
|
|
24025
|
-
label: item.display
|
|
24026
|
-
});
|
|
24027
|
-
});
|
|
24028
|
-
return _context5.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24029
|
-
data: arry
|
|
24030
|
-
}));
|
|
24031
|
-
case 11:
|
|
24032
|
-
_context5.prev = 11;
|
|
24033
|
-
_context5.t0 = _context5["catch"](1);
|
|
24034
|
-
return _context5.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24035
|
-
message: _context5.t0.message
|
|
24036
|
-
})));
|
|
24037
|
-
case 14:
|
|
24038
|
-
case "end":
|
|
24039
|
-
return _context5.stop();
|
|
24040
|
-
}
|
|
24041
|
-
}
|
|
24042
|
-
}, _callee5, null, [[1, 11]]);
|
|
24043
|
-
}));
|
|
24044
|
-
return function (_x6, _x7) {
|
|
24045
|
-
return _ref7.apply(this, arguments);
|
|
24046
|
-
};
|
|
24047
|
-
}());
|
|
24048
|
-
var ORDER_CATALOG_SERVICEITEM = createAsyncThunk("orderCatalogApiSlice/order_catalog_serviceItem", /*#__PURE__*/function () {
|
|
24049
|
-
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(payload, _ref8) {
|
|
24050
|
-
var rejectWithValue, _data$2, _data$2$ORDERITEMSERV, _data$2$ORDERITEMSERV2, body, data, arry;
|
|
24051
|
-
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
24052
|
-
while (1) {
|
|
24053
|
-
switch (_context6.prev = _context6.next) {
|
|
24054
|
-
case 0:
|
|
24055
|
-
rejectWithValue = _ref8.rejectWithValue;
|
|
24056
|
-
_context6.prev = 1;
|
|
24057
|
-
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
24058
|
-
body = {
|
|
24059
|
-
"db_name": dbName$1,
|
|
24060
|
-
"filter": {
|
|
24061
|
-
"type": ["ORDERITEMSERVICE"],
|
|
24062
|
-
"tenantid": "",
|
|
24063
|
-
"facilityid": "",
|
|
24064
|
-
"lang": ""
|
|
24065
|
-
},
|
|
24066
|
-
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
24067
|
-
};
|
|
24068
|
-
_context6.next = 5;
|
|
24069
|
-
return fetchData({
|
|
24070
|
-
body: JSON.stringify(body)
|
|
24071
|
-
}, __baseUrl__$1);
|
|
24072
|
-
case 5:
|
|
24073
|
-
data = _context6.sent;
|
|
24074
|
-
arry = [];
|
|
24075
|
-
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$ORDERITEMSERV = _data$2.ORDERITEMSERVICE) === null || _data$2$ORDERITEMSERV === void 0 ? void 0 : (_data$2$ORDERITEMSERV2 = _data$2$ORDERITEMSERV.Value) === null || _data$2$ORDERITEMSERV2 === void 0 ? void 0 : _data$2$ORDERITEMSERV2.map(function (item) {
|
|
24076
|
-
return arry.push({
|
|
24077
|
-
_id: item._id,
|
|
24078
|
-
value: item._id,
|
|
24079
|
-
label: item.display
|
|
24080
|
-
});
|
|
24081
|
-
});
|
|
24082
|
-
return _context6.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24083
|
-
data: arry
|
|
24084
|
-
}));
|
|
24085
|
-
case 11:
|
|
24086
|
-
_context6.prev = 11;
|
|
24087
|
-
_context6.t0 = _context6["catch"](1);
|
|
24088
|
-
return _context6.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24089
|
-
message: _context6.t0.message
|
|
24090
|
-
})));
|
|
24091
|
-
case 14:
|
|
24092
|
-
case "end":
|
|
24093
|
-
return _context6.stop();
|
|
24094
|
-
}
|
|
24095
|
-
}
|
|
24096
|
-
}, _callee6, null, [[1, 11]]);
|
|
24097
|
-
}));
|
|
24098
|
-
return function (_x8, _x9) {
|
|
24099
|
-
return _ref9.apply(this, arguments);
|
|
24100
|
-
};
|
|
24101
|
-
}());
|
|
24102
|
-
var ENTITY_NAME_DATA = createAsyncThunk("orderCatalogApiSlice/entity_name_data", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
24079
|
+
var ORDER_CATALOG_CODING_MASTERS = createAsyncThunk("orderCatalogApiSlice/order_catalog_coding_masters", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
24103
24080
|
var payload,
|
|
24104
|
-
|
|
24081
|
+
_ref7,
|
|
24105
24082
|
rejectWithValue,
|
|
24106
|
-
|
|
24107
|
-
queriesjson,
|
|
24083
|
+
body,
|
|
24108
24084
|
data,
|
|
24109
|
-
|
|
24110
|
-
|
|
24111
|
-
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
24085
|
+
_args5 = arguments;
|
|
24086
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
24112
24087
|
while (1) {
|
|
24113
|
-
switch (
|
|
24088
|
+
switch (_context5.prev = _context5.next) {
|
|
24114
24089
|
case 0:
|
|
24115
|
-
payload =
|
|
24116
|
-
|
|
24117
|
-
|
|
24118
|
-
|
|
24119
|
-
|
|
24120
|
-
|
|
24121
|
-
|
|
24090
|
+
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
24091
|
+
_ref7 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
24092
|
+
_context5.prev = 2;
|
|
24093
|
+
payload.type;
|
|
24094
|
+
body = {
|
|
24095
|
+
"db_name": dbName$1,
|
|
24096
|
+
"filter": {
|
|
24097
|
+
"type": payload,
|
|
24098
|
+
"tenantid": "",
|
|
24099
|
+
"facilityid": "",
|
|
24100
|
+
"lang": ""
|
|
24101
|
+
},
|
|
24102
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
24103
|
+
};
|
|
24104
|
+
_context5.next = 7;
|
|
24122
24105
|
return fetchData({
|
|
24123
|
-
body: JSON.stringify(
|
|
24124
|
-
},
|
|
24125
|
-
case
|
|
24126
|
-
data =
|
|
24127
|
-
|
|
24128
|
-
|
|
24129
|
-
arry.push({
|
|
24130
|
-
label: val.name,
|
|
24131
|
-
value: val._id
|
|
24132
|
-
});
|
|
24133
|
-
});
|
|
24134
|
-
return _context7.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24135
|
-
data: arry
|
|
24106
|
+
body: JSON.stringify(body)
|
|
24107
|
+
}, __baseUrl__$1);
|
|
24108
|
+
case 7:
|
|
24109
|
+
data = _context5.sent;
|
|
24110
|
+
return _context5.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24111
|
+
data: data
|
|
24136
24112
|
}));
|
|
24137
|
-
case
|
|
24138
|
-
|
|
24139
|
-
|
|
24140
|
-
return
|
|
24141
|
-
message:
|
|
24113
|
+
case 11:
|
|
24114
|
+
_context5.prev = 11;
|
|
24115
|
+
_context5.t0 = _context5["catch"](2);
|
|
24116
|
+
return _context5.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24117
|
+
message: _context5.t0.message
|
|
24142
24118
|
})));
|
|
24143
|
-
case
|
|
24119
|
+
case 14:
|
|
24120
|
+
case "end":
|
|
24121
|
+
return _context5.stop();
|
|
24122
|
+
}
|
|
24123
|
+
}
|
|
24124
|
+
}, _callee5, null, [[2, 11]]);
|
|
24125
|
+
})));
|
|
24126
|
+
var ORDER_CATALOG_ATTRCODE = createAsyncThunk("orderCatalogApiSlice/order_catalog_attrcode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
24127
|
+
var payload,
|
|
24128
|
+
_ref9,
|
|
24129
|
+
rejectWithValue,
|
|
24130
|
+
body,
|
|
24131
|
+
data,
|
|
24132
|
+
arr,
|
|
24133
|
+
_args6 = arguments;
|
|
24134
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
24135
|
+
while (1) {
|
|
24136
|
+
switch (_context6.prev = _context6.next) {
|
|
24137
|
+
case 0:
|
|
24138
|
+
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
24139
|
+
_ref9 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
|
|
24140
|
+
_context6.prev = 2;
|
|
24141
|
+
payload.type;
|
|
24142
|
+
body = {
|
|
24143
|
+
"db_name": dbName$1,
|
|
24144
|
+
"queryid": "def95574-656e-40c7-928e-b544f2b2f801"
|
|
24145
|
+
};
|
|
24146
|
+
_context6.next = 7;
|
|
24147
|
+
return fetchData({
|
|
24148
|
+
body: JSON.stringify(body)
|
|
24149
|
+
}, __baseUrl__$1);
|
|
24150
|
+
case 7:
|
|
24151
|
+
data = _context6.sent;
|
|
24152
|
+
arr = [];
|
|
24153
|
+
data.map(function (value) {
|
|
24154
|
+
var _value$AttribValidVal2;
|
|
24155
|
+
arr.push({
|
|
24156
|
+
label: value.attribcode,
|
|
24157
|
+
value: value._id,
|
|
24158
|
+
name: value.attriblabel,
|
|
24159
|
+
type: value.attribtype,
|
|
24160
|
+
AttribValidValues: ((_value$AttribValidVal2 = value.AttribValidValues) === null || _value$AttribValidVal2 === void 0 ? void 0 : _value$AttribValidVal2.length) > 0 && value.AttribValidValues.map(function (v) {
|
|
24161
|
+
return {
|
|
24162
|
+
label: v.validCode,
|
|
24163
|
+
Dfltflag: v.Dfltflag
|
|
24164
|
+
};
|
|
24165
|
+
})
|
|
24166
|
+
});
|
|
24167
|
+
});
|
|
24168
|
+
return _context6.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24169
|
+
data: arr
|
|
24170
|
+
}));
|
|
24171
|
+
case 13:
|
|
24172
|
+
_context6.prev = 13;
|
|
24173
|
+
_context6.t0 = _context6["catch"](2);
|
|
24174
|
+
return _context6.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24175
|
+
message: _context6.t0.message
|
|
24176
|
+
})));
|
|
24177
|
+
case 16:
|
|
24178
|
+
case "end":
|
|
24179
|
+
return _context6.stop();
|
|
24180
|
+
}
|
|
24181
|
+
}
|
|
24182
|
+
}, _callee6, null, [[2, 13]]);
|
|
24183
|
+
})));
|
|
24184
|
+
var ORDER_CATALOG_AGEGROUP = createAsyncThunk("orderCatalogApiSlice/order_catalog_agegroup", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
24185
|
+
var payload,
|
|
24186
|
+
_ref11,
|
|
24187
|
+
rejectWithValue,
|
|
24188
|
+
body,
|
|
24189
|
+
data,
|
|
24190
|
+
arr,
|
|
24191
|
+
_args7 = arguments;
|
|
24192
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
24193
|
+
while (1) {
|
|
24194
|
+
switch (_context7.prev = _context7.next) {
|
|
24195
|
+
case 0:
|
|
24196
|
+
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
24197
|
+
_ref11 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref11.rejectWithValue;
|
|
24198
|
+
_context7.prev = 2;
|
|
24199
|
+
payload.type;
|
|
24200
|
+
body = {
|
|
24201
|
+
"db_name": dbName$1,
|
|
24202
|
+
"queryid": "869e5895-b0e0-4657-ad31-6ed02294f691"
|
|
24203
|
+
};
|
|
24204
|
+
_context7.next = 7;
|
|
24205
|
+
return fetchData({
|
|
24206
|
+
body: JSON.stringify(body)
|
|
24207
|
+
}, __baseUrl__$1);
|
|
24208
|
+
case 7:
|
|
24209
|
+
data = _context7.sent;
|
|
24210
|
+
arr = [];
|
|
24211
|
+
data.map(function (value) {
|
|
24212
|
+
arr.push({
|
|
24213
|
+
label: value.agerangecode,
|
|
24214
|
+
value: value._id
|
|
24215
|
+
});
|
|
24216
|
+
});
|
|
24217
|
+
return _context7.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24218
|
+
data: arr
|
|
24219
|
+
}));
|
|
24220
|
+
case 13:
|
|
24221
|
+
_context7.prev = 13;
|
|
24222
|
+
_context7.t0 = _context7["catch"](2);
|
|
24223
|
+
return _context7.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24224
|
+
message: _context7.t0.message
|
|
24225
|
+
})));
|
|
24226
|
+
case 16:
|
|
24144
24227
|
case "end":
|
|
24145
24228
|
return _context7.stop();
|
|
24146
24229
|
}
|
|
24147
24230
|
}
|
|
24148
|
-
}, _callee7, null, [[2,
|
|
24231
|
+
}, _callee7, null, [[2, 13]]);
|
|
24149
24232
|
})));
|
|
24150
|
-
var
|
|
24233
|
+
var ORDER_CATALOG_ORDERCATEGORY = createAsyncThunk("orderCatalogApiSlice/order_catalog_orderCategory", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
24151
24234
|
var payload,
|
|
24152
24235
|
_ref13,
|
|
24153
24236
|
rejectWithValue,
|
|
24154
|
-
|
|
24155
|
-
queriesjson,
|
|
24237
|
+
body,
|
|
24156
24238
|
data,
|
|
24157
|
-
|
|
24239
|
+
arr,
|
|
24158
24240
|
_args8 = arguments;
|
|
24159
24241
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
24160
24242
|
while (1) {
|
|
@@ -24163,60 +24245,271 @@ var ORDER_TYPE_DATA = createAsyncThunk("orderCatalogApiSlice/order_type_data", /
|
|
|
24163
24245
|
payload = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
24164
24246
|
_ref13 = _args8.length > 1 ? _args8[1] : undefined, rejectWithValue = _ref13.rejectWithValue;
|
|
24165
24247
|
_context8.prev = 2;
|
|
24248
|
+
payload.type;
|
|
24249
|
+
body = {
|
|
24250
|
+
"db_name": dbName$1,
|
|
24251
|
+
"queryid": "df53fb0d-dd4c-4e65-9067-f5917563625b"
|
|
24252
|
+
};
|
|
24253
|
+
_context8.next = 7;
|
|
24254
|
+
return fetchData({
|
|
24255
|
+
body: JSON.stringify(body)
|
|
24256
|
+
}, __baseUrl__$1);
|
|
24257
|
+
case 7:
|
|
24258
|
+
data = _context8.sent;
|
|
24259
|
+
arr = [];
|
|
24260
|
+
data.map(function (value) {
|
|
24261
|
+
arr.push({
|
|
24262
|
+
label: value.ordercategory,
|
|
24263
|
+
value: value._id
|
|
24264
|
+
});
|
|
24265
|
+
});
|
|
24266
|
+
return _context8.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24267
|
+
data: arr
|
|
24268
|
+
}));
|
|
24269
|
+
case 13:
|
|
24270
|
+
_context8.prev = 13;
|
|
24271
|
+
_context8.t0 = _context8["catch"](2);
|
|
24272
|
+
return _context8.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24273
|
+
message: _context8.t0.message
|
|
24274
|
+
})));
|
|
24275
|
+
case 16:
|
|
24276
|
+
case "end":
|
|
24277
|
+
return _context8.stop();
|
|
24278
|
+
}
|
|
24279
|
+
}
|
|
24280
|
+
}, _callee8, null, [[2, 13]]);
|
|
24281
|
+
})));
|
|
24282
|
+
var ORDER_CATALOG_GRPORIND = createAsyncThunk("orderCatalogApiSlice/order_catalog_grporind", /*#__PURE__*/function () {
|
|
24283
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(payload, _ref14) {
|
|
24284
|
+
var rejectWithValue, _data$, _data$$GRPORIND, _data$$GRPORIND$Value, body, data, arry;
|
|
24285
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
24286
|
+
while (1) {
|
|
24287
|
+
switch (_context9.prev = _context9.next) {
|
|
24288
|
+
case 0:
|
|
24289
|
+
rejectWithValue = _ref14.rejectWithValue;
|
|
24290
|
+
_context9.prev = 1;
|
|
24291
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
24292
|
+
body = {
|
|
24293
|
+
"db_name": dbName$1,
|
|
24294
|
+
"filter": {
|
|
24295
|
+
"type": ["GRPORIND"],
|
|
24296
|
+
"tenantid": "",
|
|
24297
|
+
"facilityid": "",
|
|
24298
|
+
"lang": ""
|
|
24299
|
+
},
|
|
24300
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
24301
|
+
};
|
|
24302
|
+
_context9.next = 5;
|
|
24303
|
+
return fetchData({
|
|
24304
|
+
body: JSON.stringify(body)
|
|
24305
|
+
}, __baseUrl__$1);
|
|
24306
|
+
case 5:
|
|
24307
|
+
data = _context9.sent;
|
|
24308
|
+
arry = [];
|
|
24309
|
+
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$GRPORIND = _data$.GRPORIND) === null || _data$$GRPORIND === void 0 ? void 0 : (_data$$GRPORIND$Value = _data$$GRPORIND.Value) === null || _data$$GRPORIND$Value === void 0 ? void 0 : _data$$GRPORIND$Value.map(function (item) {
|
|
24310
|
+
return arry.push({
|
|
24311
|
+
_id: item._id,
|
|
24312
|
+
value: item._id,
|
|
24313
|
+
label: item.display
|
|
24314
|
+
});
|
|
24315
|
+
});
|
|
24316
|
+
return _context9.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24317
|
+
data: arry
|
|
24318
|
+
}));
|
|
24319
|
+
case 11:
|
|
24320
|
+
_context9.prev = 11;
|
|
24321
|
+
_context9.t0 = _context9["catch"](1);
|
|
24322
|
+
return _context9.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24323
|
+
message: _context9.t0.message
|
|
24324
|
+
})));
|
|
24325
|
+
case 14:
|
|
24326
|
+
case "end":
|
|
24327
|
+
return _context9.stop();
|
|
24328
|
+
}
|
|
24329
|
+
}
|
|
24330
|
+
}, _callee9, null, [[1, 11]]);
|
|
24331
|
+
}));
|
|
24332
|
+
return function (_x6, _x7) {
|
|
24333
|
+
return _ref15.apply(this, arguments);
|
|
24334
|
+
};
|
|
24335
|
+
}());
|
|
24336
|
+
var ORDER_CATALOG_SERVICEITEM = createAsyncThunk("orderCatalogApiSlice/order_catalog_serviceItem", /*#__PURE__*/function () {
|
|
24337
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(payload, _ref16) {
|
|
24338
|
+
var rejectWithValue, _data$2, _data$2$ORDERITEMSERV, _data$2$ORDERITEMSERV2, body, data, arry;
|
|
24339
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
24340
|
+
while (1) {
|
|
24341
|
+
switch (_context10.prev = _context10.next) {
|
|
24342
|
+
case 0:
|
|
24343
|
+
rejectWithValue = _ref16.rejectWithValue;
|
|
24344
|
+
_context10.prev = 1;
|
|
24345
|
+
// const { type = [], tenantid ="", facilityid="",lang="", allData = false } = payload;
|
|
24346
|
+
body = {
|
|
24347
|
+
"db_name": dbName$1,
|
|
24348
|
+
"filter": {
|
|
24349
|
+
"type": ["ORDERITEMSERVICE"],
|
|
24350
|
+
"tenantid": "",
|
|
24351
|
+
"facilityid": "",
|
|
24352
|
+
"lang": ""
|
|
24353
|
+
},
|
|
24354
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
24355
|
+
};
|
|
24356
|
+
_context10.next = 5;
|
|
24357
|
+
return fetchData({
|
|
24358
|
+
body: JSON.stringify(body)
|
|
24359
|
+
}, __baseUrl__$1);
|
|
24360
|
+
case 5:
|
|
24361
|
+
data = _context10.sent;
|
|
24362
|
+
arry = [];
|
|
24363
|
+
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$ORDERITEMSERV = _data$2.ORDERITEMSERVICE) === null || _data$2$ORDERITEMSERV === void 0 ? void 0 : (_data$2$ORDERITEMSERV2 = _data$2$ORDERITEMSERV.Value) === null || _data$2$ORDERITEMSERV2 === void 0 ? void 0 : _data$2$ORDERITEMSERV2.map(function (item) {
|
|
24364
|
+
return arry.push({
|
|
24365
|
+
_id: item._id,
|
|
24366
|
+
value: item._id,
|
|
24367
|
+
label: item.display
|
|
24368
|
+
});
|
|
24369
|
+
});
|
|
24370
|
+
return _context10.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24371
|
+
data: arry
|
|
24372
|
+
}));
|
|
24373
|
+
case 11:
|
|
24374
|
+
_context10.prev = 11;
|
|
24375
|
+
_context10.t0 = _context10["catch"](1);
|
|
24376
|
+
return _context10.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24377
|
+
message: _context10.t0.message
|
|
24378
|
+
})));
|
|
24379
|
+
case 14:
|
|
24380
|
+
case "end":
|
|
24381
|
+
return _context10.stop();
|
|
24382
|
+
}
|
|
24383
|
+
}
|
|
24384
|
+
}, _callee10, null, [[1, 11]]);
|
|
24385
|
+
}));
|
|
24386
|
+
return function (_x8, _x9) {
|
|
24387
|
+
return _ref17.apply(this, arguments);
|
|
24388
|
+
};
|
|
24389
|
+
}());
|
|
24390
|
+
var ENTITY_NAME_DATA = createAsyncThunk("orderCatalogApiSlice/entity_name_data", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
24391
|
+
var payload,
|
|
24392
|
+
_ref19,
|
|
24393
|
+
rejectWithValue,
|
|
24394
|
+
type,
|
|
24395
|
+
queriesjson,
|
|
24396
|
+
data,
|
|
24397
|
+
arry,
|
|
24398
|
+
_args11 = arguments;
|
|
24399
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
24400
|
+
while (1) {
|
|
24401
|
+
switch (_context11.prev = _context11.next) {
|
|
24402
|
+
case 0:
|
|
24403
|
+
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
24404
|
+
_ref19 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref19.rejectWithValue;
|
|
24405
|
+
_context11.prev = 2;
|
|
24406
|
+
type = payload.type;
|
|
24407
|
+
queriesjson = Query.entityTypeName(type); // let payloadData= {
|
|
24408
|
+
// "db_name": dbName,
|
|
24409
|
+
// "filter": {
|
|
24410
|
+
// "Orgname":type
|
|
24411
|
+
// },
|
|
24412
|
+
// "queryid": "b0931347-d3eb-4627-b799-cc701cb8f6c9"
|
|
24413
|
+
// }
|
|
24414
|
+
_context11.next = 7;
|
|
24415
|
+
return fetchData({
|
|
24416
|
+
body: JSON.stringify(queriesjson)
|
|
24417
|
+
}, __baseUrl__$1);
|
|
24418
|
+
case 7:
|
|
24419
|
+
data = _context11.sent;
|
|
24420
|
+
arry = [];
|
|
24421
|
+
data.map(function (val) {
|
|
24422
|
+
arry.push({
|
|
24423
|
+
label: val.name,
|
|
24424
|
+
value: val._id,
|
|
24425
|
+
_id: val._id
|
|
24426
|
+
});
|
|
24427
|
+
});
|
|
24428
|
+
return _context11.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24429
|
+
data: arry
|
|
24430
|
+
}));
|
|
24431
|
+
case 13:
|
|
24432
|
+
_context11.prev = 13;
|
|
24433
|
+
_context11.t0 = _context11["catch"](2);
|
|
24434
|
+
return _context11.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24435
|
+
message: _context11.t0.message
|
|
24436
|
+
})));
|
|
24437
|
+
case 16:
|
|
24438
|
+
case "end":
|
|
24439
|
+
return _context11.stop();
|
|
24440
|
+
}
|
|
24441
|
+
}
|
|
24442
|
+
}, _callee11, null, [[2, 13]]);
|
|
24443
|
+
})));
|
|
24444
|
+
var ORDER_TYPE_DATA = createAsyncThunk("orderCatalogApiSlice/order_type_data", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
24445
|
+
var payload,
|
|
24446
|
+
_ref21,
|
|
24447
|
+
rejectWithValue,
|
|
24448
|
+
type,
|
|
24449
|
+
queriesjson,
|
|
24450
|
+
data,
|
|
24451
|
+
arry,
|
|
24452
|
+
_args12 = arguments;
|
|
24453
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
24454
|
+
while (1) {
|
|
24455
|
+
switch (_context12.prev = _context12.next) {
|
|
24456
|
+
case 0:
|
|
24457
|
+
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
24458
|
+
_ref21 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref21.rejectWithValue;
|
|
24459
|
+
_context12.prev = 2;
|
|
24166
24460
|
type = payload.type;
|
|
24167
|
-
console.log("type", type);
|
|
24168
24461
|
queriesjson = orderTypedata.ordertype(type);
|
|
24169
|
-
|
|
24462
|
+
_context12.next = 7;
|
|
24170
24463
|
return fetchData({
|
|
24171
24464
|
body: JSON.stringify(queriesjson)
|
|
24172
|
-
},
|
|
24173
|
-
case
|
|
24174
|
-
data =
|
|
24465
|
+
}, __baseUrl__$1);
|
|
24466
|
+
case 7:
|
|
24467
|
+
data = _context12.sent;
|
|
24175
24468
|
arry = [];
|
|
24176
|
-
data.
|
|
24469
|
+
data.map(function (val) {
|
|
24177
24470
|
arry.push({
|
|
24178
24471
|
label: val.ordertype,
|
|
24179
24472
|
value: val._id
|
|
24180
24473
|
});
|
|
24181
24474
|
});
|
|
24182
|
-
return
|
|
24475
|
+
return _context12.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24183
24476
|
data: arry
|
|
24184
24477
|
}));
|
|
24185
|
-
case
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
return
|
|
24189
|
-
message:
|
|
24478
|
+
case 13:
|
|
24479
|
+
_context12.prev = 13;
|
|
24480
|
+
_context12.t0 = _context12["catch"](2);
|
|
24481
|
+
return _context12.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24482
|
+
message: _context12.t0.message
|
|
24190
24483
|
})));
|
|
24191
|
-
case
|
|
24484
|
+
case 16:
|
|
24192
24485
|
case "end":
|
|
24193
|
-
return
|
|
24486
|
+
return _context12.stop();
|
|
24194
24487
|
}
|
|
24195
24488
|
}
|
|
24196
|
-
},
|
|
24489
|
+
}, _callee12, null, [[2, 13]]);
|
|
24197
24490
|
})));
|
|
24198
|
-
var AGE_RANGES_CATEGORY_CATALOG = createAsyncThunk("orderCatalogApiSlice/ageranges_Category", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24491
|
+
var AGE_RANGES_CATEGORY_CATALOG = createAsyncThunk("orderCatalogApiSlice/ageranges_Category", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
24199
24492
|
var payload,
|
|
24200
|
-
|
|
24493
|
+
_ref23,
|
|
24201
24494
|
rejectWithValue,
|
|
24202
24495
|
ageRangeId,
|
|
24203
24496
|
data,
|
|
24204
24497
|
arr,
|
|
24205
|
-
|
|
24206
|
-
return _regeneratorRuntime().wrap(function
|
|
24498
|
+
_args13 = arguments;
|
|
24499
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
24207
24500
|
while (1) {
|
|
24208
|
-
switch (
|
|
24501
|
+
switch (_context13.prev = _context13.next) {
|
|
24209
24502
|
case 0:
|
|
24210
|
-
payload =
|
|
24211
|
-
|
|
24212
|
-
|
|
24503
|
+
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
24504
|
+
_ref23 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref23.rejectWithValue;
|
|
24505
|
+
_context13.prev = 2;
|
|
24213
24506
|
ageRangeId = payload.ageRangeId;
|
|
24214
|
-
|
|
24507
|
+
_context13.next = 6;
|
|
24215
24508
|
return fetchData({
|
|
24216
24509
|
body: JSON.stringify(Query.ageCategory(ageRangeId))
|
|
24217
24510
|
}, __readDocumentUrl__);
|
|
24218
24511
|
case 6:
|
|
24219
|
-
data =
|
|
24512
|
+
data = _context13.sent;
|
|
24220
24513
|
arr = [];
|
|
24221
24514
|
data.result[0].map(function (val) {
|
|
24222
24515
|
arr.push({
|
|
@@ -24226,83 +24519,127 @@ var AGE_RANGES_CATEGORY_CATALOG = createAsyncThunk("orderCatalogApiSlice/agerang
|
|
|
24226
24519
|
maxAge: val.age_maximum
|
|
24227
24520
|
});
|
|
24228
24521
|
});
|
|
24229
|
-
return
|
|
24522
|
+
return _context13.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24230
24523
|
data: arr
|
|
24231
24524
|
}));
|
|
24232
24525
|
case 12:
|
|
24233
|
-
|
|
24234
|
-
|
|
24235
|
-
return
|
|
24236
|
-
message:
|
|
24526
|
+
_context13.prev = 12;
|
|
24527
|
+
_context13.t0 = _context13["catch"](2);
|
|
24528
|
+
return _context13.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24529
|
+
message: _context13.t0.message
|
|
24237
24530
|
})));
|
|
24238
24531
|
case 15:
|
|
24239
24532
|
case "end":
|
|
24240
|
-
return
|
|
24533
|
+
return _context13.stop();
|
|
24241
24534
|
}
|
|
24242
24535
|
}
|
|
24243
|
-
},
|
|
24536
|
+
}, _callee13, null, [[2, 12]]);
|
|
24244
24537
|
})));
|
|
24245
|
-
var
|
|
24538
|
+
var SAVE_RC_CHARGECODE = createAsyncThunk("orderCatalogApiSlice/savercchargecode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
24246
24539
|
var payload,
|
|
24247
|
-
|
|
24540
|
+
_ref25,
|
|
24248
24541
|
rejectWithValue,
|
|
24249
24542
|
list,
|
|
24250
24543
|
body,
|
|
24251
24544
|
data,
|
|
24252
|
-
|
|
24253
|
-
return _regeneratorRuntime().wrap(function
|
|
24545
|
+
_args14 = arguments;
|
|
24546
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
24254
24547
|
while (1) {
|
|
24255
|
-
switch (
|
|
24548
|
+
switch (_context14.prev = _context14.next) {
|
|
24256
24549
|
case 0:
|
|
24257
|
-
payload =
|
|
24258
|
-
|
|
24259
|
-
|
|
24550
|
+
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
24551
|
+
_ref25 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref25.rejectWithValue;
|
|
24552
|
+
_context14.prev = 2;
|
|
24260
24553
|
list = payload.list;
|
|
24261
|
-
body =
|
|
24262
|
-
|
|
24554
|
+
body = generateSaveChargeCode(list);
|
|
24555
|
+
_context14.next = 7;
|
|
24263
24556
|
return fetchData({
|
|
24264
24557
|
body: JSON.stringify(body)
|
|
24265
24558
|
}, __uspsertUrl__);
|
|
24266
24559
|
case 7:
|
|
24267
|
-
data =
|
|
24268
|
-
return
|
|
24560
|
+
data = _context14.sent;
|
|
24561
|
+
return _context14.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24269
24562
|
data: data
|
|
24270
24563
|
}));
|
|
24271
24564
|
case 11:
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
return
|
|
24275
|
-
message:
|
|
24565
|
+
_context14.prev = 11;
|
|
24566
|
+
_context14.t0 = _context14["catch"](2);
|
|
24567
|
+
return _context14.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24568
|
+
message: _context14.t0.message
|
|
24276
24569
|
})));
|
|
24277
24570
|
case 14:
|
|
24278
24571
|
case "end":
|
|
24279
|
-
return
|
|
24572
|
+
return _context14.stop();
|
|
24280
24573
|
}
|
|
24281
24574
|
}
|
|
24282
|
-
},
|
|
24575
|
+
}, _callee14, null, [[2, 11]]);
|
|
24283
24576
|
})));
|
|
24284
|
-
var
|
|
24577
|
+
var SAVE_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/saveOrderCatalog", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
24285
24578
|
var payload,
|
|
24286
|
-
|
|
24579
|
+
_ref27,
|
|
24580
|
+
rejectWithValue,
|
|
24581
|
+
list,
|
|
24582
|
+
rcchargeCode,
|
|
24583
|
+
body,
|
|
24584
|
+
data,
|
|
24585
|
+
_args15 = arguments;
|
|
24586
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
24587
|
+
while (1) {
|
|
24588
|
+
switch (_context15.prev = _context15.next) {
|
|
24589
|
+
case 0:
|
|
24590
|
+
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
24591
|
+
_ref27 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref27.rejectWithValue;
|
|
24592
|
+
_context15.prev = 2;
|
|
24593
|
+
list = payload.list, rcchargeCode = payload.rcchargeCode; // let SaveChargeCode =generateSaveChargeCode(list)
|
|
24594
|
+
// const SaveChargeCodedata = fetchData(
|
|
24595
|
+
// { body: JSON.stringify(SaveChargeCode) },
|
|
24596
|
+
// __uspsertUrl__
|
|
24597
|
+
// );
|
|
24598
|
+
body = generateSaveJSON(list, rcchargeCode);
|
|
24599
|
+
_context15.next = 7;
|
|
24600
|
+
return fetchData({
|
|
24601
|
+
body: JSON.stringify(body)
|
|
24602
|
+
}, __uspsertUrl__);
|
|
24603
|
+
case 7:
|
|
24604
|
+
data = _context15.sent;
|
|
24605
|
+
return _context15.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.Info), {}, {
|
|
24606
|
+
data: data
|
|
24607
|
+
}));
|
|
24608
|
+
case 11:
|
|
24609
|
+
_context15.prev = 11;
|
|
24610
|
+
_context15.t0 = _context15["catch"](2);
|
|
24611
|
+
return _context15.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24612
|
+
message: _context15.t0.message
|
|
24613
|
+
})));
|
|
24614
|
+
case 14:
|
|
24615
|
+
case "end":
|
|
24616
|
+
return _context15.stop();
|
|
24617
|
+
}
|
|
24618
|
+
}
|
|
24619
|
+
}, _callee15, null, [[2, 11]]);
|
|
24620
|
+
})));
|
|
24621
|
+
var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
24622
|
+
var payload,
|
|
24623
|
+
_ref29,
|
|
24287
24624
|
rejectWithValue,
|
|
24288
24625
|
page,
|
|
24289
24626
|
perPage,
|
|
24290
24627
|
search,
|
|
24291
24628
|
data,
|
|
24292
24629
|
res,
|
|
24293
|
-
|
|
24294
|
-
return _regeneratorRuntime().wrap(function
|
|
24630
|
+
_args16 = arguments;
|
|
24631
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
24295
24632
|
while (1) {
|
|
24296
|
-
switch (
|
|
24633
|
+
switch (_context16.prev = _context16.next) {
|
|
24297
24634
|
case 0:
|
|
24298
|
-
payload =
|
|
24299
|
-
|
|
24300
|
-
|
|
24635
|
+
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
24636
|
+
_ref29 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref29.rejectWithValue, _ref29.getState;
|
|
24637
|
+
_context16.prev = 2;
|
|
24301
24638
|
// const { encounter_id } = payload;
|
|
24302
24639
|
// let state = getState();
|
|
24303
24640
|
// let ccState = state.DiagnosisMasterSlice;
|
|
24304
24641
|
page = payload.page, perPage = payload.perPage, search = payload.search;
|
|
24305
|
-
|
|
24642
|
+
_context16.next = 6;
|
|
24306
24643
|
return fetchData({
|
|
24307
24644
|
body: JSON.stringify(search ? Query.order_catalog_read_search({
|
|
24308
24645
|
page: page,
|
|
@@ -24312,69 +24649,69 @@ var READ_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead
|
|
|
24312
24649
|
page: page,
|
|
24313
24650
|
perPage: perPage
|
|
24314
24651
|
}))
|
|
24315
|
-
},
|
|
24652
|
+
}, __baseUrl__$1);
|
|
24316
24653
|
case 6:
|
|
24317
|
-
data =
|
|
24318
|
-
res = generateResJson(data
|
|
24319
|
-
return
|
|
24654
|
+
data = _context16.sent;
|
|
24655
|
+
res = generateResJson(data);
|
|
24656
|
+
return _context16.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24320
24657
|
data: res
|
|
24321
24658
|
}));
|
|
24322
24659
|
case 11:
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
return
|
|
24326
|
-
message:
|
|
24660
|
+
_context16.prev = 11;
|
|
24661
|
+
_context16.t0 = _context16["catch"](2);
|
|
24662
|
+
return _context16.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24663
|
+
message: _context16.t0.message
|
|
24327
24664
|
})));
|
|
24328
24665
|
case 14:
|
|
24329
24666
|
case "end":
|
|
24330
|
-
return
|
|
24667
|
+
return _context16.stop();
|
|
24331
24668
|
}
|
|
24332
24669
|
}
|
|
24333
|
-
},
|
|
24670
|
+
}, _callee16, null, [[2, 11]]);
|
|
24334
24671
|
})));
|
|
24335
|
-
var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCatalogUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24672
|
+
var UPDATE_ORDER_CATALOG_STATUS = createAsyncThunk("orderCatalogApiSlice/orderCatalogUpdate", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
24336
24673
|
var payload,
|
|
24337
|
-
|
|
24674
|
+
_ref31,
|
|
24338
24675
|
rejectWithValue,
|
|
24339
24676
|
editId,
|
|
24340
24677
|
status,
|
|
24341
24678
|
body,
|
|
24342
24679
|
data,
|
|
24343
|
-
|
|
24344
|
-
return _regeneratorRuntime().wrap(function
|
|
24680
|
+
_args17 = arguments;
|
|
24681
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
24345
24682
|
while (1) {
|
|
24346
|
-
switch (
|
|
24683
|
+
switch (_context17.prev = _context17.next) {
|
|
24347
24684
|
case 0:
|
|
24348
|
-
payload =
|
|
24349
|
-
|
|
24350
|
-
|
|
24685
|
+
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
24686
|
+
_ref31 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref31.rejectWithValue;
|
|
24687
|
+
_context17.prev = 2;
|
|
24351
24688
|
editId = payload.editId, status = payload.status;
|
|
24352
24689
|
body = generateUpdateJSON(editId, status);
|
|
24353
|
-
|
|
24690
|
+
_context17.next = 7;
|
|
24354
24691
|
return fetchData({
|
|
24355
24692
|
body: JSON.stringify(body)
|
|
24356
24693
|
}, __uspsertUrl__);
|
|
24357
24694
|
case 7:
|
|
24358
|
-
data =
|
|
24359
|
-
return
|
|
24695
|
+
data = _context17.sent;
|
|
24696
|
+
return _context17.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24360
24697
|
data: data
|
|
24361
24698
|
}));
|
|
24362
24699
|
case 11:
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
return
|
|
24366
|
-
message:
|
|
24700
|
+
_context17.prev = 11;
|
|
24701
|
+
_context17.t0 = _context17["catch"](2);
|
|
24702
|
+
return _context17.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24703
|
+
message: _context17.t0.message
|
|
24367
24704
|
})));
|
|
24368
24705
|
case 14:
|
|
24369
24706
|
case "end":
|
|
24370
|
-
return
|
|
24707
|
+
return _context17.stop();
|
|
24371
24708
|
}
|
|
24372
24709
|
}
|
|
24373
|
-
},
|
|
24710
|
+
}, _callee17, null, [[2, 11]]);
|
|
24374
24711
|
})));
|
|
24375
|
-
var EDIT_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/editOrderCatalog", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24712
|
+
var EDIT_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/editOrderCatalog", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
24376
24713
|
var payload,
|
|
24377
|
-
|
|
24714
|
+
_ref33,
|
|
24378
24715
|
rejectWithValue,
|
|
24379
24716
|
getState,
|
|
24380
24717
|
id,
|
|
@@ -24382,76 +24719,77 @@ var EDIT_ORDER_CATALOG = createAsyncThunk("orderCatalogApiSlice/editOrderCatalog
|
|
|
24382
24719
|
ccState,
|
|
24383
24720
|
data,
|
|
24384
24721
|
res,
|
|
24385
|
-
|
|
24386
|
-
return _regeneratorRuntime().wrap(function
|
|
24722
|
+
_args18 = arguments;
|
|
24723
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
24387
24724
|
while (1) {
|
|
24388
|
-
switch (
|
|
24725
|
+
switch (_context18.prev = _context18.next) {
|
|
24389
24726
|
case 0:
|
|
24390
|
-
payload =
|
|
24391
|
-
|
|
24392
|
-
|
|
24727
|
+
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
24728
|
+
_ref33 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref33.rejectWithValue, getState = _ref33.getState;
|
|
24729
|
+
_context18.prev = 2;
|
|
24393
24730
|
id = payload.id;
|
|
24394
24731
|
state = getState();
|
|
24395
24732
|
ccState = state.orderCatalogSlice;
|
|
24396
|
-
|
|
24733
|
+
state.resourceByAppointmentTypesSlice;
|
|
24734
|
+
_context18.next = 9;
|
|
24397
24735
|
return fetchData({
|
|
24398
24736
|
body: JSON.stringify(Query.editOrderCatalog(id))
|
|
24399
|
-
},
|
|
24400
|
-
case
|
|
24401
|
-
data =
|
|
24402
|
-
res =
|
|
24403
|
-
return
|
|
24737
|
+
}, __baseUrl__$1);
|
|
24738
|
+
case 9:
|
|
24739
|
+
data = _context18.sent;
|
|
24740
|
+
res = generateReadResJsonData(data[0], ccState);
|
|
24741
|
+
return _context18.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24404
24742
|
data: res
|
|
24405
24743
|
}));
|
|
24406
|
-
case
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
return
|
|
24410
|
-
message:
|
|
24744
|
+
case 14:
|
|
24745
|
+
_context18.prev = 14;
|
|
24746
|
+
_context18.t0 = _context18["catch"](2);
|
|
24747
|
+
return _context18.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24748
|
+
message: _context18.t0.message
|
|
24411
24749
|
})));
|
|
24412
|
-
case
|
|
24750
|
+
case 17:
|
|
24413
24751
|
case "end":
|
|
24414
|
-
return
|
|
24752
|
+
return _context18.stop();
|
|
24415
24753
|
}
|
|
24416
24754
|
}
|
|
24417
|
-
},
|
|
24755
|
+
}, _callee18, null, [[2, 14]]);
|
|
24418
24756
|
})));
|
|
24419
|
-
var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesDelete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
24757
|
+
var DELETE_ATTRIBUTE_DELETE = createAsyncThunk("orderCatalogApiSlice/attributesDelete", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
24420
24758
|
var payload,
|
|
24421
|
-
|
|
24759
|
+
_ref35,
|
|
24422
24760
|
rejectWithValue,
|
|
24423
24761
|
id,
|
|
24424
24762
|
data,
|
|
24425
|
-
|
|
24426
|
-
return _regeneratorRuntime().wrap(function
|
|
24763
|
+
_args19 = arguments;
|
|
24764
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
24427
24765
|
while (1) {
|
|
24428
|
-
switch (
|
|
24766
|
+
switch (_context19.prev = _context19.next) {
|
|
24429
24767
|
case 0:
|
|
24430
|
-
payload =
|
|
24431
|
-
|
|
24432
|
-
|
|
24768
|
+
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
24769
|
+
_ref35 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref35.rejectWithValue;
|
|
24770
|
+
_context19.prev = 2;
|
|
24433
24771
|
id = payload.id;
|
|
24434
|
-
|
|
24772
|
+
_context19.next = 6;
|
|
24435
24773
|
return fetchData({
|
|
24436
24774
|
body: JSON.stringify(Query.attributeDelete(id))
|
|
24437
24775
|
}, __softDelete__);
|
|
24438
24776
|
case 6:
|
|
24439
|
-
data =
|
|
24440
|
-
return
|
|
24777
|
+
data = _context19.sent;
|
|
24778
|
+
return _context19.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
24441
24779
|
data: data.result
|
|
24442
24780
|
}));
|
|
24443
24781
|
case 10:
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
return
|
|
24447
|
-
message:
|
|
24782
|
+
_context19.prev = 10;
|
|
24783
|
+
_context19.t0 = _context19["catch"](2);
|
|
24784
|
+
return _context19.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
24785
|
+
message: _context19.t0.message
|
|
24448
24786
|
})));
|
|
24449
24787
|
case 13:
|
|
24450
24788
|
case "end":
|
|
24451
|
-
return
|
|
24789
|
+
return _context19.stop();
|
|
24452
24790
|
}
|
|
24453
24791
|
}
|
|
24454
|
-
},
|
|
24792
|
+
}, _callee19, null, [[2, 10]]);
|
|
24455
24793
|
})));
|
|
24456
24794
|
var orderCatalogSlice = createSlice({
|
|
24457
24795
|
name: "orderCatalogApiSlice",
|
|
@@ -24466,7 +24804,12 @@ var orderCatalogSlice = createSlice({
|
|
|
24466
24804
|
order_type_data: _objectSpread2$1({}, defaultState.List),
|
|
24467
24805
|
entityTypeName: _objectSpread2$1({}, defaultState.List),
|
|
24468
24806
|
order_catalog_grporind: _objectSpread2$1({}, defaultState.List),
|
|
24469
|
-
order_catalog_serviceItem: _objectSpread2$1({}, defaultState.List)
|
|
24807
|
+
order_catalog_serviceItem: _objectSpread2$1({}, defaultState.List),
|
|
24808
|
+
order_catalog_coding_masters: _objectSpread2$1({}, defaultState.List),
|
|
24809
|
+
order_catalog_attrcode: _objectSpread2$1({}, defaultState.List),
|
|
24810
|
+
order_catalog_agegroup: _objectSpread2$1({}, defaultState.List),
|
|
24811
|
+
order_catalog_orderCategory: _objectSpread2$1({}, defaultState.List),
|
|
24812
|
+
savercchargecode: _objectSpread2$1({}, defaultState.List)
|
|
24470
24813
|
},
|
|
24471
24814
|
extraReducers: (_extraReducers$t = {}, _defineProperty(_extraReducers$t, ENTITY_NAME_DATA.fulfilled, function (state, action) {
|
|
24472
24815
|
state.entityTypeName.loading = false, state.entityTypeName.error = false, state.entityTypeName = action.payload;
|
|
@@ -24534,6 +24877,36 @@ var orderCatalogSlice = createSlice({
|
|
|
24534
24877
|
state.order_catalog_serviceItem.loading = true, state.order_catalog_serviceItem.error = false, state.order_catalog_serviceItem.loading = true;
|
|
24535
24878
|
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_SERVICEITEM.rejected, function (state, action) {
|
|
24536
24879
|
state.order_catalog_serviceItem.loading = false, state.order_catalog_serviceItem.error = true, state.order_catalog_serviceItem = action.payload;
|
|
24880
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_CODING_MASTERS.fulfilled, function (state, action) {
|
|
24881
|
+
state.order_catalog_coding_masters.loading = false, state.order_catalog_coding_masters.error = false, state.order_catalog_coding_masters = action.payload;
|
|
24882
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_CODING_MASTERS.pending, function (state, action) {
|
|
24883
|
+
state.order_catalog_coding_masters.loading = true, state.order_catalog_coding_masters.error = false, state.order_catalog_coding_masters.loading = true;
|
|
24884
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_CODING_MASTERS.rejected, function (state, action) {
|
|
24885
|
+
state.order_catalog_coding_masters.loading = false, state.order_catalog_coding_masters.error = true, state.order_catalog_coding_masters = action.payload;
|
|
24886
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_ATTRCODE.fulfilled, function (state, action) {
|
|
24887
|
+
state.order_catalog_attrcode.loading = false, state.order_catalog_attrcode.error = false, state.order_catalog_attrcode = action.payload;
|
|
24888
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_ATTRCODE.pending, function (state, action) {
|
|
24889
|
+
state.order_catalog_attrcode.loading = true, state.order_catalog_attrcode.error = false, state.order_catalog_attrcode.loading = true;
|
|
24890
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_ATTRCODE.rejected, function (state, action) {
|
|
24891
|
+
state.order_catalog_attrcode.loading = false, state.order_catalog_attrcode.error = true, state.order_catalog_attrcode = action.payload;
|
|
24892
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_AGEGROUP.fulfilled, function (state, action) {
|
|
24893
|
+
state.order_catalog_agegroup.loading = false, state.order_catalog_agegroup.error = false, state.order_catalog_agegroup = action.payload;
|
|
24894
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_AGEGROUP.pending, function (state, action) {
|
|
24895
|
+
state.order_catalog_agegroup.loading = true, state.order_catalog_agegroup.error = false, state.order_catalog_agegroup.loading = true;
|
|
24896
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_AGEGROUP.rejected, function (state, action) {
|
|
24897
|
+
state.order_catalog_agegroup.loading = false, state.order_catalog_agegroup.error = true, state.order_catalog_agegroup = action.payload;
|
|
24898
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_ORDERCATEGORY.fulfilled, function (state, action) {
|
|
24899
|
+
state.order_catalog_orderCategory.loading = false, state.order_catalog_orderCategory.error = false, state.order_catalog_orderCategory = action.payload;
|
|
24900
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_ORDERCATEGORY.pending, function (state, action) {
|
|
24901
|
+
state.order_catalog_orderCategory.loading = true, state.order_catalog_orderCategory.error = false, state.order_catalog_orderCategory.loading = true;
|
|
24902
|
+
}), _defineProperty(_extraReducers$t, ORDER_CATALOG_ORDERCATEGORY.rejected, function (state, action) {
|
|
24903
|
+
state.order_catalog_orderCategory.loading = false, state.order_catalog_orderCategory.error = true, state.order_catalog_orderCategory = action.payload;
|
|
24904
|
+
}), _defineProperty(_extraReducers$t, SAVE_RC_CHARGECODE.fulfilled, function (state, action) {
|
|
24905
|
+
state.savercchargecode.loading = false, state.savercchargecode.error = false, state.savercchargecode = action.payload;
|
|
24906
|
+
}), _defineProperty(_extraReducers$t, SAVE_RC_CHARGECODE.pending, function (state, action) {
|
|
24907
|
+
state.savercchargecode.loading = true, state.savercchargecode.error = false, state.savercchargecode.loading = true;
|
|
24908
|
+
}), _defineProperty(_extraReducers$t, SAVE_RC_CHARGECODE.rejected, function (state, action) {
|
|
24909
|
+
state.savercchargecode.loading = false, state.savercchargecode.error = true, state.savercchargecode = action.payload;
|
|
24537
24910
|
}), _extraReducers$t)
|
|
24538
24911
|
});
|
|
24539
24912
|
var orderCatalogActions = {
|
|
@@ -24547,7 +24920,12 @@ var orderCatalogActions = {
|
|
|
24547
24920
|
ORDER_TYPE_DATA: ORDER_TYPE_DATA,
|
|
24548
24921
|
ENTITY_NAME_DATA: ENTITY_NAME_DATA,
|
|
24549
24922
|
ORDER_CATALOG_GRPORIND: ORDER_CATALOG_GRPORIND,
|
|
24550
|
-
ORDER_CATALOG_SERVICEITEM: ORDER_CATALOG_SERVICEITEM
|
|
24923
|
+
ORDER_CATALOG_SERVICEITEM: ORDER_CATALOG_SERVICEITEM,
|
|
24924
|
+
ORDER_CATALOG_CODING_MASTERS: ORDER_CATALOG_CODING_MASTERS,
|
|
24925
|
+
ORDER_CATALOG_ATTRCODE: ORDER_CATALOG_ATTRCODE,
|
|
24926
|
+
ORDER_CATALOG_AGEGROUP: ORDER_CATALOG_AGEGROUP,
|
|
24927
|
+
ORDER_CATALOG_ORDERCATEGORY: ORDER_CATALOG_ORDERCATEGORY,
|
|
24928
|
+
SAVE_RC_CHARGECODE: SAVE_RC_CHARGECODE
|
|
24551
24929
|
};
|
|
24552
24930
|
var orderCatalogSlice$1 = orderCatalogSlice.reducer;
|
|
24553
24931
|
|