primary_care_admin_binder 0.1.24 → 0.1.28
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 +72 -40
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8050,7 +8050,8 @@ var queries$n = {
|
|
|
8050
8050
|
db_name: dbName,
|
|
8051
8051
|
entity: "CodeableConceptMaster",
|
|
8052
8052
|
filter: "CodeableConceptMaster.Type=='".concat(type, "'"),
|
|
8053
|
-
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
8053
|
+
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
8054
|
+
sort: "CodeableConceptMaster.createddate"
|
|
8054
8055
|
};
|
|
8055
8056
|
},
|
|
8056
8057
|
upsert: function upsert(data) {
|
|
@@ -19142,13 +19143,15 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
19142
19143
|
|
|
19143
19144
|
var getAvailability = function getAvailability(data) {
|
|
19144
19145
|
var arr = data.map(function (v) {
|
|
19146
|
+
var _v$entity_name$value, _v$entity_name, _v$appointment, _parseInt, _v$entity_type$value, _v$entity_type;
|
|
19147
|
+
|
|
19145
19148
|
return {
|
|
19146
|
-
perforganizationId: v.entity_name.value,
|
|
19147
|
-
apptreqd: v.appointment,
|
|
19148
|
-
apptDurnInMinutes: parseInt(v.duration),
|
|
19149
|
-
perfOrganizationEntity: v.entity_type.value,
|
|
19150
|
-
EffFrDate: v.effective_from ? getUtcTime(moment(v.effective_from)) : null,
|
|
19151
|
-
EffToDate: v.effective_to ? getUtcTime(moment(v.effective_to)) : null
|
|
19149
|
+
perforganizationId: (_v$entity_name$value = v === null || v === void 0 ? void 0 : (_v$entity_name = v.entity_name) === null || _v$entity_name === void 0 ? void 0 : _v$entity_name.value) !== null && _v$entity_name$value !== void 0 ? _v$entity_name$value : null,
|
|
19150
|
+
apptreqd: (_v$appointment = v === null || v === void 0 ? void 0 : v.appointment) !== null && _v$appointment !== void 0 ? _v$appointment : false,
|
|
19151
|
+
apptDurnInMinutes: (_parseInt = parseInt(v.duration)) !== null && _parseInt !== void 0 ? _parseInt : null,
|
|
19152
|
+
perfOrganizationEntity: (_v$entity_type$value = v === null || v === void 0 ? void 0 : (_v$entity_type = v.entity_type) === null || _v$entity_type === void 0 ? void 0 : _v$entity_type.value) !== null && _v$entity_type$value !== void 0 ? _v$entity_type$value : null,
|
|
19153
|
+
EffFrDate: v !== null && v !== void 0 && v.effective_from ? getUtcTime(moment(v.effective_from, "DD/MM/YYYY")) : null,
|
|
19154
|
+
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
|
|
19152
19155
|
};
|
|
19153
19156
|
});
|
|
19154
19157
|
return arr;
|
|
@@ -19520,6 +19523,8 @@ var generateFrequency = function generateFrequency(data, state) {
|
|
|
19520
19523
|
|
|
19521
19524
|
var generatefaciltity = function generatefaciltity(data, state) {
|
|
19522
19525
|
var facilityArr = data.map(function (v) {
|
|
19526
|
+
var _v$apptreqd, _v$apptDurnInMinutes;
|
|
19527
|
+
|
|
19523
19528
|
return {
|
|
19524
19529
|
entity_type: v.perfOrganizationEntity && v.perfOrganizationEntity._id ? state.order_catalog_masters.data.entityType.find(function (sys) {
|
|
19525
19530
|
return v.perfOrganizationEntity._id.indexOf(sys.value) > -1;
|
|
@@ -19533,10 +19538,10 @@ var generatefaciltity = function generatefaciltity(data, state) {
|
|
|
19533
19538
|
label: v.perforganizationId.name,
|
|
19534
19539
|
value: v.perforganizationId._id
|
|
19535
19540
|
} : null,
|
|
19536
|
-
appointment: v.apptreqd,
|
|
19537
|
-
duration: v.apptDurnInMinutes,
|
|
19538
|
-
effective_from: new Date(utcTOLocal(v.EffFrDate)).toLocaleDateString(),
|
|
19539
|
-
effective_to: new Date(utcTOLocal(v.EffToDate)).toLocaleDateString()
|
|
19541
|
+
appointment: (_v$apptreqd = v === null || v === void 0 ? void 0 : v.apptreqd) !== null && _v$apptreqd !== void 0 ? _v$apptreqd : false,
|
|
19542
|
+
duration: (_v$apptDurnInMinutes = v === null || v === void 0 ? void 0 : v.apptDurnInMinutes) !== null && _v$apptDurnInMinutes !== void 0 ? _v$apptDurnInMinutes : "",
|
|
19543
|
+
effective_from: v !== null && v !== void 0 && v.EffFrDate ? new Date(utcTOLocal(v.EffFrDate)).toLocaleDateString() : "",
|
|
19544
|
+
effective_to: v !== null && v !== void 0 && v.EffToDate ? new Date(utcTOLocal(v.EffToDate)).toLocaleDateString() : ""
|
|
19540
19545
|
};
|
|
19541
19546
|
});
|
|
19542
19547
|
return facilityArr;
|
|
@@ -20254,7 +20259,7 @@ var queries$d = {
|
|
|
20254
20259
|
};
|
|
20255
20260
|
|
|
20256
20261
|
var generateJson$9 = function generateJson(data, _key) {
|
|
20257
|
-
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;
|
|
20258
20263
|
|
|
20259
20264
|
var filter = {};
|
|
20260
20265
|
|
|
@@ -20275,6 +20280,17 @@ var generateJson$9 = function generateJson(data, _key) {
|
|
|
20275
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
|
|
20276
20281
|
};
|
|
20277
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
|
+
|
|
20278
20294
|
return [_objectSpread2(_objectSpread2({
|
|
20279
20295
|
"db_name": dbName
|
|
20280
20296
|
}, filter), {}, {
|
|
@@ -20287,7 +20303,7 @@ var generateJson$9 = function generateJson(data, _key) {
|
|
|
20287
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 : '',
|
|
20288
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$ : '',
|
|
20289
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 : '',
|
|
20290
|
-
"order_criteria": [],
|
|
20306
|
+
"order_criteria": (_ruleSet = ruleSet) !== null && _ruleSet !== void 0 ? _ruleSet : [],
|
|
20291
20307
|
"status": (_data$status = data.status) !== null && _data$status !== void 0 ? _data$status : false,
|
|
20292
20308
|
"performing_details": performing_details_data.length > 0 ? _toConsumableArray(performing_details_data || []) : []
|
|
20293
20309
|
}
|
|
@@ -22288,23 +22304,26 @@ var generateJson$8 = {
|
|
|
22288
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) {
|
|
22289
22305
|
var _val$point, _val$use3, _val$prefix, _val$suffix, _val$designation;
|
|
22290
22306
|
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
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;
|
|
22294
22310
|
|
|
22295
|
-
|
|
22296
|
-
|
|
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;
|
|
22297
22313
|
|
|
22298
|
-
|
|
22299
|
-
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
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,
|
|
22308
22327
|
name: [{
|
|
22309
22328
|
use: val === null || val === void 0 ? void 0 : (_val$use3 = val.use) === null || _val$use3 === void 0 ? void 0 : _val$use3.value,
|
|
22310
22329
|
text: val === null || val === void 0 ? void 0 : val.firstName,
|
|
@@ -24151,7 +24170,8 @@ var queries$b = {
|
|
|
24151
24170
|
db_name: dbName,
|
|
24152
24171
|
entity: "LevelOfCare",
|
|
24153
24172
|
filter: "LevelOfCare.activestatus==true",
|
|
24154
|
-
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}"
|
|
24173
|
+
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}",
|
|
24174
|
+
sort: "LevelOfCare.createddate"
|
|
24155
24175
|
};
|
|
24156
24176
|
},
|
|
24157
24177
|
levelOfCareSinleRead: function levelOfCareSinleRead(key) {
|
|
@@ -24208,7 +24228,8 @@ var queries$b = {
|
|
|
24208
24228
|
db_name: dbName,
|
|
24209
24229
|
entity: "HealthcareService",
|
|
24210
24230
|
filter: "HealthcareService.activestatus==true",
|
|
24211
|
-
return_fields: " {id:HealthcareService.id,_id:HealthcareService._id,_key:HealthcareService._key,active:HealthcareService.active,comment:HealthcareService.comment,SpecialtyID:document(HealthcareService.SpecialtyID),healthcareservicecode:HealthcareService.healthcareservicecode,name:HealthcareService.name,notes:HealthcareService.notes,category:document(HealthcareService.category),Type:document(HealthcareService.Type),applicablefacilities:HealthcareService.applicablefacilities ==null?null :(for hs in TO_ARRAY( HealthcareService.applicablefacilities) return {facility:document(hs.facility),locationtype:document(hs.locationtype),locationid:document(hs.locationid)})}"
|
|
24231
|
+
return_fields: " {id:HealthcareService.id,_id:HealthcareService._id,_key:HealthcareService._key,active:HealthcareService.active,comment:HealthcareService.comment,SpecialtyID:document(HealthcareService.SpecialtyID),healthcareservicecode:HealthcareService.healthcareservicecode,name:HealthcareService.name,notes:HealthcareService.notes,category:document(HealthcareService.category),Type:document(HealthcareService.Type),applicablefacilities:HealthcareService.applicablefacilities ==null?null :(for hs in TO_ARRAY( HealthcareService.applicablefacilities) return {facility:document(hs.facility),locationtype:document(hs.locationtype),locationid:document(hs.locationid)})}",
|
|
24232
|
+
sort: "HealthcareService.createddate"
|
|
24212
24233
|
};
|
|
24213
24234
|
},
|
|
24214
24235
|
//HEALTH CARE SERVICE STATUS CHANGE
|
|
@@ -29602,7 +29623,8 @@ var query$5 = {
|
|
|
29602
29623
|
db_name: "".concat(dbName),
|
|
29603
29624
|
entity: "CA_OrderSet",
|
|
29604
29625
|
filter: "CA_OrderSet.activestatus == true",
|
|
29605
|
-
return_fields: "keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status')"
|
|
29626
|
+
return_fields: "keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status')",
|
|
29627
|
+
sort: "CA_OrderSet.createddate"
|
|
29606
29628
|
};
|
|
29607
29629
|
},
|
|
29608
29630
|
orderSetListById: function orderSetListById(_key) {
|
|
@@ -31681,7 +31703,8 @@ var query$3 = {
|
|
|
31681
31703
|
offset: page,
|
|
31682
31704
|
count: perpage
|
|
31683
31705
|
},
|
|
31684
|
-
return_fields: "{TotalCount:COUNT(AllergyMaster),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}"
|
|
31706
|
+
return_fields: "{TotalCount:COUNT(AllergyMaster),AllergyMaster:merge(AllergyMaster,{extsystemsourceid:document(AllergyMaster.extsystemsourceid)},{conceptidtype:document(AllergyMaster.conceptidtype)},{allergytypeind:document(AllergyMaster.allergytypeind)})}",
|
|
31707
|
+
sort: "AllergyMaster.shortdesc"
|
|
31685
31708
|
};
|
|
31686
31709
|
}
|
|
31687
31710
|
};
|
|
@@ -33725,40 +33748,48 @@ var queries$3 = {
|
|
|
33725
33748
|
},
|
|
33726
33749
|
//STATE READ
|
|
33727
33750
|
geoStateRead: function geoStateRead(id) {
|
|
33751
|
+
var _ref, _ref$toUpperCase;
|
|
33752
|
+
|
|
33728
33753
|
return {
|
|
33729
33754
|
db_name: dbName,
|
|
33730
33755
|
entity: "SMGeographicMaster",
|
|
33731
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='STATE' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33756
|
+
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), "'"),
|
|
33732
33757
|
sort: "SMGeographicMaster.createddate desc",
|
|
33733
33758
|
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}"
|
|
33734
33759
|
};
|
|
33735
33760
|
},
|
|
33736
33761
|
//DISTRICT READ
|
|
33737
33762
|
geoDistrictRead: function geoDistrictRead(id) {
|
|
33763
|
+
var _ref2, _ref2$toUpperCase;
|
|
33764
|
+
|
|
33738
33765
|
return {
|
|
33739
33766
|
db_name: dbName,
|
|
33740
33767
|
entity: "SMGeographicMaster",
|
|
33741
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='DISTRICT' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33768
|
+
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), "'"),
|
|
33742
33769
|
sort: "SMGeographicMaster.createddate desc",
|
|
33743
33770
|
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}"
|
|
33744
33771
|
};
|
|
33745
33772
|
},
|
|
33746
33773
|
//CITY READ
|
|
33747
33774
|
geoCityRead: function geoCityRead(id) {
|
|
33775
|
+
var _ref3, _ref3$toUpperCase;
|
|
33776
|
+
|
|
33748
33777
|
return {
|
|
33749
33778
|
db_name: dbName,
|
|
33750
33779
|
entity: "SMGeographicMaster",
|
|
33751
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='CITY' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33780
|
+
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), "'"),
|
|
33752
33781
|
sort: "SMGeographicMaster.createddate desc",
|
|
33753
33782
|
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}"
|
|
33754
33783
|
};
|
|
33755
33784
|
},
|
|
33756
33785
|
//PINCODE READ
|
|
33757
33786
|
geoPincodeRead: function geoPincodeRead(id) {
|
|
33787
|
+
var _ref4, _ref4$toUpperCase;
|
|
33788
|
+
|
|
33758
33789
|
return {
|
|
33759
33790
|
db_name: dbName,
|
|
33760
33791
|
entity: "SMGeographicMaster",
|
|
33761
|
-
filter: "SMGeographicMaster.activestatus==true && upper(document(SMGeographicMaster.geogLevelType).display)=='PINCODE' && upper(document(SMGeographicMaster.parentGeogLevelCode).geogLevelCode)=='".concat(id, "'"),
|
|
33792
|
+
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), "'"),
|
|
33762
33793
|
sort: "SMGeographicMaster.createddate desc",
|
|
33763
33794
|
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}"
|
|
33764
33795
|
};
|
|
@@ -33808,9 +33839,9 @@ var queries$3 = {
|
|
|
33808
33839
|
};
|
|
33809
33840
|
},
|
|
33810
33841
|
//geo code exits checking
|
|
33811
|
-
geoCodeExits: function geoCodeExits(
|
|
33812
|
-
var levelType =
|
|
33813
|
-
geoLevelCode =
|
|
33842
|
+
geoCodeExits: function geoCodeExits(_ref5) {
|
|
33843
|
+
var levelType = _ref5.levelType,
|
|
33844
|
+
geoLevelCode = _ref5.geoLevelCode;
|
|
33814
33845
|
return "{\n\t\t\t\"db_name\": \"primarycare\",\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 }");
|
|
33815
33846
|
}
|
|
33816
33847
|
};
|
|
@@ -35576,7 +35607,8 @@ var queries$1 = {
|
|
|
35576
35607
|
db_name: dbName,
|
|
35577
35608
|
entity: "SymptomsMapping",
|
|
35578
35609
|
filter: "SymptomsMapping.activestatus==true",
|
|
35579
|
-
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})"
|
|
35610
|
+
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})",
|
|
35611
|
+
sort: "SymptomsMapping.createddate"
|
|
35580
35612
|
};
|
|
35581
35613
|
},
|
|
35582
35614
|
symptom_and_specialty_single_read: function symptom_and_specialty_single_read(_key) {
|