primary_care_admin_binder 0.1.25 → 0.1.29
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 +105 -77
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2256,7 +2256,7 @@ var defaultState = {
|
|
|
2256
2256
|
}
|
|
2257
2257
|
};
|
|
2258
2258
|
|
|
2259
|
-
var dbName =
|
|
2259
|
+
var dbName = process.env.REACT_APP_DB;
|
|
2260
2260
|
var ruleDBName = process.env.REACT_APP_RULE_BUILDER_DB || "RuleBuilder";
|
|
2261
2261
|
var metadataId = "04ecb73d-f048-44ce-8563-c9be015812dd";
|
|
2262
2262
|
var __baseUrl__$1 = "".concat(process.env.REACT_APP_ARANGO_API, "/api/read_qdmqueries");
|
|
@@ -8079,7 +8079,7 @@ var queries$n = {
|
|
|
8079
8079
|
}
|
|
8080
8080
|
|
|
8081
8081
|
return [_objectSpread2(_objectSpread2({
|
|
8082
|
-
db_name:
|
|
8082
|
+
db_name: dbName,
|
|
8083
8083
|
entity: "CodeableConceptMaster",
|
|
8084
8084
|
is_metadata: true,
|
|
8085
8085
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -8475,7 +8475,7 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
|
|
|
8475
8475
|
}
|
|
8476
8476
|
|
|
8477
8477
|
var json = [_objectSpread2(_objectSpread2({
|
|
8478
|
-
"db_name":
|
|
8478
|
+
"db_name": dbName,
|
|
8479
8479
|
"entity": "Practitioner",
|
|
8480
8480
|
"is_metadata": true,
|
|
8481
8481
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -10026,7 +10026,7 @@ var query$a = {
|
|
|
10026
10026
|
vitalcode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsCodes\",\n \"sort\":\"VitalsCodes.vitalscode\",\n \"filter\": \"VitalsCodes.activestatus==true and VitalsCodes.status==true\",\n \"return_fields\": \"{'id':VitalsCodes._id,'obscode':VitalsCodes.vitalscode,'shortdesc':VitalsCodes.shortdesc,'longdesc':VitalsCodes.longdesc,'_id':VitalsCodes._id}\"\n }"),
|
|
10027
10027
|
ageCategory: function ageCategory(ageRangeId) {
|
|
10028
10028
|
return {
|
|
10029
|
-
db_name:
|
|
10029
|
+
db_name: dbName,
|
|
10030
10030
|
entity: "AgeRanges",
|
|
10031
10031
|
sort: "AgeRanges.agerangecode",
|
|
10032
10032
|
filter: {
|
|
@@ -11006,7 +11006,7 @@ var query$9 = {
|
|
|
11006
11006
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
11007
11007
|
};
|
|
11008
11008
|
},
|
|
11009
|
-
category: "{\n \"db_name\": \"
|
|
11009
|
+
category: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeCategory\",\n \"filter\": \"AgeCategory.activestatus==true\",\n \"return_fields\": \"{_id:AgeCategory._id, id:AgeCategory.id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, UOM:AgeCategory.UOM}\"\n}"),
|
|
11010
11010
|
defaultUnit: function defaultUnit(AllowedUnit) {
|
|
11011
11011
|
return {
|
|
11012
11012
|
db_name: dbName,
|
|
@@ -11879,7 +11879,7 @@ var queries$m = {
|
|
|
11879
11879
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
11880
11880
|
// };
|
|
11881
11881
|
return {
|
|
11882
|
-
"db_name":
|
|
11882
|
+
"db_name": dbName,
|
|
11883
11883
|
"entity": "LocationMaster,LocationMaster_CodeableConceptMaster_E,LocationMaster_CodingMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
|
|
11884
11884
|
"filter": "LocationMaster.activestatus==true && LocationMaster._key=='".concat(id, "'"),
|
|
11885
11885
|
"isTraversal": "true",
|
|
@@ -13567,7 +13567,7 @@ var queries$l = {
|
|
|
13567
13567
|
},
|
|
13568
13568
|
Insert: function Insert(data) {
|
|
13569
13569
|
return [{
|
|
13570
|
-
db_name:
|
|
13570
|
+
db_name: dbName,
|
|
13571
13571
|
entity: "OrderType",
|
|
13572
13572
|
is_metadata: true,
|
|
13573
13573
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -14749,7 +14749,7 @@ var queries$i = {
|
|
|
14749
14749
|
}
|
|
14750
14750
|
|
|
14751
14751
|
return [_objectSpread2(_objectSpread2({
|
|
14752
|
-
"db_name":
|
|
14752
|
+
"db_name": dbName,
|
|
14753
14753
|
"entity": "Holiday",
|
|
14754
14754
|
"is_metadata": true
|
|
14755
14755
|
}, filter), {}, {
|
|
@@ -15376,7 +15376,7 @@ var holidaySlice$1 = holidaySlice.reducer;
|
|
|
15376
15376
|
var queries$h = {
|
|
15377
15377
|
appointment_type_master: function appointment_type_master() {
|
|
15378
15378
|
return {
|
|
15379
|
-
db_name:
|
|
15379
|
+
db_name: dbName,
|
|
15380
15380
|
entity: "CodeableConceptMaster",
|
|
15381
15381
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15382
15382
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='APPTYPE'",
|
|
@@ -15471,7 +15471,7 @@ var queries$h = {
|
|
|
15471
15471
|
},
|
|
15472
15472
|
res_read_line_list_doc: function res_read_line_list_doc(key) {
|
|
15473
15473
|
return {
|
|
15474
|
-
db_name:
|
|
15474
|
+
db_name: dbName,
|
|
15475
15475
|
entity: "ResourcebyApptType",
|
|
15476
15476
|
filter: "ResourcebyApptType.activestatus==true AND ResourcebyApptType._key=='".concat(key, "'"),
|
|
15477
15477
|
return_fields: "MERGE(ResourcebyApptType,{ApptTypeCode:DOCUMENT(ResourcebyApptType.ApptTypeCode) ,TotNoOfResourcesRequired:(FOR tnr IN ResourcebyApptType.TotNoOfResourcesRequired RETURN MERGE(tnr,{ResourceType:DOCUMENT(tnr.ResourceType),ResourceRole:DOCUMENT(tnr.ResourceRole),DurnUOM:DOCUMENT(tnr.DurnUOM)} )) ,ApptInstructions:(FOR appins IN ResourcebyApptType.ApptInstructions RETURN MERGE(appins,{AppInstructionCriteria:DOCUMENT(appins.AppInstructionCriteria),Appcode:DOCUMENT(appins.Appcode)} )) ,generalInstruction:(FOR gins IN ResourcebyApptType.generalInstruction RETURN MERGE(gins,{fcode:DOCUMENT(gins.fcode)})) ,entityType:DOCUMENT(ResourcebyApptType.entityType) ,organization_id:DOCUMENT(ResourcebyApptType.organization_id) })"
|
|
@@ -16349,7 +16349,7 @@ var queries$g = {
|
|
|
16349
16349
|
}
|
|
16350
16350
|
|
|
16351
16351
|
return [_objectSpread2(_objectSpread2({
|
|
16352
|
-
"db_name":
|
|
16352
|
+
"db_name": dbName,
|
|
16353
16353
|
"entity": "DosageForm",
|
|
16354
16354
|
"is_metadata": true
|
|
16355
16355
|
}, filter), {}, {
|
|
@@ -17152,7 +17152,7 @@ var queries$f = {
|
|
|
17152
17152
|
};
|
|
17153
17153
|
},
|
|
17154
17154
|
drug_master_upsert: [{
|
|
17155
|
-
"db_name":
|
|
17155
|
+
"db_name": dbName,
|
|
17156
17156
|
"entity": "DrugMaster",
|
|
17157
17157
|
"is_metadata": true,
|
|
17158
17158
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -17560,7 +17560,7 @@ var generateDrugMasterJSON = function generateDrugMasterJSON(data, _key, draft)
|
|
|
17560
17560
|
}
|
|
17561
17561
|
|
|
17562
17562
|
var json = [_objectSpread2(_objectSpread2({
|
|
17563
|
-
"db_name":
|
|
17563
|
+
"db_name": dbName,
|
|
17564
17564
|
"entity": "DrugMaster",
|
|
17565
17565
|
"is_metadata": true
|
|
17566
17566
|
}, filter), {}, {
|
|
@@ -19000,7 +19000,7 @@ var masterQuery$4 = {
|
|
|
19000
19000
|
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19001
19001
|
ageGroup: "{\n\"db_name\": \"".concat(dbName, "\",\n\"entity\": \"AgeRanges\",\n\"sort\":\"AgeRanges.agerangecode\",\n\"filter\":\"AgeRanges.activestatus == true\",\n\"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:DOCUMENT(AgeRanges.AgeCategory)}\"\n}"),
|
|
19002
19002
|
checkaction: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='CHECKACTION' && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19003
|
-
attrcode: "{\n \"db_name\": \"
|
|
19003
|
+
attrcode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_OrderAttribMaster\",\n \"sort\":\"CA_OrderAttribMaster.attribcode\",\n \"filter\": \"CA_OrderAttribMaster.activestatus==true\",\n \"return_fields\": \"{id:CA_OrderAttribMaster.id,_id:CA_OrderAttribMaster._id,attribcode:CA_OrderAttribMaster.attribcode,attriblabel:CA_OrderAttribMaster.attriblabel,attribtype: document(CA_OrderAttribMaster.attribtype),AttribValidValues:CA_OrderAttribMaster.AttribValidValues}\"\n}")
|
|
19004
19004
|
};
|
|
19005
19005
|
var orderTypedata = {
|
|
19006
19006
|
ordertype: function ordertype(type) {
|
|
@@ -19043,7 +19043,7 @@ var Query = {
|
|
|
19043
19043
|
},
|
|
19044
19044
|
editOrderCatalog: function editOrderCatalog(id) {
|
|
19045
19045
|
return {
|
|
19046
|
-
db_name:
|
|
19046
|
+
db_name: dbName,
|
|
19047
19047
|
entity: "OrderCatalog",
|
|
19048
19048
|
filter: "OrderCatalog.activestatus==true && OrderCatalog._key=='".concat(id, "'"),
|
|
19049
19049
|
return_fields: "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)})"
|
|
@@ -19051,14 +19051,14 @@ var Query = {
|
|
|
19051
19051
|
},
|
|
19052
19052
|
attributeDelete: function attributeDelete(id) {
|
|
19053
19053
|
return {
|
|
19054
|
-
db_name:
|
|
19054
|
+
db_name: dbName,
|
|
19055
19055
|
entity: "CA_OrderAttribApplicability",
|
|
19056
19056
|
filter: "CA_OrderAttribApplicability._key=='".concat(id, "'")
|
|
19057
19057
|
};
|
|
19058
19058
|
},
|
|
19059
19059
|
entityTypeName: function entityTypeName(name) {
|
|
19060
19060
|
return {
|
|
19061
|
-
db_name:
|
|
19061
|
+
db_name: dbName,
|
|
19062
19062
|
entity: "Organization",
|
|
19063
19063
|
sort: "Organization.name",
|
|
19064
19064
|
filter: "Organization.OrgType ANY =='".concat(name, "' && Organization.activestatus==true"),
|
|
@@ -20259,7 +20259,7 @@ var queries$d = {
|
|
|
20259
20259
|
};
|
|
20260
20260
|
|
|
20261
20261
|
var generateJson$9 = function generateJson(data, _key) {
|
|
20262
|
-
var _data$performingData, _data$orderingFacilit, _data$orderingFacilit2, _data$locationType$va, _data$locationType, _data$sourceLocation$, _data$sourceLocation, _data$ServiceApplicab, _data$ServiceApplicab2, _data$status;
|
|
20262
|
+
var _data$performingData, _data$orderingFacilit, _data$orderingFacilit2, _data$locationType$va, _data$locationType, _data$sourceLocation$, _data$sourceLocation, _data$ServiceApplicab, _data$ServiceApplicab2, _ruleSet, _data$status;
|
|
20263
20263
|
|
|
20264
20264
|
var filter = {};
|
|
20265
20265
|
|
|
@@ -20280,6 +20280,17 @@ var generateJson$9 = function generateJson(data, _key) {
|
|
|
20280
20280
|
performing_location_code: v === null || v === void 0 ? void 0 : (_v$performing_locatio = v.performing_location) === null || _v$performing_locatio === void 0 ? void 0 : _v$performing_locatio.value
|
|
20281
20281
|
};
|
|
20282
20282
|
});
|
|
20283
|
+
var ruleSet = [];
|
|
20284
|
+
|
|
20285
|
+
if (data !== null && data !== void 0 && data.ruleSet && Array.isArray(data === null || data === void 0 ? void 0 : data.ruleSet)) {
|
|
20286
|
+
ruleSet = data === null || data === void 0 ? void 0 : data.ruleSet.map(function (val) {
|
|
20287
|
+
return {
|
|
20288
|
+
group: val.group,
|
|
20289
|
+
rule: val.rule
|
|
20290
|
+
};
|
|
20291
|
+
});
|
|
20292
|
+
}
|
|
20293
|
+
|
|
20283
20294
|
return [_objectSpread2(_objectSpread2({
|
|
20284
20295
|
"db_name": dbName
|
|
20285
20296
|
}, filter), {}, {
|
|
@@ -20292,7 +20303,7 @@ var generateJson$9 = function generateJson(data, _key) {
|
|
|
20292
20303
|
"ordering_source_type": (_data$locationType$va = data === null || data === void 0 ? void 0 : (_data$locationType = data.locationType) === null || _data$locationType === void 0 ? void 0 : _data$locationType.value) !== null && _data$locationType$va !== void 0 ? _data$locationType$va : '',
|
|
20293
20304
|
"ordering_source_code": (_data$sourceLocation$ = data === null || data === void 0 ? void 0 : (_data$sourceLocation = data.sourceLocation) === null || _data$sourceLocation === void 0 ? void 0 : _data$sourceLocation.value) !== null && _data$sourceLocation$ !== void 0 ? _data$sourceLocation$ : '',
|
|
20294
20305
|
"service_applicability": (_data$ServiceApplicab = data === null || data === void 0 ? void 0 : (_data$ServiceApplicab2 = data.ServiceApplicabiliy) === null || _data$ServiceApplicab2 === void 0 ? void 0 : _data$ServiceApplicab2._id) !== null && _data$ServiceApplicab !== void 0 ? _data$ServiceApplicab : '',
|
|
20295
|
-
"order_criteria": [],
|
|
20306
|
+
"order_criteria": (_ruleSet = ruleSet) !== null && _ruleSet !== void 0 ? _ruleSet : [],
|
|
20296
20307
|
"status": (_data$status = data.status) !== null && _data$status !== void 0 ? _data$status : false,
|
|
20297
20308
|
"performing_details": performing_details_data.length > 0 ? _toConsumableArray(performing_details_data || []) : []
|
|
20298
20309
|
}
|
|
@@ -20560,7 +20571,7 @@ var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingL
|
|
|
20560
20571
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
20561
20572
|
_context6.prev = 2;
|
|
20562
20573
|
read = {
|
|
20563
|
-
"db_name":
|
|
20574
|
+
"db_name": dbName,
|
|
20564
20575
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20565
20576
|
"sort": "CA_PerformingLocationforOrdLocn.createddate",
|
|
20566
20577
|
"filter": "CA_PerformingLocationforOrdLocn.activestatus==true",
|
|
@@ -20610,7 +20621,7 @@ var STATUS_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/changeSta
|
|
|
20610
20621
|
_context7.prev = 2;
|
|
20611
20622
|
list = payload.list, _key = payload._key;
|
|
20612
20623
|
queriesjson = [{
|
|
20613
|
-
"db_name":
|
|
20624
|
+
"db_name": dbName,
|
|
20614
20625
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20615
20626
|
"is_metadata": true,
|
|
20616
20627
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -20727,7 +20738,7 @@ var query$8 = {
|
|
|
20727
20738
|
},
|
|
20728
20739
|
entitynamewithType: function entitynamewithType(_ref) {
|
|
20729
20740
|
var name = _ref.name;
|
|
20730
|
-
return "{\n \"db_name\": \"
|
|
20741
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"sort\":\"Organization.name\",\n \"filter\": \"Organization.OrgType ANY =='").concat(name, "' && Organization.activestatus==true\",\n \"return_fields\": \"Organization\"\n }");
|
|
20731
20742
|
},
|
|
20732
20743
|
// entitynamewithType: ({ name }) => `{
|
|
20733
20744
|
// "db_name": "${dbName}",
|
|
@@ -20775,7 +20786,7 @@ var query$8 = {
|
|
|
20775
20786
|
},
|
|
20776
20787
|
affectedList: function affectedList(_ref4) {
|
|
20777
20788
|
var timeTableId = _ref4.timeTableId;
|
|
20778
|
-
return "{\n \"db_name\": \"
|
|
20789
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"filter\": {\n \"Resourcettid\": \"").concat(timeTableId, "\"\n },\n \"queryid\": \"912ee8b2-9f50-4b2f-92ef-8133993f82ab\"\n }");
|
|
20779
20790
|
}
|
|
20780
20791
|
};
|
|
20781
20792
|
|
|
@@ -22293,23 +22304,26 @@ var generateJson$8 = {
|
|
|
22293
22304
|
var contactpersondetailsArr = data === null || data === void 0 ? void 0 : (_data$ContactPersonDe = data.ContactPersonDetails) === null || _data$ContactPersonDe === void 0 ? void 0 : _data$ContactPersonDe.map(function (val, i) {
|
|
22294
22305
|
var _val$point, _val$use3, _val$prefix, _val$suffix, _val$designation;
|
|
22295
22306
|
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22307
|
+
var telecomArr = [];
|
|
22308
|
+
val === null || val === void 0 ? void 0 : (_val$point = val.point) === null || _val$point === void 0 ? void 0 : _val$point.map(function (v, i) {
|
|
22309
|
+
var _v$use3, _v$mode;
|
|
22299
22310
|
|
|
22300
|
-
|
|
22301
|
-
|
|
22311
|
+
if (v !== null && v !== void 0 && (_v$use3 = v.use) !== null && _v$use3 !== void 0 && _v$use3.value && v !== null && v !== void 0 && (_v$mode = v.mode) !== null && _v$mode !== void 0 && _v$mode.value && v !== null && v !== void 0 && v.number) {
|
|
22312
|
+
var _v$mode2, _v$use4, _v$priority, _v$code;
|
|
22302
22313
|
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
|
|
22314
|
+
telecomArr.push({
|
|
22315
|
+
system: v === null || v === void 0 ? void 0 : (_v$mode2 = v.mode) === null || _v$mode2 === void 0 ? void 0 : _v$mode2.value,
|
|
22316
|
+
value: v === null || v === void 0 ? void 0 : v.number,
|
|
22317
|
+
use: v === null || v === void 0 ? void 0 : (_v$use4 = v.use) === null || _v$use4 === void 0 ? void 0 : _v$use4.value,
|
|
22318
|
+
rank: v === null || v === void 0 ? void 0 : (_v$priority = v.priority) === null || _v$priority === void 0 ? void 0 : _v$priority.value,
|
|
22319
|
+
id: 0,
|
|
22320
|
+
valueprefix: v === null || v === void 0 ? void 0 : (_v$code = v.code) === null || _v$code === void 0 ? void 0 : _v$code.value
|
|
22321
|
+
});
|
|
22322
|
+
}
|
|
22323
|
+
});
|
|
22324
|
+
debugger;
|
|
22325
|
+
return {
|
|
22326
|
+
telecom: telecomArr,
|
|
22313
22327
|
name: [{
|
|
22314
22328
|
use: val === null || val === void 0 ? void 0 : (_val$use3 = val.use) === null || _val$use3 === void 0 ? void 0 : _val$use3.value,
|
|
22315
22329
|
text: val === null || val === void 0 ? void 0 : val.firstName,
|
|
@@ -24488,7 +24502,7 @@ var masterQuery$3 = {
|
|
|
24488
24502
|
},
|
|
24489
24503
|
healthcareservice_LocationDescription_MasterQuery: function healthcareservice_LocationDescription_MasterQuery(id) {
|
|
24490
24504
|
return {
|
|
24491
|
-
db_name:
|
|
24505
|
+
db_name: dbName,
|
|
24492
24506
|
entity: "LocationMaster",
|
|
24493
24507
|
sort: "LocationMaster.locationID",
|
|
24494
24508
|
filter: "LocationMaster.activestatus==true && LocationMaster.locationType=='".concat(id, "'"),
|
|
@@ -24513,17 +24527,17 @@ var masterQuery$3 = {
|
|
|
24513
24527
|
}
|
|
24514
24528
|
};
|
|
24515
24529
|
var masterQueryHealthCareService = {
|
|
24516
|
-
serviceCategory: "{\n \"db_name\": \"
|
|
24517
|
-
serviceType: "{\n \"db_name\": \"
|
|
24518
|
-
speciality: "{\n \"db_name\": \"
|
|
24519
|
-
facilityName: "{\n \"db_name\": \"
|
|
24530
|
+
serviceCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"sort\":\"CodingMaster.display\",\n \"filter\": \"CodingMaster.activestatus==true && CodingMaster.Type=='SERVICECATEGORY'\",\n \"return_fields\": \"CodingMaster\"\n }"),
|
|
24531
|
+
serviceType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"sort\":\"CodingMaster.display\",\n \"filter\": \"CodingMaster.activestatus==true && CodingMaster.Type=='SERVICETYPE'\",\n \"return_fields\": \"CodingMaster\"\n }"),
|
|
24532
|
+
speciality: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\"\n }"),
|
|
24533
|
+
facilityName: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"sort\":\"Organization.name\",\n \"filter\": \"Organization.activestatus==true && lower(first(document(Organization.OrgType)[*].display)) == 'facility'\",\n \"return_fields\": \"{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}\"\n }"),
|
|
24520
24534
|
// locationType : `{
|
|
24521
24535
|
// "db_name": dbName,
|
|
24522
24536
|
// "entity": "CodingMaster",
|
|
24523
24537
|
// "filter": "CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONTYPE'",
|
|
24524
24538
|
// "return_fields": "CodingMaster"
|
|
24525
24539
|
// }`,
|
|
24526
|
-
locationType: "{\n \"db_name\": \"
|
|
24540
|
+
locationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='LOCATIONTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }")
|
|
24527
24541
|
};
|
|
24528
24542
|
|
|
24529
24543
|
var _extraReducers$n;
|
|
@@ -26136,7 +26150,7 @@ var queries$a = {
|
|
|
26136
26150
|
},
|
|
26137
26151
|
coding_update: function coding_update(data) {
|
|
26138
26152
|
return [{
|
|
26139
|
-
"db_name":
|
|
26153
|
+
"db_name": dbName,
|
|
26140
26154
|
"entity": "CodingMaster",
|
|
26141
26155
|
"is_metadata": true,
|
|
26142
26156
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -26879,7 +26893,7 @@ var permission_actions = _objectSpread2({}, permissionActions);
|
|
|
26879
26893
|
var queries$7 = {
|
|
26880
26894
|
person_read: function person_read(data) {
|
|
26881
26895
|
return {
|
|
26882
|
-
"db_name":
|
|
26896
|
+
"db_name": dbName,
|
|
26883
26897
|
"entity": "Person",
|
|
26884
26898
|
"filter": "Person.activestatus==true",
|
|
26885
26899
|
"sort": "Person.createddate",
|
|
@@ -26927,7 +26941,7 @@ var queries$7 = {
|
|
|
26927
26941
|
},
|
|
26928
26942
|
contact_system_master: function contact_system_master(data) {
|
|
26929
26943
|
return {
|
|
26930
|
-
"db_name":
|
|
26944
|
+
"db_name": dbName,
|
|
26931
26945
|
"entity": "CodingMaster",
|
|
26932
26946
|
"filter": "CodingMaster.Type=='CONTACTSYSTEM' && CodingMaster.activestatus==true",
|
|
26933
26947
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26935,7 +26949,7 @@ var queries$7 = {
|
|
|
26935
26949
|
},
|
|
26936
26950
|
entity_name_master: function entity_name_master(data) {
|
|
26937
26951
|
return {
|
|
26938
|
-
"db_name":
|
|
26952
|
+
"db_name": dbName,
|
|
26939
26953
|
"entity": "Organization",
|
|
26940
26954
|
"filter": "Organization.activestatus==true && lower(first(document(Organization.OrgType)[*].display)) == '".concat(data, "'"),
|
|
26941
26955
|
"return_fields": "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
@@ -26943,7 +26957,7 @@ var queries$7 = {
|
|
|
26943
26957
|
},
|
|
26944
26958
|
entity_type_master: function entity_type_master(data) {
|
|
26945
26959
|
return {
|
|
26946
|
-
"db_name":
|
|
26960
|
+
"db_name": dbName,
|
|
26947
26961
|
"entity": "CodingMaster",
|
|
26948
26962
|
"filter": "CodingMaster.Type=='ORGTYPE' && CodingMaster.activestatus==true",
|
|
26949
26963
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26951,7 +26965,7 @@ var queries$7 = {
|
|
|
26951
26965
|
},
|
|
26952
26966
|
gender_master: function gender_master(data) {
|
|
26953
26967
|
return {
|
|
26954
|
-
"db_name":
|
|
26968
|
+
"db_name": dbName,
|
|
26955
26969
|
"entity": "CodingMaster",
|
|
26956
26970
|
"filter": "CodingMaster.Type=='GENDER' && CodingMaster.activestatus==true",
|
|
26957
26971
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26959,7 +26973,7 @@ var queries$7 = {
|
|
|
26959
26973
|
},
|
|
26960
26974
|
id_type_master: function id_type_master(data) {
|
|
26961
26975
|
return {
|
|
26962
|
-
"db_name":
|
|
26976
|
+
"db_name": dbName,
|
|
26963
26977
|
"entity": "CodingMaster",
|
|
26964
26978
|
"filter": "CodingMaster.Type=='ALTERNATEIDTYPE' && CodingMaster.activestatus==true",
|
|
26965
26979
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26967,7 +26981,7 @@ var queries$7 = {
|
|
|
26967
26981
|
},
|
|
26968
26982
|
prefix_master: function prefix_master(data) {
|
|
26969
26983
|
return {
|
|
26970
|
-
"db_name":
|
|
26984
|
+
"db_name": dbName,
|
|
26971
26985
|
"entity": "CodingMaster",
|
|
26972
26986
|
"filter": "CodingMaster.Type=='NAMEPREFIX' && CodingMaster.activestatus==true",
|
|
26973
26987
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26975,7 +26989,7 @@ var queries$7 = {
|
|
|
26975
26989
|
},
|
|
26976
26990
|
priority_master: function priority_master(data) {
|
|
26977
26991
|
return {
|
|
26978
|
-
"db_name":
|
|
26992
|
+
"db_name": dbName,
|
|
26979
26993
|
"entity": "CodingMaster",
|
|
26980
26994
|
"filter": "CodingMaster.Type=='PRIORITY' && CodingMaster.activestatus==true",
|
|
26981
26995
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26983,7 +26997,7 @@ var queries$7 = {
|
|
|
26983
26997
|
},
|
|
26984
26998
|
surffix_master: function surffix_master(data) {
|
|
26985
26999
|
return {
|
|
26986
|
-
"db_name":
|
|
27000
|
+
"db_name": dbName,
|
|
26987
27001
|
"entity": "CodingMaster",
|
|
26988
27002
|
"filter": "CodingMaster.Type=='NAMESUFFIX' && CodingMaster.activestatus==true",
|
|
26989
27003
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26991,7 +27005,7 @@ var queries$7 = {
|
|
|
26991
27005
|
},
|
|
26992
27006
|
use_master: function use_master(data) {
|
|
26993
27007
|
return {
|
|
26994
|
-
"db_name":
|
|
27008
|
+
"db_name": dbName,
|
|
26995
27009
|
"entity": "CodingMaster",
|
|
26996
27010
|
"filter": "CodingMaster.Type=='USE' && CodingMaster.activestatus==true",
|
|
26997
27011
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -26999,12 +27013,12 @@ var queries$7 = {
|
|
|
26999
27013
|
},
|
|
27000
27014
|
single_read_person: function single_read_person(data) {
|
|
27001
27015
|
return {
|
|
27002
|
-
"db_name":
|
|
27016
|
+
"db_name": dbName,
|
|
27003
27017
|
"entity": "Person",
|
|
27004
27018
|
"filter": " Person._key=='".concat(data._key, "' && Person.activestatus==true"),
|
|
27005
27019
|
"return_fields": "merge(Person,{name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank)}))},{photo:document(Person.photo)},{address:(for add in AddressMaster filter add._id in Person.address return merge(add,{use:document(add.use),Type:document(add.Type),city:document(add.city),district:document(add.district),state:document(add.state),country:document(add.country),postalCode:document(add.postalCode)}))},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type),period:document(iden.period)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})"
|
|
27006
27020
|
}; // return {
|
|
27007
|
-
// "db_name":
|
|
27021
|
+
// "db_name": dbName,
|
|
27008
27022
|
// "entity": "Person",
|
|
27009
27023
|
// "filter": `Person.activestatus==true && Person._key=='${data._key}'`,
|
|
27010
27024
|
// "return_fields": "merge(Person,{name:(for nam in HumanNameMaster filter nam._id in Person.name return merge(nam,{use:document(nam.use),suffix:document(nam.suffix),prefix:document(nam.prefix)}))},{gender:document(Person.gender)},{telecom:(for con in ContactPointMaster filter con._id in Person.telecom return merge(con,{use:document(con.use),rank:document(con.rank),system:document(con.system)}))},{photo:document(Person.photo)},{address:document(Person.address)},{identifier:(for iden in IdentifierMaster filter iden._id in Person.identifier return merge(iden,{user:document(iden.user),Type:document(iden.Type)}))},{OrgID:document(Person.OrgID)},{orgType:document(Person.orgType)})"
|
|
@@ -27013,7 +27027,7 @@ var queries$7 = {
|
|
|
27013
27027
|
}; // person_read: (data) => {
|
|
27014
27028
|
// let filter = {};
|
|
27015
27029
|
// return {
|
|
27016
|
-
// "db_name":
|
|
27030
|
+
// "db_name": dbName,
|
|
27017
27031
|
// "entity": "Person",
|
|
27018
27032
|
// "filter": "Person.activestatus==true",
|
|
27019
27033
|
// "limit": {
|
|
@@ -27815,7 +27829,7 @@ var queries$6 = {
|
|
|
27815
27829
|
},
|
|
27816
27830
|
practitioner_by_id: function practitioner_by_id(data) {
|
|
27817
27831
|
return {
|
|
27818
|
-
"db_name":
|
|
27832
|
+
"db_name": dbName,
|
|
27819
27833
|
"entity": "Practitioner",
|
|
27820
27834
|
"filter": "Practitioner.PersonID==".concat(data.id, " && Practitioner.activestatus==true"),
|
|
27821
27835
|
"return_fields": "merge(Practitioner,{identifier:(for doc in IdentifierMaster filter doc._id in Practitioner.identifier return merge(doc,{period:(for cod in doc.period return document(cod))})),address:(for a in Practitioner.address return document(a)),communication:( FOR cod IN CodeableConceptMaster filter cod._id in Practitioner.communication RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),marital_status:(FOR cod IN CodeableConceptMaster filter cod._id==Practitioner.marital_status RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),name:(for a in Practitioner.name return MERGE(document(a),{period:DOCUMENT(document(a).period)})),nationality:(FOR cod IN SMGeographicMaster filter cod._id==Practitioner.nationality RETURN cod),photo:(for a in Practitioner.photo return document(a)),position:(for pt in CodeableConceptMaster filter pt._id==Practitioner.position return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))})),practitioner_type:(for pt in CodeableConceptMaster filter pt._id==Practitioner.practitioner_type return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))})),telecom:(for a in Practitioner.telecom return document(a)),job_experience:(for c in Practitioner.job_experience RETURN merge(c,{jobexperience_contact_details:(for con in c.jobexperience_contact_details return document(con)), jobexperience_address:(for add in c.jobexperience_address return document(add))})),training_details:(for c in Practitioner.training_details RETURN merge(c,{training_contact_details:(for con in c.training_contact_details return document(con)), training_address:(for add in c.training_address return document(add))})),practitioner_role:(for doc in PractitionerRole filter doc._id IN Practitioner.practitioner_role return MERGE(doc,{telecom:(for rol in ContactPointMaster filter rol._id in doc.telecom return rol),role:(for cod in CodeableConceptMaster filter cod._id==doc.role return merge(cod,{coding:(for code in CodingMaster filter code._id in cod.coding return code)})),period:(for per in periodMaster filter per._id in doc.period return per)})),gender:(FOR cod IN CodeableConceptMaster filter cod._id==Practitioner.gender RETURN MERGE(cod,{coding:(FOR d IN cod.coding RETURN DOCUMENT(d))})),employee_status:(for pt in CodeableConceptMaster filter pt._id==Practitioner.employee_status return merge(pt,{coding:(FOR d IN pt.coding RETURN DOCUMENT(d))}))})"
|
|
@@ -28101,7 +28115,7 @@ var UPSERT_ALERT_STATUS = createAsyncThunk("alertRestictionsMasterSlice/save_ale
|
|
|
28101
28115
|
_context2.prev = 2;
|
|
28102
28116
|
list = payload.list, _key = payload._key;
|
|
28103
28117
|
queriesjson = [{
|
|
28104
|
-
"db_name":
|
|
28118
|
+
"db_name": dbName,
|
|
28105
28119
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28106
28120
|
"is_metadata": true,
|
|
28107
28121
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -28184,21 +28198,21 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
28184
28198
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28185
28199
|
};
|
|
28186
28200
|
service_applicable = {
|
|
28187
|
-
"db_name":
|
|
28201
|
+
"db_name": dbName,
|
|
28188
28202
|
"entity": "CodeableConceptMaster",
|
|
28189
28203
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28190
28204
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'SERVICEAPPLICABILITY'",
|
|
28191
28205
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28192
28206
|
};
|
|
28193
28207
|
rule_type = {
|
|
28194
|
-
"db_name":
|
|
28208
|
+
"db_name": dbName,
|
|
28195
28209
|
"entity": "CodeableConceptMaster",
|
|
28196
28210
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28197
28211
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'RULETYPE'",
|
|
28198
28212
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28199
28213
|
};
|
|
28200
28214
|
privillage_type = {
|
|
28201
|
-
"db_name":
|
|
28215
|
+
"db_name": dbName,
|
|
28202
28216
|
"entity": "CodeableConceptMaster",
|
|
28203
28217
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28204
28218
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='PRIVILEGETYPE' && CodeableConceptMaster.text=='restriction'",
|
|
@@ -28317,7 +28331,7 @@ var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__
|
|
|
28317
28331
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
28318
28332
|
_context4.prev = 2;
|
|
28319
28333
|
read = {
|
|
28320
|
-
"db_name":
|
|
28334
|
+
"db_name": dbName,
|
|
28321
28335
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28322
28336
|
"sort": "CA_OrderCatalogPrivilegeLevel.createddate",
|
|
28323
28337
|
"filter": "CA_OrderCatalogPrivilegeLevel.activestatus==true",
|
|
@@ -29648,7 +29662,8 @@ var masterQuery$2 = {
|
|
|
29648
29662
|
orderCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"OrderCategory\",\n \"filter\": \"OrderCategory.activestatus == true && OrderCategory.status==true\",\n \"return_fields\": \"keep(OrderCategory,'id','_id','_key','shortdesc','ordercategory','longdesc')\",\n \"sort\": \"OrderCategory.shortdesc\"\n }"),
|
|
29649
29663
|
commonUOM: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"filter\": \"DrugUOM.status == true && DrugUOM.activestatus == true\",\n \"return_fields\": \"keep(DrugUOM,'_key','_id','UOM','shortdesc','longdesc','status')\"\n }"),
|
|
29650
29664
|
route: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\",\n \"filter\": \"DrugRoutes.activestatus==true && DrugRoutes.status==true\",\n \"return_fields\": \"keep(DrugRoutes,'id','_key','_id','longdesc','routeadverb','routecode','shortdesc')\",\n \"sort\": \"DrugRoutes.shortdesc\"\n }"),
|
|
29651
|
-
drugFreqCode: "{\n \"db_name\": \"
|
|
29665
|
+
drugFreqCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"filter\": \"FrequencyMaster.activestatus == true && FrequencyMaster.status == true\",\n \"return_fields\": \"keep(FrequencyMaster,'id','_key','_id','longdesc','shortdesc','freqcode')\",\n \"sort\": \"FrequencyMaster.shortdesc\"\n }"),
|
|
29666
|
+
durationDropDown: "{\n \"db_name\": \"".concat(dbName, "\", \n \"entity\": \"DrugUOM\",\n \"filter\": \"LOWER(DOCUMENT(DrugUOM.UOMType).display) =='time' and DrugUOM.activestatus==true and DrugUOM.status==true\",\n \"return_fields\": \"keep(DrugUOM,'_key','_id','UOM','shortdesc','longdesc','status')\"\n }")
|
|
29652
29667
|
};
|
|
29653
29668
|
var orderCategoty = {
|
|
29654
29669
|
orderCategory: function orderCategory() {
|
|
@@ -30100,6 +30115,11 @@ var loopMasters$3 = function loopMasters() {
|
|
|
30100
30115
|
label: value.shortdesc,
|
|
30101
30116
|
value: value._id
|
|
30102
30117
|
});
|
|
30118
|
+
} else if ("durationDropDown" === val.name) {
|
|
30119
|
+
arr.push({
|
|
30120
|
+
label: value.shortdesc,
|
|
30121
|
+
value: value._id
|
|
30122
|
+
});
|
|
30103
30123
|
}
|
|
30104
30124
|
});
|
|
30105
30125
|
json[val.name] = arr;
|
|
@@ -31689,8 +31709,8 @@ var query$3 = {
|
|
|
31689
31709
|
offset: page,
|
|
31690
31710
|
count: perpage
|
|
31691
31711
|
},
|
|
31692
|
-
return_fields: "{TotalCount:COUNT(AllergyMaster),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}"
|
|
31693
|
-
|
|
31712
|
+
return_fields: "{TotalCount:COUNT(AllergyMaster),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}",
|
|
31713
|
+
sort: "AllergyMaster.shortdesc"
|
|
31694
31714
|
};
|
|
31695
31715
|
}
|
|
31696
31716
|
};
|
|
@@ -32625,7 +32645,7 @@ var flexCriteriaQuery = {
|
|
|
32625
32645
|
},
|
|
32626
32646
|
flexCriteriaFullRead: function flexCriteriaFullRead(page, perpage, search) {
|
|
32627
32647
|
return {
|
|
32628
|
-
db_name:
|
|
32648
|
+
db_name: dbName,
|
|
32629
32649
|
entity: "CA_FlexAttribApplicability",
|
|
32630
32650
|
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32631
32651
|
limit: {
|
|
@@ -32687,7 +32707,7 @@ var flexCriteriaQuery = {
|
|
|
32687
32707
|
var _list$attributeLableN2, _list$status;
|
|
32688
32708
|
|
|
32689
32709
|
return [{
|
|
32690
|
-
db_name:
|
|
32710
|
+
db_name: dbName,
|
|
32691
32711
|
entity: "CA_FlexAttribApplicability",
|
|
32692
32712
|
filter: {
|
|
32693
32713
|
_key: list === null || list === void 0 ? void 0 : list.key
|
|
@@ -33734,40 +33754,48 @@ var queries$3 = {
|
|
|
33734
33754
|
},
|
|
33735
33755
|
//STATE READ
|
|
33736
33756
|
geoStateRead: function geoStateRead(id) {
|
|
33757
|
+
var _ref, _ref$toUpperCase;
|
|
33758
|
+
|
|
33737
33759
|
return {
|
|
33738
33760
|
db_name: dbName,
|
|
33739
33761
|
entity: "SMGeographicMaster",
|
|
33740
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='STATE' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33762
|
+
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='STATE' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat((_ref = id || "") === null || _ref === void 0 ? void 0 : (_ref$toUpperCase = _ref.toUpperCase) === null || _ref$toUpperCase === void 0 ? void 0 : _ref$toUpperCase.call(_ref), "'"),
|
|
33741
33763
|
sort: "SMGeographicMaster.createddate desc",
|
|
33742
33764
|
return_fields: "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.active,_key:SMGeographicMaster._key}"
|
|
33743
33765
|
};
|
|
33744
33766
|
},
|
|
33745
33767
|
//DISTRICT READ
|
|
33746
33768
|
geoDistrictRead: function geoDistrictRead(id) {
|
|
33769
|
+
var _ref2, _ref2$toUpperCase;
|
|
33770
|
+
|
|
33747
33771
|
return {
|
|
33748
33772
|
db_name: dbName,
|
|
33749
33773
|
entity: "SMGeographicMaster",
|
|
33750
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='DISTRICT' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33774
|
+
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='DISTRICT' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat((_ref2 = id || "") === null || _ref2 === void 0 ? void 0 : (_ref2$toUpperCase = _ref2.toUpperCase) === null || _ref2$toUpperCase === void 0 ? void 0 : _ref2$toUpperCase.call(_ref2), "'"),
|
|
33751
33775
|
sort: "SMGeographicMaster.createddate desc",
|
|
33752
33776
|
return_fields: "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.active,_key:SMGeographicMaster._key}"
|
|
33753
33777
|
};
|
|
33754
33778
|
},
|
|
33755
33779
|
//CITY READ
|
|
33756
33780
|
geoCityRead: function geoCityRead(id) {
|
|
33781
|
+
var _ref3, _ref3$toUpperCase;
|
|
33782
|
+
|
|
33757
33783
|
return {
|
|
33758
33784
|
db_name: dbName,
|
|
33759
33785
|
entity: "SMGeographicMaster",
|
|
33760
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='CITY' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33786
|
+
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='CITY' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat((_ref3 = id || "") === null || _ref3 === void 0 ? void 0 : (_ref3$toUpperCase = _ref3.toUpperCase) === null || _ref3$toUpperCase === void 0 ? void 0 : _ref3$toUpperCase.call(_ref3), "'"),
|
|
33761
33787
|
sort: "SMGeographicMaster.createddate desc",
|
|
33762
33788
|
return_fields: "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.active,_key:SMGeographicMaster._key}"
|
|
33763
33789
|
};
|
|
33764
33790
|
},
|
|
33765
33791
|
//PINCODE READ
|
|
33766
33792
|
geoPincodeRead: function geoPincodeRead(id) {
|
|
33793
|
+
var _ref4, _ref4$toUpperCase;
|
|
33794
|
+
|
|
33767
33795
|
return {
|
|
33768
33796
|
db_name: dbName,
|
|
33769
33797
|
entity: "SMGeographicMaster",
|
|
33770
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='PINCODE' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33798
|
+
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='PINCODE' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat((_ref4 = id || "") === null || _ref4 === void 0 ? void 0 : (_ref4$toUpperCase = _ref4.toUpperCase) === null || _ref4$toUpperCase === void 0 ? void 0 : _ref4$toUpperCase.call(_ref4), "'"),
|
|
33771
33799
|
sort: "SMGeographicMaster.createddate desc",
|
|
33772
33800
|
return_fields: "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.active,_key:SMGeographicMaster._key}"
|
|
33773
33801
|
};
|
|
@@ -33817,10 +33845,10 @@ var queries$3 = {
|
|
|
33817
33845
|
};
|
|
33818
33846
|
},
|
|
33819
33847
|
//geo code exits checking
|
|
33820
|
-
geoCodeExits: function geoCodeExits(
|
|
33821
|
-
var levelType =
|
|
33822
|
-
geoLevelCode =
|
|
33823
|
-
return "{\n\t\t\t\"db_name\": \"
|
|
33848
|
+
geoCodeExits: function geoCodeExits(_ref5) {
|
|
33849
|
+
var levelType = _ref5.levelType,
|
|
33850
|
+
geoLevelCode = _ref5.geoLevelCode;
|
|
33851
|
+
return "{\n\t\t\t\"db_name\": \"".concat(dbName, "\",\n\t\t\t\"entity\": \"SMGeographicMaster\",\n\t\t\t\"filter\": \"SMGeographicMaster.geogLevelType=='").concat(levelType, "' && SMGeographicMaster.geogLevelCode=='").concat(geoLevelCode, "'\",\n\t\t\t\"return_fields\": \"SMGeographicMaster\"\n\t\t }");
|
|
33824
33852
|
}
|
|
33825
33853
|
};
|
|
33826
33854
|
|