primary_care_admin_binder 0.1.43 → 0.1.47
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 +500 -549
- 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_DATABASE_NAME;
|
|
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");
|
|
@@ -7982,29 +7982,8 @@ var fetchData = /*#__PURE__*/function () {
|
|
|
7982
7982
|
};
|
|
7983
7983
|
}();
|
|
7984
7984
|
|
|
7985
|
-
var getAge = function getAge(date) {
|
|
7986
|
-
if (date) {
|
|
7987
|
-
var yearDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'years', false);
|
|
7988
|
-
|
|
7989
|
-
if (yearDiff > 0) {
|
|
7990
|
-
return yearDiff + ' Y';
|
|
7991
|
-
}
|
|
7992
|
-
|
|
7993
|
-
var monthDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'months', false);
|
|
7994
|
-
|
|
7995
|
-
if (monthDiff > 0) {
|
|
7996
|
-
return monthDiff + ' M';
|
|
7997
|
-
}
|
|
7998
|
-
|
|
7999
|
-
var dayDiff = moment().diff(moment(date, 'DD/MM/YYYY'), 'days', false);
|
|
8000
|
-
return dayDiff + ' D';
|
|
8001
|
-
}
|
|
8002
|
-
|
|
8003
|
-
return "";
|
|
8004
|
-
};
|
|
8005
|
-
|
|
8006
7985
|
var makeName = function makeName() {
|
|
8007
|
-
var _prefix
|
|
7986
|
+
var _prefix$coding, _prefix$coding$, _suffix$coding, _suffix$coding$;
|
|
8008
7987
|
|
|
8009
7988
|
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8010
7989
|
var _nameObj$prefix = nameObj.prefix,
|
|
@@ -8014,12 +7993,10 @@ var makeName = function makeName() {
|
|
|
8014
7993
|
_nameObj$text = nameObj.text,
|
|
8015
7994
|
text = _nameObj$text === void 0 ? "" : _nameObj$text,
|
|
8016
7995
|
_nameObj$suffix = nameObj.suffix,
|
|
8017
|
-
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$ = suffix[0]) === null || _suffix$ === void 0 ? void 0 : (_suffix$$coding = _suffix$.coding) === null || _suffix$$coding === void 0 ? void 0 : (_suffix$$coding$ = _suffix$$coding[0]) === null || _suffix$$coding$ === void 0 ? void 0 : _suffix$$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || (suffix === null || suffix === void 0 ? void 0 : (_suffix$2 = suffix[0]) === null || _suffix$2 === void 0 ? void 0 : _suffix$2.display) || (suffix === null || suffix === void 0 ? void 0 : suffix.display) || "";
|
|
8022
|
-
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
7996
|
+
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix;
|
|
7997
|
+
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || "";
|
|
7998
|
+
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || "";
|
|
7999
|
+
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(suffixVal && suffixVal);
|
|
8023
8000
|
}; // const getUtcTime = (date) => {
|
|
8024
8001
|
// let a = null
|
|
8025
8002
|
// if (date) {
|
|
@@ -8070,7 +8047,7 @@ var utcTOLocal = function utcTOLocal(date, format) {
|
|
|
8070
8047
|
var queries$n = {
|
|
8071
8048
|
rolelist: function rolelist(type) {
|
|
8072
8049
|
return {
|
|
8073
|
-
db_name: dbName
|
|
8050
|
+
db_name: dbName,
|
|
8074
8051
|
entity: "CodeableConceptMaster",
|
|
8075
8052
|
filter: "CodeableConceptMaster.Type=='".concat(type, "'"),
|
|
8076
8053
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
@@ -8102,7 +8079,7 @@ var queries$n = {
|
|
|
8102
8079
|
}
|
|
8103
8080
|
|
|
8104
8081
|
return [_objectSpread2(_objectSpread2({
|
|
8105
|
-
db_name: dbName
|
|
8082
|
+
db_name: dbName,
|
|
8106
8083
|
entity: "CodeableConceptMaster",
|
|
8107
8084
|
is_metadata: true,
|
|
8108
8085
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -8128,16 +8105,16 @@ var queries$n = {
|
|
|
8128
8105
|
},
|
|
8129
8106
|
practitioner_by_id: function practitioner_by_id(id) {
|
|
8130
8107
|
return {
|
|
8131
|
-
db_name: dbName
|
|
8108
|
+
db_name: dbName,
|
|
8132
8109
|
entity: "Practitioner",
|
|
8133
8110
|
filter: "Practitioner._key=='".concat(id, "' && Practitioner.activestatus==true"),
|
|
8134
8111
|
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 document(a)),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))}))})"
|
|
8135
8112
|
};
|
|
8136
8113
|
},
|
|
8137
|
-
practitioner_list: "{\n \"db_name\": \"".concat(dbName
|
|
8114
|
+
practitioner_list: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner\",\n \"sort\":\"Practitioner.createddate\",\n \"filter\": \"Practitioner.activestatus==true\",\n \"return_fields\": \"{id:Practitioner.id,name:(FOR nam IN TO_ARRAY(Practitioner.name) RETURN DOCUMENT(nam).text)[0],type: (for t in CodeableConceptMaster filter t._id == Practitioner.practitioner_type return merge(t,{coding:(for cod in CodingMaster filter cod._id in t.coding return cod.display)})),_key:Practitioner._key,status:Practitioner.status,Practitionerrole:(for pr in PractitionerRole filter pr._id in Practitioner.practitioner_role && pr.primary_specialty==true return merge(pr,{SpecialtyID:(for spe in CodeableConceptMaster filter spe._id ==pr.SpecialtyID return merge(spe,{coding:(for cod in CodingMaster filter cod._id in spe.coding return cod.display)}))}))}\"\n }"),
|
|
8138
8115
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
8139
8116
|
return [{
|
|
8140
|
-
db_name: dbName
|
|
8117
|
+
db_name: dbName,
|
|
8141
8118
|
entity: "Practitioner",
|
|
8142
8119
|
filter: {
|
|
8143
8120
|
_key: data._key
|
|
@@ -8151,7 +8128,7 @@ var queries$n = {
|
|
|
8151
8128
|
},
|
|
8152
8129
|
get_entity_by_id: function get_entity_by_id(id) {
|
|
8153
8130
|
return {
|
|
8154
|
-
"db_name": dbName
|
|
8131
|
+
"db_name": dbName,
|
|
8155
8132
|
"entity": "Organization",
|
|
8156
8133
|
"sort": "Organization.name",
|
|
8157
8134
|
"filter": "Organization.activestatus==true && Organization.OrgType any =='".concat(id, "'"),
|
|
@@ -8498,7 +8475,7 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
|
|
|
8498
8475
|
}
|
|
8499
8476
|
|
|
8500
8477
|
var json = [_objectSpread2(_objectSpread2({
|
|
8501
|
-
"db_name": dbName
|
|
8478
|
+
"db_name": dbName,
|
|
8502
8479
|
"entity": "Practitioner",
|
|
8503
8480
|
"is_metadata": true,
|
|
8504
8481
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -8909,44 +8886,44 @@ var practitionerActions$1 = {
|
|
|
8909
8886
|
var practitionerSlice$1 = practitionerSlice.reducer;
|
|
8910
8887
|
|
|
8911
8888
|
var masterQuery$7 = {
|
|
8912
|
-
"id_type": "{\n \"db_name\": \"".concat(dbName
|
|
8913
|
-
"id_number": "{\n \"db_name\": \"".concat(dbName
|
|
8914
|
-
"prefix": "{\n \"db_name\": \"".concat(dbName
|
|
8915
|
-
"suffix": "{\n \"db_name\": \"".concat(dbName
|
|
8916
|
-
"gender": "{\n \"db_name\": \"".concat(dbName
|
|
8917
|
-
"use": "{\n \"db_name\": \"".concat(dbName
|
|
8918
|
-
"practitioner_type": "{\n \"db_name\": \"".concat(dbName
|
|
8919
|
-
"Communication_languages": "{\n \"db_name\": \"".concat(dbName
|
|
8920
|
-
"speciality": "{\n \"db_name\": \"".concat(dbName
|
|
8889
|
+
"id_type": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ALTERNATEIDTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8890
|
+
"id_number": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='RELATIONSHIP'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8891
|
+
"prefix": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='NAMEPREFIX'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8892
|
+
"suffix": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='NAMESUFFIX'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8893
|
+
"gender": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' AND DOCUMENT(CodeableConceptMaster.coding)[*].code ANY != 'ANY' AND DOCUMENT(CodeableConceptMaster.coding)[*].status ANY ==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\"\n }"),
|
|
8894
|
+
"use": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='USE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8895
|
+
"practitioner_type": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8896
|
+
"Communication_languages": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='LANGUAGE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8897
|
+
"speciality": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECIALTY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8921
8898
|
// "entity": `{
|
|
8922
8899
|
// "db_name": "${dbName}",
|
|
8923
8900
|
// "entity": "Organization",
|
|
8924
8901
|
// "filter": "Organization.OrgType!=[]",
|
|
8925
8902
|
// "return_fields": "DISTINCT Organization.OrgType[0]"
|
|
8926
8903
|
// }`,
|
|
8927
|
-
"entity": "{\n \"db_name\": \"".concat(dbName
|
|
8904
|
+
"entity": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }"),
|
|
8928
8905
|
// "entity_name": `{
|
|
8929
8906
|
// "db_name": "${dbName}",
|
|
8930
8907
|
// "entity": "Organization",
|
|
8931
8908
|
// "filter": "'Hospital' IN Organization.OrgType",
|
|
8932
8909
|
// "return_fields": "{OrgID:Organization.id,name:Organization.name}"
|
|
8933
8910
|
// }`,
|
|
8934
|
-
"entity_name": "{\n \"db_name\": \"".concat(dbName
|
|
8935
|
-
"Address_use": "{\n \"db_name\": \"".concat(dbName
|
|
8936
|
-
"contact_mode": "{\n \"db_name\": \"".concat(dbName
|
|
8937
|
-
"priority": "{\n \"db_name\": \"".concat(dbName
|
|
8938
|
-
"address_type": "{\n \"db_name\": \"".concat(dbName
|
|
8939
|
-
"role": "{\n \"db_name\": \"".concat(dbName
|
|
8940
|
-
"location": "{\n \"db_name\": \"".concat(dbName
|
|
8941
|
-
"city": "{\n \"db_name\": \"".concat(dbName
|
|
8942
|
-
"district": "{\n \"db_name\": \"".concat(dbName
|
|
8943
|
-
"state": "{\n \"db_name\": \"".concat(dbName
|
|
8944
|
-
"country": "{\n \"db_name\": \"".concat(dbName
|
|
8945
|
-
"position": "{\n \"db_name\": \"".concat(dbName
|
|
8946
|
-
"employee_type": "{\n \"db_name\": \"".concat(dbName
|
|
8947
|
-
"marital_status": "{\n \"db_name\": \"".concat(dbName
|
|
8948
|
-
"nationality": "{\n \"db_name\": \"".concat(dbName
|
|
8949
|
-
"country_code": "{\n \"db_name\": \"".concat(dbName
|
|
8911
|
+
"entity_name": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"Organization.activestatus==true\",\n \"return_fields\": \"{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}\"\n }"),
|
|
8912
|
+
"Address_use": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='USE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8913
|
+
"contact_mode": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='CONTACTSYSTEM'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8914
|
+
"priority": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRIORITY'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8915
|
+
"address_type": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ADDRESSTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8916
|
+
"role": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTROLE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8917
|
+
"location": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"LocationMaster\",\n \"sort\":\"LocationMaster.shortdesc\",\n \"filter\": \"LocationMaster.activestatus==true\",\n \"return_fields\": \"LocationMaster\"\n }"),
|
|
8918
|
+
"city": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='CITY' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
|
|
8919
|
+
"district": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='DISTRICT' && SMGeographicMaster.geogLevelCode=='BLR' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
|
|
8920
|
+
"state": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='STATE' && SMGeographicMaster.geogLevelCode=='KAR' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
|
|
8921
|
+
"country": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\":\"SMGeographicMaster.geogLevelName\",\n \"filter\": \"SMGeographicMaster.geogLevelType=='COUNTRY' && SMGeographicMaster.geogLevelCode=='IND' && SMGeographicMaster.activestatus == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
|
|
8922
|
+
"position": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='POSITION' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8923
|
+
"employee_type": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='EMPSTATUS' && CodeableConceptMaster.status==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8924
|
+
"marital_status": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\":\"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='MARITALSTATUS' && CodeableConceptMaster.activestatus==true && CodeableConceptMaster.status == true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
8925
|
+
"nationality": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\": \"SMGeographicMaster.geogLevelName\",\n \"filter\": \"lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active== true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode}\"\n }"),
|
|
8926
|
+
"country_code": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"SMGeographicMaster\",\n \"sort\": \"SMGeographicMaster.GeoLocationISDCode\",\n \"filter\": \"lower(document(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true\",\n \"return_fields\": \"{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}\"\n }")
|
|
8950
8927
|
};
|
|
8951
8928
|
|
|
8952
8929
|
var getOptionWithMaster = function getOptionWithMaster(data) {
|
|
@@ -9532,13 +9509,13 @@ var practitionerMasterActions = {
|
|
|
9532
9509
|
var practitionerMasterSlice$1 = practitionerMasterSlice.reducer;
|
|
9533
9510
|
|
|
9534
9511
|
var query$c = {
|
|
9535
|
-
unitUom: "{\n \"db_name\": \"".concat(dbName
|
|
9512
|
+
unitUom: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='VITALSUOM'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
9536
9513
|
// getAgeRange: `{
|
|
9537
9514
|
// "db_name": "${dbName}",
|
|
9538
9515
|
// "entity": "AgeRanges",
|
|
9539
9516
|
// "return_fields": "MERGE(AgeRanges, {AgeCategory: (FOR cat IN TO_ARRAY(AgeRanges.AgeCategory) RETURN MERGE(DOCUMENT(cat), {UOM:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(cat).UOM).coding) RETURN MERGE(DOCUMENT(DOCUMENT(cat).UOM),{coding:DOCUMENT(cod)} ) ) } ) ) } )"
|
|
9540
9517
|
// }`,
|
|
9541
|
-
getAgeRange: "{\n \"db_name\": \"".concat(dbName
|
|
9518
|
+
getAgeRange: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeRanges\",\n \"return_fields\": \"MERGE(AgeRanges, {AgeCategory: (FOR cat IN TO_ARRAY(AgeRanges.AgeCategory) RETURN MERGE(DOCUMENT(cat), {UOM:(FOR cod IN TO_ARRAY(DOCUMENT(DOCUMENT(cat).UOM).coding) RETURN MERGE(DOCUMENT(DOCUMENT(cat).UOM),{coding:DOCUMENT(cod)} ) ) } ) ) } )\",\n \"sort\":\"AgeRanges.createddate\"\n }")
|
|
9542
9519
|
};
|
|
9543
9520
|
|
|
9544
9521
|
var generateJson$c = function generateJson(data) {
|
|
@@ -9553,7 +9530,7 @@ var generateJson$c = function generateJson(data) {
|
|
|
9553
9530
|
}
|
|
9554
9531
|
|
|
9555
9532
|
return [_objectSpread2(_objectSpread2({
|
|
9556
|
-
"db_name": dbName
|
|
9533
|
+
"db_name": dbName
|
|
9557
9534
|
}, filter), {}, {
|
|
9558
9535
|
"entity": "AgeRanges",
|
|
9559
9536
|
"is_metadata": true,
|
|
@@ -9651,7 +9628,7 @@ var UPDATE_AGE_RANGE = createAsyncThunk("ageRangeMasterApiSlice/update_age_range
|
|
|
9651
9628
|
_context2.prev = 2;
|
|
9652
9629
|
editId = payload.editId, status = payload.status;
|
|
9653
9630
|
queriesjson = [{
|
|
9654
|
-
"db_name": dbName
|
|
9631
|
+
"db_name": dbName,
|
|
9655
9632
|
"entity": "AgeRanges",
|
|
9656
9633
|
"filter": "AgeRanges._id==\"".concat(editId, "\""),
|
|
9657
9634
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -9811,7 +9788,7 @@ var ageRangeMasterActions = {
|
|
|
9811
9788
|
var ageRangeMasterSlice$1 = ageRangeMasterSlice.reducer;
|
|
9812
9789
|
|
|
9813
9790
|
var query$b = {
|
|
9814
|
-
getList: "{\n \"db_name\": \"".concat(dbName
|
|
9791
|
+
getList: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\": \"VitalsMeasureCodes.createddate\",\n \"filter\": {\n \"VitalsMeasureCodes\":\"VitalsMeasureCodes.activestatus==true\"\n },\n \"return_fields\": \"VitalsMeasureCodes\"\n }")
|
|
9815
9792
|
};
|
|
9816
9793
|
|
|
9817
9794
|
var generateJson$b = function generateJson(data) {
|
|
@@ -9826,7 +9803,7 @@ var generateJson$b = function generateJson(data) {
|
|
|
9826
9803
|
}
|
|
9827
9804
|
|
|
9828
9805
|
return [_objectSpread2(_objectSpread2({
|
|
9829
|
-
"db_name": dbName
|
|
9806
|
+
"db_name": dbName
|
|
9830
9807
|
}, filter), {}, {
|
|
9831
9808
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
9832
9809
|
"entity": "VitalsMeasureCodes",
|
|
@@ -9945,7 +9922,7 @@ var UPDATE_MEASURE_CODE_STATUS = createAsyncThunk("ageRangeMasterApiSlice/update
|
|
|
9945
9922
|
_context3.prev = 2;
|
|
9946
9923
|
editId = payload.editId, status = payload.status;
|
|
9947
9924
|
queriesjson = [{
|
|
9948
|
-
"db_name": dbName
|
|
9925
|
+
"db_name": dbName,
|
|
9949
9926
|
"entity": "VitalsMeasureCodes",
|
|
9950
9927
|
"filter": "VitalsMeasureCodes._id==\"".concat(editId, "\""),
|
|
9951
9928
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -10016,15 +9993,15 @@ var vitalsMeasureCodeSlice$1 = vitalsMeasureCodeSlice.reducer;
|
|
|
10016
9993
|
var query$a = {
|
|
10017
9994
|
entityName: function entityName(data) {
|
|
10018
9995
|
return {
|
|
10019
|
-
db_name: dbName
|
|
9996
|
+
db_name: dbName,
|
|
10020
9997
|
entity: "Organization",
|
|
10021
9998
|
sort: "Organization.name",
|
|
10022
9999
|
filter: "Organization.OrgType==['".concat(data, "'] && Organization.activestatus==true"),
|
|
10023
10000
|
return_fields: "Organization"
|
|
10024
10001
|
};
|
|
10025
10002
|
},
|
|
10026
|
-
entityType: "{ \n \"db_name\": \"".concat(dbName
|
|
10027
|
-
gender: "{\n \"db_name\": \"".concat(dbName
|
|
10003
|
+
entityType: "{ \n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
10004
|
+
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
10028
10005
|
specialityCodeOrgId: function specialityCodeOrgId(data) {
|
|
10029
10006
|
return {
|
|
10030
10007
|
// db_name: dbName,
|
|
@@ -10037,19 +10014,19 @@ var query$a = {
|
|
|
10037
10014
|
// sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
10038
10015
|
// return_fields:
|
|
10039
10016
|
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
10040
|
-
db_name: dbName
|
|
10017
|
+
db_name: dbName,
|
|
10041
10018
|
entity: "Organization",
|
|
10042
10019
|
filter: "Organization.id==".concat(data.id, " && Organization.activestatus==true"),
|
|
10043
10020
|
return_fields: " DOCUMENT(Organization.specialtyDetails[0].specialty)"
|
|
10044
10021
|
};
|
|
10045
10022
|
},
|
|
10046
|
-
specialityCode: "{\n \"db_name\": \"".concat(dbName
|
|
10047
|
-
diagnosis: "{\n \"db_name\": \"".concat(dbName
|
|
10048
|
-
ageRanges: "{\n \"db_name\": \"".concat(dbName
|
|
10049
|
-
vitalcode: "{\n \"db_name\": \"".concat(dbName
|
|
10023
|
+
specialityCode: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"HealthcareService,CodeableConceptMaster\",\n \"filter\":{\"CodeableConceptMaster\":\"CodeableConceptMaster.id IN HealthcareService.SpecialtyID AND CodeableConceptMaster.Type=='SPECIALTY'\"},\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
10024
|
+
diagnosis: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Diagnosis\",\n \"filter\": \"Diagnosis.activestatus==true\",\n \"return_fields\": \"{'_id':Diagnosis._id,'icdcode':Diagnosis.icdcode,'icdname':Diagnosis.icdname,'parenticdcode':Diagnosis.parenticdcode}\"\n }"),
|
|
10025
|
+
ageRanges: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeRanges\",\n \"filter\": {\n \"AgeRanges\":\"AgeRanges.activestatus==true \"\n },\n \"sort\":\"AgeRanges.agerangecode\",\n \"return_fields\": \"{'AgeRangesDtl':AgeRanges,'AgeCategoryDtl':DOCUMENT(AgeRanges.AgeCategory)}\"\n }"),
|
|
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 }"),
|
|
10050
10027
|
ageCategory: function ageCategory(ageRangeId) {
|
|
10051
10028
|
return {
|
|
10052
|
-
db_name: dbName
|
|
10029
|
+
db_name: dbName,
|
|
10053
10030
|
entity: "AgeRanges",
|
|
10054
10031
|
sort: "AgeRanges.agerangecode",
|
|
10055
10032
|
filter: {
|
|
@@ -10058,10 +10035,10 @@ var query$a = {
|
|
|
10058
10035
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
10059
10036
|
};
|
|
10060
10037
|
},
|
|
10061
|
-
VitalApplicableRead: "{\n \"db_name\": \"".concat(dbName
|
|
10038
|
+
VitalApplicableRead: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsApplbyPatAtrrib\",\n \"sort\":\"VitalsApplbyPatAtrrib.createddate\",\n \"filter\": \"VitalsApplbyPatAtrrib.activestatus==true\",\n \"return_fields\": \"merge(VitalsApplbyPatAtrrib,{organization_id:(document(VitalsApplbyPatAtrrib.organization_id)),gender:(FOR cod IN CodeableConceptMaster filter cod._id==VitalsApplbyPatAtrrib.gender RETURN MERGE(cod,{coding:(FOR d IN TO_ARRAY(cod.coding) RETURN DOCUMENT(d).display)})),spltycode:(FOR cod IN CodeableConceptMaster filter cod._id==VitalsApplbyPatAtrrib.spltycode RETURN MERGE(cod,{coding:(FOR d IN TO_ARRAY(cod.coding) RETURN DOCUMENT(d))})),diagcode:(document(VitalsApplbyPatAtrrib.diagcode)),agecategorycode:(document(VitalsApplbyPatAtrrib.agecategorycode)),agerangecode:(document(VitalsApplbyPatAtrrib.agerangecode)),orgEntityType:(document(VitalsApplbyPatAtrrib.orgEntityType))})\"\n}"),
|
|
10062
10039
|
editVitalApplicable: function editVitalApplicable(id) {
|
|
10063
10040
|
return {
|
|
10064
|
-
db_name: dbName
|
|
10041
|
+
db_name: dbName,
|
|
10065
10042
|
entity: "VitalsApplbyPatAtrrib",
|
|
10066
10043
|
filter: "VitalsApplbyPatAtrrib.activestatus==true && VitalsApplbyPatAtrrib._key=='".concat(id.split("/")[1], "'"),
|
|
10067
10044
|
return_fields: "merge(VitalsApplbyPatAtrrib,{organization_id:(document(VitalsApplbyPatAtrrib.organization_id)),gender:(FOR cod IN CodeableConceptMaster filter cod._id==VitalsApplbyPatAtrrib.gender RETURN MERGE(cod,{coding:(FOR d IN TO_ARRAY(cod.coding) RETURN DOCUMENT(d).display)})),spltycode:(FOR cod IN CodeableConceptMaster filter cod._id==VitalsApplbyPatAtrrib.spltycode RETURN MERGE(cod,{coding:(FOR d IN TO_ARRAY(cod.coding) RETURN DOCUMENT(d))})),diagcode:(document(VitalsApplbyPatAtrrib.diagcode)),agecategorycode:(document(VitalsApplbyPatAtrrib.agecategorycode)),agerangecode:(document(VitalsApplbyPatAtrrib.agerangecode)),orgEntityType:(document(VitalsApplbyPatAtrrib.orgEntityType))})"
|
|
@@ -10069,7 +10046,7 @@ var query$a = {
|
|
|
10069
10046
|
},
|
|
10070
10047
|
Diagnosis: function Diagnosis(input_text) {
|
|
10071
10048
|
return {
|
|
10072
|
-
db_name: dbName
|
|
10049
|
+
db_name: dbName,
|
|
10073
10050
|
entity: "Diagnosis",
|
|
10074
10051
|
filter: "Diagnosis.activestatus==true && Diagnosis.icdname LIKE '%".concat(input_text, "%'"),
|
|
10075
10052
|
return_fields: "{'_id':Diagnosis._id,'icdcode':Diagnosis.icdcode,'icdname':Diagnosis.icdname,'parenticdcode':Diagnosis.parenticdcode}"
|
|
@@ -10097,7 +10074,7 @@ var generateSaveJSON$1 = function generateSaveJSON(data) {
|
|
|
10097
10074
|
}
|
|
10098
10075
|
|
|
10099
10076
|
return [_objectSpread2(_objectSpread2({
|
|
10100
|
-
db_name: dbName
|
|
10077
|
+
db_name: dbName,
|
|
10101
10078
|
entity: "VitalsApplbyPatAtrrib"
|
|
10102
10079
|
}, filter), {}, {
|
|
10103
10080
|
is_metadata: true,
|
|
@@ -10163,7 +10140,7 @@ var GetDiagnosis = function GetDiagnosis(diag, state) {
|
|
|
10163
10140
|
|
|
10164
10141
|
var generateApplicableUpdateJSON = function generateApplicableUpdateJSON(editID, Status) {
|
|
10165
10142
|
return [{
|
|
10166
|
-
db_name: dbName
|
|
10143
|
+
db_name: dbName,
|
|
10167
10144
|
entity: "VitalsApplbyPatAtrrib",
|
|
10168
10145
|
filter: {
|
|
10169
10146
|
_id: editID
|
|
@@ -11015,13 +10992,13 @@ var vitalsApplicableActions = {
|
|
|
11015
10992
|
var vitalsApplicableSlice$1 = vitalsApplicableSlice.reducer;
|
|
11016
10993
|
|
|
11017
10994
|
var query$9 = {
|
|
11018
|
-
gender: "{\n \"db_name\": \"".concat(dbName
|
|
11019
|
-
unitAllowed: "{\n \"db_name\": \"".concat(dbName
|
|
11020
|
-
referenceUnitAllowed: "{\n \"db_name\": \"".concat(dbName
|
|
11021
|
-
ageRanges: "{\n \"db_name\": \"".concat(dbName
|
|
10995
|
+
gender: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='GENDER'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
10996
|
+
unitAllowed: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\":\"VitalsMeasureCodes.ObsValMeasCode\",\n \"filter\": \"VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes.status==true\",\n \"return_fields\": \"VitalsMeasureCodes\"\n }"),
|
|
10997
|
+
referenceUnitAllowed: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='VITALSUOM'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
10998
|
+
ageRanges: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeRanges\",\n \"filter\": {\n \"AgeRanges\":\"AgeRanges.activestatus==true \"\n },\n \"return_fields\": \"{'AgeRangesDtl':AgeRanges,'AgeCategoryDtl':DOCUMENT(AgeRanges.AgeCategory)}\"\n }"),
|
|
11022
10999
|
ageCategory: function ageCategory(ageRangeId) {
|
|
11023
11000
|
return {
|
|
11024
|
-
db_name: dbName
|
|
11001
|
+
db_name: dbName,
|
|
11025
11002
|
entity: "AgeRanges",
|
|
11026
11003
|
filter: {
|
|
11027
11004
|
AgeRanges: "AgeRanges.activestatus==true && AgeRanges._id=='".concat(ageRangeId, "' ")
|
|
@@ -11029,26 +11006,26 @@ var query$9 = {
|
|
|
11029
11006
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
11030
11007
|
};
|
|
11031
11008
|
},
|
|
11032
|
-
category: "{\n \"db_name\": \"".concat(dbName
|
|
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}"),
|
|
11033
11010
|
defaultUnit: function defaultUnit(AllowedUnit) {
|
|
11034
11011
|
return {
|
|
11035
|
-
db_name: dbName
|
|
11012
|
+
db_name: dbName,
|
|
11036
11013
|
entity: "VitalsMeasureCodes",
|
|
11037
11014
|
filter: "VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes._id IN ['".concat(AllowedUnit.join("','"), "']"),
|
|
11038
11015
|
return_fields: "VitalsMeasureCodes"
|
|
11039
11016
|
};
|
|
11040
11017
|
},
|
|
11041
|
-
VitalRead: "{\n \"db_name\": \"".concat(dbName
|
|
11018
|
+
VitalRead: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"VitalsCodes\",\n \"sort\":\"VitalsCodes.createddate\",\n \"filter\": \"VitalsCodes.activestatus==true\",\n \"return_fields\": \"MERGE(VitalsCodes,{VitalsCodesReferenceRanges:(FOR cod IN VitalsCodes.VitalsCodesReferenceRanges RETURN DOCUMENT(cod))})\"\n }"),
|
|
11042
11019
|
deleteVitalMaster: function deleteVitalMaster(id) {
|
|
11043
11020
|
return {
|
|
11044
|
-
db_name: dbName
|
|
11021
|
+
db_name: dbName,
|
|
11045
11022
|
entity: "VitalsCodes",
|
|
11046
11023
|
filter: "VitalsCodes._id=='".concat(id, "'")
|
|
11047
11024
|
};
|
|
11048
11025
|
},
|
|
11049
11026
|
editVitalmaster: function editVitalmaster(id) {
|
|
11050
11027
|
return {
|
|
11051
|
-
db_name: dbName
|
|
11028
|
+
db_name: dbName,
|
|
11052
11029
|
entity: "VitalsCodes",
|
|
11053
11030
|
filter: "VitalsCodes.activestatus==true && VitalsCodes._id=='".concat(id, "'"),
|
|
11054
11031
|
return_fields: "MERGE(VitalsCodes,{VitalsCodesReferenceRanges:(FOR cod IN VitalsCodes.VitalsCodesReferenceRanges RETURN DOCUMENT(cod))})"
|
|
@@ -11062,7 +11039,6 @@ var categoryJson = function categoryJson(data, state, agecategory) {
|
|
|
11062
11039
|
category: agecategory.find(function (sys) {
|
|
11063
11040
|
return v._id.indexOf(sys._id) > -1;
|
|
11064
11041
|
}),
|
|
11065
|
-
description: v.description,
|
|
11066
11042
|
ageMin: v.age_minimum,
|
|
11067
11043
|
ageMax: v.age_maximum,
|
|
11068
11044
|
unit: state.reference_unit_allowed.data.find(function (sys) {
|
|
@@ -11092,7 +11068,7 @@ var generateJSON$1 = function generateJSON(data) {
|
|
|
11092
11068
|
}
|
|
11093
11069
|
|
|
11094
11070
|
return [_objectSpread2(_objectSpread2({
|
|
11095
|
-
db_name: dbName
|
|
11071
|
+
db_name: dbName,
|
|
11096
11072
|
entity: "VitalsCodes"
|
|
11097
11073
|
}, filter), {}, {
|
|
11098
11074
|
is_metadata: true,
|
|
@@ -11158,7 +11134,7 @@ var generateResJson$1 = function generateResJson(data) {
|
|
|
11158
11134
|
|
|
11159
11135
|
var generateUpdateJSON$1 = function generateUpdateJSON(editID, Status) {
|
|
11160
11136
|
return [{
|
|
11161
|
-
db_name: dbName
|
|
11137
|
+
db_name: dbName,
|
|
11162
11138
|
entity: "VitalsCodes",
|
|
11163
11139
|
filter: {
|
|
11164
11140
|
_id: editID
|
|
@@ -11869,7 +11845,7 @@ var queries$m = {
|
|
|
11869
11845
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
11870
11846
|
// };
|
|
11871
11847
|
return {
|
|
11872
|
-
db_name: dbName
|
|
11848
|
+
db_name: dbName,
|
|
11873
11849
|
entity: "LocationMaster",
|
|
11874
11850
|
return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
11875
11851
|
};
|
|
@@ -11889,7 +11865,7 @@ var queries$m = {
|
|
|
11889
11865
|
}
|
|
11890
11866
|
|
|
11891
11867
|
return [_objectSpread2(_objectSpread2({
|
|
11892
|
-
db_name: dbName
|
|
11868
|
+
db_name: dbName,
|
|
11893
11869
|
entity: "LocationMaster",
|
|
11894
11870
|
is_metadata: true,
|
|
11895
11871
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -11916,7 +11892,7 @@ var queries$m = {
|
|
|
11916
11892
|
// "return_fields": "{vertices:v,orginatedata:LocationMaster}"
|
|
11917
11893
|
// }
|
|
11918
11894
|
return {
|
|
11919
|
-
db_name: dbName
|
|
11895
|
+
db_name: dbName,
|
|
11920
11896
|
entity: "LocationMaster",
|
|
11921
11897
|
filter: "LocationMaster._key == '".concat(id, "'"),
|
|
11922
11898
|
return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
|
|
@@ -11932,7 +11908,7 @@ var queries$m = {
|
|
|
11932
11908
|
}
|
|
11933
11909
|
|
|
11934
11910
|
return [_objectSpread2({
|
|
11935
|
-
db_name: dbName
|
|
11911
|
+
db_name: dbName,
|
|
11936
11912
|
entity: "LocationMaster",
|
|
11937
11913
|
is_metadata: true,
|
|
11938
11914
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -12064,19 +12040,21 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12064
12040
|
|
|
12065
12041
|
if (data.working_days_yes_no === "Yes") {
|
|
12066
12042
|
workingDayArr = [{
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
daysOfWeek: []
|
|
12043
|
+
effFrmDate: 0,
|
|
12044
|
+
effToDate: 0,
|
|
12045
|
+
workDaysOfWeek: []
|
|
12071
12046
|
}];
|
|
12072
12047
|
} else if (data.working_days_yes_no === "No") {
|
|
12073
12048
|
data.workingday_daySlots.map(function (val, i) {
|
|
12074
12049
|
var day_obj = {
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12050
|
+
effFrmDate: 0,
|
|
12051
|
+
effToDate: 0,
|
|
12052
|
+
workDaysOfWeek: workday_timeslot(val.timeSlots) // allday: false,
|
|
12053
|
+
// //year: data.workingday_year,
|
|
12054
|
+
// year: parseInt(data.workingday_year),
|
|
12055
|
+
// day: val.day,
|
|
12056
|
+
// daysOfWeek: workday_timeslot(val.timeSlots),
|
|
12057
|
+
|
|
12080
12058
|
};
|
|
12081
12059
|
workingDayArr.push(day_obj);
|
|
12082
12060
|
});
|
|
@@ -12108,7 +12086,7 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12108
12086
|
}
|
|
12109
12087
|
});
|
|
12110
12088
|
var json = [_objectSpread2(_objectSpread2({
|
|
12111
|
-
db_name: dbName
|
|
12089
|
+
db_name: dbName,
|
|
12112
12090
|
entity: "LocationMaster",
|
|
12113
12091
|
is_metadata: true,
|
|
12114
12092
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -12174,11 +12152,7 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12174
12152
|
objectid: data.photo[0].objectid
|
|
12175
12153
|
}],
|
|
12176
12154
|
pharmacy: [{
|
|
12177
|
-
|
|
12178
|
-
returnAllowed: data.returnAllowed,
|
|
12179
|
-
maxdaysforRtn: parseInt(data.maxDaysForReturn),
|
|
12180
|
-
exRxAllowed: data.externalRxAllowed,
|
|
12181
|
-
otcAllowed: data.otcAllowed
|
|
12155
|
+
maxdaysforRtn: parseInt(data.maxDaysForReturn)
|
|
12182
12156
|
}]
|
|
12183
12157
|
}
|
|
12184
12158
|
})];
|
|
@@ -12382,7 +12356,7 @@ var locationSlice$1 = locationSlice.reducer;
|
|
|
12382
12356
|
var masterQuery$6 = {
|
|
12383
12357
|
locationMasterEntityType: function locationMasterEntityType() {
|
|
12384
12358
|
return {
|
|
12385
|
-
db_name: dbName
|
|
12359
|
+
db_name: dbName,
|
|
12386
12360
|
entity: "CodeableConceptMaster",
|
|
12387
12361
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12388
12362
|
filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12399,7 +12373,7 @@ var masterQuery$6 = {
|
|
|
12399
12373
|
// "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}",
|
|
12400
12374
|
// }
|
|
12401
12375
|
return {
|
|
12402
|
-
"db_name": dbName
|
|
12376
|
+
"db_name": dbName,
|
|
12403
12377
|
"entity": "Organization",
|
|
12404
12378
|
"sort": "Organization.name",
|
|
12405
12379
|
"filter": "Organization.OrgType==['".concat(type, "'] && Organization.activestatus==true"),
|
|
@@ -12408,7 +12382,7 @@ var masterQuery$6 = {
|
|
|
12408
12382
|
},
|
|
12409
12383
|
locationMasterLocationType: function locationMasterLocationType() {
|
|
12410
12384
|
return {
|
|
12411
|
-
db_name: dbName
|
|
12385
|
+
db_name: dbName,
|
|
12412
12386
|
entity: "CodeableConceptMaster",
|
|
12413
12387
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12414
12388
|
filter: "CodeableConceptMaster.Type=='LOCATIONTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12417,7 +12391,7 @@ var masterQuery$6 = {
|
|
|
12417
12391
|
},
|
|
12418
12392
|
locationMasterOperationalStatus: function locationMasterOperationalStatus() {
|
|
12419
12393
|
return {
|
|
12420
|
-
db_name: dbName
|
|
12394
|
+
db_name: dbName,
|
|
12421
12395
|
entity: "CodeableConceptMaster",
|
|
12422
12396
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12423
12397
|
filter: "CodeableConceptMaster.Type=='OPERATIONSTATUS' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12426,7 +12400,7 @@ var masterQuery$6 = {
|
|
|
12426
12400
|
},
|
|
12427
12401
|
locationMasterParentLocationIdDescription: function locationMasterParentLocationIdDescription() {
|
|
12428
12402
|
return {
|
|
12429
|
-
db_name: dbName
|
|
12403
|
+
db_name: dbName,
|
|
12430
12404
|
entity: "LocationMaster",
|
|
12431
12405
|
sort: "LocationMaster.locationID",
|
|
12432
12406
|
filter: "LocationMaster.activestatus==true",
|
|
@@ -12444,7 +12418,7 @@ var masterQuery$6 = {
|
|
|
12444
12418
|
// },
|
|
12445
12419
|
locationMasterLocationRoleType: function locationMasterLocationRoleType() {
|
|
12446
12420
|
return {
|
|
12447
|
-
"db_name": dbName
|
|
12421
|
+
"db_name": dbName,
|
|
12448
12422
|
"entity": "CodingMaster",
|
|
12449
12423
|
"sort": "CodingMaster.display",
|
|
12450
12424
|
"filter": "CodingMaster.status==true && CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONROLE'",
|
|
@@ -12464,7 +12438,7 @@ var masterQuery$6 = {
|
|
|
12464
12438
|
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
12465
12439
|
// };
|
|
12466
12440
|
return {
|
|
12467
|
-
"db_name": dbName
|
|
12441
|
+
"db_name": dbName,
|
|
12468
12442
|
"entity": "Organization",
|
|
12469
12443
|
"filter": "Organization.id==".concat(id, " && Organization.activestatus==true"),
|
|
12470
12444
|
"return_fields": " DOCUMENT(Organization.specialtyDetails[*].specialty)"
|
|
@@ -12472,7 +12446,7 @@ var masterQuery$6 = {
|
|
|
12472
12446
|
},
|
|
12473
12447
|
locationMasterContactMode: function locationMasterContactMode() {
|
|
12474
12448
|
return {
|
|
12475
|
-
db_name: dbName
|
|
12449
|
+
db_name: dbName,
|
|
12476
12450
|
entity: "CodeableConceptMaster",
|
|
12477
12451
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12478
12452
|
filter: "CodeableConceptMaster.Type=='CONTACTSYSTEM' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12481,7 +12455,7 @@ var masterQuery$6 = {
|
|
|
12481
12455
|
},
|
|
12482
12456
|
locationMasterISD: function locationMasterISD() {
|
|
12483
12457
|
return {
|
|
12484
|
-
db_name: dbName
|
|
12458
|
+
db_name: dbName,
|
|
12485
12459
|
entity: "SMGeographicMaster",
|
|
12486
12460
|
sort: "SMGeographicMaster.geogLevelName",
|
|
12487
12461
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
@@ -12490,7 +12464,7 @@ var masterQuery$6 = {
|
|
|
12490
12464
|
},
|
|
12491
12465
|
locationMasterUse: function locationMasterUse() {
|
|
12492
12466
|
return {
|
|
12493
|
-
db_name: dbName
|
|
12467
|
+
db_name: dbName,
|
|
12494
12468
|
entity: "CodeableConceptMaster",
|
|
12495
12469
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12496
12470
|
filter: "CodeableConceptMaster.Type=='ADDRESSUSE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12499,7 +12473,7 @@ var masterQuery$6 = {
|
|
|
12499
12473
|
},
|
|
12500
12474
|
locationMasterPriority: function locationMasterPriority() {
|
|
12501
12475
|
return {
|
|
12502
|
-
db_name: dbName
|
|
12476
|
+
db_name: dbName,
|
|
12503
12477
|
entity: "CodeableConceptMaster",
|
|
12504
12478
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12505
12479
|
filter: "CodeableConceptMaster.Type=='RANK' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -13590,7 +13564,7 @@ var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
|
13590
13564
|
var queries$l = {
|
|
13591
13565
|
fullread: function fullread(type) {
|
|
13592
13566
|
return {
|
|
13593
|
-
db_name: dbName
|
|
13567
|
+
db_name: dbName,
|
|
13594
13568
|
entity: "OrderType",
|
|
13595
13569
|
sort: "OrderType.createddate",
|
|
13596
13570
|
filter: "OrderType.activestatus == true",
|
|
@@ -13599,7 +13573,7 @@ var queries$l = {
|
|
|
13599
13573
|
},
|
|
13600
13574
|
OrderCategory: function OrderCategory() {
|
|
13601
13575
|
return {
|
|
13602
|
-
db_name: dbName
|
|
13576
|
+
db_name: dbName,
|
|
13603
13577
|
entity: "OrderCategory",
|
|
13604
13578
|
sort: "OrderCategory.shortdesc",
|
|
13605
13579
|
filter: "OrderCategory.activestatus == true && OrderCategory.status==true",
|
|
@@ -13608,7 +13582,7 @@ var queries$l = {
|
|
|
13608
13582
|
},
|
|
13609
13583
|
Insert: function Insert(data) {
|
|
13610
13584
|
return [{
|
|
13611
|
-
db_name: dbName
|
|
13585
|
+
db_name: dbName,
|
|
13612
13586
|
entity: "OrderType",
|
|
13613
13587
|
is_metadata: true,
|
|
13614
13588
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -13625,14 +13599,14 @@ var queries$l = {
|
|
|
13625
13599
|
},
|
|
13626
13600
|
SoftDelete: function SoftDelete() {
|
|
13627
13601
|
return {
|
|
13628
|
-
db_name: dbName
|
|
13602
|
+
db_name: dbName,
|
|
13629
13603
|
entity: "OrderType",
|
|
13630
13604
|
filter: "OrderType._key == '10018'"
|
|
13631
13605
|
};
|
|
13632
13606
|
},
|
|
13633
13607
|
StatusUpdate: function StatusUpdate(key, getstatus) {
|
|
13634
13608
|
return [{
|
|
13635
|
-
db_name: dbName
|
|
13609
|
+
db_name: dbName,
|
|
13636
13610
|
entity: "OrderType",
|
|
13637
13611
|
filter: {
|
|
13638
13612
|
_key: key
|
|
@@ -13646,7 +13620,7 @@ var queries$l = {
|
|
|
13646
13620
|
},
|
|
13647
13621
|
UpdateORModify: function UpdateORModify(data) {
|
|
13648
13622
|
return [{
|
|
13649
|
-
db_name: dbName
|
|
13623
|
+
db_name: dbName,
|
|
13650
13624
|
entity: "OrderType",
|
|
13651
13625
|
is_metadata: true,
|
|
13652
13626
|
filter: {
|
|
@@ -13962,7 +13936,7 @@ var ordertypeSlice$1 = ordertypeSlice.reducer;
|
|
|
13962
13936
|
var queries$k = {
|
|
13963
13937
|
fullread: function fullread(type) {
|
|
13964
13938
|
return {
|
|
13965
|
-
db_name: dbName
|
|
13939
|
+
db_name: dbName,
|
|
13966
13940
|
entity: "CodeableConceptMaster",
|
|
13967
13941
|
sort: "CodeableConceptMaster.createddate",
|
|
13968
13942
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='ORDERNATURE'",
|
|
@@ -13971,7 +13945,7 @@ var queries$k = {
|
|
|
13971
13945
|
},
|
|
13972
13946
|
Insert: function Insert(data) {
|
|
13973
13947
|
return [{
|
|
13974
|
-
db_name: dbName
|
|
13948
|
+
db_name: dbName,
|
|
13975
13949
|
entity: "CodeableConceptMaster",
|
|
13976
13950
|
is_metadata: true,
|
|
13977
13951
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -13995,7 +13969,7 @@ var queries$k = {
|
|
|
13995
13969
|
},
|
|
13996
13970
|
StatusUpdate: function StatusUpdate(key, getstatus) {
|
|
13997
13971
|
return [{
|
|
13998
|
-
db_name: dbName
|
|
13972
|
+
db_name: dbName,
|
|
13999
13973
|
entity: "CodeableConceptMaster",
|
|
14000
13974
|
filter: {
|
|
14001
13975
|
_key: key
|
|
@@ -14038,7 +14012,7 @@ var queries$k = {
|
|
|
14038
14012
|
// },
|
|
14039
14013
|
// ];
|
|
14040
14014
|
return [{
|
|
14041
|
-
"db_name": dbName
|
|
14015
|
+
"db_name": dbName,
|
|
14042
14016
|
"entity": "CodingMaster",
|
|
14043
14017
|
"is_metadata": true,
|
|
14044
14018
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -14295,7 +14269,7 @@ var queries$j = {
|
|
|
14295
14269
|
_ref$key = _ref.key,
|
|
14296
14270
|
key = _ref$key === void 0 ? "" : _ref$key;
|
|
14297
14271
|
var obj = {
|
|
14298
|
-
db_name: dbName
|
|
14272
|
+
db_name: dbName,
|
|
14299
14273
|
entity: "OrderCategory",
|
|
14300
14274
|
filter: "OrderCategory.activestatus == true",
|
|
14301
14275
|
return_fields: "OrderCategory",
|
|
@@ -14324,7 +14298,7 @@ var queries$j = {
|
|
|
14324
14298
|
_ref2$key = _ref2.key,
|
|
14325
14299
|
key = _ref2$key === void 0 ? "" : _ref2$key;
|
|
14326
14300
|
var newData = [{
|
|
14327
|
-
db_name: dbName
|
|
14301
|
+
db_name: dbName,
|
|
14328
14302
|
entity: "OrderCategory",
|
|
14329
14303
|
is_metadata: true,
|
|
14330
14304
|
metadataId: metadataId,
|
|
@@ -14351,7 +14325,7 @@ var queries$j = {
|
|
|
14351
14325
|
_ref3$status = _ref3.status,
|
|
14352
14326
|
status = _ref3$status === void 0 ? false : _ref3$status;
|
|
14353
14327
|
var obj = [{
|
|
14354
|
-
db_name: dbName
|
|
14328
|
+
db_name: dbName,
|
|
14355
14329
|
entity: "OrderCategory",
|
|
14356
14330
|
filter: {
|
|
14357
14331
|
_key: key
|
|
@@ -14370,7 +14344,7 @@ var queries$j = {
|
|
|
14370
14344
|
_ref4$key = _ref4.key,
|
|
14371
14345
|
key = _ref4$key === void 0 ? "" : _ref4$key;
|
|
14372
14346
|
var obj = {
|
|
14373
|
-
db_name: dbName
|
|
14347
|
+
db_name: dbName,
|
|
14374
14348
|
entity: "CodeableConceptMaster",
|
|
14375
14349
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='ORDERMODE'",
|
|
14376
14350
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
@@ -14400,7 +14374,7 @@ var queries$j = {
|
|
|
14400
14374
|
_ref5$key = _ref5.key,
|
|
14401
14375
|
key = _ref5$key === void 0 ? "" : _ref5$key;
|
|
14402
14376
|
var newData = [{
|
|
14403
|
-
db_name: dbName
|
|
14377
|
+
db_name: dbName,
|
|
14404
14378
|
entity: "CodeableConceptMaster",
|
|
14405
14379
|
is_metadata: true,
|
|
14406
14380
|
metadataId: metadataId,
|
|
@@ -14427,7 +14401,7 @@ var queries$j = {
|
|
|
14427
14401
|
// _key: key,
|
|
14428
14402
|
// };
|
|
14429
14403
|
newData = [{
|
|
14430
|
-
"db_name": dbName
|
|
14404
|
+
"db_name": dbName,
|
|
14431
14405
|
"entity": "CodingMaster",
|
|
14432
14406
|
"is_metadata": true,
|
|
14433
14407
|
"filter": {
|
|
@@ -14455,7 +14429,7 @@ var queries$j = {
|
|
|
14455
14429
|
_ref6$status = _ref6.status,
|
|
14456
14430
|
status = _ref6$status === void 0 ? false : _ref6$status;
|
|
14457
14431
|
var obj = [{
|
|
14458
|
-
db_name: dbName
|
|
14432
|
+
db_name: dbName,
|
|
14459
14433
|
entity: "CodeableConceptMaster",
|
|
14460
14434
|
filter: {
|
|
14461
14435
|
_key: key
|
|
@@ -14730,7 +14704,7 @@ var orderMasterSlice$1 = orderMasterSlice.reducer;
|
|
|
14730
14704
|
var queries$i = {
|
|
14731
14705
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
14732
14706
|
return [{
|
|
14733
|
-
"db_name": dbName
|
|
14707
|
+
"db_name": dbName,
|
|
14734
14708
|
"entity": "CodeableConceptMaster",
|
|
14735
14709
|
"filter": {
|
|
14736
14710
|
"_key": data._key
|
|
@@ -14744,7 +14718,7 @@ var queries$i = {
|
|
|
14744
14718
|
},
|
|
14745
14719
|
status_update_holiday: function status_update_holiday(data) {
|
|
14746
14720
|
return [{
|
|
14747
|
-
"db_name": dbName
|
|
14721
|
+
"db_name": dbName,
|
|
14748
14722
|
"entity": "Holiday",
|
|
14749
14723
|
"filter": {
|
|
14750
14724
|
"_key": data._key
|
|
@@ -14790,7 +14764,7 @@ var queries$i = {
|
|
|
14790
14764
|
}
|
|
14791
14765
|
|
|
14792
14766
|
return [_objectSpread2(_objectSpread2({
|
|
14793
|
-
"db_name": dbName
|
|
14767
|
+
"db_name": dbName,
|
|
14794
14768
|
"entity": "Holiday",
|
|
14795
14769
|
"is_metadata": true
|
|
14796
14770
|
}, filter), {}, {
|
|
@@ -14821,7 +14795,7 @@ var queries$i = {
|
|
|
14821
14795
|
}
|
|
14822
14796
|
|
|
14823
14797
|
return _objectSpread2(_objectSpread2({
|
|
14824
|
-
"db_name": dbName
|
|
14798
|
+
"db_name": dbName,
|
|
14825
14799
|
"entity": "Holiday"
|
|
14826
14800
|
}, filter), {}, {
|
|
14827
14801
|
"sort": "Holiday.CalDate",
|
|
@@ -14829,11 +14803,11 @@ var queries$i = {
|
|
|
14829
14803
|
});
|
|
14830
14804
|
},
|
|
14831
14805
|
holiday_master: {
|
|
14832
|
-
"holiday_type": "{\n \"db_name\":\"".concat(dbName
|
|
14833
|
-
"entity_name": "{\n \"db_name\":\"".concat(dbName
|
|
14834
|
-
"entity_type": "{\n \"db_name\":\"".concat(dbName
|
|
14806
|
+
"holiday_type": "{\n \"db_name\":\"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='HOLIDAYTYPE' && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
14807
|
+
"entity_name": "{\n \"db_name\":\"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"sort\":\"Organization.name\",\n \"filter\": \"'Hospital' IN Organization.OrgType\",\n \"return_fields\": \"{OrgID:Organization.id,name:Organization.name,_id:Organization._id,OrgType:Organization.OrgType}\"\n }"),
|
|
14808
|
+
"entity_type": "{\n \"db_name\":\"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }")
|
|
14835
14809
|
},
|
|
14836
|
-
appointment_type_read: "{\n \"db_name\": \"".concat(dbName
|
|
14810
|
+
appointment_type_read: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='APPTYPE'\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
14837
14811
|
upsert: function upsert(data) {
|
|
14838
14812
|
var filter = {};
|
|
14839
14813
|
var metadata = {};
|
|
@@ -14860,7 +14834,7 @@ var queries$i = {
|
|
|
14860
14834
|
}
|
|
14861
14835
|
|
|
14862
14836
|
return [_objectSpread2(_objectSpread2({
|
|
14863
|
-
"db_name": dbName
|
|
14837
|
+
"db_name": dbName,
|
|
14864
14838
|
"entity": "CodeableConceptMaster",
|
|
14865
14839
|
"is_metadata": true,
|
|
14866
14840
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -15417,7 +15391,7 @@ var holidaySlice$1 = holidaySlice.reducer;
|
|
|
15417
15391
|
var queries$h = {
|
|
15418
15392
|
appointment_type_master: function appointment_type_master() {
|
|
15419
15393
|
return {
|
|
15420
|
-
db_name: dbName
|
|
15394
|
+
db_name: dbName,
|
|
15421
15395
|
entity: "CodeableConceptMaster",
|
|
15422
15396
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15423
15397
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='APPTYPE'",
|
|
@@ -15426,7 +15400,7 @@ var queries$h = {
|
|
|
15426
15400
|
},
|
|
15427
15401
|
res_appointment_entity_name: function res_appointment_entity_name() {
|
|
15428
15402
|
return {
|
|
15429
|
-
db_name: dbName
|
|
15403
|
+
db_name: dbName,
|
|
15430
15404
|
entity: "Organization",
|
|
15431
15405
|
sort: "Organization.name",
|
|
15432
15406
|
filter: "Organization.activestatus==true",
|
|
@@ -15435,7 +15409,7 @@ var queries$h = {
|
|
|
15435
15409
|
},
|
|
15436
15410
|
res_appointment_entity_type: function res_appointment_entity_type() {
|
|
15437
15411
|
return {
|
|
15438
|
-
db_name: dbName
|
|
15412
|
+
db_name: dbName,
|
|
15439
15413
|
entity: "CodeableConceptMaster",
|
|
15440
15414
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15441
15415
|
filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -15444,7 +15418,7 @@ var queries$h = {
|
|
|
15444
15418
|
},
|
|
15445
15419
|
res_table_data: function res_table_data(entityType, entityName) {
|
|
15446
15420
|
return {
|
|
15447
|
-
db_name: dbName
|
|
15421
|
+
db_name: dbName,
|
|
15448
15422
|
entity: "ResourcebyApptType",
|
|
15449
15423
|
// filter: "ResourcebyApptType.activestatus==true AND DOCUMENT(ResourcebyApptType.entityType).display=='Hospital' AND DOCUMENT(ResourcebyApptType.organization_id).name=='KMCH Hospital'",
|
|
15450
15424
|
filter: "ResourcebyApptType.activestatus==true ".concat(entityType, " ").concat(entityName),
|
|
@@ -15453,7 +15427,7 @@ var queries$h = {
|
|
|
15453
15427
|
},
|
|
15454
15428
|
resource_type_drop_down: function resource_type_drop_down() {
|
|
15455
15429
|
return {
|
|
15456
|
-
db_name: dbName
|
|
15430
|
+
db_name: dbName,
|
|
15457
15431
|
entity: "CodeableConceptMaster",
|
|
15458
15432
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15459
15433
|
filter: "CodeableConceptMaster.Type=='RESOURCETYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -15462,7 +15436,7 @@ var queries$h = {
|
|
|
15462
15436
|
},
|
|
15463
15437
|
resource_role_drop_down_practitioner: function resource_role_drop_down_practitioner(role) {
|
|
15464
15438
|
return {
|
|
15465
|
-
db_name: dbName
|
|
15439
|
+
db_name: dbName,
|
|
15466
15440
|
entity: "CodeableConceptMaster",
|
|
15467
15441
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15468
15442
|
filter: "CodeableConceptMaster.Type=='".concat(role, "' AND CodeableConceptMaster.activestatus==true"),
|
|
@@ -15471,7 +15445,7 @@ var queries$h = {
|
|
|
15471
15445
|
},
|
|
15472
15446
|
res_general_instruction: function res_general_instruction() {
|
|
15473
15447
|
return {
|
|
15474
|
-
db_name: dbName
|
|
15448
|
+
db_name: dbName,
|
|
15475
15449
|
entity: "AMInstructions",
|
|
15476
15450
|
sort: "AMInstructions.InstructionCode",
|
|
15477
15451
|
filter: "AMInstructions.activestatus==true",
|
|
@@ -15480,7 +15454,7 @@ var queries$h = {
|
|
|
15480
15454
|
},
|
|
15481
15455
|
res_special_instruction: function res_special_instruction() {
|
|
15482
15456
|
return {
|
|
15483
|
-
db_name: dbName
|
|
15457
|
+
db_name: dbName,
|
|
15484
15458
|
entity: "AMInstructions",
|
|
15485
15459
|
sort: "AMInstructions.InstructionCode",
|
|
15486
15460
|
filter: "AMInstructions.activestatus==true AND AMInstructions.SpecialInstrYN==true",
|
|
@@ -15489,7 +15463,7 @@ var queries$h = {
|
|
|
15489
15463
|
},
|
|
15490
15464
|
res_criteria_instruction: function res_criteria_instruction() {
|
|
15491
15465
|
return {
|
|
15492
|
-
db_name: dbName
|
|
15466
|
+
db_name: dbName,
|
|
15493
15467
|
entity: "CodeableConceptMaster",
|
|
15494
15468
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15495
15469
|
filter: "CodeableConceptMaster.Type=='HEALTHISSUES' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -15498,7 +15472,7 @@ var queries$h = {
|
|
|
15498
15472
|
},
|
|
15499
15473
|
res_status_update: function res_status_update(id, checked) {
|
|
15500
15474
|
return [{
|
|
15501
|
-
db_name: dbName
|
|
15475
|
+
db_name: dbName,
|
|
15502
15476
|
entity: "ResourcebyApptType",
|
|
15503
15477
|
is_metadata: true,
|
|
15504
15478
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -15512,7 +15486,7 @@ var queries$h = {
|
|
|
15512
15486
|
},
|
|
15513
15487
|
res_read_line_list_doc: function res_read_line_list_doc(key) {
|
|
15514
15488
|
return {
|
|
15515
|
-
db_name: dbName
|
|
15489
|
+
db_name: dbName,
|
|
15516
15490
|
entity: "ResourcebyApptType",
|
|
15517
15491
|
filter: "ResourcebyApptType.activestatus==true AND ResourcebyApptType._key=='".concat(key, "'"),
|
|
15518
15492
|
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) })"
|
|
@@ -15564,7 +15538,7 @@ var generateJson$a = {
|
|
|
15564
15538
|
}
|
|
15565
15539
|
|
|
15566
15540
|
return [_objectSpread2(_objectSpread2({
|
|
15567
|
-
db_name: dbName
|
|
15541
|
+
db_name: dbName,
|
|
15568
15542
|
entity: "ResourcebyApptType",
|
|
15569
15543
|
is_metadata: true,
|
|
15570
15544
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -16375,9 +16349,9 @@ var resourceByAppointmentTypes = {
|
|
|
16375
16349
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
16376
16350
|
|
|
16377
16351
|
var queries$g = {
|
|
16378
|
-
drug_category_read: "{\n \"db_name\": \"".concat(dbName
|
|
16379
|
-
drug_type_read: "{\n \"db_name\": \"".concat(dbName
|
|
16380
|
-
drug_dosage: "{\n \"db_name\": \"".concat(dbName
|
|
16352
|
+
drug_category_read: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugCategory\",\n \"filter\":\"DrugCategory.activestatus == true\",\n \"return_fields\": \"DrugCategory\"\n }"),
|
|
16353
|
+
drug_type_read: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugType\",\n \"filter\":\"DrugType.activestatus == true\",\n \"sort\":\"DrugType.id\",\n \"return_fields\": \"DrugType\"\n }"),
|
|
16354
|
+
drug_dosage: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\", \n \"sort\": \"DosageForm.dosageform\",\n \"filter\": \"DosageForm.activestatus == true\",\n \"return_fields\": \"DosageForm\"\n }"),
|
|
16381
16355
|
drug_dosage_upsert: function drug_dosage_upsert(data) {
|
|
16382
16356
|
var filter = {};
|
|
16383
16357
|
|
|
@@ -16390,7 +16364,7 @@ var queries$g = {
|
|
|
16390
16364
|
}
|
|
16391
16365
|
|
|
16392
16366
|
return [_objectSpread2(_objectSpread2({
|
|
16393
|
-
"db_name": dbName
|
|
16367
|
+
"db_name": dbName,
|
|
16394
16368
|
"entity": "DosageForm",
|
|
16395
16369
|
"is_metadata": true
|
|
16396
16370
|
}, filter), {}, {
|
|
@@ -16406,7 +16380,7 @@ var queries$g = {
|
|
|
16406
16380
|
},
|
|
16407
16381
|
status_update_drug_dosage: function status_update_drug_dosage(data) {
|
|
16408
16382
|
return [{
|
|
16409
|
-
"db_name": dbName
|
|
16383
|
+
"db_name": dbName,
|
|
16410
16384
|
"entity": "DosageForm",
|
|
16411
16385
|
"filter": {
|
|
16412
16386
|
"_key": data._key
|
|
@@ -16418,7 +16392,7 @@ var queries$g = {
|
|
|
16418
16392
|
}
|
|
16419
16393
|
}];
|
|
16420
16394
|
},
|
|
16421
|
-
drug_class: "{\n \"db_name\": \"".concat(dbName
|
|
16395
|
+
drug_class: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugClass\",\n \"filter\": \"DrugClass.activestatus == true\",\n \"sort\": \"DrugClass.drugclass\",\n \"return_fields\": \"DrugClass\"\n }"),
|
|
16422
16396
|
drug_class_upsert: function drug_class_upsert(data) {
|
|
16423
16397
|
var filter = {};
|
|
16424
16398
|
|
|
@@ -16431,7 +16405,7 @@ var queries$g = {
|
|
|
16431
16405
|
}
|
|
16432
16406
|
|
|
16433
16407
|
return [_objectSpread2(_objectSpread2({
|
|
16434
|
-
"db_name": dbName
|
|
16408
|
+
"db_name": dbName,
|
|
16435
16409
|
"entity": "DrugClass",
|
|
16436
16410
|
"is_metadata": true
|
|
16437
16411
|
}, filter), {}, {
|
|
@@ -16447,7 +16421,7 @@ var queries$g = {
|
|
|
16447
16421
|
},
|
|
16448
16422
|
status_update_drug_class: function status_update_drug_class(data) {
|
|
16449
16423
|
return [{
|
|
16450
|
-
"db_name": dbName
|
|
16424
|
+
"db_name": dbName,
|
|
16451
16425
|
"entity": "DrugClass",
|
|
16452
16426
|
"filter": {
|
|
16453
16427
|
"_key": data._key
|
|
@@ -16459,10 +16433,10 @@ var queries$g = {
|
|
|
16459
16433
|
}
|
|
16460
16434
|
}];
|
|
16461
16435
|
},
|
|
16462
|
-
drug_routes: "{\n \"db_name\": \"".concat(dbName
|
|
16436
|
+
drug_routes: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\", \n \"sort\": \"DrugRoutes.routecode\",\n \"filter\": \"DrugRoutes.activestatus == true\",\n \"return_fields\": \"DrugRoutes\" \n }"),
|
|
16463
16437
|
status_update_drug_routes: function status_update_drug_routes(data) {
|
|
16464
16438
|
return [{
|
|
16465
|
-
"db_name": dbName
|
|
16439
|
+
"db_name": dbName,
|
|
16466
16440
|
"entity": "DrugRoutes",
|
|
16467
16441
|
"filter": {
|
|
16468
16442
|
"_key": data._key
|
|
@@ -16486,7 +16460,7 @@ var queries$g = {
|
|
|
16486
16460
|
}
|
|
16487
16461
|
|
|
16488
16462
|
return [_objectSpread2(_objectSpread2({
|
|
16489
|
-
"db_name": dbName
|
|
16463
|
+
"db_name": dbName,
|
|
16490
16464
|
"entity": "DrugRoutes",
|
|
16491
16465
|
"is_metadata": true
|
|
16492
16466
|
}, filter), {}, {
|
|
@@ -17181,7 +17155,7 @@ var queries$f = {
|
|
|
17181
17155
|
// }`,
|
|
17182
17156
|
drug_master: function drug_master(page, perpage) {
|
|
17183
17157
|
return {
|
|
17184
|
-
db_name: dbName
|
|
17158
|
+
db_name: dbName,
|
|
17185
17159
|
entity: "DrugMaster",
|
|
17186
17160
|
sort: "DrugMaster.DrugCode",
|
|
17187
17161
|
filter: "DrugMaster.activestatus==true ",
|
|
@@ -17193,7 +17167,7 @@ var queries$f = {
|
|
|
17193
17167
|
};
|
|
17194
17168
|
},
|
|
17195
17169
|
drug_master_upsert: [{
|
|
17196
|
-
"db_name": dbName
|
|
17170
|
+
"db_name": dbName,
|
|
17197
17171
|
"entity": "DrugMaster",
|
|
17198
17172
|
"is_metadata": true,
|
|
17199
17173
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -17298,7 +17272,7 @@ var queries$f = {
|
|
|
17298
17272
|
}],
|
|
17299
17273
|
status_update_drug_master: function status_update_drug_master(data) {
|
|
17300
17274
|
return [{
|
|
17301
|
-
"db_name": dbName
|
|
17275
|
+
"db_name": dbName,
|
|
17302
17276
|
"entity": "DrugMaster",
|
|
17303
17277
|
"filter": {
|
|
17304
17278
|
"_id": data._id
|
|
@@ -17310,7 +17284,7 @@ var queries$f = {
|
|
|
17310
17284
|
}
|
|
17311
17285
|
}];
|
|
17312
17286
|
},
|
|
17313
|
-
drug_form_type: "{\n \"db_name\": \"".concat(dbName
|
|
17287
|
+
drug_form_type: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ParamsMapping\",\n \"filter\":\"ParamsMapping.paraCode=='SOURCEOFDRUGORDERCATALOG'\",\n \"return_fields\": \"{id:ParamsMapping.id,_id:ParamsMapping._id,paraCode:ParamsMapping.paraCode,paraVal:ParamsMapping.paraVal,paraDef:ParamsMapping.paraDef}\"\n }"),
|
|
17314
17288
|
drug_form_read: function drug_form_read(_id) {
|
|
17315
17289
|
// return {
|
|
17316
17290
|
// "db_name": dbName,
|
|
@@ -17319,7 +17293,7 @@ var queries$f = {
|
|
|
17319
17293
|
// "return_fields": "merge(DrugMaster,{Status:document(DrugMaster.Status).display},{DrugClass:document(DrugMaster.DrugClass)},{DrugType:document(DrugMaster.DrugType)},{DrugCategory:document(DrugMaster.DrugCategory)},{FormCode:document(DrugMaster.FormCode)},{DefaultRouteCode:document(DrugMaster.DefaultRouteCode)},{RoutesAllowed:document(DrugMaster.RoutesAllowed)},{DfltInfuseOverDurationType:document(DrugMaster.DfltInfuseOverDurationType)},{Instruction: (for i in CA_OrderCatalogByEncounterTypeAge filter i._id in DrugMaster.Instruction return merge(i,{encountertype: (for en in CodingMaster filter en._id == i.encountertype return en)},{gendercode:(for gen in CodingMaster filter gen._id == i.gendercode return gen)},{agegroup:(for ag in AgeRanges filter ag._id == i.agegroup return ag)},{agecatgcode:(for ac in AgeCategory filter ac._id in i.agecatgcode return ac)},{dfltfreqValueUnit:(for df in FrequencyMaster filter df._id == i.dfltfreqValueUnit return df)},{dfltfreqRateUnit:(for dfr in DrugUOM filter dfr._id == i.dfltfreqRateUnit return dfr)},{dfltdurationType:(for ddt in DrugUOM filter ddt._id == i.dfltdurationType return ddt)}))},{FrequencyRules: (for fr in DrugDefaultFeqRules filter fr._id in DrugMaster.FrequencyRules return merge(fr,{DfltFreqbyPatAttrib:(for dfpa in fr.DfltFreqbyPatAttrib return merge(dfpa,{encountertype:document(dfpa.encountertype)},{AgeCatgCode:document(dfpa.AgeCatgCode)},{DfltInfuseOverDurationType:document(dfpa.DfltInfuseOverDurationType)},{agegroup:document(dfpa.agegroup)},{ageunit:document(dfpa.ageunit)},{dfltdoseUOM:document(dfpa.dfltdoseUOM)},{dfltdurnUOM:document(dfpa.dfltdurnUOM)},{dfltfreqcode:document(dfpa.dfltfreqcode)}))}))},{DrugDispRules:(for dd in DrugDispRules filter dd._id in DrugMaster.DrugDispRules return merge(dd,{MaxDispDurnRulebyEnctype: (for mdd in dd.MaxDispDurnRulebyEnctype return merge(mdd,{Action:(document(mdd.Action).display)},{EncounterType:(for etype in CodingMaster filter etype._id == mdd.EncounterType return etype)},{MaxDispDurationUOM:(for mduom in DrugUOM filter mduom._id == mdd.MaxDispDurationUOM return mduom)}))}))},{StrengthValuesPossible:(for dr in DrugMaster.StrengthValuesPossible return merge(dr,{StrengthUOM:(document(dr.StrengthUOM))},{StrengthVolumeUoM:(document(dr.StrengthVolumeUoM))},{OrderUOMAllowed:(for od in dr.OrderUOMAllowed return merge(od,{AllowedOrderDoseUOM:(document(od.AllowedOrderDoseUOM))},{AllowedOrderDoseVolUoM:(document(od.AllowedOrderDoseVolUoM))}))}))})"
|
|
17320
17294
|
// }
|
|
17321
17295
|
return {
|
|
17322
|
-
"db_name": dbName
|
|
17296
|
+
"db_name": dbName,
|
|
17323
17297
|
"entity": "DrugMaster",
|
|
17324
17298
|
"filter": "DrugMaster.activestatus==true && DrugMaster._id=='".concat(_id, "'"),
|
|
17325
17299
|
"return_fields": "merge(DrugMaster,{Status:document(DrugMaster.Status).display},{DrugClass:document(DrugMaster.DrugClass)},{DrugType:document(DrugMaster.DrugType)},{DrugCategory:document(DrugMaster.DrugCategory)},{FormCode:document(DrugMaster.FormCode)},{DefaultRouteCode:document(DrugMaster.DefaultRouteCode)},{RoutesAllowed:document(DrugMaster.RoutesAllowed)},{DfltInfuseOverDurationType:document(DrugMaster.DfltInfuseOverDurationType)},{Instruction: (for i in CA_OrderCatalogByEncounterTypeAge filter i._id in DrugMaster.Instruction return merge(i,{encountertype: (for en in CodingMaster filter en._id == i.encountertype return en)},{gendercode:(for gen in CodingMaster filter gen._id == i.gendercode return gen)},{agegroup:(for ag in AgeRanges filter ag._id == i.agegroup return ag)},{agecatgcode:(for ac in AgeCategory filter ac._id in i.agecatgcode return ac)},{dfltfreqValueUnit:(for df in FrequencyMaster filter df._id == i.dfltfreqValueUnit return df)},{dfltfreqRateUnit:(for dfr in DrugUOM filter dfr._id == i.dfltfreqRateUnit return dfr)},{dfltdurationType:(for ddt in DrugUOM filter ddt._id == i.dfltdurationType return ddt)}))},{FrequencyRules: (for fr in DrugDefaultFeqRules filter fr._id in DrugMaster.FrequencyRules return merge(fr,{DfltFreqbyPatAttrib:(for dfpa in fr.DfltFreqbyPatAttrib return merge(dfpa,{encountertype:document(dfpa.encountertype)},{AgeCatgCode:document(dfpa.AgeCatgCode)},{DfltInfuseOverDurationType:document(dfpa.DfltInfuseOverDurationType)},{agegroup:document(dfpa.agegroup)},{ageunit:document(dfpa.ageunit)},{dfltdoseUOM:document(dfpa.dfltdoseUOM)},{dfltdurnUOM:document(dfpa.dfltdurnUOM)},{dfltfreqcode:document(dfpa.dfltfreqcode)}))}))},{mappedItems:(for SIDC in StockItemsbyDrugCode filter SIDC._id in DrugMaster.mappedItems return merge(SIDC, {StockItemCodes:(for ssidc in SIDC.StockItemCodes return merge (ssidc,{stkitemcode:(for sic in DrugItemMaster filter sic._id ==ssidc.stkitemcode return {_id:sic._id,id:sic.id,itemcode:sic.itemcode,shortdesc:sic.shortdesc,longdesc:sic.longdesc})} ))}))},{DrugDispRules:(for dd in DrugDispRules filter dd._id in DrugMaster.DrugDispRules return merge(dd,{MaxDispDurnRulebyEnctype: (for mdd in dd.MaxDispDurnRulebyEnctype return merge(mdd,{Action:(document(mdd.Action).display)},{EncounterType:(for etype in CodingMaster filter etype._id == mdd.EncounterType return etype)},{MaxDispDurationUOM:(for mduom in DrugUOM filter mduom._id == mdd.MaxDispDurationUOM return mduom)}))}))},{StrengthValuesPossible:(for dr in DrugMaster.StrengthValuesPossible return merge(dr,{StrengthUOM:(document(dr.StrengthUOM))},{StrengthVolumeUoM:(document(dr.StrengthVolumeUoM))},{OrderUOMAllowed:(for od in dr.OrderUOMAllowed return merge(od,{AllowedOrderDoseUOM:(document(od.AllowedOrderDoseUOM))},{AllowedOrderDoseVolUoM:(document(od.AllowedOrderDoseVolUoM))}))}))})"
|
|
@@ -17328,7 +17302,7 @@ var queries$f = {
|
|
|
17328
17302
|
age_category_by_id: function age_category_by_id(ids) {
|
|
17329
17303
|
// ['${AllowedUnit.join("','")}']
|
|
17330
17304
|
return {
|
|
17331
|
-
"db_name": dbName
|
|
17305
|
+
"db_name": dbName,
|
|
17332
17306
|
"entity": "AgeCategory",
|
|
17333
17307
|
"filter": "AgeCategory.activestatus == true && AgeCategory._id in ['".concat(ids.join("','"), "']"),
|
|
17334
17308
|
"return_fields": "{id:AgeCategory.id, _id:AgeCategory._id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, description:AgeCategory.description,UOM:document(document(AgeCategory.UOM).coding)}",
|
|
@@ -17337,7 +17311,7 @@ var queries$f = {
|
|
|
17337
17311
|
},
|
|
17338
17312
|
ageCategory: function ageCategory(ageRangeId) {
|
|
17339
17313
|
return {
|
|
17340
|
-
db_name: dbName
|
|
17314
|
+
db_name: dbName,
|
|
17341
17315
|
entity: "AgeRanges",
|
|
17342
17316
|
filter: {
|
|
17343
17317
|
AgeRanges: "AgeRanges.activestatus==true && AgeRanges._id=='".concat(ageRangeId, "' ")
|
|
@@ -17347,10 +17321,10 @@ var queries$f = {
|
|
|
17347
17321
|
}
|
|
17348
17322
|
};
|
|
17349
17323
|
var masterQuery$5 = {
|
|
17350
|
-
"drug_class": "{ \n \"db_name\": \"".concat(dbName
|
|
17351
|
-
"drug_category": "{\n \"db_name\": \"".concat(dbName
|
|
17352
|
-
"drug_type": "{\n \"db_name\": \"".concat(dbName
|
|
17353
|
-
"form": "{\n \"db_name\": \"".concat(dbName
|
|
17324
|
+
"drug_class": "{ \n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugClass\",\n \"filter\": \"DrugClass.activestatus == true && DrugClass.status == true\", \n \"return_fields\": \"{id:DrugClass.id, _id:DrugClass._id, drugclass:DrugClass.drugclass, longdesc:DrugClass.longdesc, shortdesc:DrugClass.shortdesc}\",\n \"sort\": \"DrugClass.longdesc\"\n }"),
|
|
17325
|
+
"drug_category": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugCategory\",\n \"filter\":\"DrugCategory.activestatus == true && DrugCategory.status==true\",\n \"return_fields\": \"{id:DrugCategory.id, _id:DrugCategory._id, drugcategory:DrugCategory.drugcategory, longdesc:DrugCategory.longdesc, shortdesc:DrugCategory.shortdesc}\",\n \"sort\": \"DrugCategory.longdesc\"\n }"),
|
|
17326
|
+
"drug_type": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugType\",\n \"filter\":\"DrugType.activestatus == true && DrugType.status==true\",\n \"return_fields\": \"{id:DrugType.id, _id:DrugType._id, drugtype:DrugType.drugtype, longdesc:DrugType.longdesc, shortdesc:DrugType.shortdesc}\",\n \"sort\": \"DrugType.longdesc\"\n }"),
|
|
17327
|
+
"form": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\", \n \"filter\": \"DosageForm.activestatus == true && DosageForm.status==true\",\n \"return_fields\": \"{id:DosageForm.id, _id:DosageForm._id, dosageform:DosageForm.dosageform, longdesc:DosageForm.longdesc, shortdesc:DosageForm.shortdesc}\",\n \"sort\": \"DosageForm.longdesc\"\n }"),
|
|
17354
17328
|
// "routes_allowed": `{
|
|
17355
17329
|
// "db_name": "${dbName}",
|
|
17356
17330
|
// "entity": "CodeableConceptMaster",
|
|
@@ -17363,24 +17337,24 @@ var masterQuery$5 = {
|
|
|
17363
17337
|
// "filter": "CodeableConceptMaster.Type=='ROUTE' && CodeableConceptMaster.activestatus==true",
|
|
17364
17338
|
// "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
17365
17339
|
// }`,
|
|
17366
|
-
"routes_allowed": "{\n \"db_name\": \"".concat(dbName
|
|
17367
|
-
"default_route": "{\n \"db_name\": \"".concat(dbName
|
|
17368
|
-
"drug_UOM": "{\n \"db_name\": \"".concat(dbName
|
|
17369
|
-
"alternate_drug_code": "{\n \"db_name\": \"".concat(dbName
|
|
17370
|
-
"encounter_type": "{\n \"db_name\": \"".concat(dbName
|
|
17371
|
-
"gender": "{\n \"db_name\": \"".concat(dbName
|
|
17340
|
+
"routes_allowed": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\",\n \"sort\": \"DrugRoutes.shortdesc\",\n \"filter\": \"DrugRoutes.activestatus==true && DrugRoutes.status==true\",\n \"return_fields\": \"KEEP(DrugRoutes,'id','_id','_key','routecode','shortdesc','longdesc','routeadverb')\"\n }"),
|
|
17341
|
+
"default_route": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\",\n \"sort\": \"DrugRoutes.shortdesc\",\n \"filter\": \"DrugRoutes.activestatus==true && DrugRoutes.status==true\",\n \"return_fields\": \"KEEP(DrugRoutes,'id','_id','_key','routecode','shortdesc','longdesc','routeadverb')\"\n }"),
|
|
17342
|
+
"drug_UOM": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugUOM\",\n \"sort\": \"DrugUOM.shortdesc\",\n \"filter\": \"DrugUOM.activestatus == true && DrugUOM.status==true\", \n \"return_fields\": \"{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}\"\n }"),
|
|
17343
|
+
"alternate_drug_code": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugMaster\",\n \"sort\": \"DrugMaster.ShortDesc\",\n \"filter\": \"DrugMaster.activestatus == true && DrugMaster.DrugCode != 'MA007'\",\n \"return_fields\": \"{_id:DrugMaster._id,id:DrugMaster.id,DrugCode:DrugMaster.DrugCode,ShortDesc:DrugMaster.ShortDesc,LongDesc:DrugMaster.LongDesc}\"\n }"),
|
|
17344
|
+
"encounter_type": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ENCOUNTERTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
17345
|
+
"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 }"),
|
|
17372
17346
|
// "age_range_group": `{
|
|
17373
17347
|
// "db_name": "${dbName}",
|
|
17374
17348
|
// "entity": "AgeRanges",
|
|
17375
17349
|
// "filter":"AgeRanges.activestatus == true && AgeRanges.status==true",
|
|
17376
17350
|
// "return_fields": "{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc}"
|
|
17377
17351
|
// }`,
|
|
17378
|
-
"age_range_group": "{\n \"db_name\": \"".concat(dbName
|
|
17379
|
-
"age_category": "{\n \"db_name\": \"".concat(dbName
|
|
17380
|
-
"default_frequency": "{\n \"db_name\": \"".concat(dbName
|
|
17381
|
-
"actions": "{\n \"db_name\": \"".concat(dbName
|
|
17382
|
-
"status": "{\n \"db_name\": \"".concat(dbName
|
|
17383
|
-
"drug_item_master": "{\n \"db_name\": \"".concat(dbName
|
|
17352
|
+
"age_range_group": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"AgeRanges\",\n \"sort\":\"AgeRanges.agerangecode\",\n \"filter\":\"AgeRanges.activestatus == true && AgeRanges.status==true\",\n \"return_fields\": \"{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc,AgeCategory:AgeRanges.AgeCategory}\"\n }"),
|
|
17353
|
+
"age_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, description:AgeCategory.description,UOM:document(document(AgeCategory.UOM).coding)}\",\n \"sort\": \"AgeCategory.description\"\n }"),
|
|
17354
|
+
"default_frequency": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"FrequencyMaster\",\n \"sort\": \"FrequencyMaster.shortdesc\",\n \"filter\": \"FrequencyMaster.activestatus==true\",\n \"return_fields\": \"{_id:FrequencyMaster._id,id:FrequencyMaster.id,freqcode:FrequencyMaster.freqcode,longdesc:FrequencyMaster.longdesc,shortdesc:FrequencyMaster.shortdesc}\"\n }"),
|
|
17355
|
+
"actions": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGACTION' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
17356
|
+
"status": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DRUGSTATUS' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }"),
|
|
17357
|
+
"drug_item_master": "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugItemMaster\",\n \"sort\": \"DrugItemMaster.shortdesc\",\n \"filter\": \"DrugItemMaster.activestatus==true && DrugItemMaster.effectivefrom <= DATE_TIMESTAMP(DATE_NOW()/1000) && (DrugItemMaster.effectiveto == 0 || DrugItemMaster.effectiveto == null ? DrugItemMaster.effectiveto==0: DrugItemMaster.effectiveto >= DATE_TIMESTAMP(DATE_NOW()/1000))\",\n \"return_fields\": \"{_id:DrugItemMaster._id,id:DrugItemMaster.id,itemcode:DrugItemMaster.itemcode,shortdesc:DrugItemMaster.shortdesc,longdesc:DrugItemMaster.longdesc,effectivefrom:DrugItemMaster.effectivefrom,effectiveto:DrugItemMaster.effectiveto}\"\n }")
|
|
17384
17358
|
};
|
|
17385
17359
|
|
|
17386
17360
|
var allowedJsonFun = function allowedJsonFun(val) {
|
|
@@ -17601,7 +17575,7 @@ var generateDrugMasterJSON = function generateDrugMasterJSON(data, _key, draft)
|
|
|
17601
17575
|
}
|
|
17602
17576
|
|
|
17603
17577
|
var json = [_objectSpread2(_objectSpread2({
|
|
17604
|
-
"db_name": dbName
|
|
17578
|
+
"db_name": dbName,
|
|
17605
17579
|
"entity": "DrugMaster",
|
|
17606
17580
|
"is_metadata": true
|
|
17607
17581
|
}, filter), {}, {
|
|
@@ -18674,16 +18648,16 @@ var queries$e = {
|
|
|
18674
18648
|
// "merge(DrugRouteDirection,{DoseForm:DOCUMENT(DrugRouteDirection.DoseForm)})",
|
|
18675
18649
|
// };
|
|
18676
18650
|
return {
|
|
18677
|
-
"db_name": dbName
|
|
18651
|
+
"db_name": dbName,
|
|
18678
18652
|
"entity": "DrugRouteDirection",
|
|
18679
18653
|
"sort": "DrugRouteDirection.RouteDirectionCode",
|
|
18680
18654
|
"filter": "DrugRouteDirection.activestatus == true ",
|
|
18681
|
-
"return_fields": "merge(DrugRouteDirection,{DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:(DrugRouteDirection.Action)})"
|
|
18655
|
+
"return_fields": "merge(DrugRouteDirection,{DoseForm:DOCUMENT(DrugRouteDirection.DoseForm),Action:DOCUMENT(DrugRouteDirection.Action)})"
|
|
18682
18656
|
};
|
|
18683
18657
|
},
|
|
18684
18658
|
DosageFormDropDown: function DosageFormDropDown() {
|
|
18685
18659
|
return {
|
|
18686
|
-
db_name: dbName
|
|
18660
|
+
db_name: dbName,
|
|
18687
18661
|
entity: "DosageForm",
|
|
18688
18662
|
sort: "DosageForm.longdesc",
|
|
18689
18663
|
filter: "DosageForm.activestatus == true && DosageForm.status == true",
|
|
@@ -18692,7 +18666,7 @@ var queries$e = {
|
|
|
18692
18666
|
},
|
|
18693
18667
|
RoutesDirectionActionDropDown: function RoutesDirectionActionDropDown() {
|
|
18694
18668
|
return {
|
|
18695
|
-
"db_name": dbName
|
|
18669
|
+
"db_name": dbName,
|
|
18696
18670
|
"entity": "CodingMaster",
|
|
18697
18671
|
"filter": "CodingMaster.Type== 'ROUTEDIRECTIONACTION' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
18698
18672
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
@@ -18700,7 +18674,7 @@ var queries$e = {
|
|
|
18700
18674
|
},
|
|
18701
18675
|
Insert: function Insert(data) {
|
|
18702
18676
|
return [{
|
|
18703
|
-
db_name: dbName
|
|
18677
|
+
db_name: dbName,
|
|
18704
18678
|
entity: "DrugRouteDirection",
|
|
18705
18679
|
is_metadata: true,
|
|
18706
18680
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -18717,7 +18691,7 @@ var queries$e = {
|
|
|
18717
18691
|
},
|
|
18718
18692
|
StatusUpdate: function StatusUpdate(key, getstatus) {
|
|
18719
18693
|
return [{
|
|
18720
|
-
db_name: dbName
|
|
18694
|
+
db_name: dbName,
|
|
18721
18695
|
entity: "DrugRouteDirection",
|
|
18722
18696
|
filter: {
|
|
18723
18697
|
_key: key
|
|
@@ -18731,7 +18705,7 @@ var queries$e = {
|
|
|
18731
18705
|
},
|
|
18732
18706
|
UpdateORModify: function UpdateORModify(data) {
|
|
18733
18707
|
return [{
|
|
18734
|
-
db_name: dbName
|
|
18708
|
+
db_name: dbName,
|
|
18735
18709
|
entity: "DrugRouteDirection",
|
|
18736
18710
|
filter: {
|
|
18737
18711
|
_key: data.key
|
|
@@ -18776,13 +18750,12 @@ var DRUG_ROUTES_DIRECTION_READ = createAsyncThunk("drugRoutesSlice/drug_routes_d
|
|
|
18776
18750
|
debugger;
|
|
18777
18751
|
data.result.map(function (val) {
|
|
18778
18752
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.LongDesc) {
|
|
18779
|
-
var _val$DoseForm, _val$DoseForm2;
|
|
18753
|
+
var _val$Action, _val$Action2, _val$DoseForm, _val$DoseForm2;
|
|
18780
18754
|
|
|
18781
18755
|
arry.push({
|
|
18782
18756
|
code: val === null || val === void 0 ? void 0 : val.RouteDirectionCode,
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
action: val === null || val === void 0 ? void 0 : val.Action,
|
|
18757
|
+
action_id: val === null || val === void 0 ? void 0 : (_val$Action = val.Action) === null || _val$Action === void 0 ? void 0 : _val$Action._id,
|
|
18758
|
+
action: val === null || val === void 0 ? void 0 : (_val$Action2 = val.Action) === null || _val$Action2 === void 0 ? void 0 : _val$Action2.display,
|
|
18786
18759
|
longDesc: val === null || val === void 0 ? void 0 : val.LongDesc,
|
|
18787
18760
|
shortDesc: val === null || val === void 0 ? void 0 : val.ShortDesc,
|
|
18788
18761
|
status: val === null || val === void 0 ? void 0 : val.Status,
|
|
@@ -19096,8 +19069,8 @@ var drugDirectionRoutesActions = {
|
|
|
19096
19069
|
var drugRoutesDirectionSlice$1 = drugRoutesDirectionSlice.reducer;
|
|
19097
19070
|
|
|
19098
19071
|
var masterQuery$4 = {
|
|
19099
|
-
orderCategory: "{\n \"db_name\": \"".concat(dbName
|
|
19100
|
-
orderType: "{\n \"db_name\": \"".concat(dbName
|
|
19072
|
+
orderCategory: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"OrderCategory\",\n \"filter\": \"OrderCategory.activestatus==true && OrderCategory.status==true\",\n \"return_fields\": \"OrderCategory\",\n \"sort\": \"OrderCategory.ordercategory\"\n}"),
|
|
19073
|
+
orderType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"OrderType\",\n \"filter\": \"OrderType.activestatus==true && OrderType.status==true\",\n \"return_fields\": \"merge(OrderType,{ordercategory:(document(OrderType.ordercategory))})\",\n \"sort\":\"OrderType.ordertype\"\n}"),
|
|
19101
19074
|
// orderType: `{
|
|
19102
19075
|
// "db_name": "${dbName}",
|
|
19103
19076
|
// "entity": "OrderType",
|
|
@@ -19105,24 +19078,24 @@ var masterQuery$4 = {
|
|
|
19105
19078
|
// "return_fields": "merge(OrderType,{ordercategory:(document(OrderType.ordercategory))})",
|
|
19106
19079
|
// "sort":"OrderType.longdesc"
|
|
19107
19080
|
// }`,
|
|
19108
|
-
healthService: "{\n \"db_name\": \"".concat(dbName
|
|
19109
|
-
quantity: "{\n \"db_name\": \"".concat(dbName
|
|
19110
|
-
entityType: "{\n \"db_name\": \"".concat(dbName
|
|
19111
|
-
entitytName: "{\n \"db_name\": \"".concat(dbName
|
|
19112
|
-
specimenType: "{\n \"db_name\": \"".concat(dbName
|
|
19113
|
-
bodySite: "{\n \"db_name\": \"".concat(dbName
|
|
19114
|
-
specimenContainer: "{\n \"db_name\": \"".concat(dbName
|
|
19115
|
-
collectionMethod: "{\n \"db_name\": \"".concat(dbName
|
|
19116
|
-
encounterType: "{\n \"db_name\": \"".concat(dbName
|
|
19117
|
-
gender: "{\n \"db_name\": \"".concat(dbName
|
|
19118
|
-
ageGroup: "{\n\"db_name\": \"".concat(dbName
|
|
19119
|
-
checkaction: "{\n \"db_name\": \"".concat(dbName
|
|
19120
|
-
attrcode: "{\n \"db_name\": \"".concat(dbName
|
|
19081
|
+
healthService: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"HealthcareService\",\n \"sort\":\"HealthcareService.name\",\n \"filter\": \"HealthcareService.activestatus==true\",\n \"return_fields\": \"{id:HealthcareService.id,_id:HealthcareService._id,name:HealthcareService.name}\"\n}"),
|
|
19082
|
+
quantity: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='UOM' && CodeableConceptMaster.activestatus==true\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19083
|
+
entityType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' && CodeableConceptMaster.activestatus==true\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19084
|
+
entitytName: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"'Hospital' IN Organization.OrgType\",\n \"return_fields\": \"{OrgID:Organization.id,name:Organization.name,_id:Organization._id}\"\n}"),
|
|
19085
|
+
specimenType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECIMENTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19086
|
+
bodySite: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='BODYSITE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19087
|
+
specimenContainer: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECCONTAINER' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19088
|
+
collectionMethod: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECCOLLMETHOD' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19089
|
+
encounterType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ENCOUNTERTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n}"),
|
|
19090
|
+
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}"),
|
|
19091
|
+
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}"),
|
|
19092
|
+
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}"),
|
|
19093
|
+
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}")
|
|
19121
19094
|
};
|
|
19122
19095
|
var orderTypedata = {
|
|
19123
19096
|
ordertype: function ordertype(type) {
|
|
19124
19097
|
return {
|
|
19125
|
-
db_name: dbName
|
|
19098
|
+
db_name: dbName,
|
|
19126
19099
|
entity: "OrderType",
|
|
19127
19100
|
filter: "OrderType.activestatus==true && OrderType.status==true && OrderType.ordercategory=='".concat(type, "'"),
|
|
19128
19101
|
return_fields: "merge(OrderType,{ordercategory:(document(OrderType.ordercategory))})",
|
|
@@ -19134,7 +19107,7 @@ var orderTypedata = {
|
|
|
19134
19107
|
var Query = {
|
|
19135
19108
|
ageCategory: function ageCategory(ageRangeId) {
|
|
19136
19109
|
return {
|
|
19137
|
-
db_name: dbName
|
|
19110
|
+
db_name: dbName,
|
|
19138
19111
|
entity: "AgeRanges",
|
|
19139
19112
|
sort: "AgeRanges.code",
|
|
19140
19113
|
filter: {
|
|
@@ -19147,7 +19120,7 @@ var Query = {
|
|
|
19147
19120
|
var page = _ref.page,
|
|
19148
19121
|
perPage = _ref.perPage;
|
|
19149
19122
|
return {
|
|
19150
|
-
"db_name": dbName
|
|
19123
|
+
"db_name": dbName,
|
|
19151
19124
|
"entity": "OrderCatalog",
|
|
19152
19125
|
"sort": "OrderCatalog.createddate ASC",
|
|
19153
19126
|
"limit": {
|
|
@@ -19160,7 +19133,7 @@ var Query = {
|
|
|
19160
19133
|
},
|
|
19161
19134
|
editOrderCatalog: function editOrderCatalog(id) {
|
|
19162
19135
|
return {
|
|
19163
|
-
db_name: dbName
|
|
19136
|
+
db_name: dbName,
|
|
19164
19137
|
entity: "OrderCatalog",
|
|
19165
19138
|
filter: "OrderCatalog.activestatus==true && OrderCatalog._key=='".concat(id, "'"),
|
|
19166
19139
|
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)})"
|
|
@@ -19168,14 +19141,14 @@ var Query = {
|
|
|
19168
19141
|
},
|
|
19169
19142
|
attributeDelete: function attributeDelete(id) {
|
|
19170
19143
|
return {
|
|
19171
|
-
db_name: dbName
|
|
19144
|
+
db_name: dbName,
|
|
19172
19145
|
entity: "CA_OrderAttribApplicability",
|
|
19173
19146
|
filter: "CA_OrderAttribApplicability._key=='".concat(id, "'")
|
|
19174
19147
|
};
|
|
19175
19148
|
},
|
|
19176
19149
|
entityTypeName: function entityTypeName(name) {
|
|
19177
19150
|
return {
|
|
19178
|
-
db_name: dbName
|
|
19151
|
+
db_name: dbName,
|
|
19179
19152
|
entity: "Organization",
|
|
19180
19153
|
sort: "Organization.name",
|
|
19181
19154
|
filter: "Organization.OrgType ANY =='".concat(name, "' && Organization.activestatus==true"),
|
|
@@ -19196,7 +19169,7 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
19196
19169
|
}
|
|
19197
19170
|
|
|
19198
19171
|
return [_objectSpread2(_objectSpread2({
|
|
19199
|
-
db_name: dbName
|
|
19172
|
+
db_name: dbName,
|
|
19200
19173
|
entity: "OrderCatalog",
|
|
19201
19174
|
is_metadata: true,
|
|
19202
19175
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -19357,7 +19330,7 @@ var generateResJson = function generateResJson(data) {
|
|
|
19357
19330
|
|
|
19358
19331
|
var generateUpdateJSON = function generateUpdateJSON(editID, Status) {
|
|
19359
19332
|
return [{
|
|
19360
|
-
db_name: dbName
|
|
19333
|
+
db_name: dbName,
|
|
19361
19334
|
entity: "OrderCatalog",
|
|
19362
19335
|
filter: {
|
|
19363
19336
|
_key: editID
|
|
@@ -20331,7 +20304,7 @@ var orderCatalogSlice$1 = orderCatalogSlice.reducer;
|
|
|
20331
20304
|
var queries$d = {
|
|
20332
20305
|
sourceLocationType: function sourceLocationType() {
|
|
20333
20306
|
return {
|
|
20334
|
-
db_name: dbName
|
|
20307
|
+
db_name: dbName,
|
|
20335
20308
|
entity: "CodeableConceptMaster",
|
|
20336
20309
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
20337
20310
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'LOCATIONTYPE'",
|
|
@@ -20340,7 +20313,7 @@ var queries$d = {
|
|
|
20340
20313
|
},
|
|
20341
20314
|
orderingFacility: function orderingFacility() {
|
|
20342
20315
|
return {
|
|
20343
|
-
db_name: dbName
|
|
20316
|
+
db_name: dbName,
|
|
20344
20317
|
entity: "Organization",
|
|
20345
20318
|
sort: "Organization.name",
|
|
20346
20319
|
filter: "Organization.activestatus==true && Organization.active==true ",
|
|
@@ -20349,7 +20322,7 @@ var queries$d = {
|
|
|
20349
20322
|
},
|
|
20350
20323
|
performingDetails: function performingDetails() {
|
|
20351
20324
|
return {
|
|
20352
|
-
db_name: dbName
|
|
20325
|
+
db_name: dbName,
|
|
20353
20326
|
entity: "AMExtRefProvider",
|
|
20354
20327
|
filter: "AMExtRefProvider.activestatus==true && AMExtRefProvider.status == true",
|
|
20355
20328
|
return_fields: "AMExtRefProvider"
|
|
@@ -20357,7 +20330,7 @@ var queries$d = {
|
|
|
20357
20330
|
},
|
|
20358
20331
|
sourceLocation: function sourceLocation(list) {
|
|
20359
20332
|
return {
|
|
20360
|
-
db_name: dbName
|
|
20333
|
+
db_name: dbName,
|
|
20361
20334
|
entity: "LocationMaster",
|
|
20362
20335
|
sort: "LocationMaster.longdesc",
|
|
20363
20336
|
filter: "LocationMaster.activestatus==true && lower(LocationMaster.status) != 'in-active' && DOCUMENT(DOCUMENT(LocationMaster.locationType).coding)[*].display ANY =='".concat(list, "'"),
|
|
@@ -20366,7 +20339,7 @@ var queries$d = {
|
|
|
20366
20339
|
},
|
|
20367
20340
|
serviceApplicable: function serviceApplicable() {
|
|
20368
20341
|
return {
|
|
20369
|
-
db_name: dbName
|
|
20342
|
+
db_name: dbName,
|
|
20370
20343
|
entity: "CodeableConceptMaster",
|
|
20371
20344
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
20372
20345
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'SERVICEAPPLICABILITY'",
|
|
@@ -20409,7 +20382,7 @@ var generateJson$9 = function generateJson(data, _key) {
|
|
|
20409
20382
|
}
|
|
20410
20383
|
|
|
20411
20384
|
return [_objectSpread2(_objectSpread2({
|
|
20412
|
-
"db_name": dbName
|
|
20385
|
+
"db_name": dbName
|
|
20413
20386
|
}, filter), {}, {
|
|
20414
20387
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20415
20388
|
"is_metadata": true,
|
|
@@ -20688,7 +20661,7 @@ var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingL
|
|
|
20688
20661
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
20689
20662
|
_context6.prev = 2;
|
|
20690
20663
|
read = {
|
|
20691
|
-
"db_name": dbName
|
|
20664
|
+
"db_name": dbName,
|
|
20692
20665
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20693
20666
|
"sort": "CA_PerformingLocationforOrdLocn.createddate",
|
|
20694
20667
|
"filter": "CA_PerformingLocationforOrdLocn.activestatus==true",
|
|
@@ -20738,7 +20711,7 @@ var STATUS_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/changeSta
|
|
|
20738
20711
|
_context7.prev = 2;
|
|
20739
20712
|
list = payload.list, _key = payload._key;
|
|
20740
20713
|
queriesjson = [{
|
|
20741
|
-
"db_name": dbName
|
|
20714
|
+
"db_name": dbName,
|
|
20742
20715
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20743
20716
|
"is_metadata": true,
|
|
20744
20717
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -20851,11 +20824,11 @@ var ordernature_role_actions = _objectSpread2({}, ordernatureActions$1);
|
|
|
20851
20824
|
|
|
20852
20825
|
var query$8 = {
|
|
20853
20826
|
entityType: function entityType() {
|
|
20854
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20827
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20855
20828
|
},
|
|
20856
20829
|
entitynamewithType: function entitynamewithType(_ref) {
|
|
20857
20830
|
var name = _ref.name;
|
|
20858
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20831
|
+
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 }");
|
|
20859
20832
|
},
|
|
20860
20833
|
// entitynamewithType: ({ name }) => `{
|
|
20861
20834
|
// "db_name": "${dbName}",
|
|
@@ -20864,19 +20837,19 @@ var query$8 = {
|
|
|
20864
20837
|
// "return_fields": "Organization"
|
|
20865
20838
|
// }`,
|
|
20866
20839
|
applicableAppTypes: function applicableAppTypes() {
|
|
20867
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20840
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='Service' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20868
20841
|
},
|
|
20869
20842
|
scheduleMode: function scheduleMode() {
|
|
20870
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20843
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='SCHEDULEMODE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20871
20844
|
},
|
|
20872
20845
|
dayType: function dayType() {
|
|
20873
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20846
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='DAYTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20874
20847
|
},
|
|
20875
20848
|
consultationType: function consultationType() {
|
|
20876
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20849
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='CONSULTTYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20877
20850
|
},
|
|
20878
20851
|
resourceType: function resourceType() {
|
|
20879
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20852
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='RESOURCETYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20880
20853
|
},
|
|
20881
20854
|
resourcerole: function resourcerole(payload) {
|
|
20882
20855
|
var _payload$type, _payload$type$label;
|
|
@@ -20884,15 +20857,15 @@ var query$8 = {
|
|
|
20884
20857
|
if ((payload === null || payload === void 0 ? void 0 : (_payload$type = payload.type) === null || _payload$type === void 0 ? void 0 : (_payload$type$label = _payload$type.label) === null || _payload$type$label === void 0 ? void 0 : _payload$type$label.toLocaleLowerCase()) === "location") {
|
|
20885
20858
|
var _payload$ename$_id, _payload$ename;
|
|
20886
20859
|
|
|
20887
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20860
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"LocationMaster\",\n \"filter\": \"DOCUMENT(DOCUMENT( LocationMaster.locationType).coding)[0].code=='LT004' && LocationMaster.managingOrgID=='").concat((_payload$ename$_id = payload === null || payload === void 0 ? void 0 : (_payload$ename = payload.ename) === null || _payload$ename === void 0 ? void 0 : _payload$ename._id) !== null && _payload$ename$_id !== void 0 ? _payload$ename$_id : "Organization/10002", "' && LocationMaster.activestatus==true && LOWER(LocationMaster.status)=='active' \",\n \"return_fields\": \"merge(keep(LocationMaster,'id','_id','_key','locationRoletype','name','locationID','longdesc','shortdesc'),{locationRoletype:document(LocationMaster.locationRoletype)},{locationType:(for cod in CodeableConceptMaster filter cod._id == LocationMaster.locationType return {coding:document(cod.coding)})})\"\n }");
|
|
20888
20861
|
} else {
|
|
20889
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20862
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTROLE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n }");
|
|
20890
20863
|
}
|
|
20891
20864
|
},
|
|
20892
20865
|
readQuery: function readQuery(_ref2) {
|
|
20893
20866
|
var entity_type = _ref2.entity_type,
|
|
20894
20867
|
entity_name = _ref2.entity_name;
|
|
20895
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20868
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ResourceTimeTable\",\n \"filter\": \"ResourceTimeTable.activestatus==true ").concat(entity_type ? "&& ResourceTimeTable.entityType=='".concat(entity_type.value, "'") : "", " ").concat(entity_name ? "&& ResourceTimeTable.organization_id=='".concat(entity_name.value, "'") : "", "\",\n \"sort\": \"ResourceTimeTable.createddate\",\n \"return_fields\": \"MERGE(ResourceTimeTable,{organization_id:DOCUMENT(ResourceTimeTable.organization_id),ResourceRole:DOCUMENT(ResourceTimeTable.ResourceRole) ,ResourceType:DOCUMENT(ResourceTimeTable.ResourceType) ,applicable_app_type:(FOR apptype IN TO_ARRAY(ResourceTimeTable.applicable_app_type) RETURN DOCUMENT(apptype)) ,AppointmentDuration:(FOR appdur IN TO_ARRAY(ResourceTimeTable.AppointmentDuration) RETURN MERGE(appdur, {DayType:DOCUMENT(appdur.DayType),consultType:DOCUMENT(appdur.consultType)} )) })\"\n }");
|
|
20896
20869
|
},
|
|
20897
20870
|
readGroup: function readGroup() {
|
|
20898
20871
|
return "{\n \"db_name\": \"".concat(ruleDBName, "\",\n \"entity\": \"Groups\",\n \"filter\": \"Groups.activestatus==true\",\n \"return_fields\": \"{label : Groups.name, value:Groups.id}\"\n }");
|
|
@@ -20903,7 +20876,7 @@ var query$8 = {
|
|
|
20903
20876
|
},
|
|
20904
20877
|
affectedList: function affectedList(_ref4) {
|
|
20905
20878
|
var timeTableId = _ref4.timeTableId;
|
|
20906
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
20879
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"filter\": {\n \"Resourcettid\": \"").concat(timeTableId, "\"\n },\n \"queryid\": \"912ee8b2-9f50-4b2f-92ef-8133993f82ab\"\n }");
|
|
20907
20880
|
},
|
|
20908
20881
|
applicableAppTypes_: function applicableAppTypes_() {
|
|
20909
20882
|
return {
|
|
@@ -20947,7 +20920,7 @@ var upsertData = function upsertData(payload) {
|
|
|
20947
20920
|
}
|
|
20948
20921
|
|
|
20949
20922
|
return [_objectSpread2(_objectSpread2({
|
|
20950
|
-
"db_name": dbName
|
|
20923
|
+
"db_name": dbName,
|
|
20951
20924
|
"entity": "ResourceTimeTable",
|
|
20952
20925
|
"is_metadata": true
|
|
20953
20926
|
}, filter), {}, {
|
|
@@ -21231,7 +21204,7 @@ var actionsList = [{
|
|
|
21231
21204
|
var editId = _ref.editId,
|
|
21232
21205
|
status = _ref.status;
|
|
21233
21206
|
var body = [{
|
|
21234
|
-
"db_name": dbName
|
|
21207
|
+
"db_name": dbName,
|
|
21235
21208
|
"entity": "ResourceTimeTable",
|
|
21236
21209
|
"filter": "ResourceTimeTable._id==\"".concat(editId, "\""),
|
|
21237
21210
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -21443,23 +21416,12 @@ var timetableMasterSlice$1 = timetableMasterSlice.reducer;
|
|
|
21443
21416
|
|
|
21444
21417
|
var timeTableActions = _objectSpread2({}, timeTableMasterActions);
|
|
21445
21418
|
|
|
21446
|
-
|
|
21419
|
+
process.env.REACT_APP_DATABASE_NAME;
|
|
21447
21420
|
var query_ids = {
|
|
21448
21421
|
"scheduleManagementApiSlice/practitionerSlots": "562d7099-7b83-49ec-9bdc-364246ca185d",
|
|
21449
21422
|
"slotApiSlice/readSlot": {
|
|
21450
21423
|
practionerid: "30fcb559-96fb-48f6-a955-e47dd97bc851",
|
|
21451
|
-
clinicid: "30fcb559-96fb-48f6-a955-e47dd97bc951"
|
|
21452
|
-
query: function query(_ref) {
|
|
21453
|
-
var start = _ref.start,
|
|
21454
|
-
end = _ref.end,
|
|
21455
|
-
id = _ref.id;
|
|
21456
|
-
return {
|
|
21457
|
-
"db_name": dbName,
|
|
21458
|
-
"entity": "Schedule",
|
|
21459
|
-
"filter": "Schedule.start >= ".concat(start, " AND Schedule.end <= ").concat(end, " AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ").concat(id),
|
|
21460
|
-
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.status!='blocked' AND slt.start >= ".concat(moment.utc().unix(), " AND slt.activestatus==true sort slt._id asc RETURN merge(slt, {DayType: Document(slt.DayType)}))})")
|
|
21461
|
-
};
|
|
21462
|
-
}
|
|
21424
|
+
clinicid: "30fcb559-96fb-48f6-a955-e47dd97bc951"
|
|
21463
21425
|
},
|
|
21464
21426
|
"appointmentApiSlice/readAppointment": "0bfea3d4-fe24-43f9-b5b8-cf9ff4365fab",
|
|
21465
21427
|
"appointmentApiSlice/deleteAppointment": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -21469,11 +21431,11 @@ var query_ids = {
|
|
|
21469
21431
|
};
|
|
21470
21432
|
|
|
21471
21433
|
var query$7 = {
|
|
21472
|
-
role_type: "{\n \"db_name\": \"".concat(dbName
|
|
21473
|
-
all_practitioner: "{\n \"db_name\": \"".concat(dbName
|
|
21434
|
+
role_type: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='RESOURCETYPE' AND CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})\"\n}"),
|
|
21435
|
+
all_practitioner: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Practitioner\",\n \"filter\": \"Practitioner.status==true\",\n \"return_fields\": \"MERGE(KEEP(Practitioner,'_id','id','name','_key','practitioner_role'),{name:(for hu in HumanNameMaster filter hu._id in Practitioner.name return merge(hu,{use:(for us in CodeableConceptMaster filter us._id == hu.use return merge(us,{coding:document(us.coding)}))},{prefix:(for pre in CodeableConceptMaster filter pre._id == hu.prefix return merge(pre,{coding:document(pre.coding)}))},{suffix:(for suf in CodeableConceptMaster filter suf._id == hu.suffix return merge(suf,{coding:document(suf.coding)}))}))},{practitioner_role:(for prac in PractitionerRole filter prac._id in Practitioner.practitioner_role return merge (keep(prac,'role'),{role:(for rol in CodeableConceptMaster filter rol._id == prac.role return merge(rol,{coding:document(rol.coding)}))}))})\"\n}"),
|
|
21474
21436
|
practitoner_slot: function practitoner_slot(startDate, endDate, practitonerId) {
|
|
21475
21437
|
return {
|
|
21476
|
-
db_name: dbName
|
|
21438
|
+
db_name: dbName,
|
|
21477
21439
|
filter: {
|
|
21478
21440
|
start: parseInt("".concat(startDate)),
|
|
21479
21441
|
end: parseInt("".concat(endDate)),
|
|
@@ -21484,7 +21446,7 @@ var query$7 = {
|
|
|
21484
21446
|
},
|
|
21485
21447
|
release_schedule: function release_schedule(startDate, endDate, practitonerId, reason) {
|
|
21486
21448
|
return {
|
|
21487
|
-
db_name: dbName
|
|
21449
|
+
db_name: dbName,
|
|
21488
21450
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
21489
21451
|
start: parseInt("".concat(startDate)),
|
|
21490
21452
|
end: parseInt("".concat(endDate)),
|
|
@@ -21493,7 +21455,7 @@ var query$7 = {
|
|
|
21493
21455
|
},
|
|
21494
21456
|
block_schedule: function block_schedule(startDate, endDate, practitonerId, reason) {
|
|
21495
21457
|
return {
|
|
21496
|
-
db_name: dbName
|
|
21458
|
+
db_name: dbName,
|
|
21497
21459
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
21498
21460
|
start: parseInt("".concat(startDate)),
|
|
21499
21461
|
end: parseInt("".concat(endDate)),
|
|
@@ -21502,7 +21464,7 @@ var query$7 = {
|
|
|
21502
21464
|
},
|
|
21503
21465
|
block_partial: function block_partial(startDate, endDate, starttime, endtime, practitonerId, days, reason) {
|
|
21504
21466
|
return {
|
|
21505
|
-
db_name: dbName
|
|
21467
|
+
db_name: dbName,
|
|
21506
21468
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
21507
21469
|
startDate: "".concat(startDate),
|
|
21508
21470
|
endDate: "".concat(endDate),
|
|
@@ -21512,10 +21474,10 @@ var query$7 = {
|
|
|
21512
21474
|
blockreason: "".concat(reason)
|
|
21513
21475
|
};
|
|
21514
21476
|
},
|
|
21515
|
-
release_block_reason: "{\n \"db_name\": \"".concat(dbName
|
|
21477
|
+
release_block_reason: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ReasonMaster\",\n \"filter\": \"ReasonMaster.activestatus==true\",\n \"return_fields\": \"{_key:ReasonMaster._key,id:ReasonMaster.id,_id:ReasonMaster._id,ReasonCode:ReasonMaster.ReasonCode,ReasonDesc:ReasonMaster.ReasonDesc}\"\n}"),
|
|
21516
21478
|
specific_slots: function specific_slots(dayStart, practitonerID, slotStart, slotEnd) {
|
|
21517
21479
|
return {
|
|
21518
|
-
db_name: dbName
|
|
21480
|
+
db_name: dbName,
|
|
21519
21481
|
entity: "Schedule,Slot",
|
|
21520
21482
|
filter: {
|
|
21521
21483
|
Schedule: "Schedule.start>=".concat(dayStart, " AND DOCUMENT(Schedule.resourceCode).id==").concat(parseInt(practitonerID)),
|
|
@@ -22031,7 +21993,7 @@ var availability_management_actions = _objectSpread2(_objectSpread2(_objectSprea
|
|
|
22031
21993
|
var queries$c = {
|
|
22032
21994
|
getTreeStuct: function getTreeStuct(type) {
|
|
22033
21995
|
return {
|
|
22034
|
-
db_name: dbName
|
|
21996
|
+
db_name: dbName,
|
|
22035
21997
|
entity: "Organization",
|
|
22036
21998
|
// filter: "'CodingMaster/11898' IN Organization.OrgType",
|
|
22037
21999
|
filter: "Organization.ParentOrgID ==[] && Organization.activestatus==true && Organization.isExternal==".concat(type.isexternal),
|
|
@@ -22042,7 +22004,7 @@ var queries$c = {
|
|
|
22042
22004
|
},
|
|
22043
22005
|
entityType: function entityType() {
|
|
22044
22006
|
return {
|
|
22045
|
-
db_name: dbName
|
|
22007
|
+
db_name: dbName,
|
|
22046
22008
|
entity: "CodeableConceptMaster",
|
|
22047
22009
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22048
22010
|
filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22051,7 +22013,7 @@ var queries$c = {
|
|
|
22051
22013
|
},
|
|
22052
22014
|
getParentEntityFull: function getParentEntityFull() {
|
|
22053
22015
|
return {
|
|
22054
|
-
db_name: dbName
|
|
22016
|
+
db_name: dbName,
|
|
22055
22017
|
entity: "Organization",
|
|
22056
22018
|
sort: "Organization.name",
|
|
22057
22019
|
filter: "Organization.activestatus==true AND Organization.active==true",
|
|
@@ -22068,7 +22030,7 @@ var queries$c = {
|
|
|
22068
22030
|
// "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}",
|
|
22069
22031
|
// };
|
|
22070
22032
|
return {
|
|
22071
|
-
"db_name": dbName
|
|
22033
|
+
"db_name": dbName,
|
|
22072
22034
|
"entity": "Organization",
|
|
22073
22035
|
"sort": "Organization.name",
|
|
22074
22036
|
"filter": "Organization.activestatus==true AND Organization.active==true && Organization.isExternal==".concat(type.isexternal, " && DOCUMENT(Organization.OrgType)[*].code ANY == '").concat(type.entityType, "'"),
|
|
@@ -22077,7 +22039,7 @@ var queries$c = {
|
|
|
22077
22039
|
},
|
|
22078
22040
|
getLevelOfCare: function getLevelOfCare() {
|
|
22079
22041
|
return {
|
|
22080
|
-
db_name: dbName
|
|
22042
|
+
db_name: dbName,
|
|
22081
22043
|
entity: "LevelOfCare",
|
|
22082
22044
|
sort: "LevelOfCare.description",
|
|
22083
22045
|
filter: "LevelOfCare.active==true && LevelOfCare.activestatus==true",
|
|
@@ -22086,7 +22048,7 @@ var queries$c = {
|
|
|
22086
22048
|
},
|
|
22087
22049
|
orgUseIdenifi: function orgUseIdenifi() {
|
|
22088
22050
|
return {
|
|
22089
|
-
db_name: dbName
|
|
22051
|
+
db_name: dbName,
|
|
22090
22052
|
entity: "CodeableConceptMaster",
|
|
22091
22053
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22092
22054
|
filter: "CodeableConceptMaster.Type=='USE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22095,7 +22057,7 @@ var queries$c = {
|
|
|
22095
22057
|
},
|
|
22096
22058
|
orgIdTypeIdenifi: function orgIdTypeIdenifi() {
|
|
22097
22059
|
return {
|
|
22098
|
-
db_name: dbName
|
|
22060
|
+
db_name: dbName,
|
|
22099
22061
|
entity: "CodeableConceptMaster",
|
|
22100
22062
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22101
22063
|
filter: "CodeableConceptMaster.Type=='ORGIDENTIFICATIONTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22104,7 +22066,7 @@ var queries$c = {
|
|
|
22104
22066
|
},
|
|
22105
22067
|
aliastype: function aliastype() {
|
|
22106
22068
|
return {
|
|
22107
|
-
db_name: dbName
|
|
22069
|
+
db_name: dbName,
|
|
22108
22070
|
entity: "CodeableConceptMaster",
|
|
22109
22071
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22110
22072
|
filter: "CodeableConceptMaster.Type=='ACCOUNTENTITYTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22114,7 +22076,7 @@ var queries$c = {
|
|
|
22114
22076
|
//ORGANIZATION TREE DETAILS
|
|
22115
22077
|
getTreeDetails: function getTreeDetails(_key) {
|
|
22116
22078
|
return {
|
|
22117
|
-
db_name: dbName
|
|
22079
|
+
db_name: dbName,
|
|
22118
22080
|
entity: "Organization",
|
|
22119
22081
|
filter: "Organization._key=='".concat(_key, "' AND Organization.activestatus==true"),
|
|
22120
22082
|
// filter: `Organization._key=='10044' AND Organization.activestatus==true`,
|
|
@@ -22124,7 +22086,7 @@ var queries$c = {
|
|
|
22124
22086
|
//GET PARENT ORG NAME BY ID
|
|
22125
22087
|
getParentOrgNameById: function getParentOrgNameById(_key) {
|
|
22126
22088
|
return {
|
|
22127
|
-
db_name: dbName
|
|
22089
|
+
db_name: dbName,
|
|
22128
22090
|
entity: "Organization",
|
|
22129
22091
|
filter: "Organization.id == ".concat(_key),
|
|
22130
22092
|
return_fields: "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,parentorgid:Organization.ParentOrgID}"
|
|
@@ -22133,7 +22095,7 @@ var queries$c = {
|
|
|
22133
22095
|
//UPSERT STATUS
|
|
22134
22096
|
upsertSatus: function upsertSatus(key, status) {
|
|
22135
22097
|
return [{
|
|
22136
|
-
db_name: dbName
|
|
22098
|
+
db_name: dbName,
|
|
22137
22099
|
entity: "Organization",
|
|
22138
22100
|
is_metadata: true,
|
|
22139
22101
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -22147,7 +22109,7 @@ var queries$c = {
|
|
|
22147
22109
|
},
|
|
22148
22110
|
orgAddType: function orgAddType() {
|
|
22149
22111
|
return {
|
|
22150
|
-
db_name: dbName
|
|
22112
|
+
db_name: dbName,
|
|
22151
22113
|
entity: "CodeableConceptMaster",
|
|
22152
22114
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22153
22115
|
filter: "CodeableConceptMaster.Type=='ADDRESSTYPE'",
|
|
@@ -22156,7 +22118,7 @@ var queries$c = {
|
|
|
22156
22118
|
},
|
|
22157
22119
|
orgAddUSE: function orgAddUSE() {
|
|
22158
22120
|
return {
|
|
22159
|
-
db_name: dbName
|
|
22121
|
+
db_name: dbName,
|
|
22160
22122
|
entity: "CodeableConceptMaster",
|
|
22161
22123
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22162
22124
|
filter: "CodeableConceptMaster.Type=='ADDRESSUSE'",
|
|
@@ -22165,7 +22127,7 @@ var queries$c = {
|
|
|
22165
22127
|
},
|
|
22166
22128
|
orgAddCity: function orgAddCity() {
|
|
22167
22129
|
return {
|
|
22168
|
-
db_name: dbName
|
|
22130
|
+
db_name: dbName,
|
|
22169
22131
|
entity: "SMGeographicMaster",
|
|
22170
22132
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22171
22133
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='city' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
@@ -22174,7 +22136,7 @@ var queries$c = {
|
|
|
22174
22136
|
},
|
|
22175
22137
|
orgAddDISTRICT: function orgAddDISTRICT(val) {
|
|
22176
22138
|
return {
|
|
22177
|
-
db_name: dbName
|
|
22139
|
+
db_name: dbName,
|
|
22178
22140
|
entity: "SMGeographicMaster",
|
|
22179
22141
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22180
22142
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='district' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22183,7 +22145,7 @@ var queries$c = {
|
|
|
22183
22145
|
},
|
|
22184
22146
|
orgAddSTATE: function orgAddSTATE(val) {
|
|
22185
22147
|
return {
|
|
22186
|
-
db_name: dbName
|
|
22148
|
+
db_name: dbName,
|
|
22187
22149
|
entity: "SMGeographicMaster",
|
|
22188
22150
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22189
22151
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='state' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22192,7 +22154,7 @@ var queries$c = {
|
|
|
22192
22154
|
},
|
|
22193
22155
|
orgAddCOUNTRY: function orgAddCOUNTRY(val) {
|
|
22194
22156
|
return {
|
|
22195
|
-
db_name: dbName
|
|
22157
|
+
db_name: dbName,
|
|
22196
22158
|
entity: "SMGeographicMaster",
|
|
22197
22159
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22198
22160
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22201,7 +22163,7 @@ var queries$c = {
|
|
|
22201
22163
|
},
|
|
22202
22164
|
orgAddPINCODE: function orgAddPINCODE(val) {
|
|
22203
22165
|
return {
|
|
22204
|
-
db_name: dbName
|
|
22166
|
+
db_name: dbName,
|
|
22205
22167
|
entity: "SMGeographicMaster",
|
|
22206
22168
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22207
22169
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='pincode' && SMGeographicMaster.parentGeogLevelCode=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22210,7 +22172,7 @@ var queries$c = {
|
|
|
22210
22172
|
},
|
|
22211
22173
|
orgContactDetailMode: function orgContactDetailMode() {
|
|
22212
22174
|
return {
|
|
22213
|
-
db_name: dbName
|
|
22175
|
+
db_name: dbName,
|
|
22214
22176
|
entity: "CodeableConceptMaster",
|
|
22215
22177
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22216
22178
|
filter: "CodeableConceptMaster.Type=='CONTACTSYSTEM'",
|
|
@@ -22219,7 +22181,7 @@ var queries$c = {
|
|
|
22219
22181
|
},
|
|
22220
22182
|
orgContactDetailCode: function orgContactDetailCode() {
|
|
22221
22183
|
return {
|
|
22222
|
-
db_name: dbName
|
|
22184
|
+
db_name: dbName,
|
|
22223
22185
|
entity: "SMGeographicMaster",
|
|
22224
22186
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22225
22187
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
@@ -22228,7 +22190,7 @@ var queries$c = {
|
|
|
22228
22190
|
},
|
|
22229
22191
|
orgContactDetailUse: function orgContactDetailUse() {
|
|
22230
22192
|
return {
|
|
22231
|
-
db_name: dbName
|
|
22193
|
+
db_name: dbName,
|
|
22232
22194
|
entity: "CodeableConceptMaster",
|
|
22233
22195
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22234
22196
|
filter: "CodeableConceptMaster.Type=='USE'",
|
|
@@ -22237,7 +22199,7 @@ var queries$c = {
|
|
|
22237
22199
|
},
|
|
22238
22200
|
orgContactDetailPriority: function orgContactDetailPriority() {
|
|
22239
22201
|
return {
|
|
22240
|
-
db_name: dbName
|
|
22202
|
+
db_name: dbName,
|
|
22241
22203
|
entity: "CodeableConceptMaster",
|
|
22242
22204
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22243
22205
|
filter: "CodeableConceptMaster.Type=='PRIORITY'",
|
|
@@ -22246,7 +22208,7 @@ var queries$c = {
|
|
|
22246
22208
|
},
|
|
22247
22209
|
orgNamePrefix: function orgNamePrefix() {
|
|
22248
22210
|
return {
|
|
22249
|
-
db_name: dbName
|
|
22211
|
+
db_name: dbName,
|
|
22250
22212
|
entity: "CodeableConceptMaster",
|
|
22251
22213
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22252
22214
|
filter: "CodeableConceptMaster.Type=='NAMEPREFIX' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22255,7 +22217,7 @@ var queries$c = {
|
|
|
22255
22217
|
},
|
|
22256
22218
|
orgNameSuffix: function orgNameSuffix() {
|
|
22257
22219
|
return {
|
|
22258
|
-
db_name: dbName
|
|
22220
|
+
db_name: dbName,
|
|
22259
22221
|
entity: "CodeableConceptMaster",
|
|
22260
22222
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22261
22223
|
filter: "CodeableConceptMaster.Type=='NAMESUFFIX' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22264,7 +22226,7 @@ var queries$c = {
|
|
|
22264
22226
|
},
|
|
22265
22227
|
positionDesi: function positionDesi() {
|
|
22266
22228
|
return {
|
|
22267
|
-
db_name: dbName
|
|
22229
|
+
db_name: dbName,
|
|
22268
22230
|
entity: "CodeableConceptMaster",
|
|
22269
22231
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22270
22232
|
filter: "CodeableConceptMaster.Type=='DESIGNATION' && CodeableConceptMaster.activestatus==true",
|
|
@@ -22273,7 +22235,7 @@ var queries$c = {
|
|
|
22273
22235
|
},
|
|
22274
22236
|
SpecialtyDrop: function SpecialtyDrop() {
|
|
22275
22237
|
return {
|
|
22276
|
-
db_name: dbName
|
|
22238
|
+
db_name: dbName,
|
|
22277
22239
|
entity: "CodeableConceptMaster",
|
|
22278
22240
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22279
22241
|
filter: "CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.activestatus==true",
|
|
@@ -22559,7 +22521,7 @@ var generateJson$8 = {
|
|
|
22559
22521
|
}
|
|
22560
22522
|
|
|
22561
22523
|
return [_objectSpread2(_objectSpread2({
|
|
22562
|
-
db_name: dbName
|
|
22524
|
+
db_name: dbName,
|
|
22563
22525
|
entity: "Organization",
|
|
22564
22526
|
is_metadata: true,
|
|
22565
22527
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -24358,7 +24320,7 @@ var organization_role_actions = _objectSpread2({}, organizationActions);
|
|
|
24358
24320
|
var queries$b = {
|
|
24359
24321
|
careTypeRead: function careTypeRead() {
|
|
24360
24322
|
return {
|
|
24361
|
-
db_name: dbName
|
|
24323
|
+
db_name: dbName,
|
|
24362
24324
|
entity: "CareType",
|
|
24363
24325
|
filter: "CareType.activestatus==true",
|
|
24364
24326
|
return_fields: "{id:CareType.id,_id:CareType._id,careType:CareType.careType,description:CareType.description,carelevelRank:CareType.carelevelRank}"
|
|
@@ -24366,7 +24328,7 @@ var queries$b = {
|
|
|
24366
24328
|
},
|
|
24367
24329
|
levelOfCareRead: function levelOfCareRead() {
|
|
24368
24330
|
return {
|
|
24369
|
-
db_name: dbName
|
|
24331
|
+
db_name: dbName,
|
|
24370
24332
|
entity: "LevelOfCare",
|
|
24371
24333
|
filter: "LevelOfCare.activestatus==true",
|
|
24372
24334
|
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}",
|
|
@@ -24375,7 +24337,7 @@ var queries$b = {
|
|
|
24375
24337
|
},
|
|
24376
24338
|
levelOfCareSinleRead: function levelOfCareSinleRead(key) {
|
|
24377
24339
|
return {
|
|
24378
|
-
db_name: dbName
|
|
24340
|
+
db_name: dbName,
|
|
24379
24341
|
entity: "LevelOfCare",
|
|
24380
24342
|
filter: "LevelOfCare.activestatus==true && LevelOfCare._key=='".concat(key, "'"),
|
|
24381
24343
|
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active}"
|
|
@@ -24383,7 +24345,7 @@ var queries$b = {
|
|
|
24383
24345
|
},
|
|
24384
24346
|
status_update_level_of_care: function status_update_level_of_care(data) {
|
|
24385
24347
|
return [{
|
|
24386
|
-
db_name: dbName
|
|
24348
|
+
db_name: dbName,
|
|
24387
24349
|
entity: "LevelOfCare",
|
|
24388
24350
|
filter: {
|
|
24389
24351
|
_key: data._key
|
|
@@ -24407,7 +24369,7 @@ var queries$b = {
|
|
|
24407
24369
|
}
|
|
24408
24370
|
|
|
24409
24371
|
return [_objectSpread2(_objectSpread2({
|
|
24410
|
-
db_name: dbName
|
|
24372
|
+
db_name: dbName,
|
|
24411
24373
|
entity: "LevelOfCare"
|
|
24412
24374
|
}, filter), {}, {
|
|
24413
24375
|
is_metadata: true,
|
|
@@ -24424,7 +24386,7 @@ var queries$b = {
|
|
|
24424
24386
|
//HEALTH CARE SERVICE READ
|
|
24425
24387
|
healthCareServiceRead: function healthCareServiceRead() {
|
|
24426
24388
|
return {
|
|
24427
|
-
db_name: dbName
|
|
24389
|
+
db_name: dbName,
|
|
24428
24390
|
entity: "HealthcareService",
|
|
24429
24391
|
filter: "HealthcareService.activestatus==true",
|
|
24430
24392
|
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)})}",
|
|
@@ -24434,7 +24396,7 @@ var queries$b = {
|
|
|
24434
24396
|
//HEALTH CARE SERVICE STATUS CHANGE
|
|
24435
24397
|
healthCareServiceStatusChange: function healthCareServiceStatusChange(data) {
|
|
24436
24398
|
return [{
|
|
24437
|
-
db_name: dbName
|
|
24399
|
+
db_name: dbName,
|
|
24438
24400
|
entity: "HealthcareService",
|
|
24439
24401
|
filter: {
|
|
24440
24402
|
_key: data._key
|
|
@@ -24457,7 +24419,7 @@ var queries$b = {
|
|
|
24457
24419
|
// },
|
|
24458
24420
|
editHealthCareService: function editHealthCareService(_key) {
|
|
24459
24421
|
return {
|
|
24460
|
-
db_name: dbName
|
|
24422
|
+
db_name: dbName,
|
|
24461
24423
|
entity: "HealthcareService",
|
|
24462
24424
|
filter: "HealthcareService.activestatus==true && HealthcareService._key=='".concat(_key, "'"),
|
|
24463
24425
|
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:(for loc in CodeableConceptMaster filter loc._id == hs.locationtype return merge(loc,{coding:(document(loc.coding))})),locationid:document(hs.locationid)})}"
|
|
@@ -24466,7 +24428,7 @@ var queries$b = {
|
|
|
24466
24428
|
//SPECIALITY READ
|
|
24467
24429
|
specialityRead: function specialityRead() {
|
|
24468
24430
|
return {
|
|
24469
|
-
db_name: dbName
|
|
24431
|
+
db_name: dbName,
|
|
24470
24432
|
entity: "Specialty",
|
|
24471
24433
|
filter: "Specialty.activestatus==true && Specialty.parentspecialtyCode==''",
|
|
24472
24434
|
return_fields: "merge(Specialty,{facilities:document(Specialty.facilities)},{parentspecialtyCode:document(Specialty.parentspecialtyCode)})"
|
|
@@ -24475,7 +24437,7 @@ var queries$b = {
|
|
|
24475
24437
|
//SPECIALITY CHILD READ
|
|
24476
24438
|
specialityChildRead: function specialityChildRead(id) {
|
|
24477
24439
|
return {
|
|
24478
|
-
db_name: dbName
|
|
24440
|
+
db_name: dbName,
|
|
24479
24441
|
entity: "Specialty",
|
|
24480
24442
|
filter: "Specialty.activestatus==true && Specialty.parentspecialtyCode=='".concat(id, "'"),
|
|
24481
24443
|
return_fields: "merge(Specialty,{facilities:document(Specialty.facilities)},{parentspecialtyCode:document(Specialty.parentspecialtyCode)})"
|
|
@@ -24484,7 +24446,7 @@ var queries$b = {
|
|
|
24484
24446
|
//SPECIALITY EDIT
|
|
24485
24447
|
editSpeciality: function editSpeciality(_key) {
|
|
24486
24448
|
return {
|
|
24487
|
-
db_name: dbName
|
|
24449
|
+
db_name: dbName,
|
|
24488
24450
|
entity: "Specialty",
|
|
24489
24451
|
filter: "Specialty.activestatus==true && Specialty._key=='".concat(_key, "'"),
|
|
24490
24452
|
return_fields: "merge(Specialty,{facilities:(for fac in document(Specialty.facilities) return merge(fac,{orgId:document(fac.orgId)}))},{parentspecialtyCode:document(Specialty.parentspecialtyCode)})"
|
|
@@ -24506,7 +24468,7 @@ var generateJson$7 = function generateJson(data) {
|
|
|
24506
24468
|
}
|
|
24507
24469
|
|
|
24508
24470
|
var arr = [_objectSpread2(_objectSpread2({
|
|
24509
|
-
"db_name": dbName
|
|
24471
|
+
"db_name": dbName,
|
|
24510
24472
|
"entity": "HealthcareService"
|
|
24511
24473
|
}, filter), {}, {
|
|
24512
24474
|
"is_metadata": true,
|
|
@@ -24555,7 +24517,7 @@ var generateJsonSpeciality = function generateJsonSpeciality(data) {
|
|
|
24555
24517
|
}
|
|
24556
24518
|
|
|
24557
24519
|
var arr = [_objectSpread2(_objectSpread2({
|
|
24558
|
-
"db_name": dbName
|
|
24520
|
+
"db_name": dbName,
|
|
24559
24521
|
"entity": "Specialty"
|
|
24560
24522
|
}, filter), {}, {
|
|
24561
24523
|
"is_metadata": true,
|
|
@@ -24692,7 +24654,7 @@ var generateapplicableFacility = function generateapplicableFacility(data, state
|
|
|
24692
24654
|
var masterQuery$3 = {
|
|
24693
24655
|
careTypeMasterQuery: function careTypeMasterQuery() {
|
|
24694
24656
|
return {
|
|
24695
|
-
db_name: dbName
|
|
24657
|
+
db_name: dbName,
|
|
24696
24658
|
entity: "CareType",
|
|
24697
24659
|
sort: "CareType.description",
|
|
24698
24660
|
filter: "CareType.activestatus==true",
|
|
@@ -24701,7 +24663,7 @@ var masterQuery$3 = {
|
|
|
24701
24663
|
},
|
|
24702
24664
|
healthcareservice_LocationDescription_MasterQuery: function healthcareservice_LocationDescription_MasterQuery(id) {
|
|
24703
24665
|
return {
|
|
24704
|
-
db_name: dbName
|
|
24666
|
+
db_name: dbName,
|
|
24705
24667
|
entity: "LocationMaster",
|
|
24706
24668
|
sort: "LocationMaster.locationID",
|
|
24707
24669
|
filter: "LocationMaster.activestatus==true && LocationMaster.locationType=='".concat(id, "'"),
|
|
@@ -24710,7 +24672,7 @@ var masterQuery$3 = {
|
|
|
24710
24672
|
},
|
|
24711
24673
|
specialityMasterParentSpeciality: function specialityMasterParentSpeciality() {
|
|
24712
24674
|
return {
|
|
24713
|
-
db_name: dbName
|
|
24675
|
+
db_name: dbName,
|
|
24714
24676
|
entity: "Specialty",
|
|
24715
24677
|
filter: "Specialty.activestatus==true",
|
|
24716
24678
|
return_fields: "{_id:Specialty._id,_key:Specialty._key,id:Specialty.id,specialtyCode:Specialty.specialtyCode,description:Specialty.description,parentspecialtyCode:document(Specialty.parentspecialtyCode).specialtyCode}"
|
|
@@ -24718,7 +24680,7 @@ var masterQuery$3 = {
|
|
|
24718
24680
|
},
|
|
24719
24681
|
specialityMasterFacility: function specialityMasterFacility() {
|
|
24720
24682
|
return {
|
|
24721
|
-
db_name: dbName
|
|
24683
|
+
db_name: dbName,
|
|
24722
24684
|
entity: "Organization",
|
|
24723
24685
|
filter: "Organization.activestatus==true && lower(first(document(Organization.OrgType)[*].display)) == 'facility'",
|
|
24724
24686
|
return_fields: "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
@@ -24726,17 +24688,17 @@ var masterQuery$3 = {
|
|
|
24726
24688
|
}
|
|
24727
24689
|
};
|
|
24728
24690
|
var masterQueryHealthCareService = {
|
|
24729
|
-
serviceCategory: "{\n \"db_name\": \"".concat(dbName
|
|
24730
|
-
serviceType: "{\n \"db_name\": \"".concat(dbName
|
|
24731
|
-
speciality: "{\n \"db_name\": \"".concat(dbName
|
|
24732
|
-
facilityName: "{\n \"db_name\": \"".concat(dbName
|
|
24691
|
+
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 }"),
|
|
24692
|
+
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 }"),
|
|
24693
|
+
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 }"),
|
|
24694
|
+
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 }"),
|
|
24733
24695
|
// locationType : `{
|
|
24734
24696
|
// "db_name": dbName,
|
|
24735
24697
|
// "entity": "CodingMaster",
|
|
24736
24698
|
// "filter": "CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONTYPE'",
|
|
24737
24699
|
// "return_fields": "CodingMaster"
|
|
24738
24700
|
// }`,
|
|
24739
|
-
locationType: "{\n \"db_name\": \"".concat(dbName
|
|
24701
|
+
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 }")
|
|
24740
24702
|
};
|
|
24741
24703
|
|
|
24742
24704
|
var _extraReducers$n;
|
|
@@ -25913,7 +25875,7 @@ var organization_config_master_action = _objectSpread2({}, organizationConfigMas
|
|
|
25913
25875
|
var query$6 = {
|
|
25914
25876
|
signInRead: function signInRead(list) {
|
|
25915
25877
|
return {
|
|
25916
|
-
db_name: dbName
|
|
25878
|
+
db_name: dbName,
|
|
25917
25879
|
entity: "Person_ContactPointMaster_E",
|
|
25918
25880
|
filter: "LOWER(DOCUMENT(Person_ContactPointMaster_E._to).system)=='email' && LOWER(DOCUMENT(Person_ContactPointMaster_E._to).value)=='".concat(list, "'"),
|
|
25919
25881
|
return_fields: "DOCUMENT(Person_ContactPointMaster_E._from)"
|
|
@@ -25921,7 +25883,7 @@ var query$6 = {
|
|
|
25921
25883
|
},
|
|
25922
25884
|
IdmGetPermission: function IdmGetPermission(id) {
|
|
25923
25885
|
return {
|
|
25924
|
-
db_name: "".concat(dbName
|
|
25886
|
+
db_name: "".concat(dbName),
|
|
25925
25887
|
entity: "PermissionRoleMapping",
|
|
25926
25888
|
filter: "PermissionRoleMapping.role_id == ".concat(id),
|
|
25927
25889
|
return_fields: "{PermissionRoleMapping}"
|
|
@@ -25999,7 +25961,7 @@ var SEARCH_PRACTIONER = createAsyncThunk("signInApiSlice/SearchPractioner", /*#_
|
|
|
25999
25961
|
_context2.prev = 2;
|
|
26000
25962
|
_payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email;
|
|
26001
25963
|
body = {
|
|
26002
|
-
db_name: dbName
|
|
25964
|
+
db_name: dbName,
|
|
26003
25965
|
queryid: query_ids["signInApiSlice/SearchPractioner"],
|
|
26004
25966
|
filter: {
|
|
26005
25967
|
emailId: email
|
|
@@ -26254,7 +26216,7 @@ var queries$a = {
|
|
|
26254
26216
|
"filter": "CodeableConceptMaster.Type == 'PRACTROLE' && CodeableConceptMaster.status == true"
|
|
26255
26217
|
};
|
|
26256
26218
|
return _objectSpread2(_objectSpread2({
|
|
26257
|
-
"db_name": dbName
|
|
26219
|
+
"db_name": dbName,
|
|
26258
26220
|
"entity": "CodeableConceptMaster"
|
|
26259
26221
|
}, filter), {}, {
|
|
26260
26222
|
"sort": "CodeableConceptMaster.createddate",
|
|
@@ -26271,7 +26233,7 @@ var queries$a = {
|
|
|
26271
26233
|
}
|
|
26272
26234
|
|
|
26273
26235
|
return _objectSpread2(_objectSpread2({
|
|
26274
|
-
"db_name": dbName
|
|
26236
|
+
"db_name": dbName,
|
|
26275
26237
|
"entity": "PermissionRoleMapping"
|
|
26276
26238
|
}, filter), {}, {
|
|
26277
26239
|
"return_fields": "{PermissionRoleMapping}"
|
|
@@ -26283,7 +26245,7 @@ var queries$a = {
|
|
|
26283
26245
|
// }
|
|
26284
26246
|
|
|
26285
26247
|
return _objectSpread2(_objectSpread2({
|
|
26286
|
-
"db_name": dbName
|
|
26248
|
+
"db_name": dbName,
|
|
26287
26249
|
"entity": "PermissionManagement"
|
|
26288
26250
|
}, filter), {}, {
|
|
26289
26251
|
"return_fields": "{PermissionManagement}"
|
|
@@ -26301,7 +26263,7 @@ var queries$a = {
|
|
|
26301
26263
|
}
|
|
26302
26264
|
|
|
26303
26265
|
return [_objectSpread2(_objectSpread2({
|
|
26304
|
-
"db_name": dbName
|
|
26266
|
+
"db_name": dbName,
|
|
26305
26267
|
"entity": "PermissionRoleMapping",
|
|
26306
26268
|
"is_metadata": true,
|
|
26307
26269
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26321,7 +26283,7 @@ var queries$a = {
|
|
|
26321
26283
|
}
|
|
26322
26284
|
|
|
26323
26285
|
return [_objectSpread2(_objectSpread2({
|
|
26324
|
-
"db_name": dbName
|
|
26286
|
+
"db_name": dbName,
|
|
26325
26287
|
"entity": "CodeableConceptMaster",
|
|
26326
26288
|
"is_metadata": true,
|
|
26327
26289
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26341,7 +26303,7 @@ var queries$a = {
|
|
|
26341
26303
|
}
|
|
26342
26304
|
|
|
26343
26305
|
return [_objectSpread2({
|
|
26344
|
-
"db_name": dbName
|
|
26306
|
+
"db_name": dbName,
|
|
26345
26307
|
"entity": "CodeableConceptMaster",
|
|
26346
26308
|
// "is_metadata": true,
|
|
26347
26309
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26349,7 +26311,7 @@ var queries$a = {
|
|
|
26349
26311
|
},
|
|
26350
26312
|
coding_update: function coding_update(data) {
|
|
26351
26313
|
return [{
|
|
26352
|
-
"db_name": dbName
|
|
26314
|
+
"db_name": dbName,
|
|
26353
26315
|
"entity": "CodingMaster",
|
|
26354
26316
|
"is_metadata": true,
|
|
26355
26317
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -26754,7 +26716,7 @@ var queries$9 = {
|
|
|
26754
26716
|
"filter": "CodeableConceptMaster.Type == 'PRACTROLE' && CodeableConceptMaster.status == true"
|
|
26755
26717
|
};
|
|
26756
26718
|
return _objectSpread2(_objectSpread2({
|
|
26757
|
-
"db_name": dbName
|
|
26719
|
+
"db_name": dbName,
|
|
26758
26720
|
"entity": "CodeableConceptMaster"
|
|
26759
26721
|
}, filter), {}, {
|
|
26760
26722
|
"return_fields": "MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})"
|
|
@@ -26770,7 +26732,7 @@ var queries$9 = {
|
|
|
26770
26732
|
}
|
|
26771
26733
|
|
|
26772
26734
|
return _objectSpread2(_objectSpread2({
|
|
26773
|
-
"db_name": dbName
|
|
26735
|
+
"db_name": dbName,
|
|
26774
26736
|
"entity": "PermissionRoleMapping"
|
|
26775
26737
|
}, filter), {}, {
|
|
26776
26738
|
"return_fields": "{PermissionRoleMapping}"
|
|
@@ -26787,7 +26749,7 @@ var queries$9 = {
|
|
|
26787
26749
|
// }
|
|
26788
26750
|
|
|
26789
26751
|
return _objectSpread2(_objectSpread2({
|
|
26790
|
-
"db_name": dbName
|
|
26752
|
+
"db_name": dbName,
|
|
26791
26753
|
"entity": "Repository"
|
|
26792
26754
|
}, filter), {}, {
|
|
26793
26755
|
"return_fields": "{Repository}"
|
|
@@ -26870,7 +26832,7 @@ var queries$8 = {
|
|
|
26870
26832
|
"filter": "PermissionManagement.activestatus==true"
|
|
26871
26833
|
};
|
|
26872
26834
|
return _objectSpread2(_objectSpread2({
|
|
26873
|
-
"db_name": dbName
|
|
26835
|
+
"db_name": dbName,
|
|
26874
26836
|
"entity": "PermissionManagement"
|
|
26875
26837
|
}, filter), {}, {
|
|
26876
26838
|
"return_fields": "{PermissionManagement}"
|
|
@@ -26886,7 +26848,7 @@ var queries$8 = {
|
|
|
26886
26848
|
}
|
|
26887
26849
|
|
|
26888
26850
|
return _objectSpread2({
|
|
26889
|
-
"db_name": dbName
|
|
26851
|
+
"db_name": dbName,
|
|
26890
26852
|
"entity": "PermissionManagement",
|
|
26891
26853
|
// "is_metadata": true,
|
|
26892
26854
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26904,7 +26866,7 @@ var queries$8 = {
|
|
|
26904
26866
|
}
|
|
26905
26867
|
|
|
26906
26868
|
return [_objectSpread2(_objectSpread2({
|
|
26907
|
-
"db_name": dbName
|
|
26869
|
+
"db_name": dbName,
|
|
26908
26870
|
"entity": "PermissionManagement",
|
|
26909
26871
|
"is_metadata": true,
|
|
26910
26872
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27092,7 +27054,7 @@ var permission_actions = _objectSpread2({}, permissionActions);
|
|
|
27092
27054
|
var queries$7 = {
|
|
27093
27055
|
person_read: function person_read(data) {
|
|
27094
27056
|
return {
|
|
27095
|
-
"db_name": dbName
|
|
27057
|
+
"db_name": dbName,
|
|
27096
27058
|
"entity": "Person",
|
|
27097
27059
|
"filter": "Person.activestatus==true",
|
|
27098
27060
|
"sort": "Person.createddate",
|
|
@@ -27111,7 +27073,7 @@ var queries$7 = {
|
|
|
27111
27073
|
}
|
|
27112
27074
|
|
|
27113
27075
|
return [_objectSpread2({
|
|
27114
|
-
"db_name": dbName
|
|
27076
|
+
"db_name": dbName,
|
|
27115
27077
|
"entity": "Person",
|
|
27116
27078
|
// "is_metadata": true,
|
|
27117
27079
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27130,7 +27092,7 @@ var queries$7 = {
|
|
|
27130
27092
|
|
|
27131
27093
|
delete data._key;
|
|
27132
27094
|
return [_objectSpread2(_objectSpread2({
|
|
27133
|
-
"db_name": dbName
|
|
27095
|
+
"db_name": dbName,
|
|
27134
27096
|
"entity": "Person",
|
|
27135
27097
|
"is_metadata": true,
|
|
27136
27098
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27140,7 +27102,7 @@ var queries$7 = {
|
|
|
27140
27102
|
},
|
|
27141
27103
|
contact_system_master: function contact_system_master(data) {
|
|
27142
27104
|
return {
|
|
27143
|
-
"db_name": dbName
|
|
27105
|
+
"db_name": dbName,
|
|
27144
27106
|
"entity": "CodingMaster",
|
|
27145
27107
|
"filter": "CodingMaster.Type=='CONTACTSYSTEM' && CodingMaster.activestatus==true",
|
|
27146
27108
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27148,7 +27110,7 @@ var queries$7 = {
|
|
|
27148
27110
|
},
|
|
27149
27111
|
entity_name_master: function entity_name_master(data) {
|
|
27150
27112
|
return {
|
|
27151
|
-
"db_name": dbName
|
|
27113
|
+
"db_name": dbName,
|
|
27152
27114
|
"entity": "Organization",
|
|
27153
27115
|
"filter": "Organization.activestatus==true && lower(first(document(Organization.OrgType)[*].display)) == '".concat(data, "'"),
|
|
27154
27116
|
"return_fields": "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
@@ -27156,7 +27118,7 @@ var queries$7 = {
|
|
|
27156
27118
|
},
|
|
27157
27119
|
entity_type_master: function entity_type_master(data) {
|
|
27158
27120
|
return {
|
|
27159
|
-
"db_name": dbName
|
|
27121
|
+
"db_name": dbName,
|
|
27160
27122
|
"entity": "CodingMaster",
|
|
27161
27123
|
"filter": "CodingMaster.Type=='ORGTYPE' && CodingMaster.activestatus==true",
|
|
27162
27124
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27164,7 +27126,7 @@ var queries$7 = {
|
|
|
27164
27126
|
},
|
|
27165
27127
|
gender_master: function gender_master(data) {
|
|
27166
27128
|
return {
|
|
27167
|
-
"db_name": dbName
|
|
27129
|
+
"db_name": dbName,
|
|
27168
27130
|
"entity": "CodingMaster",
|
|
27169
27131
|
"filter": "CodingMaster.Type=='GENDER' && CodingMaster.activestatus==true",
|
|
27170
27132
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27172,7 +27134,7 @@ var queries$7 = {
|
|
|
27172
27134
|
},
|
|
27173
27135
|
id_type_master: function id_type_master(data) {
|
|
27174
27136
|
return {
|
|
27175
|
-
"db_name": dbName
|
|
27137
|
+
"db_name": dbName,
|
|
27176
27138
|
"entity": "CodingMaster",
|
|
27177
27139
|
"filter": "CodingMaster.Type=='ALTERNATEIDTYPE' && CodingMaster.activestatus==true",
|
|
27178
27140
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27180,7 +27142,7 @@ var queries$7 = {
|
|
|
27180
27142
|
},
|
|
27181
27143
|
prefix_master: function prefix_master(data) {
|
|
27182
27144
|
return {
|
|
27183
|
-
"db_name": dbName
|
|
27145
|
+
"db_name": dbName,
|
|
27184
27146
|
"entity": "CodingMaster",
|
|
27185
27147
|
"filter": "CodingMaster.Type=='NAMEPREFIX' && CodingMaster.activestatus==true",
|
|
27186
27148
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27188,7 +27150,7 @@ var queries$7 = {
|
|
|
27188
27150
|
},
|
|
27189
27151
|
priority_master: function priority_master(data) {
|
|
27190
27152
|
return {
|
|
27191
|
-
"db_name": dbName
|
|
27153
|
+
"db_name": dbName,
|
|
27192
27154
|
"entity": "CodingMaster",
|
|
27193
27155
|
"filter": "CodingMaster.Type=='PRIORITY' && CodingMaster.activestatus==true",
|
|
27194
27156
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27196,7 +27158,7 @@ var queries$7 = {
|
|
|
27196
27158
|
},
|
|
27197
27159
|
surffix_master: function surffix_master(data) {
|
|
27198
27160
|
return {
|
|
27199
|
-
"db_name": dbName
|
|
27161
|
+
"db_name": dbName,
|
|
27200
27162
|
"entity": "CodingMaster",
|
|
27201
27163
|
"filter": "CodingMaster.Type=='NAMESUFFIX' && CodingMaster.activestatus==true",
|
|
27202
27164
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27204,7 +27166,7 @@ var queries$7 = {
|
|
|
27204
27166
|
},
|
|
27205
27167
|
use_master: function use_master(data) {
|
|
27206
27168
|
return {
|
|
27207
|
-
"db_name": dbName
|
|
27169
|
+
"db_name": dbName,
|
|
27208
27170
|
"entity": "CodingMaster",
|
|
27209
27171
|
"filter": "CodingMaster.Type=='USE' && CodingMaster.activestatus==true",
|
|
27210
27172
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27212,7 +27174,7 @@ var queries$7 = {
|
|
|
27212
27174
|
},
|
|
27213
27175
|
single_read_person: function single_read_person(data) {
|
|
27214
27176
|
return {
|
|
27215
|
-
"db_name": dbName
|
|
27177
|
+
"db_name": dbName,
|
|
27216
27178
|
"entity": "Person",
|
|
27217
27179
|
"filter": " Person._key=='".concat(data._key, "' && Person.activestatus==true"),
|
|
27218
27180
|
"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)})"
|
|
@@ -27982,7 +27944,7 @@ var queries$6 = {
|
|
|
27982
27944
|
user_read: function user_read(data) {
|
|
27983
27945
|
var filter = {};
|
|
27984
27946
|
return _objectSpread2(_objectSpread2({
|
|
27985
|
-
"db_name": dbName
|
|
27947
|
+
"db_name": dbName,
|
|
27986
27948
|
"entity": "Practitioner"
|
|
27987
27949
|
}, filter), {}, {
|
|
27988
27950
|
"return_fields": "{Practitioner}"
|
|
@@ -28000,7 +27962,7 @@ var queries$6 = {
|
|
|
28000
27962
|
}
|
|
28001
27963
|
|
|
28002
27964
|
return [_objectSpread2({
|
|
28003
|
-
"db_name": dbName
|
|
27965
|
+
"db_name": dbName,
|
|
28004
27966
|
"entity": "Practitioner",
|
|
28005
27967
|
// "is_metadata": true,
|
|
28006
27968
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -28018,7 +27980,7 @@ var queries$6 = {
|
|
|
28018
27980
|
}
|
|
28019
27981
|
|
|
28020
27982
|
return [_objectSpread2(_objectSpread2({
|
|
28021
|
-
"db_name": dbName
|
|
27983
|
+
"db_name": dbName,
|
|
28022
27984
|
"entity": "Practitioner",
|
|
28023
27985
|
"is_metadata": true,
|
|
28024
27986
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -28028,7 +27990,7 @@ var queries$6 = {
|
|
|
28028
27990
|
},
|
|
28029
27991
|
practitioner_by_id: function practitioner_by_id(data) {
|
|
28030
27992
|
return {
|
|
28031
|
-
"db_name": dbName
|
|
27993
|
+
"db_name": dbName,
|
|
28032
27994
|
"entity": "Practitioner",
|
|
28033
27995
|
"filter": "Practitioner.PersonID==".concat(data.id, " && Practitioner.activestatus==true"),
|
|
28034
27996
|
"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))}))})"
|
|
@@ -28229,7 +28191,7 @@ var generateJson$6 = function generateJson(data, _key) {
|
|
|
28229
28191
|
};
|
|
28230
28192
|
});
|
|
28231
28193
|
return [_objectSpread2(_objectSpread2({
|
|
28232
|
-
"db_name": dbName
|
|
28194
|
+
"db_name": dbName
|
|
28233
28195
|
}, filter), {}, {
|
|
28234
28196
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28235
28197
|
"is_metadata": true,
|
|
@@ -28315,7 +28277,7 @@ var UPSERT_ALERT_STATUS = createAsyncThunk("alertRestictionsMasterSlice/save_ale
|
|
|
28315
28277
|
_context2.prev = 2;
|
|
28316
28278
|
list = payload.list, _key = payload._key;
|
|
28317
28279
|
queriesjson = [{
|
|
28318
|
-
"db_name": dbName
|
|
28280
|
+
"db_name": dbName,
|
|
28319
28281
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28320
28282
|
"is_metadata": true,
|
|
28321
28283
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -28384,35 +28346,35 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
28384
28346
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
28385
28347
|
_context3.prev = 2;
|
|
28386
28348
|
get_facility = {
|
|
28387
|
-
"db_name": dbName
|
|
28349
|
+
"db_name": dbName,
|
|
28388
28350
|
"entity": "Organization",
|
|
28389
28351
|
"sort": "Organization.name",
|
|
28390
28352
|
"filter": "Organization.activestatus==true && Organization.active==true ",
|
|
28391
28353
|
"return_fields": "Organization"
|
|
28392
28354
|
};
|
|
28393
28355
|
get_app_level = {
|
|
28394
|
-
"db_name": dbName
|
|
28356
|
+
"db_name": dbName,
|
|
28395
28357
|
"entity": "CodeableConceptMaster",
|
|
28396
28358
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28397
28359
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'APPROVALLEVEL'",
|
|
28398
28360
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28399
28361
|
};
|
|
28400
28362
|
service_applicable = {
|
|
28401
|
-
"db_name": dbName
|
|
28363
|
+
"db_name": dbName,
|
|
28402
28364
|
"entity": "CodeableConceptMaster",
|
|
28403
28365
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28404
28366
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'SERVICEAPPLICABILITY'",
|
|
28405
28367
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28406
28368
|
};
|
|
28407
28369
|
rule_type = {
|
|
28408
|
-
"db_name": dbName
|
|
28370
|
+
"db_name": dbName,
|
|
28409
28371
|
"entity": "CodeableConceptMaster",
|
|
28410
28372
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28411
28373
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'RULETYPE'",
|
|
28412
28374
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28413
28375
|
};
|
|
28414
28376
|
privillage_type = {
|
|
28415
|
-
"db_name": dbName
|
|
28377
|
+
"db_name": dbName,
|
|
28416
28378
|
"entity": "CodeableConceptMaster",
|
|
28417
28379
|
"sort": "CodeableConceptMaster.text",
|
|
28418
28380
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='PRIVILEGETYPE'",
|
|
@@ -28534,7 +28496,7 @@ var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__
|
|
|
28534
28496
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
28535
28497
|
_context4.prev = 2;
|
|
28536
28498
|
read = {
|
|
28537
|
-
"db_name": dbName
|
|
28499
|
+
"db_name": dbName,
|
|
28538
28500
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28539
28501
|
"sort": "CA_OrderCatalogPrivilegeLevel.createddate",
|
|
28540
28502
|
"filter": "CA_OrderCatalogPrivilegeLevel.activestatus==true",
|
|
@@ -28615,7 +28577,7 @@ var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasu
|
|
|
28615
28577
|
var queries$5 = {
|
|
28616
28578
|
fullread: function fullread() {
|
|
28617
28579
|
return {
|
|
28618
|
-
db_name: dbName
|
|
28580
|
+
db_name: dbName,
|
|
28619
28581
|
entity: "DrugUOM",
|
|
28620
28582
|
filter: "DrugUOM.activestatus == true",
|
|
28621
28583
|
sort: "DrugUOM.createddate",
|
|
@@ -28624,7 +28586,7 @@ var queries$5 = {
|
|
|
28624
28586
|
},
|
|
28625
28587
|
DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
|
|
28626
28588
|
return {
|
|
28627
|
-
db_name: dbName
|
|
28589
|
+
db_name: dbName,
|
|
28628
28590
|
entity: "CodeableConceptMaster",
|
|
28629
28591
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
28630
28592
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'DRUGUOMTYPE' ",
|
|
@@ -28641,7 +28603,7 @@ var queries$5 = {
|
|
|
28641
28603
|
// "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})",
|
|
28642
28604
|
// };
|
|
28643
28605
|
return {
|
|
28644
|
-
"db_name": dbName
|
|
28606
|
+
"db_name": dbName,
|
|
28645
28607
|
"entity": "DrugUOM",
|
|
28646
28608
|
"filter": "DrugUOM.activestatus == true && DrugUOM.UOMType == '".concat(id, "' && LOWER(DrugUOM.UOM) !=LOWER('").concat(type, "') && DrugUOM.status==true"),
|
|
28647
28609
|
"return_fields": "{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}"
|
|
@@ -28649,7 +28611,7 @@ var queries$5 = {
|
|
|
28649
28611
|
},
|
|
28650
28612
|
To_UOM_Read_line: function To_UOM_Read_line(key) {
|
|
28651
28613
|
return {
|
|
28652
|
-
db_name: dbName
|
|
28614
|
+
db_name: dbName,
|
|
28653
28615
|
entity: "DrugUOM",
|
|
28654
28616
|
filter: "DrugUOM.activestatus == true && DrugUOM._key == '".concat(key, "'"),
|
|
28655
28617
|
return_fields: "merge(DrugUOM,{UOMType:document(DrugUOM.UOMType), ConversionMap:(for j in TO_ARRAY(DrugUOM.ConversionMap) return merge(j,{ConversionMap:document(j.ToUOMCode)}))})" // return_fields:
|
|
@@ -28661,7 +28623,7 @@ var queries$5 = {
|
|
|
28661
28623
|
},
|
|
28662
28624
|
To_UOM_UPDATE_STATUS: function To_UOM_UPDATE_STATUS(status, key) {
|
|
28663
28625
|
return [{
|
|
28664
|
-
db_name: dbName
|
|
28626
|
+
db_name: dbName,
|
|
28665
28627
|
entity: "DrugUOM",
|
|
28666
28628
|
filter: {
|
|
28667
28629
|
_key: "".concat(key)
|
|
@@ -28698,7 +28660,7 @@ var generateJson$5 = {
|
|
|
28698
28660
|
};
|
|
28699
28661
|
});
|
|
28700
28662
|
return [_objectSpread2(_objectSpread2({
|
|
28701
|
-
db_name: dbName
|
|
28663
|
+
db_name: dbName,
|
|
28702
28664
|
entity: "DrugUOM",
|
|
28703
28665
|
is_metadata: true
|
|
28704
28666
|
}, filter), {}, {
|
|
@@ -29128,7 +29090,7 @@ var drugMasterUOMSlice$1 = drugMasterUOMSlice.reducer;
|
|
|
29128
29090
|
var queries$4 = {
|
|
29129
29091
|
fullread: function fullread(type) {
|
|
29130
29092
|
return {
|
|
29131
|
-
db_name: dbName
|
|
29093
|
+
db_name: dbName,
|
|
29132
29094
|
entity: "FrequencyMaster",
|
|
29133
29095
|
sort: "FrequencyMaster.freqcode",
|
|
29134
29096
|
return_fields: "MERGE(FrequencyMaster,{scheduleby:DOCUMENT(FrequencyMaster.scheduleby),dosefreqrateUOM:DOCUMENT(FrequencyMaster.dosefreqrateUOM),dosefreqvalUOM:DOCUMENT(FrequencyMaster.dosefreqvalUOM),fixeddurationtype:DOCUMENT(FrequencyMaster.fixeddurationtype),frequencytype:DOCUMENT(FrequencyMaster.frequencytype),startday:DOCUMENT(FrequencyMaster.startday)})"
|
|
@@ -29136,7 +29098,7 @@ var queries$4 = {
|
|
|
29136
29098
|
},
|
|
29137
29099
|
SCHEDULEBY: function SCHEDULEBY() {
|
|
29138
29100
|
return {
|
|
29139
|
-
db_name: dbName
|
|
29101
|
+
db_name: dbName,
|
|
29140
29102
|
entity: "CodeableConceptMaster",
|
|
29141
29103
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
29142
29104
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='SCHEDULEBY'",
|
|
@@ -29144,40 +29106,24 @@ var queries$4 = {
|
|
|
29144
29106
|
};
|
|
29145
29107
|
},
|
|
29146
29108
|
UOM: function UOM() {
|
|
29147
|
-
// return {
|
|
29148
|
-
// db_name: dbName,
|
|
29149
|
-
// entity: "DrugUOM",
|
|
29150
|
-
// sort: "DrugUOM.UOM",
|
|
29151
|
-
// return_fields: "DrugUOM",
|
|
29152
|
-
// };
|
|
29153
29109
|
return {
|
|
29154
|
-
|
|
29155
|
-
|
|
29156
|
-
|
|
29157
|
-
|
|
29158
|
-
"sort": "CodingMaster.shortdesc"
|
|
29110
|
+
db_name: dbName,
|
|
29111
|
+
entity: "DrugUOM",
|
|
29112
|
+
sort: "DrugUOM.UOM",
|
|
29113
|
+
return_fields: "DrugUOM"
|
|
29159
29114
|
};
|
|
29160
29115
|
},
|
|
29161
29116
|
WEEKDAYS: function WEEKDAYS() {
|
|
29162
|
-
// return {
|
|
29163
|
-
// db_name: dbName,
|
|
29164
|
-
// entity: "CodeableConceptMaster",
|
|
29165
|
-
// filter:
|
|
29166
|
-
// "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='WEEKDAYS'",
|
|
29167
|
-
// return_fields:
|
|
29168
|
-
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
29169
|
-
// };
|
|
29170
29117
|
return {
|
|
29171
|
-
db_name: dbName
|
|
29172
|
-
entity: "
|
|
29173
|
-
filter: "
|
|
29174
|
-
return_fields: "
|
|
29175
|
-
sort: "CodingMaster.code"
|
|
29118
|
+
db_name: dbName,
|
|
29119
|
+
entity: "CodeableConceptMaster",
|
|
29120
|
+
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='WEEKDAYS'",
|
|
29121
|
+
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
29176
29122
|
};
|
|
29177
29123
|
},
|
|
29178
29124
|
FIXEDDURATIONTYPE: function FIXEDDURATIONTYPE() {
|
|
29179
29125
|
return {
|
|
29180
|
-
db_name: dbName
|
|
29126
|
+
db_name: dbName,
|
|
29181
29127
|
entity: "CodeableConceptMaster",
|
|
29182
29128
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
29183
29129
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='FIXEDDURATIONTYPE'",
|
|
@@ -29186,7 +29132,7 @@ var queries$4 = {
|
|
|
29186
29132
|
},
|
|
29187
29133
|
FREQUENCYTYPE: function FREQUENCYTYPE() {
|
|
29188
29134
|
return {
|
|
29189
|
-
db_name: dbName
|
|
29135
|
+
db_name: dbName,
|
|
29190
29136
|
entity: "CodeableConceptMaster",
|
|
29191
29137
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
29192
29138
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='FREQUENCYTYPE'",
|
|
@@ -29195,7 +29141,7 @@ var queries$4 = {
|
|
|
29195
29141
|
},
|
|
29196
29142
|
FREQUENCYTYPESTATUS: function FREQUENCYTYPESTATUS(data, key) {
|
|
29197
29143
|
return [{
|
|
29198
|
-
db_name: dbName
|
|
29144
|
+
db_name: dbName,
|
|
29199
29145
|
entity: "FrequencyMaster",
|
|
29200
29146
|
is_metadata: true,
|
|
29201
29147
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -29209,7 +29155,7 @@ var queries$4 = {
|
|
|
29209
29155
|
},
|
|
29210
29156
|
SINGLEREADDOC: function SINGLEREADDOC(key) {
|
|
29211
29157
|
return {
|
|
29212
|
-
db_name: dbName
|
|
29158
|
+
db_name: dbName,
|
|
29213
29159
|
entity: "FrequencyMaster",
|
|
29214
29160
|
filter: "FrequencyMaster._key=='".concat(key, "'"),
|
|
29215
29161
|
return_fields: "MERGE(FrequencyMaster,{scheduleby:DOCUMENT(FrequencyMaster.scheduleby),dosefreqrateUOM:DOCUMENT(FrequencyMaster.dosefreqrateUOM),dosefreqvalUOM:DOCUMENT(FrequencyMaster.dosefreqvalUOM),fixeddurationtype:DOCUMENT(FrequencyMaster.fixeddurationtype),frequencytype:DOCUMENT(FrequencyMaster.frequencytype),startday:DOCUMENT(FrequencyMaster.startday)})"
|
|
@@ -29232,7 +29178,7 @@ var generateJson$4 = {
|
|
|
29232
29178
|
}
|
|
29233
29179
|
|
|
29234
29180
|
return [_objectSpread2(_objectSpread2({
|
|
29235
|
-
db_name: dbName
|
|
29181
|
+
db_name: dbName,
|
|
29236
29182
|
entity: "FrequencyMaster",
|
|
29237
29183
|
is_metadata: true
|
|
29238
29184
|
}, filter), {}, {
|
|
@@ -29442,9 +29388,11 @@ var DRUG_WEEKDAYS_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_weekday
|
|
|
29442
29388
|
arry = [];
|
|
29443
29389
|
data.result.map(function (val) {
|
|
29444
29390
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
|
|
29391
|
+
var _val$coding$3, _val$coding$4;
|
|
29392
|
+
|
|
29445
29393
|
arry.push({
|
|
29446
|
-
label: val === null || val === void 0 ? void 0 : val.display,
|
|
29447
|
-
value: val === null || val === void 0 ? void 0 : val._id
|
|
29394
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$3 = val.coding[0]) === null || _val$coding$3 === void 0 ? void 0 : _val$coding$3.display,
|
|
29395
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$4 = val.coding[0]) === null || _val$coding$4 === void 0 ? void 0 : _val$coding$4._id
|
|
29448
29396
|
});
|
|
29449
29397
|
}
|
|
29450
29398
|
});
|
|
@@ -29491,11 +29439,11 @@ var DRUG_FIXEDDURATIONTYPE_READ = createAsyncThunk("drugMasterFREQUENCYSlice/dru
|
|
|
29491
29439
|
arry = [];
|
|
29492
29440
|
data.result.map(function (val) {
|
|
29493
29441
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
|
|
29494
|
-
var _val$coding$
|
|
29442
|
+
var _val$coding$5, _val$coding$6;
|
|
29495
29443
|
|
|
29496
29444
|
arry.push({
|
|
29497
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29498
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29445
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$5 = val.coding[0]) === null || _val$coding$5 === void 0 ? void 0 : _val$coding$5.display,
|
|
29446
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$6 = val.coding[0]) === null || _val$coding$6 === void 0 ? void 0 : _val$coding$6._id
|
|
29499
29447
|
});
|
|
29500
29448
|
}
|
|
29501
29449
|
});
|
|
@@ -29542,11 +29490,11 @@ var DRUG_FREQUENCYTYPE_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_fr
|
|
|
29542
29490
|
arry = [];
|
|
29543
29491
|
data.result.map(function (val) {
|
|
29544
29492
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
|
|
29545
|
-
var _val$coding$
|
|
29493
|
+
var _val$coding$7, _val$coding$8;
|
|
29546
29494
|
|
|
29547
29495
|
arry.push({
|
|
29548
|
-
label: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29549
|
-
value: val === null || val === void 0 ? void 0 : (_val$coding$
|
|
29496
|
+
label: val === null || val === void 0 ? void 0 : (_val$coding$7 = val.coding[0]) === null || _val$coding$7 === void 0 ? void 0 : _val$coding$7.display,
|
|
29497
|
+
value: val === null || val === void 0 ? void 0 : (_val$coding$8 = val.coding[0]) === null || _val$coding$8 === void 0 ? void 0 : _val$coding$8._id
|
|
29550
29498
|
});
|
|
29551
29499
|
}
|
|
29552
29500
|
});
|
|
@@ -29594,7 +29542,7 @@ var DRUG_FREQUENCY_UOM_READ = createAsyncThunk("drugMasterFREQUENCYSlice/drug_fr
|
|
|
29594
29542
|
data.result.map(function (val) {
|
|
29595
29543
|
if (val !== null && val !== void 0 && val._key && val !== null && val !== void 0 && val.activestatus) {
|
|
29596
29544
|
arry.push({
|
|
29597
|
-
label: val === null || val === void 0 ? void 0 : val.
|
|
29545
|
+
label: val === null || val === void 0 ? void 0 : val.UOM,
|
|
29598
29546
|
value: val === null || val === void 0 ? void 0 : val._id
|
|
29599
29547
|
});
|
|
29600
29548
|
}
|
|
@@ -29837,7 +29785,7 @@ var drug_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_
|
|
|
29837
29785
|
var query$5 = {
|
|
29838
29786
|
orderSetList: function orderSetList() {
|
|
29839
29787
|
return {
|
|
29840
|
-
db_name: "".concat(dbName
|
|
29788
|
+
db_name: "".concat(dbName),
|
|
29841
29789
|
entity: "CA_OrderSet",
|
|
29842
29790
|
filter: "CA_OrderSet.activestatus == true",
|
|
29843
29791
|
return_fields: "keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status')",
|
|
@@ -29846,7 +29794,7 @@ var query$5 = {
|
|
|
29846
29794
|
},
|
|
29847
29795
|
orderSetListById: function orderSetListById(_key) {
|
|
29848
29796
|
return {
|
|
29849
|
-
db_name: "".concat(dbName
|
|
29797
|
+
db_name: "".concat(dbName),
|
|
29850
29798
|
entity: "CA_OrderSet",
|
|
29851
29799
|
filter: "CA_OrderSet._key == '".concat(_key, "' && CA_OrderSet.activestatus == true"),
|
|
29852
29800
|
return_fields: "merge(CA_OrderSet,{components:(for comp in CA_OrderSet_Components filter comp._id in CA_OrderSet.components return merge(comp,{orderCatalog:document(comp.orderCatalog),ordercategory:document(comp.ordercategory),ordertype:document(comp.ordertype),IVDosDurUOM:document(comp.IVDosDurUOM),IVInfusRateUOM:document(comp.IVInfusRateUOM),IVInfusRateVolUOM:document(comp.IVInfusRateVolUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltDurUOM:document(comp.dfltDurUOM),dfltFreqRateUnit:document(comp.dfltFreqRateUnit),dfltFreqValUnit:document(comp.dfltFreqValUnit),dfltOrderUOM:document(comp.dfltOrderUOM),route:document(comp.route),dosageFreqCode:document(comp.dosageFreqCode)}))})"
|
|
@@ -29854,7 +29802,7 @@ var query$5 = {
|
|
|
29854
29802
|
},
|
|
29855
29803
|
status_update_order_set_master: function status_update_order_set_master(data) {
|
|
29856
29804
|
return [{
|
|
29857
|
-
db_name: "".concat(dbName
|
|
29805
|
+
db_name: "".concat(dbName),
|
|
29858
29806
|
entity: "CA_OrderSet",
|
|
29859
29807
|
is_metadata: true,
|
|
29860
29808
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -29868,7 +29816,7 @@ var query$5 = {
|
|
|
29868
29816
|
},
|
|
29869
29817
|
orderSetComponentDelete: function orderSetComponentDelete(_key) {
|
|
29870
29818
|
return {
|
|
29871
|
-
db_name: "".concat(dbName
|
|
29819
|
+
db_name: "".concat(dbName),
|
|
29872
29820
|
entity: "CA_OrderSet_Components",
|
|
29873
29821
|
filter: "CA_OrderSet_Components._key== '".concat(_key, "'")
|
|
29874
29822
|
};
|
|
@@ -29876,16 +29824,16 @@ var query$5 = {
|
|
|
29876
29824
|
};
|
|
29877
29825
|
|
|
29878
29826
|
var masterQuery$2 = {
|
|
29879
|
-
orderCategory: "{\n \"db_name\": \"".concat(dbName
|
|
29880
|
-
commonUOM: "{\n \"db_name\": \"".concat(dbName
|
|
29881
|
-
route: "{\n \"db_name\": \"".concat(dbName
|
|
29882
|
-
drugFreqCode: "{\n \"db_name\": \"".concat(dbName
|
|
29883
|
-
durationDropDown: "{\n \"db_name\": \"".concat(dbName
|
|
29827
|
+
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 }"),
|
|
29828
|
+
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 }"),
|
|
29829
|
+
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 }"),
|
|
29830
|
+
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 }"),
|
|
29831
|
+
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 }")
|
|
29884
29832
|
};
|
|
29885
29833
|
var orderCategoty = {
|
|
29886
29834
|
orderCategory: function orderCategory() {
|
|
29887
29835
|
return {
|
|
29888
|
-
db_name: "".concat(dbName
|
|
29836
|
+
db_name: "".concat(dbName),
|
|
29889
29837
|
entity: "OrderCategory",
|
|
29890
29838
|
filter: "OrderCategory.activestatus == true && OrderCategory.status==true",
|
|
29891
29839
|
return_fields: "keep(OrderCategory,'id','_id','_key','shortdesc','ordercategory','longdesc')",
|
|
@@ -29896,7 +29844,7 @@ var orderCategoty = {
|
|
|
29896
29844
|
var dynamicMaster$1 = {
|
|
29897
29845
|
orderDrugType: function orderDrugType(order_category) {
|
|
29898
29846
|
return {
|
|
29899
|
-
db_name: "".concat(dbName
|
|
29847
|
+
db_name: "".concat(dbName),
|
|
29900
29848
|
entity: "OrderType",
|
|
29901
29849
|
filter: "OrderType.ordercategory=='".concat(order_category, "' && OrderType.activestatus == true && OrderType.status == true"),
|
|
29902
29850
|
return_fields: "MERGE(keep(OrderType,'id','_key','_id','shortdesc','ordertype','longdesc','ordercategory'),{ordercategory:(DOCUMENT(OrderType.ordercategory))})",
|
|
@@ -29905,7 +29853,7 @@ var dynamicMaster$1 = {
|
|
|
29905
29853
|
},
|
|
29906
29854
|
drugType: function drugType() {
|
|
29907
29855
|
return {
|
|
29908
|
-
db_name: "".concat(dbName
|
|
29856
|
+
db_name: "".concat(dbName),
|
|
29909
29857
|
entity: "DrugType",
|
|
29910
29858
|
filter: "DrugType.activestatus == true && DrugType.status == true",
|
|
29911
29859
|
return_fields: "KEEP(DrugType,'_id','_key','drugtype','longdesc','shortdesc')",
|
|
@@ -29914,7 +29862,7 @@ var dynamicMaster$1 = {
|
|
|
29914
29862
|
},
|
|
29915
29863
|
orderCatalog: function orderCatalog(order_category, order_drug_type) {
|
|
29916
29864
|
return {
|
|
29917
|
-
db_name: "".concat(dbName
|
|
29865
|
+
db_name: "".concat(dbName),
|
|
29918
29866
|
entity: "OrderCatalog",
|
|
29919
29867
|
filter: "OrderCatalog.ordercategory=='".concat(order_category, "' && OrderCatalog.ordertype=='").concat(order_drug_type, "' && OrderCatalog.activestatus == true && OrderCatalog.status==true"),
|
|
29920
29868
|
return_fields: "merge(keep(OrderCatalog,'id','_key','_id','shortdesc','ordertype','ordercategory','ordercatalog','longdesc'),{ordertype:document(OrderCatalog.ordertype)},{ordercategory:document(OrderCatalog.ordercategory)},{OrderCatalogByEncounterTypeAge:document(OrderCatalog.OrderCatalogByEncounterTypeAge)[*].freqappl})",
|
|
@@ -29923,7 +29871,7 @@ var dynamicMaster$1 = {
|
|
|
29923
29871
|
},
|
|
29924
29872
|
drugCatalog: function drugCatalog(drug_type) {
|
|
29925
29873
|
return {
|
|
29926
|
-
db_name: "".concat(dbName
|
|
29874
|
+
db_name: "".concat(dbName),
|
|
29927
29875
|
entity: "DrugMaster",
|
|
29928
29876
|
filter: "DrugMaster.DrugType=='".concat(drug_type, "' && DrugMaster.activestatus == true && DrugMaster.statusactive==true"),
|
|
29929
29877
|
return_fields: "merge(keep(DrugMaster,'id','_id','_key','ShortDesc','LongDesc','DrugType'),{DrugType:document(DrugMaster.DrugType)})",
|
|
@@ -29946,7 +29894,7 @@ var generateJson$3 = function generateJson(data) {
|
|
|
29946
29894
|
}
|
|
29947
29895
|
|
|
29948
29896
|
return [_objectSpread2(_objectSpread2({
|
|
29949
|
-
db_name: dbName
|
|
29897
|
+
db_name: dbName,
|
|
29950
29898
|
entity: "CA_OrderSet",
|
|
29951
29899
|
is_metadata: true,
|
|
29952
29900
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -31042,7 +30990,7 @@ var orderSetMasterSlice$1 = orderSetMasterSlice.reducer;
|
|
|
31042
30990
|
var query$4 = {
|
|
31043
30991
|
orderSetApplicabilityList: function orderSetApplicabilityList(_id) {
|
|
31044
30992
|
return {
|
|
31045
|
-
db_name: "".concat(dbName
|
|
30993
|
+
db_name: "".concat(dbName),
|
|
31046
30994
|
entity: "CA_OrderSet_Applicability",
|
|
31047
30995
|
filter: "CA_OrderSet_Applicability.Ordersetcode=='".concat(_id, "' && CA_OrderSet_Applicability.activestatus==true"),
|
|
31048
30996
|
return_fields: "merge(CA_OrderSet_Applicability,{Ordersetcode:merge(document(CA_OrderSet_Applicability.Ordersetcode),{components:document(document(CA_OrderSet_Applicability.Ordersetcode).components)}),diagnosisCode:document(CA_OrderSet_Applicability.diagnosisCode),practRoleId:merge(document(CA_OrderSet_Applicability.practRoleId),{name:document(document(CA_OrderSet_Applicability.practRoleId).name)}),practCode:document(CA_OrderSet_Applicability.practCode),specialty:document(CA_OrderSet_Applicability.specialty),locationCode:document(CA_OrderSet_Applicability.locationCode),locationType:document(CA_OrderSet_Applicability.locationType),organizationCode:document(CA_OrderSet_Applicability.organizationCode)},{diagGroup:document(CA_OrderSet_Applicability.diagGroup)})"
|
|
@@ -31050,7 +30998,7 @@ var query$4 = {
|
|
|
31050
30998
|
},
|
|
31051
30999
|
orderSetApplicabilityById: function orderSetApplicabilityById(_key) {
|
|
31052
31000
|
return {
|
|
31053
|
-
db_name: "".concat(dbName
|
|
31001
|
+
db_name: "".concat(dbName),
|
|
31054
31002
|
entity: "CA_OrderSet_Applicability",
|
|
31055
31003
|
filter: "CA_OrderSet_Applicability._key=='".concat(_key, "' && CA_OrderSet_Applicability.activestatus==true"),
|
|
31056
31004
|
return_fields: "merge(CA_OrderSet_Applicability,{diagGroup:document(CA_OrderSet_Applicability.diagGroup),Ordersetcode:merge(document(CA_OrderSet_Applicability.Ordersetcode),{components:document(document(CA_OrderSet_Applicability.Ordersetcode).components)}),diagnosisCode:document(CA_OrderSet_Applicability.diagnosisCode),practRoleId:merge(document(CA_OrderSet_Applicability.practRoleId),{name:document(document(CA_OrderSet_Applicability.practRoleId).name)}),practCode:document(CA_OrderSet_Applicability.practCode),specialty:document(CA_OrderSet_Applicability.specialty),locationCode:document(CA_OrderSet_Applicability.locationCode),locationType:document(CA_OrderSet_Applicability.locationType),organizationCode:document(CA_OrderSet_Applicability.organizationCode)})"
|
|
@@ -31058,7 +31006,7 @@ var query$4 = {
|
|
|
31058
31006
|
},
|
|
31059
31007
|
status_update_order_set_master: function status_update_order_set_master(data) {
|
|
31060
31008
|
return [{
|
|
31061
|
-
db_name: "".concat(dbName
|
|
31009
|
+
db_name: "".concat(dbName),
|
|
31062
31010
|
entity: "CA_OrderSet",
|
|
31063
31011
|
is_metadata: true,
|
|
31064
31012
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -31072,7 +31020,7 @@ var query$4 = {
|
|
|
31072
31020
|
},
|
|
31073
31021
|
orderSetApplicabilityDelete: function orderSetApplicabilityDelete(_key) {
|
|
31074
31022
|
return {
|
|
31075
|
-
db_name: "".concat(dbName
|
|
31023
|
+
db_name: "".concat(dbName),
|
|
31076
31024
|
entity: "CA_OrderSet_Applicability",
|
|
31077
31025
|
filter: "CA_OrderSet_Applicability._key== '".concat(_key, "'")
|
|
31078
31026
|
};
|
|
@@ -31081,15 +31029,15 @@ var query$4 = {
|
|
|
31081
31029
|
|
|
31082
31030
|
var masterQuery$1 = {
|
|
31083
31031
|
//name
|
|
31084
|
-
facilityName: "{\n \"db_name\": \"".concat(dbName
|
|
31032
|
+
facilityName: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Organization\",\n \"filter\": \"lower(first(document(Organization.OrgType)[*].display)) == 'facility' && Organization.activestatus==true && Organization.active == true \",\n \"return_fields\": \"{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}\",\n \"sort\": \"Organization.name\"\n }"),
|
|
31085
31033
|
// coding[0]?.display
|
|
31086
|
-
speciality: "{\n \"db_name\": \"".concat(dbName
|
|
31034
|
+
speciality: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"first(document(CodeableConceptMaster.coding)[*].display)\"\n }"),
|
|
31087
31035
|
// coding[0]?.display
|
|
31088
|
-
practitionerType: "{\n \"db_name\": \"".concat(dbName
|
|
31036
|
+
practitionerType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='PRACTTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"first(document(CodeableConceptMaster.coding)[*].display)\"\n }"),
|
|
31089
31037
|
//array of string
|
|
31090
|
-
codeSet: "{\n \"db_name\": \"".concat(dbName
|
|
31038
|
+
codeSet: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Diagnosis\",\n \"return_fields\": \"distinct Diagnosis.termcode\",\n \"sort\": \"Diagnosis.termcode\"\n }"),
|
|
31091
31039
|
//coding[0]?.display
|
|
31092
|
-
locationType: "{\n \"db_name\": \"".concat(dbName
|
|
31040
|
+
locationType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \"CodeableConceptMaster.Type=='LOCATIONTYPE' && (lower(first(document(CodeableConceptMaster.coding)[*].display)) =='ward' || lower(first(document(CodeableConceptMaster.coding)[*].display)) == 'clinic' ) && CodeableConceptMaster.status==true && CodeableConceptMaster.activestatus==true \",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\",\n \"sort\": \"first(document(CodeableConceptMaster.coding)[*].display)\"\n }")
|
|
31093
31041
|
};
|
|
31094
31042
|
var dynamicMaster = {
|
|
31095
31043
|
orderSetAppPractitioner: function orderSetAppPractitioner(_id) {
|
|
@@ -31101,7 +31049,7 @@ var dynamicMaster = {
|
|
|
31101
31049
|
// "merge (Practitioner,{name:(for hm in HumanNameMaster filter hm._id in Practitioner.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))})",
|
|
31102
31050
|
// };
|
|
31103
31051
|
return {
|
|
31104
|
-
"db_name": "".concat(dbName
|
|
31052
|
+
"db_name": "".concat(dbName),
|
|
31105
31053
|
"entity": "Practitioner",
|
|
31106
31054
|
"filter": "document(document(Practitioner.practitioner_type).coding)[*]._id any=='".concat(_id, "' && Practitioner.activestatus==true && Practitioner.active == true"),
|
|
31107
31055
|
"return_fields": "merge (Practitioner,{name:(for hm in HumanNameMaster filter hm._id in Practitioner.name return merge(hm,{use:(for cod in CodeableConceptMaster filter cod._id== hm.use return document(cod.coding)),prefix:(for cod in CodeableConceptMaster filter cod._id == hm.prefix return document(cod.coding)),suffix:(for cod in CodeableConceptMaster filter cod._id == hm.suffix return document(cod.coding))}))})"
|
|
@@ -31109,7 +31057,7 @@ var dynamicMaster = {
|
|
|
31109
31057
|
},
|
|
31110
31058
|
orderSetAppDiagnosisGroup: function orderSetAppDiagnosisGroup(_id) {
|
|
31111
31059
|
return {
|
|
31112
|
-
db_name: "".concat(dbName
|
|
31060
|
+
db_name: "".concat(dbName),
|
|
31113
31061
|
entity: "Diagnosis",
|
|
31114
31062
|
filter: "Diagnosis.termcode=='".concat(_id, "' && Diagnosis.icdcode == Diagnosis.parenticdcode && Diagnosis.activestatus==true"),
|
|
31115
31063
|
return_fields: "KEEP(Diagnosis,'_id','id','_key','icdcode', 'icdname', 'parenticdcode', 'levelnumber')",
|
|
@@ -31118,7 +31066,7 @@ var dynamicMaster = {
|
|
|
31118
31066
|
},
|
|
31119
31067
|
orderSetAppDiagnosisCode: function orderSetAppDiagnosisCode(_id, search) {
|
|
31120
31068
|
return {
|
|
31121
|
-
db_name: "".concat(dbName
|
|
31069
|
+
db_name: "".concat(dbName),
|
|
31122
31070
|
entity: "Diagnosis",
|
|
31123
31071
|
filter: "((Diagnosis.icdcode != Diagnosis.parenticdcode && like (Diagnosis.icdname,'%".concat(search, "%',true)) || Diagnosis.parenticdcode=='").concat(_id, "') && Diagnosis.activestatus==true"),
|
|
31124
31072
|
return_fields: "KEEP(Diagnosis,'_id','id','_key','icdcode', 'icdname', 'parenticdcode', 'levelnumber')",
|
|
@@ -31135,7 +31083,7 @@ var dynamicMaster = {
|
|
|
31135
31083
|
// sort: "LocationMaster.shortdesc",
|
|
31136
31084
|
// };
|
|
31137
31085
|
return {
|
|
31138
|
-
"db_name": "".concat(dbName
|
|
31086
|
+
"db_name": "".concat(dbName),
|
|
31139
31087
|
"entity": "LocationMaster",
|
|
31140
31088
|
"filter": "document(document(LocationMaster.locationType).coding)[*]._id any == '".concat(_id, "' && LocationMaster.activestatus==true && LocationMaster.status=='Active'"),
|
|
31141
31089
|
"return_fields": "KEEP(LocationMaster,'id','_id','key','locationID','longdesc','shortdesc')",
|
|
@@ -31158,7 +31106,7 @@ var generateJson$2 = function generateJson(data, orderSetKey) {
|
|
|
31158
31106
|
}
|
|
31159
31107
|
|
|
31160
31108
|
var arr = [_objectSpread2(_objectSpread2({
|
|
31161
|
-
db_name: dbName
|
|
31109
|
+
db_name: dbName,
|
|
31162
31110
|
entity: "CA_OrderSet_Applicability",
|
|
31163
31111
|
is_metadata: true,
|
|
31164
31112
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -31936,7 +31884,7 @@ var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
|
31936
31884
|
var query$3 = {
|
|
31937
31885
|
getList: function getList(page, perpage) {
|
|
31938
31886
|
return {
|
|
31939
|
-
db_name: "".concat(dbName
|
|
31887
|
+
db_name: "".concat(dbName),
|
|
31940
31888
|
entity: "AllergyMaster",
|
|
31941
31889
|
filter: "AllergyMaster.activestatus == true",
|
|
31942
31890
|
limit: {
|
|
@@ -31963,7 +31911,7 @@ var generateJson$1 = function generateJson(data) {
|
|
|
31963
31911
|
}
|
|
31964
31912
|
|
|
31965
31913
|
return [_objectSpread2(_objectSpread2({
|
|
31966
|
-
db_name: "".concat(dbName
|
|
31914
|
+
db_name: "".concat(dbName),
|
|
31967
31915
|
entity: "AllergyMaster",
|
|
31968
31916
|
is_metadata: true,
|
|
31969
31917
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -32018,9 +31966,9 @@ var generateReadJSON$1 = function generateReadJSON(data) {
|
|
|
32018
31966
|
};
|
|
32019
31967
|
|
|
32020
31968
|
var masterQuery = {
|
|
32021
|
-
allergyTypeIndicator: "{\n \"db_name\": \"".concat(dbName
|
|
32022
|
-
conceptIdType: "{\n \"db_name\": \"".concat(dbName
|
|
32023
|
-
extSystemSourceId: "{\n \"db_name\": \"".concat(dbName
|
|
31969
|
+
allergyTypeIndicator: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'ALTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"keep(CodingMaster,'_key','_id','code','display','Type','status')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
31970
|
+
conceptIdType: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'CONCEPTIDTTYPE' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"keep(CodingMaster,'_key','_id','code','display','Type','status')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
31971
|
+
extSystemSourceId: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type == 'DBSOURCE' && CodingMaster.status == true && CodingMaster.activestatus == true\",\n \"return_fields\": \"keep(CodingMaster,'_key','_id','code','display','Type','status')\",\n \"sort\": \"CodingMaster.display\"\n }")
|
|
32024
31972
|
};
|
|
32025
31973
|
|
|
32026
31974
|
var _extraReducers$a;
|
|
@@ -32236,7 +32184,7 @@ var UPDATE_ALLERGEN_MASTER_STATUS = createAsyncThunk("allergenMasterApiSlice/upd
|
|
|
32236
32184
|
_context6.prev = 2;
|
|
32237
32185
|
_key = payload._key, status = payload.status;
|
|
32238
32186
|
queriesjson = [{
|
|
32239
|
-
db_name: dbName
|
|
32187
|
+
db_name: dbName,
|
|
32240
32188
|
entity: "AllergyMaster",
|
|
32241
32189
|
is_metadata: true,
|
|
32242
32190
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -32352,12 +32300,12 @@ var allergenMasterActions = {
|
|
|
32352
32300
|
var allergenMasterSlice$1 = allergenMasterSlice.reducer;
|
|
32353
32301
|
|
|
32354
32302
|
var flexQuery = {
|
|
32355
|
-
attributeTypeDropDown: "{\n \"db_name\": \"".concat(dbName
|
|
32356
|
-
numUomDropDown: "{\n \"db_name\":\"".concat(dbName
|
|
32357
|
-
flexAttributeFullRead: "{\n \"db_name\": \"".concat(dbName
|
|
32303
|
+
attributeTypeDropDown: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type=='FLEXDATATYPE' && CodingMaster.activestatus==true && CodingMaster.status==true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
32304
|
+
numUomDropDown: "{\n \"db_name\":\"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type=='UOM' && CodingMaster.activestatus==true && CodingMaster.status==true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')\",\n \"sort\": \"CodingMaster.display\"\n }"),
|
|
32305
|
+
flexAttributeFullRead: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CA_OrderAttribMaster\",\n \"filter\": \"CA_OrderAttribMaster.activestatus==true\",\n \"limit\": {\n \"offset\": \"page\",\n \"count\": \"perpage\",\n },\n \"return_fields\": \"merge(CA_OrderAttribMaster,{attribtype:document(CA_OrderAttribMaster.attribtype).display},{attribnumUOM:to_array(document(CA_OrderAttribMaster.attribnumUOM).display)})\"\n }"),
|
|
32358
32306
|
flexAttrFullRead: function flexAttrFullRead(page, perpage, search) {
|
|
32359
32307
|
return {
|
|
32360
|
-
db_name: dbName
|
|
32308
|
+
db_name: dbName,
|
|
32361
32309
|
entity: "CA_OrderAttribMaster",
|
|
32362
32310
|
filter: "(like (CA_OrderAttribMaster.attribcode,'%".concat(search, "%',true)) && CA_OrderAttribMaster.activestatus==true"),
|
|
32363
32311
|
limit: {
|
|
@@ -32370,7 +32318,7 @@ var flexQuery = {
|
|
|
32370
32318
|
},
|
|
32371
32319
|
flexStatusChange: function flexStatusChange(list, key) {
|
|
32372
32320
|
return [{
|
|
32373
|
-
db_name: dbName
|
|
32321
|
+
db_name: dbName,
|
|
32374
32322
|
entity: "CA_OrderAttribMaster",
|
|
32375
32323
|
is_metadata: true,
|
|
32376
32324
|
filter: {
|
|
@@ -32384,7 +32332,7 @@ var flexQuery = {
|
|
|
32384
32332
|
},
|
|
32385
32333
|
flexAttrSingleRead: function flexAttrSingleRead(key) {
|
|
32386
32334
|
return {
|
|
32387
|
-
db_name: dbName
|
|
32335
|
+
db_name: dbName,
|
|
32388
32336
|
entity: "CA_OrderAttribMaster",
|
|
32389
32337
|
filter: "CA_OrderAttribMaster._key=='".concat(key, "' && CA_OrderAttribMaster.activestatus==true"),
|
|
32390
32338
|
return_fields: "merge(CA_OrderAttribMaster,{attribtype:document(CA_OrderAttribMaster.attribtype)},{attribnumUOM:(document(CA_OrderAttribMaster.attribnumUOM))})"
|
|
@@ -32392,7 +32340,7 @@ var flexQuery = {
|
|
|
32392
32340
|
},
|
|
32393
32341
|
flexAttrSearch: function flexAttrSearch(search) {
|
|
32394
32342
|
return {
|
|
32395
|
-
db_name: dbName
|
|
32343
|
+
db_name: dbName,
|
|
32396
32344
|
entity: "CA_OrderAttribMaster",
|
|
32397
32345
|
filter: "(like (CA_OrderAttribMaster.attribcode,'%".concat(search, "%',true)) && CA_OrderAttribMaster.activestatus==true"),
|
|
32398
32346
|
return_fields: "merge(CA_OrderAttribMaster,{attribtype:document(CA_OrderAttribMaster.attribtype).display},{attribnumUOM:to_array(document(CA_OrderAttribMaster.attribnumUOM).display)})"
|
|
@@ -32482,7 +32430,7 @@ var flexQuery = {
|
|
|
32482
32430
|
}
|
|
32483
32431
|
|
|
32484
32432
|
return [_objectSpread2(_objectSpread2({
|
|
32485
|
-
db_name: dbName
|
|
32433
|
+
db_name: dbName,
|
|
32486
32434
|
entity: "CA_OrderAttribMaster",
|
|
32487
32435
|
is_metadata: true,
|
|
32488
32436
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -32862,7 +32810,7 @@ var flexMaster = _objectSpread2({}, flexAttributeActions);
|
|
|
32862
32810
|
var flexCriteriaQuery = {
|
|
32863
32811
|
flexCriteriaDropDown: function flexCriteriaDropDown(list, id) {
|
|
32864
32812
|
return {
|
|
32865
|
-
db_name: dbName
|
|
32813
|
+
db_name: dbName,
|
|
32866
32814
|
entity: "CA_OrderAttribMaster",
|
|
32867
32815
|
filter: "CA_OrderAttribMaster.attribcode=='".concat(list, "' && CA_OrderAttribMaster.attribtype=='").concat(id, "' && CA_OrderAttribMaster.status==true && CA_OrderAttribMaster.activestatus==true"),
|
|
32868
32816
|
return_fields: "MERGE(CA_OrderAttribMaster,{AttribValidValues:first((for att in TO_ARRAY(CA_OrderAttribMaster.AttribValidValues) filter att.Dfltflag==true return att.validdisplayValue))},{attribtype:document(CA_OrderAttribMaster.attribtype).display},{attribnumUOM:document(CA_OrderAttribMaster.attribnumUOM).display})"
|
|
@@ -32870,7 +32818,7 @@ var flexCriteriaQuery = {
|
|
|
32870
32818
|
},
|
|
32871
32819
|
flexCriteriaCodeDropDown: function flexCriteriaCodeDropDown() {
|
|
32872
32820
|
return {
|
|
32873
|
-
db_name: dbName
|
|
32821
|
+
db_name: dbName,
|
|
32874
32822
|
entity: "CA_OrderAttribMaster",
|
|
32875
32823
|
filter: "CA_OrderAttribMaster.status == true && CA_OrderAttribMaster.activestatus == true",
|
|
32876
32824
|
return_fields: "keep(CA_OrderAttribMaster,'_key','_id','attribcode','attriblabel','status','attribtype')",
|
|
@@ -32879,7 +32827,7 @@ var flexCriteriaQuery = {
|
|
|
32879
32827
|
},
|
|
32880
32828
|
flexCriteriaFullRead: function flexCriteriaFullRead(page, perpage, search) {
|
|
32881
32829
|
return {
|
|
32882
|
-
db_name: dbName
|
|
32830
|
+
db_name: dbName,
|
|
32883
32831
|
entity: "CA_FlexAttribApplicability",
|
|
32884
32832
|
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32885
32833
|
limit: {
|
|
@@ -32892,7 +32840,7 @@ var flexCriteriaQuery = {
|
|
|
32892
32840
|
},
|
|
32893
32841
|
flexCriteriaSingleRead: function flexCriteriaSingleRead(key) {
|
|
32894
32842
|
return {
|
|
32895
|
-
db_name: dbName
|
|
32843
|
+
db_name: dbName,
|
|
32896
32844
|
entity: "CA_FlexAttribApplicability",
|
|
32897
32845
|
filter: "CA_FlexAttribApplicability._key == '".concat(key, "' && CA_FlexAttribApplicability.activestatus == true"),
|
|
32898
32846
|
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
@@ -32902,7 +32850,7 @@ var flexCriteriaQuery = {
|
|
|
32902
32850
|
var _list$attributeLableN, _list$attributeCompon;
|
|
32903
32851
|
|
|
32904
32852
|
return [{
|
|
32905
|
-
db_name: dbName
|
|
32853
|
+
db_name: dbName,
|
|
32906
32854
|
entity: "CA_FlexAttribApplicability",
|
|
32907
32855
|
is_metadata: true,
|
|
32908
32856
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -32925,7 +32873,7 @@ var flexCriteriaQuery = {
|
|
|
32925
32873
|
},
|
|
32926
32874
|
flexCriteriaStatus: function flexCriteriaStatus(status, key) {
|
|
32927
32875
|
return [{
|
|
32928
|
-
db_name: dbName
|
|
32876
|
+
db_name: dbName,
|
|
32929
32877
|
entity: "CA_FlexAttribApplicability",
|
|
32930
32878
|
filter: {
|
|
32931
32879
|
_key: key
|
|
@@ -32941,7 +32889,7 @@ var flexCriteriaQuery = {
|
|
|
32941
32889
|
var _list$attributeLableN2, _list$status;
|
|
32942
32890
|
|
|
32943
32891
|
return [{
|
|
32944
|
-
db_name: dbName
|
|
32892
|
+
db_name: dbName,
|
|
32945
32893
|
entity: "CA_FlexAttribApplicability",
|
|
32946
32894
|
filter: {
|
|
32947
32895
|
_key: list === null || list === void 0 ? void 0 : list.key
|
|
@@ -32970,7 +32918,7 @@ var flexCriteriaQuery = {
|
|
|
32970
32918
|
},
|
|
32971
32919
|
flexCriteriaSearch: function flexCriteriaSearch(search) {
|
|
32972
32920
|
return {
|
|
32973
|
-
db_name: dbName
|
|
32921
|
+
db_name: dbName,
|
|
32974
32922
|
entity: "CA_FlexAttribApplicability",
|
|
32975
32923
|
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32976
32924
|
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
@@ -33405,7 +33353,7 @@ var query$2 = {
|
|
|
33405
33353
|
// }
|
|
33406
33354
|
|
|
33407
33355
|
return {
|
|
33408
|
-
"db_name": "".concat(dbName
|
|
33356
|
+
"db_name": "".concat(dbName),
|
|
33409
33357
|
"entity": "Diagnosis",
|
|
33410
33358
|
"filter": "Diagnosis.levelnumber == -1 && Diagnosis.activestatus == true",
|
|
33411
33359
|
"return_fields": "Diagnosis",
|
|
@@ -33415,7 +33363,7 @@ var query$2 = {
|
|
|
33415
33363
|
diagnosisListChild: function diagnosisListChild(level, code) {
|
|
33416
33364
|
var childvl = level + 1;
|
|
33417
33365
|
return {
|
|
33418
|
-
"db_name": "".concat(dbName
|
|
33366
|
+
"db_name": "".concat(dbName),
|
|
33419
33367
|
"entity": "Diagnosis",
|
|
33420
33368
|
"filter": "Diagnosis.parenticdcode=='".concat(code, "' && Diagnosis.levelnumber == ").concat(childvl, " && Diagnosis.activestatus==true"),
|
|
33421
33369
|
"return_fields": "Diagnosis",
|
|
@@ -33426,7 +33374,7 @@ var query$2 = {
|
|
|
33426
33374
|
var _data$effTo;
|
|
33427
33375
|
|
|
33428
33376
|
return [{
|
|
33429
|
-
"db_name": "".concat(dbName
|
|
33377
|
+
"db_name": "".concat(dbName),
|
|
33430
33378
|
"entity": "Diagnosis",
|
|
33431
33379
|
"is_metadata": true,
|
|
33432
33380
|
"filter": {
|
|
@@ -33440,7 +33388,7 @@ var query$2 = {
|
|
|
33440
33388
|
},
|
|
33441
33389
|
searchList: function searchList(text) {
|
|
33442
33390
|
return {
|
|
33443
|
-
"db_name": "".concat(dbName
|
|
33391
|
+
"db_name": "".concat(dbName),
|
|
33444
33392
|
"entity": "Diagnosis",
|
|
33445
33393
|
"filter": "(LIKE (Diagnosis.icdcode, '%".concat(text, "%', true) || LIKE (Diagnosis.icdname, '%").concat(text, "%', true)) && Diagnosis.activestatus==true limit 50"),
|
|
33446
33394
|
"return_fields": "Diagnosis",
|
|
@@ -33670,7 +33618,7 @@ var consultActions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
|
|
|
33670
33618
|
|
|
33671
33619
|
var query$1 = {
|
|
33672
33620
|
// pending list
|
|
33673
|
-
getList: "{\n \"db_name\": \"".concat(dbName
|
|
33621
|
+
getList: "{\n \"db_name\": \"".concat(dbName, "\",\n \"queryid\": \"2b8b8013-75da-43c0-b2f8-c6f411e7e630\"\n }"),
|
|
33674
33622
|
// view pending detials
|
|
33675
33623
|
getPendingPatientList: function getPendingPatientList(data) {
|
|
33676
33624
|
// return`{
|
|
@@ -33682,7 +33630,7 @@ var query$1 = {
|
|
|
33682
33630
|
// },
|
|
33683
33631
|
// "return_fields": "MERGE(Appointment,{reasonCode: (FOR res in ReasonMaster filter Appointment.reasonCode any == res.ReasonCode return res),Patient:MERGE(Patient,{gender: (FOR cd in CodingMaster filter cd._id == Patient.gender RETURN cd.display),name:(FOR hn IN TO_ARRAY(Patient.name) RETURN DOCUMENT(hn)),telecom:(FOR tel IN TO_ARRAY(Patient.telecom) RETURN DOCUMENT(tel))})})"
|
|
33684
33632
|
// }`
|
|
33685
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
33633
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment,Patient\",\n \"filter\": {\n \"Appointment\": \"").concat(data === null || data === void 0 ? void 0 : data.id, " == Document(Appointment.resourcecode).id AND Appointment.start>=DATE_TIMESTAMP(DATE_NOW()/1000) AND Appointment.appstatus == 'pending'\",\n \"Patient\": \"Patient.personID IN Appointment.PersonID\"\n },\n \"return_fields\": \"MERGE(Appointment,{reasonCode: (FOR res in ReasonMaster filter Appointment.reasonCode any == res.ReasonCode return res),Patient:MERGE(Patient,{gender: (FOR cd in CodingMaster filter cd._id == Patient.gender RETURN cd.display),name:(FOR hn IN TO_ARRAY(Patient.name) RETURN DOCUMENT(hn)),telecom:(FOR tel IN TO_ARRAY(Patient.telecom) RETURN DOCUMENT(tel)),slotID:(for doc in Slot filter doc.id in Appointment.slotID return merge(doc,{blockreason:document(doc.blockreason)}))})})\"\n }");
|
|
33686
33634
|
},
|
|
33687
33635
|
getPractitionerAgainstSpeciality: function getPractitionerAgainstSpeciality(data) {
|
|
33688
33636
|
// return`
|
|
@@ -33694,10 +33642,10 @@ var query$1 = {
|
|
|
33694
33642
|
// },
|
|
33695
33643
|
// "return_fields": "{ 'Practitioner':(FOR pract IN Practitioner FILTER Practitioner.id !=pract.id AND DOCUMENT(Practitioner.practitioner_role)[*].role ANY IN DOCUMENT(pract.practitioner_role)[*].role RETURN MERGE(pract,{name:(FOR hn IN TO_ARRAY(pract.name) RETURN DOCUMENT(hn)) ,practitioner_role:(FOR practrole IN TO_ARRAY(pract.practitioner_role) RETURN MERGE(DOCUMENT(practrole),{role:MERGE(DOCUMENT(DOCUMENT(practrole).role),{coding:DOCUMENT(DOCUMENT(DOCUMENT(practrole).role).coding)}) ,SpecialtyID:MERGE(DOCUMENT(DOCUMENT(practrole).SpecialtyID),{coding:DOCUMENT(DOCUMENT(DOCUMENT(practrole).SpecialtyID).coding)}) })) }))}"
|
|
33696
33644
|
// }`
|
|
33697
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
33645
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Appointment,Practitioner\",\n \"filter\": {\n \"Appointment\": \"Appointment.id==").concat(data === null || data === void 0 ? void 0 : data.appId, "\",\n \"Practitioner\": \"Practitioner.id == Document(Appointment.resourcecode).id \"\n },\n \"return_fields\": \"{ 'Practitioner':(FOR pract IN Practitioner FILTER Practitioner.id !=pract.id AND DOCUMENT(Practitioner.practitioner_role)[*].role ANY IN DOCUMENT(pract.practitioner_role)[*].role RETURN MERGE(pract,{name:(FOR hn IN TO_ARRAY(pract.name) RETURN DOCUMENT(hn)) ,practitioner_role:(FOR practrole IN TO_ARRAY(pract.practitioner_role) RETURN MERGE(DOCUMENT(practrole),{role:MERGE(DOCUMENT(DOCUMENT(practrole).role),{coding:DOCUMENT(DOCUMENT(DOCUMENT(practrole).role).coding)}) ,SpecialtyID:MERGE(DOCUMENT(DOCUMENT(practrole).SpecialtyID),{coding:DOCUMENT(DOCUMENT(DOCUMENT(practrole).SpecialtyID).coding)}) })) }))}\"\n }");
|
|
33698
33646
|
},
|
|
33699
33647
|
getCancellationReason: function getCancellationReason(data) {
|
|
33700
|
-
return "{\n \"db_name\": \"".concat(dbName
|
|
33648
|
+
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"ReasonMaster\",\n \"filter\": \"ReasonMaster.ReasonCode == '").concat(data === null || data === void 0 ? void 0 : data.code, "'\",\n \"return_fields\": \"ReasonMaster\"\n }");
|
|
33701
33649
|
}
|
|
33702
33650
|
};
|
|
33703
33651
|
|
|
@@ -33723,10 +33671,10 @@ var GET_PENDING_RESCHEDULE_LIST = createAsyncThunk("getPendingRescheduleListApiS
|
|
|
33723
33671
|
case 5:
|
|
33724
33672
|
data = _context.sent;
|
|
33725
33673
|
returnedData = data ? data === null || data === void 0 ? void 0 : data.map(function (_) {
|
|
33726
|
-
var
|
|
33674
|
+
var _$name$0$text, _$name, _$name$, _$Date, _$role$0$role$coding$, _$role, _$role$, _$role$$role, _$role$$role$coding, _$role$$role$coding$, _ref3, _$role$0$SpecialtyID$, _$role2, _$role2$, _$role2$$SpecialtyID, _$role2$$SpecialtyID$, _$role2$$SpecialtyID$2, _$role3, _$role3$, _$role3$$SpecialtyID, _$affectedappointment, _$id;
|
|
33727
33675
|
|
|
33728
33676
|
return {
|
|
33729
|
-
"resource name": (
|
|
33677
|
+
"resource name": (_$name$0$text = _ === null || _ === void 0 ? void 0 : (_$name = _.name) === null || _$name === void 0 ? void 0 : (_$name$ = _$name[0]) === null || _$name$ === void 0 ? void 0 : _$name$.text) !== null && _$name$0$text !== void 0 ? _$name$0$text : '',
|
|
33730
33678
|
"date": (_$Date = _ === null || _ === void 0 ? void 0 : _.Date) !== null && _$Date !== void 0 ? _$Date : '',
|
|
33731
33679
|
"role": (_$role$0$role$coding$ = _ === null || _ === void 0 ? void 0 : (_$role = _.role) === null || _$role === void 0 ? void 0 : (_$role$ = _$role[0]) === null || _$role$ === void 0 ? void 0 : (_$role$$role = _$role$.role) === null || _$role$$role === void 0 ? void 0 : (_$role$$role$coding = _$role$$role.coding) === null || _$role$$role$coding === void 0 ? void 0 : (_$role$$role$coding$ = _$role$$role$coding[0]) === null || _$role$$role$coding$ === void 0 ? void 0 : _$role$$role$coding$.display) !== null && _$role$0$role$coding$ !== void 0 ? _$role$0$role$coding$ : '',
|
|
33732
33680
|
"speciality": (_ref3 = (_$role$0$SpecialtyID$ = _ === null || _ === void 0 ? void 0 : (_$role2 = _.role) === null || _$role2 === void 0 ? void 0 : (_$role2$ = _$role2[0]) === null || _$role2$ === void 0 ? void 0 : (_$role2$$SpecialtyID = _$role2$.SpecialtyID) === null || _$role2$$SpecialtyID === void 0 ? void 0 : (_$role2$$SpecialtyID$ = _$role2$$SpecialtyID.coding) === null || _$role2$$SpecialtyID$ === void 0 ? void 0 : (_$role2$$SpecialtyID$2 = _$role2$$SpecialtyID$[0]) === null || _$role2$$SpecialtyID$2 === void 0 ? void 0 : _$role2$$SpecialtyID$2.display) !== null && _$role$0$SpecialtyID$ !== void 0 ? _$role$0$SpecialtyID$ : _ === null || _ === void 0 ? void 0 : (_$role3 = _.role) === null || _$role3 === void 0 ? void 0 : (_$role3$ = _$role3[0]) === null || _$role3$ === void 0 ? void 0 : (_$role3$$SpecialtyID = _$role3$.SpecialtyID) === null || _$role3$$SpecialtyID === void 0 ? void 0 : _$role3$$SpecialtyID.display) !== null && _ref3 !== void 0 ? _ref3 : '',
|
|
@@ -33777,15 +33725,14 @@ var VIEW_PENDING_PATIENT_LIST = createAsyncThunk("getPendingRescheduleListApiSli
|
|
|
33777
33725
|
case 5:
|
|
33778
33726
|
data = _context2.sent;
|
|
33779
33727
|
returnedData = data !== null && data !== void 0 && data.result ? data === null || data === void 0 ? void 0 : (_data$result = data.result) === null || _data$result === void 0 ? void 0 : _data$result.map(function (_) {
|
|
33780
|
-
var _$Patient,
|
|
33728
|
+
var _$Patient$name$0$give, _$Patient, _$Patient$name, _$Patient$name$, _$Patient$alias, _$Patient2, _$Patient$age, _$Patient3, _$Patient$telecom$0$v, _$Patient4, _$Patient4$telecom, _$Patient4$telecom$, _$appno, _$Patient$slotID$0$bl, _$Patient5, _$Patient5$slotID, _$Patient5$slotID$, _$Patient5$slotID$$bl, _$Patient$gender$, _$Patient6, _$Patient6$gender, _$id2;
|
|
33781
33729
|
|
|
33782
|
-
var age = getAge(_ === null || _ === void 0 ? void 0 : (_$Patient = _.Patient) === null || _$Patient === void 0 ? void 0 : _$Patient.birthDate);
|
|
33783
33730
|
return {
|
|
33784
33731
|
"select": false,
|
|
33785
|
-
"name": (
|
|
33786
|
-
"mrn": (_$Patient$alias = _ === null || _ === void 0 ? void 0 : (_$
|
|
33787
|
-
"age": age !== null && age !== void 0 ? age : '',
|
|
33788
|
-
"mobile no": (
|
|
33732
|
+
"name": (_$Patient$name$0$give = _ === null || _ === void 0 ? void 0 : (_$Patient = _.Patient) === null || _$Patient === void 0 ? void 0 : (_$Patient$name = _$Patient.name) === null || _$Patient$name === void 0 ? void 0 : (_$Patient$name$ = _$Patient$name[0]) === null || _$Patient$name$ === void 0 ? void 0 : _$Patient$name$.given) !== null && _$Patient$name$0$give !== void 0 ? _$Patient$name$0$give : '',
|
|
33733
|
+
"mrn": (_$Patient$alias = _ === null || _ === void 0 ? void 0 : (_$Patient2 = _.Patient) === null || _$Patient2 === void 0 ? void 0 : _$Patient2.alias) !== null && _$Patient$alias !== void 0 ? _$Patient$alias : '',
|
|
33734
|
+
"age": (_$Patient$age = _ === null || _ === void 0 ? void 0 : (_$Patient3 = _.Patient) === null || _$Patient3 === void 0 ? void 0 : _$Patient3.age) !== null && _$Patient$age !== void 0 ? _$Patient$age : '',
|
|
33735
|
+
"mobile no": (_$Patient$telecom$0$v = _ === null || _ === void 0 ? void 0 : (_$Patient4 = _.Patient) === null || _$Patient4 === void 0 ? void 0 : (_$Patient4$telecom = _$Patient4.telecom) === null || _$Patient4$telecom === void 0 ? void 0 : (_$Patient4$telecom$ = _$Patient4$telecom[0]) === null || _$Patient4$telecom$ === void 0 ? void 0 : _$Patient4$telecom$.value) !== null && _$Patient$telecom$0$v !== void 0 ? _$Patient$telecom$0$v : '',
|
|
33789
33736
|
"appt ref no.": (_$appno = _ === null || _ === void 0 ? void 0 : _.appno) !== null && _$appno !== void 0 ? _$appno : '',
|
|
33790
33737
|
"appt date & time": _ !== null && _ !== void 0 && _.start ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.start, 'DD MMM,YYYY hh:mm A') : '',
|
|
33791
33738
|
"reason": (_$Patient$slotID$0$bl = _ === null || _ === void 0 ? void 0 : (_$Patient5 = _.Patient) === null || _$Patient5 === void 0 ? void 0 : (_$Patient5$slotID = _$Patient5.slotID) === null || _$Patient5$slotID === void 0 ? void 0 : (_$Patient5$slotID$ = _$Patient5$slotID[0]) === null || _$Patient5$slotID$ === void 0 ? void 0 : (_$Patient5$slotID$$bl = _$Patient5$slotID$.blockreason) === null || _$Patient5$slotID$$bl === void 0 ? void 0 : _$Patient5$slotID$$bl.display) !== null && _$Patient$slotID$0$bl !== void 0 ? _$Patient$slotID$0$bl : '',
|
|
@@ -33813,7 +33760,7 @@ var VIEW_PENDING_PATIENT_LIST = createAsyncThunk("getPendingRescheduleListApiSli
|
|
|
33813
33760
|
})));
|
|
33814
33761
|
var GET_PRACTITIONER_AGAINST_SPECIALITY = createAsyncThunk("getPendingRescheduleListApiSlice/getPractitionerAgainstSpeciality", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
33815
33762
|
var payload,
|
|
33816
|
-
|
|
33763
|
+
_ref7,
|
|
33817
33764
|
rejectWithValue,
|
|
33818
33765
|
_data$result2,
|
|
33819
33766
|
_data$result2$,
|
|
@@ -33829,7 +33776,7 @@ var GET_PRACTITIONER_AGAINST_SPECIALITY = createAsyncThunk("getPendingReschedule
|
|
|
33829
33776
|
switch (_context3.prev = _context3.next) {
|
|
33830
33777
|
case 0:
|
|
33831
33778
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
33832
|
-
|
|
33779
|
+
_ref7 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref7.rejectWithValue;
|
|
33833
33780
|
_context3.prev = 2;
|
|
33834
33781
|
_context3.next = 5;
|
|
33835
33782
|
return fetchData({
|
|
@@ -33871,7 +33818,7 @@ var GET_PRACTITIONER_AGAINST_SPECIALITY = createAsyncThunk("getPendingReschedule
|
|
|
33871
33818
|
})));
|
|
33872
33819
|
var CANCELLATION_REASON = createAsyncThunk("getPendingRescheduleListApiSlice/getCancellationReason", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
33873
33820
|
var payload,
|
|
33874
|
-
|
|
33821
|
+
_ref9,
|
|
33875
33822
|
rejectWithValue,
|
|
33876
33823
|
_data$result4,
|
|
33877
33824
|
data,
|
|
@@ -33883,7 +33830,7 @@ var CANCELLATION_REASON = createAsyncThunk("getPendingRescheduleListApiSlice/get
|
|
|
33883
33830
|
switch (_context4.prev = _context4.next) {
|
|
33884
33831
|
case 0:
|
|
33885
33832
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
33886
|
-
|
|
33833
|
+
_ref9 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref9.rejectWithValue;
|
|
33887
33834
|
_context4.prev = 2;
|
|
33888
33835
|
_context4.next = 5;
|
|
33889
33836
|
return fetchData({
|
|
@@ -33961,7 +33908,7 @@ var pendingRescheduleListSlice = getPendingRescheduleListApiSlice.reducer;
|
|
|
33961
33908
|
var queries$3 = {
|
|
33962
33909
|
geoCodeType: function geoCodeType(type) {
|
|
33963
33910
|
return {
|
|
33964
|
-
db_name: dbName
|
|
33911
|
+
db_name: dbName,
|
|
33965
33912
|
entity: "CodingMaster",
|
|
33966
33913
|
sort: "CodingMaster.display",
|
|
33967
33914
|
filter: "CodingMaster.activestatus==true && CodingMaster.Type=='GEOCODE'",
|
|
@@ -33970,7 +33917,7 @@ var queries$3 = {
|
|
|
33970
33917
|
},
|
|
33971
33918
|
geoParentType: function geoParentType(type) {
|
|
33972
33919
|
return {
|
|
33973
|
-
db_name: dbName
|
|
33920
|
+
db_name: dbName,
|
|
33974
33921
|
entity: "CodingMaster",
|
|
33975
33922
|
sort: "CodingMaster.display",
|
|
33976
33923
|
filter: "CodingMaster.activestatus==true && CodingMaster.Type=='GEOCODE'",
|
|
@@ -33980,7 +33927,7 @@ var queries$3 = {
|
|
|
33980
33927
|
//COUNTRY READ
|
|
33981
33928
|
geoCountryRead: function geoCountryRead() {
|
|
33982
33929
|
return {
|
|
33983
|
-
db_name: dbName
|
|
33930
|
+
db_name: dbName,
|
|
33984
33931
|
entity: "SMGeographicMaster",
|
|
33985
33932
|
filter: "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='country'",
|
|
33986
33933
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -33992,7 +33939,7 @@ var queries$3 = {
|
|
|
33992
33939
|
var _ref, _ref$toUpperCase;
|
|
33993
33940
|
|
|
33994
33941
|
return {
|
|
33995
|
-
db_name: dbName
|
|
33942
|
+
db_name: dbName,
|
|
33996
33943
|
entity: "SMGeographicMaster",
|
|
33997
33944
|
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), "'"),
|
|
33998
33945
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -34004,7 +33951,7 @@ var queries$3 = {
|
|
|
34004
33951
|
var _ref2, _ref2$toUpperCase;
|
|
34005
33952
|
|
|
34006
33953
|
return {
|
|
34007
|
-
db_name: dbName
|
|
33954
|
+
db_name: dbName,
|
|
34008
33955
|
entity: "SMGeographicMaster",
|
|
34009
33956
|
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), "'"),
|
|
34010
33957
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -34016,7 +33963,7 @@ var queries$3 = {
|
|
|
34016
33963
|
var _ref3, _ref3$toUpperCase;
|
|
34017
33964
|
|
|
34018
33965
|
return {
|
|
34019
|
-
db_name: dbName
|
|
33966
|
+
db_name: dbName,
|
|
34020
33967
|
entity: "SMGeographicMaster",
|
|
34021
33968
|
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), "'"),
|
|
34022
33969
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -34028,7 +33975,7 @@ var queries$3 = {
|
|
|
34028
33975
|
var _ref4, _ref4$toUpperCase;
|
|
34029
33976
|
|
|
34030
33977
|
return {
|
|
34031
|
-
db_name: dbName
|
|
33978
|
+
db_name: dbName,
|
|
34032
33979
|
entity: "SMGeographicMaster",
|
|
34033
33980
|
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), "'"),
|
|
34034
33981
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -34038,7 +33985,7 @@ var queries$3 = {
|
|
|
34038
33985
|
//STATUS CHANGE
|
|
34039
33986
|
geoStatusChange: function geoStatusChange(data) {
|
|
34040
33987
|
return [{
|
|
34041
|
-
db_name: dbName
|
|
33988
|
+
db_name: dbName,
|
|
34042
33989
|
entity: "SMGeographicMaster",
|
|
34043
33990
|
filter: {
|
|
34044
33991
|
_key: data._key
|
|
@@ -34053,7 +34000,7 @@ var queries$3 = {
|
|
|
34053
34000
|
//GEOGRAPHIC_MASTER_MASTER
|
|
34054
34001
|
geoMasterMaster: function geoMasterMaster() {
|
|
34055
34002
|
return {
|
|
34056
|
-
db_name: dbName
|
|
34003
|
+
db_name: dbName,
|
|
34057
34004
|
entity: "CodingMaster",
|
|
34058
34005
|
sort: "CodingMaster.display",
|
|
34059
34006
|
filter: "CodingMaster.activestatus==true && CodingMaster.Type=='GEOCODE'",
|
|
@@ -34063,7 +34010,7 @@ var queries$3 = {
|
|
|
34063
34010
|
//GEOGRAPHIC_PARENT_CODE
|
|
34064
34011
|
geoMasterParentCode: function geoMasterParentCode(id) {
|
|
34065
34012
|
return {
|
|
34066
|
-
db_name: dbName
|
|
34013
|
+
db_name: dbName,
|
|
34067
34014
|
entity: "SMGeographicMaster",
|
|
34068
34015
|
sort: "SMGeographicMaster.geogLevelName",
|
|
34069
34016
|
filter: "SMGeographicMaster.geogLevelType=='".concat(id, "' && SMGeographicMaster.activestatus==true"),
|
|
@@ -34073,7 +34020,7 @@ var queries$3 = {
|
|
|
34073
34020
|
//GEOGRAPHIC_SINGLE_READ
|
|
34074
34021
|
editGeoGraphicSingleRead: function editGeoGraphicSingleRead(id) {
|
|
34075
34022
|
return {
|
|
34076
|
-
db_name: dbName
|
|
34023
|
+
db_name: dbName,
|
|
34077
34024
|
entity: "SMGeographicMaster",
|
|
34078
34025
|
filter: "SMGeographicMaster.activestatus==true && SMGeographicMaster._key=='".concat(id, "'"),
|
|
34079
34026
|
return_fields: "{_id:SMGeographicMaster._id, id:SMGeographicMaster.id, geogLevelType:document(SMGeographicMaster.geogLevelType), geogLevelCode:SMGeographicMaster.geogLevelCode, geogLevelName:SMGeographicMaster.geogLevelName, parentGeogLevelType:document(SMGeographicMaster.parentGeogLevelType), GeoLocationISDCode :SMGeographicMaster.GeoLocationISDCode, parentGeogLevelCode:document(SMGeographicMaster.parentGeogLevelCode), active: SMGeographicMaster.activestatus,_key:SMGeographicMaster._key}"
|
|
@@ -34083,7 +34030,7 @@ var queries$3 = {
|
|
|
34083
34030
|
geoCodeExits: function geoCodeExits(_ref5) {
|
|
34084
34031
|
var levelType = _ref5.levelType,
|
|
34085
34032
|
geoLevelCode = _ref5.geoLevelCode;
|
|
34086
|
-
return "{\n\t\t\t\"db_name\": \"".concat(dbName
|
|
34033
|
+
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 }");
|
|
34087
34034
|
}
|
|
34088
34035
|
};
|
|
34089
34036
|
|
|
@@ -34101,7 +34048,7 @@ var generateJson = function generateJson(data) {
|
|
|
34101
34048
|
}
|
|
34102
34049
|
|
|
34103
34050
|
var arr = [_objectSpread2(_objectSpread2({
|
|
34104
|
-
"db_name": dbName
|
|
34051
|
+
"db_name": dbName,
|
|
34105
34052
|
"entity": "SMGeographicMaster",
|
|
34106
34053
|
"is_metadata": true
|
|
34107
34054
|
}, filter), {}, {
|
|
@@ -34955,8 +34902,8 @@ var additionalcolumns = function additionalcolumns(list) {
|
|
|
34955
34902
|
};
|
|
34956
34903
|
|
|
34957
34904
|
var queries$2 = {
|
|
34958
|
-
generalMasterlist_val: "{\n \"db_name\": \"".concat(dbName
|
|
34959
|
-
generalMasterlist: "{\n \"db_name\": \"".concat(dbName
|
|
34905
|
+
generalMasterlist_val: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"GMvalues\",\n \"filter\": \"GMvalues.activestatus==true\",\n \"return_fields\": \"merge(GMvalues,{gentype:document(GMvalues.gentype)})\"\n }"),
|
|
34906
|
+
generalMasterlist: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"GMdefinition\",\n \"sort\":\"GMdefinition.gentype\",\n \"filter\": \"GMdefinition.activestatus==true\",\n \"return_fields\": \"merge(GMdefinition,{additionalcolumns:(for ad in GMdefinition.additionalcolumns return merge(ad,{columntype:document(ad.columntype)}))})\"\n }"),
|
|
34960
34907
|
// column_type: `{
|
|
34961
34908
|
// "db_name": "${dbName}",
|
|
34962
34909
|
// "entity": "CodingMaster",
|
|
@@ -34964,8 +34911,8 @@ var queries$2 = {
|
|
|
34964
34911
|
// "filter": "CodingMaster.Type=='QDMDATATYPE' && CodingMaster.activestatus==true",
|
|
34965
34912
|
// "return_fields": "{ID:CodingMaster.id,_id:CodingMaster._id,Key:CodingMaster._key,ColumnType:CodingMaster.display,code:CodingMaster.code}"
|
|
34966
34913
|
// }`,
|
|
34967
|
-
column_type: "{\n \"db_name\": \"".concat(dbName
|
|
34968
|
-
visit_type_indicator: "{\n \"db_name\": \"".concat(dbName
|
|
34914
|
+
column_type: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type=='QDMDATATYPE' && CodingMaster.activestatus==true && CodingMaster.status==true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type')\"\n }"),
|
|
34915
|
+
visit_type_indicator: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type=='VISITTYPEINDICATOR' && CodingMaster.activestatus==true && CodingMaster.status==true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')\"\n }"),
|
|
34969
34916
|
upsert_general_master: function upsert_general_master(datas) {
|
|
34970
34917
|
var filter = {};
|
|
34971
34918
|
|
|
@@ -34978,7 +34925,7 @@ var queries$2 = {
|
|
|
34978
34925
|
}
|
|
34979
34926
|
};
|
|
34980
34927
|
return [_objectSpread2(_objectSpread2({
|
|
34981
|
-
"db_name": dbName
|
|
34928
|
+
"db_name": dbName,
|
|
34982
34929
|
"entity": "GMdefinition",
|
|
34983
34930
|
"is_metadata": true
|
|
34984
34931
|
}, filter), {}, {
|
|
@@ -34991,7 +34938,7 @@ var queries$2 = {
|
|
|
34991
34938
|
var _datas$general_type, _datas$general_name, _datas$additional_col2;
|
|
34992
34939
|
|
|
34993
34940
|
return [_objectSpread2(_objectSpread2({
|
|
34994
|
-
"db_name": dbName
|
|
34941
|
+
"db_name": dbName,
|
|
34995
34942
|
"entity": "GMdefinition",
|
|
34996
34943
|
"is_metadata": true
|
|
34997
34944
|
}, filter), {}, {
|
|
@@ -35008,7 +34955,7 @@ var queries$2 = {
|
|
|
35008
34955
|
},
|
|
35009
34956
|
get_general_master_type: function get_general_master_type(type) {
|
|
35010
34957
|
return {
|
|
35011
|
-
"db_name": dbName
|
|
34958
|
+
"db_name": dbName,
|
|
35012
34959
|
"entity": "CodeableConceptMaster",
|
|
35013
34960
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
35014
34961
|
"filter": "CodeableConceptMaster.Type=='".concat(type, "' && CodeableConceptMaster.activestatus==true"),
|
|
@@ -35040,7 +34987,7 @@ var queries$2 = {
|
|
|
35040
34987
|
// }
|
|
35041
34988
|
// ]
|
|
35042
34989
|
return [{
|
|
35043
|
-
"db_name": dbName
|
|
34990
|
+
"db_name": dbName,
|
|
35044
34991
|
"entity": "CodeableConceptMaster",
|
|
35045
34992
|
"is_metadata": true,
|
|
35046
34993
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -35068,7 +35015,7 @@ var queries$2 = {
|
|
|
35068
35015
|
var _edit_data$_key, _edit_data$code$trim, _edit_data$code, _edit_data$long_descr, _edit_data$short_desc, _edit_data$addition;
|
|
35069
35016
|
|
|
35070
35017
|
return [{
|
|
35071
|
-
"db_name": dbName
|
|
35018
|
+
"db_name": dbName,
|
|
35072
35019
|
"entity": "CodingMaster",
|
|
35073
35020
|
"is_metadata": true,
|
|
35074
35021
|
"filter": {
|
|
@@ -35107,7 +35054,7 @@ var queries$2 = {
|
|
|
35107
35054
|
// }
|
|
35108
35055
|
// ]
|
|
35109
35056
|
return [{
|
|
35110
|
-
"db_name": dbName
|
|
35057
|
+
"db_name": dbName,
|
|
35111
35058
|
"entity": "CodeableConceptMaster",
|
|
35112
35059
|
"is_metadata": true,
|
|
35113
35060
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -35125,7 +35072,7 @@ var queries$2 = {
|
|
|
35125
35072
|
},
|
|
35126
35073
|
codingMasterQuery: function codingMasterQuery(name) {
|
|
35127
35074
|
return {
|
|
35128
|
-
"db_name": dbName
|
|
35075
|
+
"db_name": dbName,
|
|
35129
35076
|
"entity": "CodingMaster",
|
|
35130
35077
|
"filter": "CodingMaster.Type== '".concat(name, "' && CodingMaster.activestatus==true && CodingMaster.status==true"),
|
|
35131
35078
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
@@ -35789,7 +35736,7 @@ var generalMasterSlice$1 = generalMasterSlice.reducer;
|
|
|
35789
35736
|
var queries$1 = {
|
|
35790
35737
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
35791
35738
|
return [{
|
|
35792
|
-
db_name: dbName
|
|
35739
|
+
db_name: dbName,
|
|
35793
35740
|
entity: "CodeableConceptMaster",
|
|
35794
35741
|
filter: {
|
|
35795
35742
|
_key: data._key
|
|
@@ -35803,7 +35750,7 @@ var queries$1 = {
|
|
|
35803
35750
|
},
|
|
35804
35751
|
status_update_symptom_and_specialty: function status_update_symptom_and_specialty(data) {
|
|
35805
35752
|
return [{
|
|
35806
|
-
db_name: dbName
|
|
35753
|
+
db_name: dbName,
|
|
35807
35754
|
entity: "SymptomsMapping",
|
|
35808
35755
|
filter: {
|
|
35809
35756
|
_key: data._key
|
|
@@ -35829,7 +35776,7 @@ var queries$1 = {
|
|
|
35829
35776
|
}
|
|
35830
35777
|
|
|
35831
35778
|
return [_objectSpread2(_objectSpread2({
|
|
35832
|
-
db_name: dbName
|
|
35779
|
+
db_name: dbName,
|
|
35833
35780
|
entity: "SymptomsMapping"
|
|
35834
35781
|
}, filter), {}, {
|
|
35835
35782
|
is_metadata: true,
|
|
@@ -35845,7 +35792,7 @@ var queries$1 = {
|
|
|
35845
35792
|
},
|
|
35846
35793
|
symptom_and_specialty_read: function symptom_and_specialty_read() {
|
|
35847
35794
|
return {
|
|
35848
|
-
db_name: dbName
|
|
35795
|
+
db_name: dbName,
|
|
35849
35796
|
entity: "SymptomsMapping",
|
|
35850
35797
|
filter: "SymptomsMapping.activestatus==true",
|
|
35851
35798
|
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})",
|
|
@@ -35854,7 +35801,7 @@ var queries$1 = {
|
|
|
35854
35801
|
},
|
|
35855
35802
|
symptom_and_specialty_single_read: function symptom_and_specialty_single_read(_key) {
|
|
35856
35803
|
return {
|
|
35857
|
-
db_name: dbName
|
|
35804
|
+
db_name: dbName,
|
|
35858
35805
|
entity: "SymptomsMapping",
|
|
35859
35806
|
filter: "SymptomsMapping._key=='".concat(_key, "' && SymptomsMapping.activestatus==true"),
|
|
35860
35807
|
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})"
|
|
@@ -35862,7 +35809,7 @@ var queries$1 = {
|
|
|
35862
35809
|
},
|
|
35863
35810
|
specialtyMaster: function specialtyMaster() {
|
|
35864
35811
|
return {
|
|
35865
|
-
db_name: dbName
|
|
35812
|
+
db_name: dbName,
|
|
35866
35813
|
entity: "CodeableConceptMaster",
|
|
35867
35814
|
filter: "CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.activestatus==true",
|
|
35868
35815
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
@@ -35888,7 +35835,7 @@ var queries$1 = {
|
|
|
35888
35835
|
}
|
|
35889
35836
|
|
|
35890
35837
|
return [_objectSpread2(_objectSpread2({
|
|
35891
|
-
db_name: dbName
|
|
35838
|
+
db_name: dbName,
|
|
35892
35839
|
entity: "CodeableConceptMaster",
|
|
35893
35840
|
is_metadata: true,
|
|
35894
35841
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -36233,7 +36180,7 @@ var symptomAndSpecialtySlice$1 = symptomAndSpecialtySlice.reducer;
|
|
|
36233
36180
|
var queries = {
|
|
36234
36181
|
encounterType: function encounterType(type) {
|
|
36235
36182
|
return {
|
|
36236
|
-
"db_name": dbName
|
|
36183
|
+
"db_name": dbName,
|
|
36237
36184
|
"entity": "AMPatientClass",
|
|
36238
36185
|
"filter": "AMPatientClass.activestatus==true",
|
|
36239
36186
|
"return_fields": "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
|
|
@@ -36243,7 +36190,7 @@ var queries = {
|
|
|
36243
36190
|
//STATUS CHANGE
|
|
36244
36191
|
encouterStatusChange: function encouterStatusChange(data) {
|
|
36245
36192
|
return [{
|
|
36246
|
-
"db_name": dbName
|
|
36193
|
+
"db_name": dbName,
|
|
36247
36194
|
"entity": "AMPatientClass",
|
|
36248
36195
|
"filter": {
|
|
36249
36196
|
_key: data._key
|
|
@@ -36283,13 +36230,11 @@ var ENCOUNTER_TYPE_READ = createAsyncThunk("encouterTypeSlice/encouterTypeRead",
|
|
|
36283
36230
|
arry = [];
|
|
36284
36231
|
data.result.map(function (val, i) {
|
|
36285
36232
|
if (val !== null && val !== void 0 && val._id) {
|
|
36286
|
-
var _val$encTypeDesc, _val$encType;
|
|
36287
|
-
|
|
36288
36233
|
arry.push(_objectSpread2({
|
|
36289
36234
|
id: val === null || val === void 0 ? void 0 : val.id,
|
|
36290
|
-
description:
|
|
36291
|
-
code:
|
|
36292
|
-
encounter_class: val
|
|
36235
|
+
description: val === null || val === void 0 ? void 0 : val.encTypeDesc,
|
|
36236
|
+
code: val === null || val === void 0 ? void 0 : val.encType,
|
|
36237
|
+
encounter_class: (val === null || val === void 0 ? void 0 : val.encClsDesc) + " ( " + (val === null || val === void 0 ? void 0 : val.encClsType) + " )"
|
|
36293
36238
|
}, val));
|
|
36294
36239
|
}
|
|
36295
36240
|
});
|
|
@@ -36391,7 +36336,8 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36391
36336
|
var payload,
|
|
36392
36337
|
_ref2,
|
|
36393
36338
|
rejectWithValue,
|
|
36394
|
-
|
|
36339
|
+
_data$,
|
|
36340
|
+
_data$2,
|
|
36395
36341
|
_payload$id,
|
|
36396
36342
|
id,
|
|
36397
36343
|
_payload$startdate,
|
|
@@ -36402,7 +36348,6 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36402
36348
|
type,
|
|
36403
36349
|
body,
|
|
36404
36350
|
isClinic,
|
|
36405
|
-
resp,
|
|
36406
36351
|
data,
|
|
36407
36352
|
slots,
|
|
36408
36353
|
healthCareId,
|
|
@@ -36417,11 +36362,14 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36417
36362
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
36418
36363
|
_context.prev = 2;
|
|
36419
36364
|
_payload$id = payload.id, id = _payload$id === void 0 ? "" : _payload$id, _payload$startdate = payload.startdate, startdate = _payload$startdate === void 0 ? "" : _payload$startdate, _payload$enddate = payload.enddate, enddate = _payload$enddate === void 0 ? "" : _payload$enddate, _payload$type = payload.type, type = _payload$type === void 0 ? "" : _payload$type;
|
|
36420
|
-
body =
|
|
36421
|
-
|
|
36422
|
-
|
|
36423
|
-
|
|
36424
|
-
|
|
36365
|
+
body = {
|
|
36366
|
+
db_name: dbName,
|
|
36367
|
+
filter: _defineProperty({
|
|
36368
|
+
startdate: startdate,
|
|
36369
|
+
enddate: enddate
|
|
36370
|
+
}, type, id),
|
|
36371
|
+
queryid: query_ids["slotApiSlice/readSlot"][type]
|
|
36372
|
+
};
|
|
36425
36373
|
isClinic = false;
|
|
36426
36374
|
|
|
36427
36375
|
if (type === 'clinicid') {
|
|
@@ -36431,13 +36379,12 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36431
36379
|
_context.next = 9;
|
|
36432
36380
|
return fetchData({
|
|
36433
36381
|
body: JSON.stringify(body)
|
|
36434
|
-
},
|
|
36382
|
+
}, __baseUrl__$1);
|
|
36435
36383
|
|
|
36436
36384
|
case 9:
|
|
36437
|
-
|
|
36438
|
-
|
|
36439
|
-
|
|
36440
|
-
healthCareId = (data === null || data === void 0 ? void 0 : data.orgId) || [];
|
|
36385
|
+
data = _context.sent;
|
|
36386
|
+
slots = (data === null || data === void 0 ? void 0 : (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.slots) || [];
|
|
36387
|
+
healthCareId = (data === null || data === void 0 ? void 0 : (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2.HealthCareServiceID) || [];
|
|
36441
36388
|
returnData = {
|
|
36442
36389
|
morning: [],
|
|
36443
36390
|
afternoone: [],
|
|
@@ -36446,30 +36393,34 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36446
36393
|
allSession: [],
|
|
36447
36394
|
slots: slots,
|
|
36448
36395
|
isClinic: isClinic,
|
|
36449
|
-
healthCareId: healthCareId
|
|
36450
|
-
|
|
36451
|
-
|
|
36452
|
-
|
|
36453
|
-
|
|
36454
|
-
|
|
36455
|
-
|
|
36396
|
+
healthCareId: healthCareId
|
|
36397
|
+
}; // filterSlots(
|
|
36398
|
+
// slots,
|
|
36399
|
+
// returnData.morning,
|
|
36400
|
+
// returnData.afternoone,
|
|
36401
|
+
// returnData.evening,
|
|
36402
|
+
// returnData.night,
|
|
36403
|
+
// returnData.allSession,
|
|
36404
|
+
// isClinic,
|
|
36405
|
+
// );
|
|
36406
|
+
|
|
36456
36407
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
36457
36408
|
data: returnData
|
|
36458
36409
|
}));
|
|
36459
36410
|
|
|
36460
|
-
case
|
|
36461
|
-
_context.prev =
|
|
36411
|
+
case 16:
|
|
36412
|
+
_context.prev = 16;
|
|
36462
36413
|
_context.t0 = _context["catch"](2);
|
|
36463
36414
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36464
36415
|
message: _context.t0.message
|
|
36465
36416
|
})));
|
|
36466
36417
|
|
|
36467
|
-
case
|
|
36418
|
+
case 19:
|
|
36468
36419
|
case "end":
|
|
36469
36420
|
return _context.stop();
|
|
36470
36421
|
}
|
|
36471
36422
|
}
|
|
36472
|
-
}, _callee, null, [[2,
|
|
36423
|
+
}, _callee, null, [[2, 16]]);
|
|
36473
36424
|
})));
|
|
36474
36425
|
var SLOT_AVAILABILITY = createAsyncThunk("slotAvailabilityApiSlice/slotAvailability", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
36475
36426
|
var payload,
|
|
@@ -36490,7 +36441,7 @@ var SLOT_AVAILABILITY = createAsyncThunk("slotAvailabilityApiSlice/slotAvailabil
|
|
|
36490
36441
|
_context2.prev = 2;
|
|
36491
36442
|
_payload$slotId = payload.slotId, slotId = _payload$slotId === void 0 ? "" : _payload$slotId;
|
|
36492
36443
|
body = {
|
|
36493
|
-
"db_name": dbName
|
|
36444
|
+
"db_name": dbName,
|
|
36494
36445
|
"queryid": query_ids["slotAvailabilityApiSlice/slotAvailability"],
|
|
36495
36446
|
"filter": {
|
|
36496
36447
|
slotid: slotId
|
|
@@ -36550,7 +36501,7 @@ var slotAvailabilityApiSlice$1 = slotAvailabilityApiSlice.reducer;
|
|
|
36550
36501
|
var query = {
|
|
36551
36502
|
modifyStatusAppointment: function modifyStatusAppointment(data) {
|
|
36552
36503
|
return [{
|
|
36553
|
-
"db_name": dbName
|
|
36504
|
+
"db_name": dbName,
|
|
36554
36505
|
"entity": "Appointment",
|
|
36555
36506
|
"filter": {
|
|
36556
36507
|
"id": data === null || data === void 0 ? void 0 : data.id
|
|
@@ -36581,7 +36532,7 @@ var APPOINTMENT_READ = createAsyncThunk("appointmentApiSlice/readAppointment", /
|
|
|
36581
36532
|
_context.prev = 2;
|
|
36582
36533
|
_payload$appointmentI = payload.appointmentId, appointmentId = _payload$appointmentI === void 0 ? "" : _payload$appointmentI;
|
|
36583
36534
|
body = {
|
|
36584
|
-
db_name: dbName
|
|
36535
|
+
db_name: dbName,
|
|
36585
36536
|
queryid: query_ids["appointmentApiSlice/readAppointment"],
|
|
36586
36537
|
filter: {
|
|
36587
36538
|
appointment_id: appointmentId
|
|
@@ -36629,7 +36580,7 @@ var APPOINTMENT_DELETE = createAsyncThunk("appointmentApiSlice/deleteAppointment
|
|
|
36629
36580
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
36630
36581
|
_context2.prev = 2;
|
|
36631
36582
|
body = [{
|
|
36632
|
-
db_name: dbName
|
|
36583
|
+
db_name: dbName,
|
|
36633
36584
|
entity: "Appointment",
|
|
36634
36585
|
is_metadata: true,
|
|
36635
36586
|
metadataId: query_ids["appointmentApiSlice/deleteAppointment"],
|
|
@@ -36689,7 +36640,7 @@ var APPOINTMENT_UPDATE = createAsyncThunk("appointmentApiSlice/updateAppointment
|
|
|
36689
36640
|
_context3.prev = 2;
|
|
36690
36641
|
// start end slotId
|
|
36691
36642
|
body = [{
|
|
36692
|
-
db_name: dbName
|
|
36643
|
+
db_name: dbName,
|
|
36693
36644
|
entity: "Appointment",
|
|
36694
36645
|
is_metadata: true,
|
|
36695
36646
|
metadataId: query_ids["appointmentApiSlice/updateAppointment"],
|
|
@@ -36792,7 +36743,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/getReas
|
|
|
36792
36743
|
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
36793
36744
|
_context5.prev = 2;
|
|
36794
36745
|
body = {
|
|
36795
|
-
db_name: dbName
|
|
36746
|
+
db_name: dbName,
|
|
36796
36747
|
entity: "CodingMaster",
|
|
36797
36748
|
filter: "CodingMaster.Type=='".concat(payload.type, "' && CodingMaster.activestatus==true"),
|
|
36798
36749
|
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|