primary_care_admin_binder 0.1.39 → 0.1.40
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 +470 -463
- 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 = process.env.REACT_APP_DATABASE_NAME;
|
|
2259
|
+
var dbName$1 = 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");
|
|
@@ -7983,7 +7983,7 @@ var fetchData = /*#__PURE__*/function () {
|
|
|
7983
7983
|
}();
|
|
7984
7984
|
|
|
7985
7985
|
var makeName = function makeName() {
|
|
7986
|
-
var _prefix$coding, _prefix$coding$, _suffix$coding, _suffix$coding
|
|
7986
|
+
var _prefix$, _prefix$$coding, _prefix$$coding$, _prefix$coding, _prefix$coding$, _prefix$2, _suffix$, _suffix$$coding, _suffix$$coding$, _suffix$coding, _suffix$coding$, _suffix$2;
|
|
7987
7987
|
|
|
7988
7988
|
var nameObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7989
7989
|
var _nameObj$prefix = nameObj.prefix,
|
|
@@ -7993,10 +7993,12 @@ var makeName = function makeName() {
|
|
|
7993
7993
|
_nameObj$text = nameObj.text,
|
|
7994
7994
|
text = _nameObj$text === void 0 ? "" : _nameObj$text,
|
|
7995
7995
|
_nameObj$suffix = nameObj.suffix,
|
|
7996
|
-
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
7996
|
+
suffix = _nameObj$suffix === void 0 ? "" : _nameObj$suffix,
|
|
7997
|
+
_nameObj$family = nameObj.family,
|
|
7998
|
+
family = _nameObj$family === void 0 ? "" : _nameObj$family;
|
|
7999
|
+
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$ = prefix[0]) === 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) || (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) || (prefix === null || prefix === void 0 ? void 0 : (_prefix$2 = prefix[0]) === null || _prefix$2 === void 0 ? void 0 : _prefix$2.display) || (prefix === null || prefix === void 0 ? void 0 : prefix.display) || "";
|
|
8000
|
+
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) || "";
|
|
8001
|
+
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(family && family + " ").concat(suffixVal && suffixVal);
|
|
8000
8002
|
}; // const getUtcTime = (date) => {
|
|
8001
8003
|
// let a = null
|
|
8002
8004
|
// if (date) {
|
|
@@ -8047,7 +8049,7 @@ var utcTOLocal = function utcTOLocal(date, format) {
|
|
|
8047
8049
|
var queries$n = {
|
|
8048
8050
|
rolelist: function rolelist(type) {
|
|
8049
8051
|
return {
|
|
8050
|
-
db_name: dbName,
|
|
8052
|
+
db_name: dbName$1,
|
|
8051
8053
|
entity: "CodeableConceptMaster",
|
|
8052
8054
|
filter: "CodeableConceptMaster.Type=='".concat(type, "'"),
|
|
8053
8055
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
@@ -8079,7 +8081,7 @@ var queries$n = {
|
|
|
8079
8081
|
}
|
|
8080
8082
|
|
|
8081
8083
|
return [_objectSpread2(_objectSpread2({
|
|
8082
|
-
db_name: dbName,
|
|
8084
|
+
db_name: dbName$1,
|
|
8083
8085
|
entity: "CodeableConceptMaster",
|
|
8084
8086
|
is_metadata: true,
|
|
8085
8087
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -8105,16 +8107,16 @@ var queries$n = {
|
|
|
8105
8107
|
},
|
|
8106
8108
|
practitioner_by_id: function practitioner_by_id(id) {
|
|
8107
8109
|
return {
|
|
8108
|
-
db_name: dbName,
|
|
8110
|
+
db_name: dbName$1,
|
|
8109
8111
|
entity: "Practitioner",
|
|
8110
8112
|
filter: "Practitioner._key=='".concat(id, "' && Practitioner.activestatus==true"),
|
|
8111
8113
|
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))}))})"
|
|
8112
8114
|
};
|
|
8113
8115
|
},
|
|
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 }"),
|
|
8116
|
+
practitioner_list: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8115
8117
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
8116
8118
|
return [{
|
|
8117
|
-
db_name: dbName,
|
|
8119
|
+
db_name: dbName$1,
|
|
8118
8120
|
entity: "Practitioner",
|
|
8119
8121
|
filter: {
|
|
8120
8122
|
_key: data._key
|
|
@@ -8128,7 +8130,7 @@ var queries$n = {
|
|
|
8128
8130
|
},
|
|
8129
8131
|
get_entity_by_id: function get_entity_by_id(id) {
|
|
8130
8132
|
return {
|
|
8131
|
-
"db_name": dbName,
|
|
8133
|
+
"db_name": dbName$1,
|
|
8132
8134
|
"entity": "Organization",
|
|
8133
8135
|
"sort": "Organization.name",
|
|
8134
8136
|
"filter": "Organization.activestatus==true && Organization.OrgType any =='".concat(id, "'"),
|
|
@@ -8475,7 +8477,7 @@ var generateJSON$2 = function generateJSON(data, _key, person_id) {
|
|
|
8475
8477
|
}
|
|
8476
8478
|
|
|
8477
8479
|
var json = [_objectSpread2(_objectSpread2({
|
|
8478
|
-
"db_name": dbName,
|
|
8480
|
+
"db_name": dbName$1,
|
|
8479
8481
|
"entity": "Practitioner",
|
|
8480
8482
|
"is_metadata": true,
|
|
8481
8483
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -8886,44 +8888,44 @@ var practitionerActions$1 = {
|
|
|
8886
8888
|
var practitionerSlice$1 = practitionerSlice.reducer;
|
|
8887
8889
|
|
|
8888
8890
|
var masterQuery$7 = {
|
|
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 }"),
|
|
8891
|
+
"id_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8892
|
+
"id_number": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8893
|
+
"prefix": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8894
|
+
"suffix": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8895
|
+
"gender": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8896
|
+
"use": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8897
|
+
"practitioner_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8898
|
+
"Communication_languages": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8899
|
+
"speciality": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8898
8900
|
// "entity": `{
|
|
8899
8901
|
// "db_name": "${dbName}",
|
|
8900
8902
|
// "entity": "Organization",
|
|
8901
8903
|
// "filter": "Organization.OrgType!=[]",
|
|
8902
8904
|
// "return_fields": "DISTINCT Organization.OrgType[0]"
|
|
8903
8905
|
// }`,
|
|
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 }"),
|
|
8906
|
+
"entity": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8905
8907
|
// "entity_name": `{
|
|
8906
8908
|
// "db_name": "${dbName}",
|
|
8907
8909
|
// "entity": "Organization",
|
|
8908
8910
|
// "filter": "'Hospital' IN Organization.OrgType",
|
|
8909
8911
|
// "return_fields": "{OrgID:Organization.id,name:Organization.name}"
|
|
8910
8912
|
// }`,
|
|
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 }")
|
|
8913
|
+
"entity_name": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8914
|
+
"Address_use": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8915
|
+
"contact_mode": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8916
|
+
"priority": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8917
|
+
"address_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8918
|
+
"role": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8919
|
+
"location": "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"LocationMaster\",\n \"sort\":\"LocationMaster.shortdesc\",\n \"filter\": \"LocationMaster.activestatus==true\",\n \"return_fields\": \"LocationMaster\"\n }"),
|
|
8920
|
+
"city": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8921
|
+
"district": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8922
|
+
"state": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8923
|
+
"country": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8924
|
+
"position": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8925
|
+
"employee_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8926
|
+
"marital_status": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8927
|
+
"nationality": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
8928
|
+
"country_code": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }")
|
|
8927
8929
|
};
|
|
8928
8930
|
|
|
8929
8931
|
var getOptionWithMaster = function getOptionWithMaster(data) {
|
|
@@ -9509,13 +9511,13 @@ var practitionerMasterActions = {
|
|
|
9509
9511
|
var practitionerMasterSlice$1 = practitionerMasterSlice.reducer;
|
|
9510
9512
|
|
|
9511
9513
|
var query$c = {
|
|
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 }"),
|
|
9514
|
+
unitUom: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
9513
9515
|
// getAgeRange: `{
|
|
9514
9516
|
// "db_name": "${dbName}",
|
|
9515
9517
|
// "entity": "AgeRanges",
|
|
9516
9518
|
// "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)} ) ) } ) ) } )"
|
|
9517
9519
|
// }`,
|
|
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 }")
|
|
9520
|
+
getAgeRange: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }")
|
|
9519
9521
|
};
|
|
9520
9522
|
|
|
9521
9523
|
var generateJson$c = function generateJson(data) {
|
|
@@ -9530,7 +9532,7 @@ var generateJson$c = function generateJson(data) {
|
|
|
9530
9532
|
}
|
|
9531
9533
|
|
|
9532
9534
|
return [_objectSpread2(_objectSpread2({
|
|
9533
|
-
"db_name": dbName
|
|
9535
|
+
"db_name": dbName$1
|
|
9534
9536
|
}, filter), {}, {
|
|
9535
9537
|
"entity": "AgeRanges",
|
|
9536
9538
|
"is_metadata": true,
|
|
@@ -9628,7 +9630,7 @@ var UPDATE_AGE_RANGE = createAsyncThunk("ageRangeMasterApiSlice/update_age_range
|
|
|
9628
9630
|
_context2.prev = 2;
|
|
9629
9631
|
editId = payload.editId, status = payload.status;
|
|
9630
9632
|
queriesjson = [{
|
|
9631
|
-
"db_name": dbName,
|
|
9633
|
+
"db_name": dbName$1,
|
|
9632
9634
|
"entity": "AgeRanges",
|
|
9633
9635
|
"filter": "AgeRanges._id==\"".concat(editId, "\""),
|
|
9634
9636
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -9788,7 +9790,7 @@ var ageRangeMasterActions = {
|
|
|
9788
9790
|
var ageRangeMasterSlice$1 = ageRangeMasterSlice.reducer;
|
|
9789
9791
|
|
|
9790
9792
|
var query$b = {
|
|
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 }")
|
|
9793
|
+
getList: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\": \"VitalsMeasureCodes.createddate\",\n \"filter\": {\n \"VitalsMeasureCodes\":\"VitalsMeasureCodes.activestatus==true\"\n },\n \"return_fields\": \"VitalsMeasureCodes\"\n }")
|
|
9792
9794
|
};
|
|
9793
9795
|
|
|
9794
9796
|
var generateJson$b = function generateJson(data) {
|
|
@@ -9803,7 +9805,7 @@ var generateJson$b = function generateJson(data) {
|
|
|
9803
9805
|
}
|
|
9804
9806
|
|
|
9805
9807
|
return [_objectSpread2(_objectSpread2({
|
|
9806
|
-
"db_name": dbName
|
|
9808
|
+
"db_name": dbName$1
|
|
9807
9809
|
}, filter), {}, {
|
|
9808
9810
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
9809
9811
|
"entity": "VitalsMeasureCodes",
|
|
@@ -9922,7 +9924,7 @@ var UPDATE_MEASURE_CODE_STATUS = createAsyncThunk("ageRangeMasterApiSlice/update
|
|
|
9922
9924
|
_context3.prev = 2;
|
|
9923
9925
|
editId = payload.editId, status = payload.status;
|
|
9924
9926
|
queriesjson = [{
|
|
9925
|
-
"db_name": dbName,
|
|
9927
|
+
"db_name": dbName$1,
|
|
9926
9928
|
"entity": "VitalsMeasureCodes",
|
|
9927
9929
|
"filter": "VitalsMeasureCodes._id==\"".concat(editId, "\""),
|
|
9928
9930
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -9993,15 +9995,15 @@ var vitalsMeasureCodeSlice$1 = vitalsMeasureCodeSlice.reducer;
|
|
|
9993
9995
|
var query$a = {
|
|
9994
9996
|
entityName: function entityName(data) {
|
|
9995
9997
|
return {
|
|
9996
|
-
db_name: dbName,
|
|
9998
|
+
db_name: dbName$1,
|
|
9997
9999
|
entity: "Organization",
|
|
9998
10000
|
sort: "Organization.name",
|
|
9999
10001
|
filter: "Organization.OrgType==['".concat(data, "'] && Organization.activestatus==true"),
|
|
10000
10002
|
return_fields: "Organization"
|
|
10001
10003
|
};
|
|
10002
10004
|
},
|
|
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 }"),
|
|
10005
|
+
entityType: "{ \n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
10006
|
+
gender: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
10005
10007
|
specialityCodeOrgId: function specialityCodeOrgId(data) {
|
|
10006
10008
|
return {
|
|
10007
10009
|
// db_name: dbName,
|
|
@@ -10014,19 +10016,19 @@ var query$a = {
|
|
|
10014
10016
|
// sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
10015
10017
|
// return_fields:
|
|
10016
10018
|
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
10017
|
-
db_name: dbName,
|
|
10019
|
+
db_name: dbName$1,
|
|
10018
10020
|
entity: "Organization",
|
|
10019
10021
|
filter: "Organization.id==".concat(data.id, " && Organization.activestatus==true"),
|
|
10020
10022
|
return_fields: " DOCUMENT(Organization.specialtyDetails[0].specialty)"
|
|
10021
10023
|
};
|
|
10022
10024
|
},
|
|
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 }"),
|
|
10025
|
+
specialityCode: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
10026
|
+
diagnosis: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"Diagnosis\",\n \"filter\": \"Diagnosis.activestatus==true\",\n \"return_fields\": \"{'_id':Diagnosis._id,'icdcode':Diagnosis.icdcode,'icdname':Diagnosis.icdname,'parenticdcode':Diagnosis.parenticdcode}\"\n }"),
|
|
10027
|
+
ageRanges: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
10028
|
+
vitalcode: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"VitalsCodes\",\n \"sort\":\"VitalsCodes.vitalscode\",\n \"filter\": \"VitalsCodes.activestatus==true and VitalsCodes.status==true\",\n \"return_fields\": \"{'id':VitalsCodes._id,'obscode':VitalsCodes.vitalscode,'shortdesc':VitalsCodes.shortdesc,'longdesc':VitalsCodes.longdesc,'_id':VitalsCodes._id}\"\n }"),
|
|
10027
10029
|
ageCategory: function ageCategory(ageRangeId) {
|
|
10028
10030
|
return {
|
|
10029
|
-
db_name: dbName,
|
|
10031
|
+
db_name: dbName$1,
|
|
10030
10032
|
entity: "AgeRanges",
|
|
10031
10033
|
sort: "AgeRanges.agerangecode",
|
|
10032
10034
|
filter: {
|
|
@@ -10035,10 +10037,10 @@ var query$a = {
|
|
|
10035
10037
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
10036
10038
|
};
|
|
10037
10039
|
},
|
|
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}"),
|
|
10040
|
+
VitalApplicableRead: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
10039
10041
|
editVitalApplicable: function editVitalApplicable(id) {
|
|
10040
10042
|
return {
|
|
10041
|
-
db_name: dbName,
|
|
10043
|
+
db_name: dbName$1,
|
|
10042
10044
|
entity: "VitalsApplbyPatAtrrib",
|
|
10043
10045
|
filter: "VitalsApplbyPatAtrrib.activestatus==true && VitalsApplbyPatAtrrib._key=='".concat(id.split("/")[1], "'"),
|
|
10044
10046
|
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))})"
|
|
@@ -10046,7 +10048,7 @@ var query$a = {
|
|
|
10046
10048
|
},
|
|
10047
10049
|
Diagnosis: function Diagnosis(input_text) {
|
|
10048
10050
|
return {
|
|
10049
|
-
db_name: dbName,
|
|
10051
|
+
db_name: dbName$1,
|
|
10050
10052
|
entity: "Diagnosis",
|
|
10051
10053
|
filter: "Diagnosis.activestatus==true && Diagnosis.icdname LIKE '%".concat(input_text, "%'"),
|
|
10052
10054
|
return_fields: "{'_id':Diagnosis._id,'icdcode':Diagnosis.icdcode,'icdname':Diagnosis.icdname,'parenticdcode':Diagnosis.parenticdcode}"
|
|
@@ -10074,7 +10076,7 @@ var generateSaveJSON$1 = function generateSaveJSON(data) {
|
|
|
10074
10076
|
}
|
|
10075
10077
|
|
|
10076
10078
|
return [_objectSpread2(_objectSpread2({
|
|
10077
|
-
db_name: dbName,
|
|
10079
|
+
db_name: dbName$1,
|
|
10078
10080
|
entity: "VitalsApplbyPatAtrrib"
|
|
10079
10081
|
}, filter), {}, {
|
|
10080
10082
|
is_metadata: true,
|
|
@@ -10140,7 +10142,7 @@ var GetDiagnosis = function GetDiagnosis(diag, state) {
|
|
|
10140
10142
|
|
|
10141
10143
|
var generateApplicableUpdateJSON = function generateApplicableUpdateJSON(editID, Status) {
|
|
10142
10144
|
return [{
|
|
10143
|
-
db_name: dbName,
|
|
10145
|
+
db_name: dbName$1,
|
|
10144
10146
|
entity: "VitalsApplbyPatAtrrib",
|
|
10145
10147
|
filter: {
|
|
10146
10148
|
_id: editID
|
|
@@ -10992,13 +10994,13 @@ var vitalsApplicableActions = {
|
|
|
10992
10994
|
var vitalsApplicableSlice$1 = vitalsApplicableSlice.reducer;
|
|
10993
10995
|
|
|
10994
10996
|
var query$9 = {
|
|
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 }"),
|
|
10997
|
+
gender: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
10998
|
+
unitAllowed: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"VitalsMeasureCodes\",\n \"sort\":\"VitalsMeasureCodes.ObsValMeasCode\",\n \"filter\": \"VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes.status==true\",\n \"return_fields\": \"VitalsMeasureCodes\"\n }"),
|
|
10999
|
+
referenceUnitAllowed: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
11000
|
+
ageRanges: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeRanges\",\n \"filter\": {\n \"AgeRanges\":\"AgeRanges.activestatus==true \"\n },\n \"return_fields\": \"{'AgeRangesDtl':AgeRanges,'AgeCategoryDtl':DOCUMENT(AgeRanges.AgeCategory)}\"\n }"),
|
|
10999
11001
|
ageCategory: function ageCategory(ageRangeId) {
|
|
11000
11002
|
return {
|
|
11001
|
-
db_name: dbName,
|
|
11003
|
+
db_name: dbName$1,
|
|
11002
11004
|
entity: "AgeRanges",
|
|
11003
11005
|
filter: {
|
|
11004
11006
|
AgeRanges: "AgeRanges.activestatus==true && AgeRanges._id=='".concat(ageRangeId, "' ")
|
|
@@ -11006,26 +11008,26 @@ var query$9 = {
|
|
|
11006
11008
|
return_fields: "DOCUMENT( AgeRanges.AgeCategory)"
|
|
11007
11009
|
};
|
|
11008
11010
|
},
|
|
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}"),
|
|
11011
|
+
category: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"AgeCategory\",\n \"filter\": \"AgeCategory.activestatus==true\",\n \"return_fields\": \"{_id:AgeCategory._id, id:AgeCategory.id, code:AgeCategory.code, age_minimum:AgeCategory.age_minimum, age_maximum:AgeCategory.age_maximum, UOM:AgeCategory.UOM}\"\n}"),
|
|
11010
11012
|
defaultUnit: function defaultUnit(AllowedUnit) {
|
|
11011
11013
|
return {
|
|
11012
|
-
db_name: dbName,
|
|
11014
|
+
db_name: dbName$1,
|
|
11013
11015
|
entity: "VitalsMeasureCodes",
|
|
11014
11016
|
filter: "VitalsMeasureCodes.activestatus==true && VitalsMeasureCodes._id IN ['".concat(AllowedUnit.join("','"), "']"),
|
|
11015
11017
|
return_fields: "VitalsMeasureCodes"
|
|
11016
11018
|
};
|
|
11017
11019
|
},
|
|
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 }"),
|
|
11020
|
+
VitalRead: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
11019
11021
|
deleteVitalMaster: function deleteVitalMaster(id) {
|
|
11020
11022
|
return {
|
|
11021
|
-
db_name: dbName,
|
|
11023
|
+
db_name: dbName$1,
|
|
11022
11024
|
entity: "VitalsCodes",
|
|
11023
11025
|
filter: "VitalsCodes._id=='".concat(id, "'")
|
|
11024
11026
|
};
|
|
11025
11027
|
},
|
|
11026
11028
|
editVitalmaster: function editVitalmaster(id) {
|
|
11027
11029
|
return {
|
|
11028
|
-
db_name: dbName,
|
|
11030
|
+
db_name: dbName$1,
|
|
11029
11031
|
entity: "VitalsCodes",
|
|
11030
11032
|
filter: "VitalsCodes.activestatus==true && VitalsCodes._id=='".concat(id, "'"),
|
|
11031
11033
|
return_fields: "MERGE(VitalsCodes,{VitalsCodesReferenceRanges:(FOR cod IN VitalsCodes.VitalsCodesReferenceRanges RETURN DOCUMENT(cod))})"
|
|
@@ -11068,7 +11070,7 @@ var generateJSON$1 = function generateJSON(data) {
|
|
|
11068
11070
|
}
|
|
11069
11071
|
|
|
11070
11072
|
return [_objectSpread2(_objectSpread2({
|
|
11071
|
-
db_name: dbName,
|
|
11073
|
+
db_name: dbName$1,
|
|
11072
11074
|
entity: "VitalsCodes"
|
|
11073
11075
|
}, filter), {}, {
|
|
11074
11076
|
is_metadata: true,
|
|
@@ -11134,7 +11136,7 @@ var generateResJson$1 = function generateResJson(data) {
|
|
|
11134
11136
|
|
|
11135
11137
|
var generateUpdateJSON$1 = function generateUpdateJSON(editID, Status) {
|
|
11136
11138
|
return [{
|
|
11137
|
-
db_name: dbName,
|
|
11139
|
+
db_name: dbName$1,
|
|
11138
11140
|
entity: "VitalsCodes",
|
|
11139
11141
|
filter: {
|
|
11140
11142
|
_id: editID
|
|
@@ -11845,7 +11847,7 @@ var queries$m = {
|
|
|
11845
11847
|
// return_fields: "{vertices:v,orginatedata:LocationMaster}",
|
|
11846
11848
|
// };
|
|
11847
11849
|
return {
|
|
11848
|
-
db_name: dbName,
|
|
11850
|
+
db_name: dbName$1,
|
|
11849
11851
|
entity: "LocationMaster",
|
|
11850
11852
|
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)}))})"
|
|
11851
11853
|
};
|
|
@@ -11865,7 +11867,7 @@ var queries$m = {
|
|
|
11865
11867
|
}
|
|
11866
11868
|
|
|
11867
11869
|
return [_objectSpread2(_objectSpread2({
|
|
11868
|
-
db_name: dbName,
|
|
11870
|
+
db_name: dbName$1,
|
|
11869
11871
|
entity: "LocationMaster",
|
|
11870
11872
|
is_metadata: true,
|
|
11871
11873
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -11892,7 +11894,7 @@ var queries$m = {
|
|
|
11892
11894
|
// "return_fields": "{vertices:v,orginatedata:LocationMaster}"
|
|
11893
11895
|
// }
|
|
11894
11896
|
return {
|
|
11895
|
-
db_name: dbName,
|
|
11897
|
+
db_name: dbName$1,
|
|
11896
11898
|
entity: "LocationMaster",
|
|
11897
11899
|
filter: "LocationMaster._key == '".concat(id, "'"),
|
|
11898
11900
|
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)}))})"
|
|
@@ -11908,7 +11910,7 @@ var queries$m = {
|
|
|
11908
11910
|
}
|
|
11909
11911
|
|
|
11910
11912
|
return [_objectSpread2({
|
|
11911
|
-
db_name: dbName,
|
|
11913
|
+
db_name: dbName$1,
|
|
11912
11914
|
entity: "LocationMaster",
|
|
11913
11915
|
is_metadata: true,
|
|
11914
11916
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -12084,7 +12086,7 @@ var generateJSON = function generateJSON(data, _key) {
|
|
|
12084
12086
|
}
|
|
12085
12087
|
});
|
|
12086
12088
|
var json = [_objectSpread2(_objectSpread2({
|
|
12087
|
-
db_name: dbName,
|
|
12089
|
+
db_name: dbName$1,
|
|
12088
12090
|
entity: "LocationMaster",
|
|
12089
12091
|
is_metadata: true,
|
|
12090
12092
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -12358,7 +12360,7 @@ var locationSlice$1 = locationSlice.reducer;
|
|
|
12358
12360
|
var masterQuery$6 = {
|
|
12359
12361
|
locationMasterEntityType: function locationMasterEntityType() {
|
|
12360
12362
|
return {
|
|
12361
|
-
db_name: dbName,
|
|
12363
|
+
db_name: dbName$1,
|
|
12362
12364
|
entity: "CodeableConceptMaster",
|
|
12363
12365
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12364
12366
|
filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12375,7 +12377,7 @@ var masterQuery$6 = {
|
|
|
12375
12377
|
// "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}",
|
|
12376
12378
|
// }
|
|
12377
12379
|
return {
|
|
12378
|
-
"db_name": dbName,
|
|
12380
|
+
"db_name": dbName$1,
|
|
12379
12381
|
"entity": "Organization",
|
|
12380
12382
|
"sort": "Organization.name",
|
|
12381
12383
|
"filter": "Organization.OrgType==['".concat(type, "'] && Organization.activestatus==true"),
|
|
@@ -12384,7 +12386,7 @@ var masterQuery$6 = {
|
|
|
12384
12386
|
},
|
|
12385
12387
|
locationMasterLocationType: function locationMasterLocationType() {
|
|
12386
12388
|
return {
|
|
12387
|
-
db_name: dbName,
|
|
12389
|
+
db_name: dbName$1,
|
|
12388
12390
|
entity: "CodeableConceptMaster",
|
|
12389
12391
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12390
12392
|
filter: "CodeableConceptMaster.Type=='LOCATIONTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12393,7 +12395,7 @@ var masterQuery$6 = {
|
|
|
12393
12395
|
},
|
|
12394
12396
|
locationMasterOperationalStatus: function locationMasterOperationalStatus() {
|
|
12395
12397
|
return {
|
|
12396
|
-
db_name: dbName,
|
|
12398
|
+
db_name: dbName$1,
|
|
12397
12399
|
entity: "CodeableConceptMaster",
|
|
12398
12400
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12399
12401
|
filter: "CodeableConceptMaster.Type=='OPERATIONSTATUS' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12402,7 +12404,7 @@ var masterQuery$6 = {
|
|
|
12402
12404
|
},
|
|
12403
12405
|
locationMasterParentLocationIdDescription: function locationMasterParentLocationIdDescription() {
|
|
12404
12406
|
return {
|
|
12405
|
-
db_name: dbName,
|
|
12407
|
+
db_name: dbName$1,
|
|
12406
12408
|
entity: "LocationMaster",
|
|
12407
12409
|
sort: "LocationMaster.locationID",
|
|
12408
12410
|
filter: "LocationMaster.activestatus==true",
|
|
@@ -12420,7 +12422,7 @@ var masterQuery$6 = {
|
|
|
12420
12422
|
// },
|
|
12421
12423
|
locationMasterLocationRoleType: function locationMasterLocationRoleType() {
|
|
12422
12424
|
return {
|
|
12423
|
-
"db_name": dbName,
|
|
12425
|
+
"db_name": dbName$1,
|
|
12424
12426
|
"entity": "CodingMaster",
|
|
12425
12427
|
"sort": "CodingMaster.display",
|
|
12426
12428
|
"filter": "CodingMaster.status==true && CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONROLE'",
|
|
@@ -12440,7 +12442,7 @@ var masterQuery$6 = {
|
|
|
12440
12442
|
// "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
12441
12443
|
// };
|
|
12442
12444
|
return {
|
|
12443
|
-
"db_name": dbName,
|
|
12445
|
+
"db_name": dbName$1,
|
|
12444
12446
|
"entity": "Organization",
|
|
12445
12447
|
"filter": "Organization.id==".concat(id, " && Organization.activestatus==true"),
|
|
12446
12448
|
"return_fields": " DOCUMENT(Organization.specialtyDetails[*].specialty)"
|
|
@@ -12448,7 +12450,7 @@ var masterQuery$6 = {
|
|
|
12448
12450
|
},
|
|
12449
12451
|
locationMasterContactMode: function locationMasterContactMode() {
|
|
12450
12452
|
return {
|
|
12451
|
-
db_name: dbName,
|
|
12453
|
+
db_name: dbName$1,
|
|
12452
12454
|
entity: "CodeableConceptMaster",
|
|
12453
12455
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12454
12456
|
filter: "CodeableConceptMaster.Type=='CONTACTSYSTEM' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12457,7 +12459,7 @@ var masterQuery$6 = {
|
|
|
12457
12459
|
},
|
|
12458
12460
|
locationMasterISD: function locationMasterISD() {
|
|
12459
12461
|
return {
|
|
12460
|
-
db_name: dbName,
|
|
12462
|
+
db_name: dbName$1,
|
|
12461
12463
|
entity: "SMGeographicMaster",
|
|
12462
12464
|
sort: "SMGeographicMaster.geogLevelName",
|
|
12463
12465
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
@@ -12466,7 +12468,7 @@ var masterQuery$6 = {
|
|
|
12466
12468
|
},
|
|
12467
12469
|
locationMasterUse: function locationMasterUse() {
|
|
12468
12470
|
return {
|
|
12469
|
-
db_name: dbName,
|
|
12471
|
+
db_name: dbName$1,
|
|
12470
12472
|
entity: "CodeableConceptMaster",
|
|
12471
12473
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12472
12474
|
filter: "CodeableConceptMaster.Type=='ADDRESSUSE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -12475,7 +12477,7 @@ var masterQuery$6 = {
|
|
|
12475
12477
|
},
|
|
12476
12478
|
locationMasterPriority: function locationMasterPriority() {
|
|
12477
12479
|
return {
|
|
12478
|
-
db_name: dbName,
|
|
12480
|
+
db_name: dbName$1,
|
|
12479
12481
|
entity: "CodeableConceptMaster",
|
|
12480
12482
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
12481
12483
|
filter: "CodeableConceptMaster.Type=='RANK' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -13566,7 +13568,7 @@ var locationMasterSlice$1 = locationMasterSlice.reducer;
|
|
|
13566
13568
|
var queries$l = {
|
|
13567
13569
|
fullread: function fullread(type) {
|
|
13568
13570
|
return {
|
|
13569
|
-
db_name: dbName,
|
|
13571
|
+
db_name: dbName$1,
|
|
13570
13572
|
entity: "OrderType",
|
|
13571
13573
|
sort: "OrderType.createddate",
|
|
13572
13574
|
filter: "OrderType.activestatus == true",
|
|
@@ -13575,7 +13577,7 @@ var queries$l = {
|
|
|
13575
13577
|
},
|
|
13576
13578
|
OrderCategory: function OrderCategory() {
|
|
13577
13579
|
return {
|
|
13578
|
-
db_name: dbName,
|
|
13580
|
+
db_name: dbName$1,
|
|
13579
13581
|
entity: "OrderCategory",
|
|
13580
13582
|
sort: "OrderCategory.shortdesc",
|
|
13581
13583
|
filter: "OrderCategory.activestatus == true && OrderCategory.status==true",
|
|
@@ -13584,7 +13586,7 @@ var queries$l = {
|
|
|
13584
13586
|
},
|
|
13585
13587
|
Insert: function Insert(data) {
|
|
13586
13588
|
return [{
|
|
13587
|
-
db_name: dbName,
|
|
13589
|
+
db_name: dbName$1,
|
|
13588
13590
|
entity: "OrderType",
|
|
13589
13591
|
is_metadata: true,
|
|
13590
13592
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -13601,14 +13603,14 @@ var queries$l = {
|
|
|
13601
13603
|
},
|
|
13602
13604
|
SoftDelete: function SoftDelete() {
|
|
13603
13605
|
return {
|
|
13604
|
-
db_name: dbName,
|
|
13606
|
+
db_name: dbName$1,
|
|
13605
13607
|
entity: "OrderType",
|
|
13606
13608
|
filter: "OrderType._key == '10018'"
|
|
13607
13609
|
};
|
|
13608
13610
|
},
|
|
13609
13611
|
StatusUpdate: function StatusUpdate(key, getstatus) {
|
|
13610
13612
|
return [{
|
|
13611
|
-
db_name: dbName,
|
|
13613
|
+
db_name: dbName$1,
|
|
13612
13614
|
entity: "OrderType",
|
|
13613
13615
|
filter: {
|
|
13614
13616
|
_key: key
|
|
@@ -13622,7 +13624,7 @@ var queries$l = {
|
|
|
13622
13624
|
},
|
|
13623
13625
|
UpdateORModify: function UpdateORModify(data) {
|
|
13624
13626
|
return [{
|
|
13625
|
-
db_name: dbName,
|
|
13627
|
+
db_name: dbName$1,
|
|
13626
13628
|
entity: "OrderType",
|
|
13627
13629
|
is_metadata: true,
|
|
13628
13630
|
filter: {
|
|
@@ -13938,7 +13940,7 @@ var ordertypeSlice$1 = ordertypeSlice.reducer;
|
|
|
13938
13940
|
var queries$k = {
|
|
13939
13941
|
fullread: function fullread(type) {
|
|
13940
13942
|
return {
|
|
13941
|
-
db_name: dbName,
|
|
13943
|
+
db_name: dbName$1,
|
|
13942
13944
|
entity: "CodeableConceptMaster",
|
|
13943
13945
|
sort: "CodeableConceptMaster.createddate",
|
|
13944
13946
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='ORDERNATURE'",
|
|
@@ -13947,7 +13949,7 @@ var queries$k = {
|
|
|
13947
13949
|
},
|
|
13948
13950
|
Insert: function Insert(data) {
|
|
13949
13951
|
return [{
|
|
13950
|
-
db_name: dbName,
|
|
13952
|
+
db_name: dbName$1,
|
|
13951
13953
|
entity: "CodeableConceptMaster",
|
|
13952
13954
|
is_metadata: true,
|
|
13953
13955
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -13971,7 +13973,7 @@ var queries$k = {
|
|
|
13971
13973
|
},
|
|
13972
13974
|
StatusUpdate: function StatusUpdate(key, getstatus) {
|
|
13973
13975
|
return [{
|
|
13974
|
-
db_name: dbName,
|
|
13976
|
+
db_name: dbName$1,
|
|
13975
13977
|
entity: "CodeableConceptMaster",
|
|
13976
13978
|
filter: {
|
|
13977
13979
|
_key: key
|
|
@@ -14014,7 +14016,7 @@ var queries$k = {
|
|
|
14014
14016
|
// },
|
|
14015
14017
|
// ];
|
|
14016
14018
|
return [{
|
|
14017
|
-
"db_name": dbName,
|
|
14019
|
+
"db_name": dbName$1,
|
|
14018
14020
|
"entity": "CodingMaster",
|
|
14019
14021
|
"is_metadata": true,
|
|
14020
14022
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -14271,7 +14273,7 @@ var queries$j = {
|
|
|
14271
14273
|
_ref$key = _ref.key,
|
|
14272
14274
|
key = _ref$key === void 0 ? "" : _ref$key;
|
|
14273
14275
|
var obj = {
|
|
14274
|
-
db_name: dbName,
|
|
14276
|
+
db_name: dbName$1,
|
|
14275
14277
|
entity: "OrderCategory",
|
|
14276
14278
|
filter: "OrderCategory.activestatus == true",
|
|
14277
14279
|
return_fields: "OrderCategory",
|
|
@@ -14300,7 +14302,7 @@ var queries$j = {
|
|
|
14300
14302
|
_ref2$key = _ref2.key,
|
|
14301
14303
|
key = _ref2$key === void 0 ? "" : _ref2$key;
|
|
14302
14304
|
var newData = [{
|
|
14303
|
-
db_name: dbName,
|
|
14305
|
+
db_name: dbName$1,
|
|
14304
14306
|
entity: "OrderCategory",
|
|
14305
14307
|
is_metadata: true,
|
|
14306
14308
|
metadataId: metadataId,
|
|
@@ -14327,7 +14329,7 @@ var queries$j = {
|
|
|
14327
14329
|
_ref3$status = _ref3.status,
|
|
14328
14330
|
status = _ref3$status === void 0 ? false : _ref3$status;
|
|
14329
14331
|
var obj = [{
|
|
14330
|
-
db_name: dbName,
|
|
14332
|
+
db_name: dbName$1,
|
|
14331
14333
|
entity: "OrderCategory",
|
|
14332
14334
|
filter: {
|
|
14333
14335
|
_key: key
|
|
@@ -14346,7 +14348,7 @@ var queries$j = {
|
|
|
14346
14348
|
_ref4$key = _ref4.key,
|
|
14347
14349
|
key = _ref4$key === void 0 ? "" : _ref4$key;
|
|
14348
14350
|
var obj = {
|
|
14349
|
-
db_name: dbName,
|
|
14351
|
+
db_name: dbName$1,
|
|
14350
14352
|
entity: "CodeableConceptMaster",
|
|
14351
14353
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='ORDERMODE'",
|
|
14352
14354
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
@@ -14376,7 +14378,7 @@ var queries$j = {
|
|
|
14376
14378
|
_ref5$key = _ref5.key,
|
|
14377
14379
|
key = _ref5$key === void 0 ? "" : _ref5$key;
|
|
14378
14380
|
var newData = [{
|
|
14379
|
-
db_name: dbName,
|
|
14381
|
+
db_name: dbName$1,
|
|
14380
14382
|
entity: "CodeableConceptMaster",
|
|
14381
14383
|
is_metadata: true,
|
|
14382
14384
|
metadataId: metadataId,
|
|
@@ -14403,7 +14405,7 @@ var queries$j = {
|
|
|
14403
14405
|
// _key: key,
|
|
14404
14406
|
// };
|
|
14405
14407
|
newData = [{
|
|
14406
|
-
"db_name": dbName,
|
|
14408
|
+
"db_name": dbName$1,
|
|
14407
14409
|
"entity": "CodingMaster",
|
|
14408
14410
|
"is_metadata": true,
|
|
14409
14411
|
"filter": {
|
|
@@ -14431,7 +14433,7 @@ var queries$j = {
|
|
|
14431
14433
|
_ref6$status = _ref6.status,
|
|
14432
14434
|
status = _ref6$status === void 0 ? false : _ref6$status;
|
|
14433
14435
|
var obj = [{
|
|
14434
|
-
db_name: dbName,
|
|
14436
|
+
db_name: dbName$1,
|
|
14435
14437
|
entity: "CodeableConceptMaster",
|
|
14436
14438
|
filter: {
|
|
14437
14439
|
_key: key
|
|
@@ -14706,7 +14708,7 @@ var orderMasterSlice$1 = orderMasterSlice.reducer;
|
|
|
14706
14708
|
var queries$i = {
|
|
14707
14709
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
14708
14710
|
return [{
|
|
14709
|
-
"db_name": dbName,
|
|
14711
|
+
"db_name": dbName$1,
|
|
14710
14712
|
"entity": "CodeableConceptMaster",
|
|
14711
14713
|
"filter": {
|
|
14712
14714
|
"_key": data._key
|
|
@@ -14720,7 +14722,7 @@ var queries$i = {
|
|
|
14720
14722
|
},
|
|
14721
14723
|
status_update_holiday: function status_update_holiday(data) {
|
|
14722
14724
|
return [{
|
|
14723
|
-
"db_name": dbName,
|
|
14725
|
+
"db_name": dbName$1,
|
|
14724
14726
|
"entity": "Holiday",
|
|
14725
14727
|
"filter": {
|
|
14726
14728
|
"_key": data._key
|
|
@@ -14766,7 +14768,7 @@ var queries$i = {
|
|
|
14766
14768
|
}
|
|
14767
14769
|
|
|
14768
14770
|
return [_objectSpread2(_objectSpread2({
|
|
14769
|
-
"db_name": dbName,
|
|
14771
|
+
"db_name": dbName$1,
|
|
14770
14772
|
"entity": "Holiday",
|
|
14771
14773
|
"is_metadata": true
|
|
14772
14774
|
}, filter), {}, {
|
|
@@ -14797,7 +14799,7 @@ var queries$i = {
|
|
|
14797
14799
|
}
|
|
14798
14800
|
|
|
14799
14801
|
return _objectSpread2(_objectSpread2({
|
|
14800
|
-
"db_name": dbName,
|
|
14802
|
+
"db_name": dbName$1,
|
|
14801
14803
|
"entity": "Holiday"
|
|
14802
14804
|
}, filter), {}, {
|
|
14803
14805
|
"sort": "Holiday.CalDate",
|
|
@@ -14805,11 +14807,11 @@ var queries$i = {
|
|
|
14805
14807
|
});
|
|
14806
14808
|
},
|
|
14807
14809
|
holiday_master: {
|
|
14808
|
-
"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 }"),
|
|
14809
|
-
"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 }"),
|
|
14810
|
-
"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 }")
|
|
14810
|
+
"holiday_type": "{\n \"db_name\":\"".concat(dbName$1, "\",\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 }"),
|
|
14811
|
+
"entity_name": "{\n \"db_name\":\"".concat(dbName$1, "\",\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 }"),
|
|
14812
|
+
"entity_type": "{\n \"db_name\":\"".concat(dbName$1, "\",\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 }")
|
|
14811
14813
|
},
|
|
14812
|
-
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 }"),
|
|
14814
|
+
appointment_type_read: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
14813
14815
|
upsert: function upsert(data) {
|
|
14814
14816
|
var filter = {};
|
|
14815
14817
|
var metadata = {};
|
|
@@ -14836,7 +14838,7 @@ var queries$i = {
|
|
|
14836
14838
|
}
|
|
14837
14839
|
|
|
14838
14840
|
return [_objectSpread2(_objectSpread2({
|
|
14839
|
-
"db_name": dbName,
|
|
14841
|
+
"db_name": dbName$1,
|
|
14840
14842
|
"entity": "CodeableConceptMaster",
|
|
14841
14843
|
"is_metadata": true,
|
|
14842
14844
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -15393,7 +15395,7 @@ var holidaySlice$1 = holidaySlice.reducer;
|
|
|
15393
15395
|
var queries$h = {
|
|
15394
15396
|
appointment_type_master: function appointment_type_master() {
|
|
15395
15397
|
return {
|
|
15396
|
-
db_name: dbName,
|
|
15398
|
+
db_name: dbName$1,
|
|
15397
15399
|
entity: "CodeableConceptMaster",
|
|
15398
15400
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15399
15401
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='APPTYPE'",
|
|
@@ -15402,7 +15404,7 @@ var queries$h = {
|
|
|
15402
15404
|
},
|
|
15403
15405
|
res_appointment_entity_name: function res_appointment_entity_name() {
|
|
15404
15406
|
return {
|
|
15405
|
-
db_name: dbName,
|
|
15407
|
+
db_name: dbName$1,
|
|
15406
15408
|
entity: "Organization",
|
|
15407
15409
|
sort: "Organization.name",
|
|
15408
15410
|
filter: "Organization.activestatus==true",
|
|
@@ -15411,7 +15413,7 @@ var queries$h = {
|
|
|
15411
15413
|
},
|
|
15412
15414
|
res_appointment_entity_type: function res_appointment_entity_type() {
|
|
15413
15415
|
return {
|
|
15414
|
-
db_name: dbName,
|
|
15416
|
+
db_name: dbName$1,
|
|
15415
15417
|
entity: "CodeableConceptMaster",
|
|
15416
15418
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15417
15419
|
filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -15420,7 +15422,7 @@ var queries$h = {
|
|
|
15420
15422
|
},
|
|
15421
15423
|
res_table_data: function res_table_data(entityType, entityName) {
|
|
15422
15424
|
return {
|
|
15423
|
-
db_name: dbName,
|
|
15425
|
+
db_name: dbName$1,
|
|
15424
15426
|
entity: "ResourcebyApptType",
|
|
15425
15427
|
// filter: "ResourcebyApptType.activestatus==true AND DOCUMENT(ResourcebyApptType.entityType).display=='Hospital' AND DOCUMENT(ResourcebyApptType.organization_id).name=='KMCH Hospital'",
|
|
15426
15428
|
filter: "ResourcebyApptType.activestatus==true ".concat(entityType, " ").concat(entityName),
|
|
@@ -15429,7 +15431,7 @@ var queries$h = {
|
|
|
15429
15431
|
},
|
|
15430
15432
|
resource_type_drop_down: function resource_type_drop_down() {
|
|
15431
15433
|
return {
|
|
15432
|
-
db_name: dbName,
|
|
15434
|
+
db_name: dbName$1,
|
|
15433
15435
|
entity: "CodeableConceptMaster",
|
|
15434
15436
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15435
15437
|
filter: "CodeableConceptMaster.Type=='RESOURCETYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -15438,7 +15440,7 @@ var queries$h = {
|
|
|
15438
15440
|
},
|
|
15439
15441
|
resource_role_drop_down_practitioner: function resource_role_drop_down_practitioner(role) {
|
|
15440
15442
|
return {
|
|
15441
|
-
db_name: dbName,
|
|
15443
|
+
db_name: dbName$1,
|
|
15442
15444
|
entity: "CodeableConceptMaster",
|
|
15443
15445
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15444
15446
|
filter: "CodeableConceptMaster.Type=='".concat(role, "' AND CodeableConceptMaster.activestatus==true"),
|
|
@@ -15447,7 +15449,7 @@ var queries$h = {
|
|
|
15447
15449
|
},
|
|
15448
15450
|
res_general_instruction: function res_general_instruction() {
|
|
15449
15451
|
return {
|
|
15450
|
-
db_name: dbName,
|
|
15452
|
+
db_name: dbName$1,
|
|
15451
15453
|
entity: "AMInstructions",
|
|
15452
15454
|
sort: "AMInstructions.InstructionCode",
|
|
15453
15455
|
filter: "AMInstructions.activestatus==true",
|
|
@@ -15456,7 +15458,7 @@ var queries$h = {
|
|
|
15456
15458
|
},
|
|
15457
15459
|
res_special_instruction: function res_special_instruction() {
|
|
15458
15460
|
return {
|
|
15459
|
-
db_name: dbName,
|
|
15461
|
+
db_name: dbName$1,
|
|
15460
15462
|
entity: "AMInstructions",
|
|
15461
15463
|
sort: "AMInstructions.InstructionCode",
|
|
15462
15464
|
filter: "AMInstructions.activestatus==true AND AMInstructions.SpecialInstrYN==true",
|
|
@@ -15465,7 +15467,7 @@ var queries$h = {
|
|
|
15465
15467
|
},
|
|
15466
15468
|
res_criteria_instruction: function res_criteria_instruction() {
|
|
15467
15469
|
return {
|
|
15468
|
-
db_name: dbName,
|
|
15470
|
+
db_name: dbName$1,
|
|
15469
15471
|
entity: "CodeableConceptMaster",
|
|
15470
15472
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
15471
15473
|
filter: "CodeableConceptMaster.Type=='HEALTHISSUES' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -15474,7 +15476,7 @@ var queries$h = {
|
|
|
15474
15476
|
},
|
|
15475
15477
|
res_status_update: function res_status_update(id, checked) {
|
|
15476
15478
|
return [{
|
|
15477
|
-
db_name: dbName,
|
|
15479
|
+
db_name: dbName$1,
|
|
15478
15480
|
entity: "ResourcebyApptType",
|
|
15479
15481
|
is_metadata: true,
|
|
15480
15482
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -15488,7 +15490,7 @@ var queries$h = {
|
|
|
15488
15490
|
},
|
|
15489
15491
|
res_read_line_list_doc: function res_read_line_list_doc(key) {
|
|
15490
15492
|
return {
|
|
15491
|
-
db_name: dbName,
|
|
15493
|
+
db_name: dbName$1,
|
|
15492
15494
|
entity: "ResourcebyApptType",
|
|
15493
15495
|
filter: "ResourcebyApptType.activestatus==true AND ResourcebyApptType._key=='".concat(key, "'"),
|
|
15494
15496
|
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) })"
|
|
@@ -15540,7 +15542,7 @@ var generateJson$a = {
|
|
|
15540
15542
|
}
|
|
15541
15543
|
|
|
15542
15544
|
return [_objectSpread2(_objectSpread2({
|
|
15543
|
-
db_name: dbName,
|
|
15545
|
+
db_name: dbName$1,
|
|
15544
15546
|
entity: "ResourcebyApptType",
|
|
15545
15547
|
is_metadata: true,
|
|
15546
15548
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -16351,9 +16353,9 @@ var resourceByAppointmentTypes = {
|
|
|
16351
16353
|
var resourceByAppointmentTypesSlice$1 = resourceByAppointmentTypesSlice.reducer;
|
|
16352
16354
|
|
|
16353
16355
|
var queries$g = {
|
|
16354
|
-
drug_category_read: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugCategory\",\n \"filter\":\"DrugCategory.activestatus == true\",\n \"return_fields\": \"DrugCategory\"\n }"),
|
|
16355
|
-
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 }"),
|
|
16356
|
-
drug_dosage: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DosageForm\", \n \"sort\": \"DosageForm.dosageform\",\n \"filter\": \"DosageForm.activestatus == true\",\n \"return_fields\": \"DosageForm\"\n }"),
|
|
16356
|
+
drug_category_read: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugCategory\",\n \"filter\":\"DrugCategory.activestatus == true\",\n \"return_fields\": \"DrugCategory\"\n }"),
|
|
16357
|
+
drug_type_read: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugType\",\n \"filter\":\"DrugType.activestatus == true\",\n \"sort\":\"DrugType.id\",\n \"return_fields\": \"DrugType\"\n }"),
|
|
16358
|
+
drug_dosage: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DosageForm\", \n \"sort\": \"DosageForm.dosageform\",\n \"filter\": \"DosageForm.activestatus == true\",\n \"return_fields\": \"DosageForm\"\n }"),
|
|
16357
16359
|
drug_dosage_upsert: function drug_dosage_upsert(data) {
|
|
16358
16360
|
var filter = {};
|
|
16359
16361
|
|
|
@@ -16366,7 +16368,7 @@ var queries$g = {
|
|
|
16366
16368
|
}
|
|
16367
16369
|
|
|
16368
16370
|
return [_objectSpread2(_objectSpread2({
|
|
16369
|
-
"db_name": dbName,
|
|
16371
|
+
"db_name": dbName$1,
|
|
16370
16372
|
"entity": "DosageForm",
|
|
16371
16373
|
"is_metadata": true
|
|
16372
16374
|
}, filter), {}, {
|
|
@@ -16382,7 +16384,7 @@ var queries$g = {
|
|
|
16382
16384
|
},
|
|
16383
16385
|
status_update_drug_dosage: function status_update_drug_dosage(data) {
|
|
16384
16386
|
return [{
|
|
16385
|
-
"db_name": dbName,
|
|
16387
|
+
"db_name": dbName$1,
|
|
16386
16388
|
"entity": "DosageForm",
|
|
16387
16389
|
"filter": {
|
|
16388
16390
|
"_key": data._key
|
|
@@ -16394,7 +16396,7 @@ var queries$g = {
|
|
|
16394
16396
|
}
|
|
16395
16397
|
}];
|
|
16396
16398
|
},
|
|
16397
|
-
drug_class: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugClass\",\n \"filter\": \"DrugClass.activestatus == true\",\n \"sort\": \"DrugClass.drugclass\",\n \"return_fields\": \"DrugClass\"\n }"),
|
|
16399
|
+
drug_class: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugClass\",\n \"filter\": \"DrugClass.activestatus == true\",\n \"sort\": \"DrugClass.drugclass\",\n \"return_fields\": \"DrugClass\"\n }"),
|
|
16398
16400
|
drug_class_upsert: function drug_class_upsert(data) {
|
|
16399
16401
|
var filter = {};
|
|
16400
16402
|
|
|
@@ -16407,7 +16409,7 @@ var queries$g = {
|
|
|
16407
16409
|
}
|
|
16408
16410
|
|
|
16409
16411
|
return [_objectSpread2(_objectSpread2({
|
|
16410
|
-
"db_name": dbName,
|
|
16412
|
+
"db_name": dbName$1,
|
|
16411
16413
|
"entity": "DrugClass",
|
|
16412
16414
|
"is_metadata": true
|
|
16413
16415
|
}, filter), {}, {
|
|
@@ -16423,7 +16425,7 @@ var queries$g = {
|
|
|
16423
16425
|
},
|
|
16424
16426
|
status_update_drug_class: function status_update_drug_class(data) {
|
|
16425
16427
|
return [{
|
|
16426
|
-
"db_name": dbName,
|
|
16428
|
+
"db_name": dbName$1,
|
|
16427
16429
|
"entity": "DrugClass",
|
|
16428
16430
|
"filter": {
|
|
16429
16431
|
"_key": data._key
|
|
@@ -16435,10 +16437,10 @@ var queries$g = {
|
|
|
16435
16437
|
}
|
|
16436
16438
|
}];
|
|
16437
16439
|
},
|
|
16438
|
-
drug_routes: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"DrugRoutes\", \n \"sort\": \"DrugRoutes.routecode\",\n \"filter\": \"DrugRoutes.activestatus == true\",\n \"return_fields\": \"DrugRoutes\" \n }"),
|
|
16440
|
+
drug_routes: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugRoutes\", \n \"sort\": \"DrugRoutes.routecode\",\n \"filter\": \"DrugRoutes.activestatus == true\",\n \"return_fields\": \"DrugRoutes\" \n }"),
|
|
16439
16441
|
status_update_drug_routes: function status_update_drug_routes(data) {
|
|
16440
16442
|
return [{
|
|
16441
|
-
"db_name": dbName,
|
|
16443
|
+
"db_name": dbName$1,
|
|
16442
16444
|
"entity": "DrugRoutes",
|
|
16443
16445
|
"filter": {
|
|
16444
16446
|
"_key": data._key
|
|
@@ -16462,7 +16464,7 @@ var queries$g = {
|
|
|
16462
16464
|
}
|
|
16463
16465
|
|
|
16464
16466
|
return [_objectSpread2(_objectSpread2({
|
|
16465
|
-
"db_name": dbName,
|
|
16467
|
+
"db_name": dbName$1,
|
|
16466
16468
|
"entity": "DrugRoutes",
|
|
16467
16469
|
"is_metadata": true
|
|
16468
16470
|
}, filter), {}, {
|
|
@@ -17157,7 +17159,7 @@ var queries$f = {
|
|
|
17157
17159
|
// }`,
|
|
17158
17160
|
drug_master: function drug_master(page, perpage) {
|
|
17159
17161
|
return {
|
|
17160
|
-
db_name: dbName,
|
|
17162
|
+
db_name: dbName$1,
|
|
17161
17163
|
entity: "DrugMaster",
|
|
17162
17164
|
sort: "DrugMaster.DrugCode",
|
|
17163
17165
|
filter: "DrugMaster.activestatus==true ",
|
|
@@ -17169,7 +17171,7 @@ var queries$f = {
|
|
|
17169
17171
|
};
|
|
17170
17172
|
},
|
|
17171
17173
|
drug_master_upsert: [{
|
|
17172
|
-
"db_name": dbName,
|
|
17174
|
+
"db_name": dbName$1,
|
|
17173
17175
|
"entity": "DrugMaster",
|
|
17174
17176
|
"is_metadata": true,
|
|
17175
17177
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -17274,7 +17276,7 @@ var queries$f = {
|
|
|
17274
17276
|
}],
|
|
17275
17277
|
status_update_drug_master: function status_update_drug_master(data) {
|
|
17276
17278
|
return [{
|
|
17277
|
-
"db_name": dbName,
|
|
17279
|
+
"db_name": dbName$1,
|
|
17278
17280
|
"entity": "DrugMaster",
|
|
17279
17281
|
"filter": {
|
|
17280
17282
|
"_id": data._id
|
|
@@ -17286,7 +17288,7 @@ var queries$f = {
|
|
|
17286
17288
|
}
|
|
17287
17289
|
}];
|
|
17288
17290
|
},
|
|
17289
|
-
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 }"),
|
|
17291
|
+
drug_form_type: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17290
17292
|
drug_form_read: function drug_form_read(_id) {
|
|
17291
17293
|
// return {
|
|
17292
17294
|
// "db_name": dbName,
|
|
@@ -17295,7 +17297,7 @@ var queries$f = {
|
|
|
17295
17297
|
// "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))}))}))})"
|
|
17296
17298
|
// }
|
|
17297
17299
|
return {
|
|
17298
|
-
"db_name": dbName,
|
|
17300
|
+
"db_name": dbName$1,
|
|
17299
17301
|
"entity": "DrugMaster",
|
|
17300
17302
|
"filter": "DrugMaster.activestatus==true && DrugMaster._id=='".concat(_id, "'"),
|
|
17301
17303
|
"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))}))}))})"
|
|
@@ -17304,7 +17306,7 @@ var queries$f = {
|
|
|
17304
17306
|
age_category_by_id: function age_category_by_id(ids) {
|
|
17305
17307
|
// ['${AllowedUnit.join("','")}']
|
|
17306
17308
|
return {
|
|
17307
|
-
"db_name": dbName,
|
|
17309
|
+
"db_name": dbName$1,
|
|
17308
17310
|
"entity": "AgeCategory",
|
|
17309
17311
|
"filter": "AgeCategory.activestatus == true && AgeCategory._id in ['".concat(ids.join("','"), "']"),
|
|
17310
17312
|
"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)}",
|
|
@@ -17313,7 +17315,7 @@ var queries$f = {
|
|
|
17313
17315
|
},
|
|
17314
17316
|
ageCategory: function ageCategory(ageRangeId) {
|
|
17315
17317
|
return {
|
|
17316
|
-
db_name: dbName,
|
|
17318
|
+
db_name: dbName$1,
|
|
17317
17319
|
entity: "AgeRanges",
|
|
17318
17320
|
filter: {
|
|
17319
17321
|
AgeRanges: "AgeRanges.activestatus==true && AgeRanges._id=='".concat(ageRangeId, "' ")
|
|
@@ -17323,10 +17325,10 @@ var queries$f = {
|
|
|
17323
17325
|
}
|
|
17324
17326
|
};
|
|
17325
17327
|
var masterQuery$5 = {
|
|
17326
|
-
"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 }"),
|
|
17327
|
-
"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 }"),
|
|
17328
|
-
"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 }"),
|
|
17329
|
-
"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 }"),
|
|
17328
|
+
"drug_class": "{ \n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17329
|
+
"drug_category": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17330
|
+
"drug_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17331
|
+
"form": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17330
17332
|
// "routes_allowed": `{
|
|
17331
17333
|
// "db_name": "${dbName}",
|
|
17332
17334
|
// "entity": "CodeableConceptMaster",
|
|
@@ -17339,24 +17341,24 @@ var masterQuery$5 = {
|
|
|
17339
17341
|
// "filter": "CodeableConceptMaster.Type=='ROUTE' && CodeableConceptMaster.activestatus==true",
|
|
17340
17342
|
// "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
17341
17343
|
// }`,
|
|
17342
|
-
"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 }"),
|
|
17343
|
-
"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 }"),
|
|
17344
|
-
"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 }"),
|
|
17345
|
-
"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 }"),
|
|
17346
|
-
"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 }"),
|
|
17347
|
-
"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 }"),
|
|
17344
|
+
"routes_allowed": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17345
|
+
"default_route": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17346
|
+
"drug_UOM": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17347
|
+
"alternate_drug_code": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17348
|
+
"encounter_type": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17349
|
+
"gender": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17348
17350
|
// "age_range_group": `{
|
|
17349
17351
|
// "db_name": "${dbName}",
|
|
17350
17352
|
// "entity": "AgeRanges",
|
|
17351
17353
|
// "filter":"AgeRanges.activestatus == true && AgeRanges.status==true",
|
|
17352
17354
|
// "return_fields": "{id:AgeRanges.id, _id:AgeRanges._id, agerangecode:AgeRanges.agerangecode, longdesc:AgeRanges.longdesc, shortdesc:AgeRanges.shortdesc}"
|
|
17353
17355
|
// }`,
|
|
17354
|
-
"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 }"),
|
|
17355
|
-
"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 }"),
|
|
17356
|
-
"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 }"),
|
|
17357
|
-
"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 }"),
|
|
17358
|
-
"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 }"),
|
|
17359
|
-
"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 }")
|
|
17356
|
+
"age_range_group": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17357
|
+
"age_category": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17358
|
+
"default_frequency": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17359
|
+
"actions": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17360
|
+
"status": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
17361
|
+
"drug_item_master": "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }")
|
|
17360
17362
|
};
|
|
17361
17363
|
|
|
17362
17364
|
var allowedJsonFun = function allowedJsonFun(val) {
|
|
@@ -17577,7 +17579,7 @@ var generateDrugMasterJSON = function generateDrugMasterJSON(data, _key, draft)
|
|
|
17577
17579
|
}
|
|
17578
17580
|
|
|
17579
17581
|
var json = [_objectSpread2(_objectSpread2({
|
|
17580
|
-
"db_name": dbName,
|
|
17582
|
+
"db_name": dbName$1,
|
|
17581
17583
|
"entity": "DrugMaster",
|
|
17582
17584
|
"is_metadata": true
|
|
17583
17585
|
}, filter), {}, {
|
|
@@ -18650,7 +18652,7 @@ var queries$e = {
|
|
|
18650
18652
|
// "merge(DrugRouteDirection,{DoseForm:DOCUMENT(DrugRouteDirection.DoseForm)})",
|
|
18651
18653
|
// };
|
|
18652
18654
|
return {
|
|
18653
|
-
"db_name": dbName,
|
|
18655
|
+
"db_name": dbName$1,
|
|
18654
18656
|
"entity": "DrugRouteDirection",
|
|
18655
18657
|
"sort": "DrugRouteDirection.RouteDirectionCode",
|
|
18656
18658
|
"filter": "DrugRouteDirection.activestatus == true ",
|
|
@@ -18659,7 +18661,7 @@ var queries$e = {
|
|
|
18659
18661
|
},
|
|
18660
18662
|
DosageFormDropDown: function DosageFormDropDown() {
|
|
18661
18663
|
return {
|
|
18662
|
-
db_name: dbName,
|
|
18664
|
+
db_name: dbName$1,
|
|
18663
18665
|
entity: "DosageForm",
|
|
18664
18666
|
sort: "DosageForm.longdesc",
|
|
18665
18667
|
filter: "DosageForm.activestatus == true && DosageForm.status == true",
|
|
@@ -18668,7 +18670,7 @@ var queries$e = {
|
|
|
18668
18670
|
},
|
|
18669
18671
|
RoutesDirectionActionDropDown: function RoutesDirectionActionDropDown() {
|
|
18670
18672
|
return {
|
|
18671
|
-
"db_name": dbName,
|
|
18673
|
+
"db_name": dbName$1,
|
|
18672
18674
|
"entity": "CodingMaster",
|
|
18673
18675
|
"filter": "CodingMaster.Type== 'ROUTEDIRECTIONACTION' && CodingMaster.activestatus==true && CodingMaster.status==true",
|
|
18674
18676
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
@@ -18676,7 +18678,7 @@ var queries$e = {
|
|
|
18676
18678
|
},
|
|
18677
18679
|
Insert: function Insert(data) {
|
|
18678
18680
|
return [{
|
|
18679
|
-
db_name: dbName,
|
|
18681
|
+
db_name: dbName$1,
|
|
18680
18682
|
entity: "DrugRouteDirection",
|
|
18681
18683
|
is_metadata: true,
|
|
18682
18684
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -18693,7 +18695,7 @@ var queries$e = {
|
|
|
18693
18695
|
},
|
|
18694
18696
|
StatusUpdate: function StatusUpdate(key, getstatus) {
|
|
18695
18697
|
return [{
|
|
18696
|
-
db_name: dbName,
|
|
18698
|
+
db_name: dbName$1,
|
|
18697
18699
|
entity: "DrugRouteDirection",
|
|
18698
18700
|
filter: {
|
|
18699
18701
|
_key: key
|
|
@@ -18707,7 +18709,7 @@ var queries$e = {
|
|
|
18707
18709
|
},
|
|
18708
18710
|
UpdateORModify: function UpdateORModify(data) {
|
|
18709
18711
|
return [{
|
|
18710
|
-
db_name: dbName,
|
|
18712
|
+
db_name: dbName$1,
|
|
18711
18713
|
entity: "DrugRouteDirection",
|
|
18712
18714
|
filter: {
|
|
18713
18715
|
_key: data.key
|
|
@@ -19071,8 +19073,8 @@ var drugDirectionRoutesActions = {
|
|
|
19071
19073
|
var drugRoutesDirectionSlice$1 = drugRoutesDirectionSlice.reducer;
|
|
19072
19074
|
|
|
19073
19075
|
var masterQuery$4 = {
|
|
19074
|
-
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}"),
|
|
19075
|
-
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}"),
|
|
19076
|
+
orderCategory: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"OrderCategory\",\n \"filter\": \"OrderCategory.activestatus==true && OrderCategory.status==true\",\n \"return_fields\": \"OrderCategory\",\n \"sort\": \"OrderCategory.ordercategory\"\n}"),
|
|
19077
|
+
orderType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19076
19078
|
// orderType: `{
|
|
19077
19079
|
// "db_name": "${dbName}",
|
|
19078
19080
|
// "entity": "OrderType",
|
|
@@ -19080,24 +19082,24 @@ var masterQuery$4 = {
|
|
|
19080
19082
|
// "return_fields": "merge(OrderType,{ordercategory:(document(OrderType.ordercategory))})",
|
|
19081
19083
|
// "sort":"OrderType.longdesc"
|
|
19082
19084
|
// }`,
|
|
19083
|
-
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}"),
|
|
19084
|
-
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}"),
|
|
19085
|
-
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}"),
|
|
19086
|
-
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}"),
|
|
19087
|
-
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}"),
|
|
19088
|
-
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}"),
|
|
19089
|
-
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}"),
|
|
19090
|
-
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}"),
|
|
19091
|
-
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}"),
|
|
19092
|
-
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}"),
|
|
19093
|
-
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}"),
|
|
19094
|
-
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}"),
|
|
19095
|
-
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}")
|
|
19085
|
+
healthService: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19086
|
+
quantity: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19087
|
+
entityType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19088
|
+
entitytName: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"Organization\",\n \"filter\": \"'Hospital' IN Organization.OrgType\",\n \"return_fields\": \"{OrgID:Organization.id,name:Organization.name,_id:Organization._id}\"\n}"),
|
|
19089
|
+
specimenType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19090
|
+
bodySite: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19091
|
+
specimenContainer: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19092
|
+
collectionMethod: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19093
|
+
encounterType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19094
|
+
gender: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19095
|
+
ageGroup: "{\n\"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19096
|
+
checkaction: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
19097
|
+
attrcode: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}")
|
|
19096
19098
|
};
|
|
19097
19099
|
var orderTypedata = {
|
|
19098
19100
|
ordertype: function ordertype(type) {
|
|
19099
19101
|
return {
|
|
19100
|
-
db_name: dbName,
|
|
19102
|
+
db_name: dbName$1,
|
|
19101
19103
|
entity: "OrderType",
|
|
19102
19104
|
filter: "OrderType.activestatus==true && OrderType.status==true && OrderType.ordercategory=='".concat(type, "'"),
|
|
19103
19105
|
return_fields: "merge(OrderType,{ordercategory:(document(OrderType.ordercategory))})",
|
|
@@ -19109,7 +19111,7 @@ var orderTypedata = {
|
|
|
19109
19111
|
var Query = {
|
|
19110
19112
|
ageCategory: function ageCategory(ageRangeId) {
|
|
19111
19113
|
return {
|
|
19112
|
-
db_name: dbName,
|
|
19114
|
+
db_name: dbName$1,
|
|
19113
19115
|
entity: "AgeRanges",
|
|
19114
19116
|
sort: "AgeRanges.code",
|
|
19115
19117
|
filter: {
|
|
@@ -19122,7 +19124,7 @@ var Query = {
|
|
|
19122
19124
|
var page = _ref.page,
|
|
19123
19125
|
perPage = _ref.perPage;
|
|
19124
19126
|
return {
|
|
19125
|
-
"db_name": dbName,
|
|
19127
|
+
"db_name": dbName$1,
|
|
19126
19128
|
"entity": "OrderCatalog",
|
|
19127
19129
|
"sort": "OrderCatalog.createddate ASC",
|
|
19128
19130
|
"limit": {
|
|
@@ -19135,7 +19137,7 @@ var Query = {
|
|
|
19135
19137
|
},
|
|
19136
19138
|
editOrderCatalog: function editOrderCatalog(id) {
|
|
19137
19139
|
return {
|
|
19138
|
-
db_name: dbName,
|
|
19140
|
+
db_name: dbName$1,
|
|
19139
19141
|
entity: "OrderCatalog",
|
|
19140
19142
|
filter: "OrderCatalog.activestatus==true && OrderCatalog._key=='".concat(id, "'"),
|
|
19141
19143
|
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)})"
|
|
@@ -19143,14 +19145,14 @@ var Query = {
|
|
|
19143
19145
|
},
|
|
19144
19146
|
attributeDelete: function attributeDelete(id) {
|
|
19145
19147
|
return {
|
|
19146
|
-
db_name: dbName,
|
|
19148
|
+
db_name: dbName$1,
|
|
19147
19149
|
entity: "CA_OrderAttribApplicability",
|
|
19148
19150
|
filter: "CA_OrderAttribApplicability._key=='".concat(id, "'")
|
|
19149
19151
|
};
|
|
19150
19152
|
},
|
|
19151
19153
|
entityTypeName: function entityTypeName(name) {
|
|
19152
19154
|
return {
|
|
19153
|
-
db_name: dbName,
|
|
19155
|
+
db_name: dbName$1,
|
|
19154
19156
|
entity: "Organization",
|
|
19155
19157
|
sort: "Organization.name",
|
|
19156
19158
|
filter: "Organization.OrgType ANY =='".concat(name, "' && Organization.activestatus==true"),
|
|
@@ -19171,7 +19173,7 @@ var generateSaveJSON = function generateSaveJSON(data) {
|
|
|
19171
19173
|
}
|
|
19172
19174
|
|
|
19173
19175
|
return [_objectSpread2(_objectSpread2({
|
|
19174
|
-
db_name: dbName,
|
|
19176
|
+
db_name: dbName$1,
|
|
19175
19177
|
entity: "OrderCatalog",
|
|
19176
19178
|
is_metadata: true,
|
|
19177
19179
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -19332,7 +19334,7 @@ var generateResJson = function generateResJson(data) {
|
|
|
19332
19334
|
|
|
19333
19335
|
var generateUpdateJSON = function generateUpdateJSON(editID, Status) {
|
|
19334
19336
|
return [{
|
|
19335
|
-
db_name: dbName,
|
|
19337
|
+
db_name: dbName$1,
|
|
19336
19338
|
entity: "OrderCatalog",
|
|
19337
19339
|
filter: {
|
|
19338
19340
|
_key: editID
|
|
@@ -20306,7 +20308,7 @@ var orderCatalogSlice$1 = orderCatalogSlice.reducer;
|
|
|
20306
20308
|
var queries$d = {
|
|
20307
20309
|
sourceLocationType: function sourceLocationType() {
|
|
20308
20310
|
return {
|
|
20309
|
-
db_name: dbName,
|
|
20311
|
+
db_name: dbName$1,
|
|
20310
20312
|
entity: "CodeableConceptMaster",
|
|
20311
20313
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
20312
20314
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'LOCATIONTYPE'",
|
|
@@ -20315,7 +20317,7 @@ var queries$d = {
|
|
|
20315
20317
|
},
|
|
20316
20318
|
orderingFacility: function orderingFacility() {
|
|
20317
20319
|
return {
|
|
20318
|
-
db_name: dbName,
|
|
20320
|
+
db_name: dbName$1,
|
|
20319
20321
|
entity: "Organization",
|
|
20320
20322
|
sort: "Organization.name",
|
|
20321
20323
|
filter: "Organization.activestatus==true && Organization.active==true ",
|
|
@@ -20324,7 +20326,7 @@ var queries$d = {
|
|
|
20324
20326
|
},
|
|
20325
20327
|
performingDetails: function performingDetails() {
|
|
20326
20328
|
return {
|
|
20327
|
-
db_name: dbName,
|
|
20329
|
+
db_name: dbName$1,
|
|
20328
20330
|
entity: "AMExtRefProvider",
|
|
20329
20331
|
filter: "AMExtRefProvider.activestatus==true && AMExtRefProvider.status == true",
|
|
20330
20332
|
return_fields: "AMExtRefProvider"
|
|
@@ -20332,7 +20334,7 @@ var queries$d = {
|
|
|
20332
20334
|
},
|
|
20333
20335
|
sourceLocation: function sourceLocation(list) {
|
|
20334
20336
|
return {
|
|
20335
|
-
db_name: dbName,
|
|
20337
|
+
db_name: dbName$1,
|
|
20336
20338
|
entity: "LocationMaster",
|
|
20337
20339
|
sort: "LocationMaster.longdesc",
|
|
20338
20340
|
filter: "LocationMaster.activestatus==true && lower(LocationMaster.status) != 'in-active' && DOCUMENT(DOCUMENT(LocationMaster.locationType).coding)[*].display ANY =='".concat(list, "'"),
|
|
@@ -20341,7 +20343,7 @@ var queries$d = {
|
|
|
20341
20343
|
},
|
|
20342
20344
|
serviceApplicable: function serviceApplicable() {
|
|
20343
20345
|
return {
|
|
20344
|
-
db_name: dbName,
|
|
20346
|
+
db_name: dbName$1,
|
|
20345
20347
|
entity: "CodeableConceptMaster",
|
|
20346
20348
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
20347
20349
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'SERVICEAPPLICABILITY'",
|
|
@@ -20384,7 +20386,7 @@ var generateJson$9 = function generateJson(data, _key) {
|
|
|
20384
20386
|
}
|
|
20385
20387
|
|
|
20386
20388
|
return [_objectSpread2(_objectSpread2({
|
|
20387
|
-
"db_name": dbName
|
|
20389
|
+
"db_name": dbName$1
|
|
20388
20390
|
}, filter), {}, {
|
|
20389
20391
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20390
20392
|
"is_metadata": true,
|
|
@@ -20663,7 +20665,7 @@ var READ_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/performingL
|
|
|
20663
20665
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
20664
20666
|
_context6.prev = 2;
|
|
20665
20667
|
read = {
|
|
20666
|
-
"db_name": dbName,
|
|
20668
|
+
"db_name": dbName$1,
|
|
20667
20669
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20668
20670
|
"sort": "CA_PerformingLocationforOrdLocn.createddate",
|
|
20669
20671
|
"filter": "CA_PerformingLocationforOrdLocn.activestatus==true",
|
|
@@ -20713,7 +20715,7 @@ var STATUS_PERFORMINGLOCATION = createAsyncThunk("performLocationSlice/changeSta
|
|
|
20713
20715
|
_context7.prev = 2;
|
|
20714
20716
|
list = payload.list, _key = payload._key;
|
|
20715
20717
|
queriesjson = [{
|
|
20716
|
-
"db_name": dbName,
|
|
20718
|
+
"db_name": dbName$1,
|
|
20717
20719
|
"entity": "CA_PerformingLocationforOrdLocn",
|
|
20718
20720
|
"is_metadata": true,
|
|
20719
20721
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -20826,11 +20828,11 @@ var ordernature_role_actions = _objectSpread2({}, ordernatureActions$1);
|
|
|
20826
20828
|
|
|
20827
20829
|
var query$8 = {
|
|
20828
20830
|
entityType: function entityType() {
|
|
20829
|
-
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 }");
|
|
20831
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20830
20832
|
},
|
|
20831
20833
|
entitynamewithType: function entitynamewithType(_ref) {
|
|
20832
20834
|
var name = _ref.name;
|
|
20833
|
-
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 }");
|
|
20835
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"Organization\",\n \"sort\":\"Organization.name\",\n \"filter\": \"Organization.OrgType ANY =='").concat(name, "' && Organization.activestatus==true\",\n \"return_fields\": \"Organization\"\n }");
|
|
20834
20836
|
},
|
|
20835
20837
|
// entitynamewithType: ({ name }) => `{
|
|
20836
20838
|
// "db_name": "${dbName}",
|
|
@@ -20839,19 +20841,19 @@ var query$8 = {
|
|
|
20839
20841
|
// "return_fields": "Organization"
|
|
20840
20842
|
// }`,
|
|
20841
20843
|
applicableAppTypes: function applicableAppTypes() {
|
|
20842
|
-
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 }");
|
|
20844
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20843
20845
|
},
|
|
20844
20846
|
scheduleMode: function scheduleMode() {
|
|
20845
|
-
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 }");
|
|
20847
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20846
20848
|
},
|
|
20847
20849
|
dayType: function dayType() {
|
|
20848
|
-
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 }");
|
|
20850
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20849
20851
|
},
|
|
20850
20852
|
consultationType: function consultationType() {
|
|
20851
|
-
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 }");
|
|
20853
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20852
20854
|
},
|
|
20853
20855
|
resourceType: function resourceType() {
|
|
20854
|
-
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 }");
|
|
20856
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20855
20857
|
},
|
|
20856
20858
|
resourcerole: function resourcerole(payload) {
|
|
20857
20859
|
var _payload$type, _payload$type$label;
|
|
@@ -20859,15 +20861,15 @@ var query$8 = {
|
|
|
20859
20861
|
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") {
|
|
20860
20862
|
var _payload$ename$_id, _payload$ename;
|
|
20861
20863
|
|
|
20862
|
-
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 }");
|
|
20864
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20863
20865
|
} else {
|
|
20864
|
-
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 }");
|
|
20866
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20865
20867
|
}
|
|
20866
20868
|
},
|
|
20867
20869
|
readQuery: function readQuery(_ref2) {
|
|
20868
20870
|
var entity_type = _ref2.entity_type,
|
|
20869
20871
|
entity_name = _ref2.entity_name;
|
|
20870
|
-
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 }");
|
|
20872
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
20871
20873
|
},
|
|
20872
20874
|
readGroup: function readGroup() {
|
|
20873
20875
|
return "{\n \"db_name\": \"".concat(ruleDBName, "\",\n \"entity\": \"Groups\",\n \"filter\": \"Groups.activestatus==true\",\n \"return_fields\": \"{label : Groups.name, value:Groups.id}\"\n }");
|
|
@@ -20878,7 +20880,7 @@ var query$8 = {
|
|
|
20878
20880
|
},
|
|
20879
20881
|
affectedList: function affectedList(_ref4) {
|
|
20880
20882
|
var timeTableId = _ref4.timeTableId;
|
|
20881
|
-
return "{\n \"db_name\": \"".concat(dbName, "\",\n \"filter\": {\n \"Resourcettid\": \"").concat(timeTableId, "\"\n },\n \"queryid\": \"912ee8b2-9f50-4b2f-92ef-8133993f82ab\"\n }");
|
|
20883
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"filter\": {\n \"Resourcettid\": \"").concat(timeTableId, "\"\n },\n \"queryid\": \"912ee8b2-9f50-4b2f-92ef-8133993f82ab\"\n }");
|
|
20882
20884
|
},
|
|
20883
20885
|
applicableAppTypes_: function applicableAppTypes_() {
|
|
20884
20886
|
return {
|
|
@@ -20922,7 +20924,7 @@ var upsertData = function upsertData(payload) {
|
|
|
20922
20924
|
}
|
|
20923
20925
|
|
|
20924
20926
|
return [_objectSpread2(_objectSpread2({
|
|
20925
|
-
"db_name": dbName,
|
|
20927
|
+
"db_name": dbName$1,
|
|
20926
20928
|
"entity": "ResourceTimeTable",
|
|
20927
20929
|
"is_metadata": true
|
|
20928
20930
|
}, filter), {}, {
|
|
@@ -21206,7 +21208,7 @@ var actionsList = [{
|
|
|
21206
21208
|
var editId = _ref.editId,
|
|
21207
21209
|
status = _ref.status;
|
|
21208
21210
|
var body = [{
|
|
21209
|
-
"db_name": dbName,
|
|
21211
|
+
"db_name": dbName$1,
|
|
21210
21212
|
"entity": "ResourceTimeTable",
|
|
21211
21213
|
"filter": "ResourceTimeTable._id==\"".concat(editId, "\""),
|
|
21212
21214
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -21418,12 +21420,23 @@ var timetableMasterSlice$1 = timetableMasterSlice.reducer;
|
|
|
21418
21420
|
|
|
21419
21421
|
var timeTableActions = _objectSpread2({}, timeTableMasterActions);
|
|
21420
21422
|
|
|
21421
|
-
process.env.REACT_APP_DATABASE_NAME;
|
|
21423
|
+
var dbName = process.env.REACT_APP_DATABASE_NAME;
|
|
21422
21424
|
var query_ids = {
|
|
21423
21425
|
"scheduleManagementApiSlice/practitionerSlots": "562d7099-7b83-49ec-9bdc-364246ca185d",
|
|
21424
21426
|
"slotApiSlice/readSlot": {
|
|
21425
21427
|
practionerid: "30fcb559-96fb-48f6-a955-e47dd97bc851",
|
|
21426
|
-
clinicid: "30fcb559-96fb-48f6-a955-e47dd97bc951"
|
|
21428
|
+
clinicid: "30fcb559-96fb-48f6-a955-e47dd97bc951",
|
|
21429
|
+
query: function query(_ref) {
|
|
21430
|
+
var start = _ref.start,
|
|
21431
|
+
end = _ref.end,
|
|
21432
|
+
id = _ref.id;
|
|
21433
|
+
return {
|
|
21434
|
+
"db_name": dbName,
|
|
21435
|
+
"entity": "Schedule",
|
|
21436
|
+
"filter": "Schedule.start >= ".concat(start, " AND Schedule.end <= ").concat(end, " AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ").concat(id),
|
|
21437
|
+
"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)}))})")
|
|
21438
|
+
};
|
|
21439
|
+
}
|
|
21427
21440
|
},
|
|
21428
21441
|
"appointmentApiSlice/readAppointment": "0bfea3d4-fe24-43f9-b5b8-cf9ff4365fab",
|
|
21429
21442
|
"appointmentApiSlice/deleteAppointment": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -21433,11 +21446,11 @@ var query_ids = {
|
|
|
21433
21446
|
};
|
|
21434
21447
|
|
|
21435
21448
|
var query$7 = {
|
|
21436
|
-
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}"),
|
|
21437
|
-
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}"),
|
|
21449
|
+
role_type: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
21450
|
+
all_practitioner: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
21438
21451
|
practitoner_slot: function practitoner_slot(startDate, endDate, practitonerId) {
|
|
21439
21452
|
return {
|
|
21440
|
-
db_name: dbName,
|
|
21453
|
+
db_name: dbName$1,
|
|
21441
21454
|
filter: {
|
|
21442
21455
|
start: parseInt("".concat(startDate)),
|
|
21443
21456
|
end: parseInt("".concat(endDate)),
|
|
@@ -21448,7 +21461,7 @@ var query$7 = {
|
|
|
21448
21461
|
},
|
|
21449
21462
|
release_schedule: function release_schedule(startDate, endDate, practitonerId, reason) {
|
|
21450
21463
|
return {
|
|
21451
|
-
db_name: dbName,
|
|
21464
|
+
db_name: dbName$1,
|
|
21452
21465
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
21453
21466
|
start: parseInt("".concat(startDate)),
|
|
21454
21467
|
end: parseInt("".concat(endDate)),
|
|
@@ -21457,7 +21470,7 @@ var query$7 = {
|
|
|
21457
21470
|
},
|
|
21458
21471
|
block_schedule: function block_schedule(startDate, endDate, practitonerId, reason) {
|
|
21459
21472
|
return {
|
|
21460
|
-
db_name: dbName,
|
|
21473
|
+
db_name: dbName$1,
|
|
21461
21474
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
21462
21475
|
start: parseInt("".concat(startDate)),
|
|
21463
21476
|
end: parseInt("".concat(endDate)),
|
|
@@ -21466,7 +21479,7 @@ var query$7 = {
|
|
|
21466
21479
|
},
|
|
21467
21480
|
block_partial: function block_partial(startDate, endDate, starttime, endtime, practitonerId, days, reason) {
|
|
21468
21481
|
return {
|
|
21469
|
-
db_name: dbName,
|
|
21482
|
+
db_name: dbName$1,
|
|
21470
21483
|
practitionerId: parseInt("".concat(practitonerId)),
|
|
21471
21484
|
startDate: "".concat(startDate),
|
|
21472
21485
|
endDate: "".concat(endDate),
|
|
@@ -21476,10 +21489,10 @@ var query$7 = {
|
|
|
21476
21489
|
blockreason: "".concat(reason)
|
|
21477
21490
|
};
|
|
21478
21491
|
},
|
|
21479
|
-
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}"),
|
|
21492
|
+
release_block_reason: "{\n \"db_name\": \"".concat(dbName$1, "\",\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}"),
|
|
21480
21493
|
specific_slots: function specific_slots(dayStart, practitonerID, slotStart, slotEnd) {
|
|
21481
21494
|
return {
|
|
21482
|
-
db_name: dbName,
|
|
21495
|
+
db_name: dbName$1,
|
|
21483
21496
|
entity: "Schedule,Slot",
|
|
21484
21497
|
filter: {
|
|
21485
21498
|
Schedule: "Schedule.start>=".concat(dayStart, " AND DOCUMENT(Schedule.resourceCode).id==").concat(parseInt(practitonerID)),
|
|
@@ -21995,7 +22008,7 @@ var availability_management_actions = _objectSpread2(_objectSpread2(_objectSprea
|
|
|
21995
22008
|
var queries$c = {
|
|
21996
22009
|
getTreeStuct: function getTreeStuct(type) {
|
|
21997
22010
|
return {
|
|
21998
|
-
db_name: dbName,
|
|
22011
|
+
db_name: dbName$1,
|
|
21999
22012
|
entity: "Organization",
|
|
22000
22013
|
// filter: "'CodingMaster/11898' IN Organization.OrgType",
|
|
22001
22014
|
filter: "Organization.ParentOrgID ==[] && Organization.activestatus==true && Organization.isExternal==".concat(type.isexternal),
|
|
@@ -22006,7 +22019,7 @@ var queries$c = {
|
|
|
22006
22019
|
},
|
|
22007
22020
|
entityType: function entityType() {
|
|
22008
22021
|
return {
|
|
22009
|
-
db_name: dbName,
|
|
22022
|
+
db_name: dbName$1,
|
|
22010
22023
|
entity: "CodeableConceptMaster",
|
|
22011
22024
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22012
22025
|
filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22015,7 +22028,7 @@ var queries$c = {
|
|
|
22015
22028
|
},
|
|
22016
22029
|
getParentEntityFull: function getParentEntityFull() {
|
|
22017
22030
|
return {
|
|
22018
|
-
db_name: dbName,
|
|
22031
|
+
db_name: dbName$1,
|
|
22019
22032
|
entity: "Organization",
|
|
22020
22033
|
sort: "Organization.name",
|
|
22021
22034
|
filter: "Organization.activestatus==true AND Organization.active==true",
|
|
@@ -22032,7 +22045,7 @@ var queries$c = {
|
|
|
22032
22045
|
// "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}",
|
|
22033
22046
|
// };
|
|
22034
22047
|
return {
|
|
22035
|
-
"db_name": dbName,
|
|
22048
|
+
"db_name": dbName$1,
|
|
22036
22049
|
"entity": "Organization",
|
|
22037
22050
|
"sort": "Organization.name",
|
|
22038
22051
|
"filter": "Organization.activestatus==true AND Organization.active==true && Organization.isExternal==".concat(type.isexternal, " && DOCUMENT(Organization.OrgType)[*].code ANY == '").concat(type.entityType, "'"),
|
|
@@ -22041,7 +22054,7 @@ var queries$c = {
|
|
|
22041
22054
|
},
|
|
22042
22055
|
getLevelOfCare: function getLevelOfCare() {
|
|
22043
22056
|
return {
|
|
22044
|
-
db_name: dbName,
|
|
22057
|
+
db_name: dbName$1,
|
|
22045
22058
|
entity: "LevelOfCare",
|
|
22046
22059
|
sort: "LevelOfCare.description",
|
|
22047
22060
|
filter: "LevelOfCare.active==true && LevelOfCare.activestatus==true",
|
|
@@ -22050,7 +22063,7 @@ var queries$c = {
|
|
|
22050
22063
|
},
|
|
22051
22064
|
orgUseIdenifi: function orgUseIdenifi() {
|
|
22052
22065
|
return {
|
|
22053
|
-
db_name: dbName,
|
|
22066
|
+
db_name: dbName$1,
|
|
22054
22067
|
entity: "CodeableConceptMaster",
|
|
22055
22068
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22056
22069
|
filter: "CodeableConceptMaster.Type=='USE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22059,7 +22072,7 @@ var queries$c = {
|
|
|
22059
22072
|
},
|
|
22060
22073
|
orgIdTypeIdenifi: function orgIdTypeIdenifi() {
|
|
22061
22074
|
return {
|
|
22062
|
-
db_name: dbName,
|
|
22075
|
+
db_name: dbName$1,
|
|
22063
22076
|
entity: "CodeableConceptMaster",
|
|
22064
22077
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22065
22078
|
filter: "CodeableConceptMaster.Type=='ORGIDENTIFICATIONTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22068,7 +22081,7 @@ var queries$c = {
|
|
|
22068
22081
|
},
|
|
22069
22082
|
aliastype: function aliastype() {
|
|
22070
22083
|
return {
|
|
22071
|
-
db_name: dbName,
|
|
22084
|
+
db_name: dbName$1,
|
|
22072
22085
|
entity: "CodeableConceptMaster",
|
|
22073
22086
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22074
22087
|
filter: "CodeableConceptMaster.Type=='ACCOUNTENTITYTYPE' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22078,7 +22091,7 @@ var queries$c = {
|
|
|
22078
22091
|
//ORGANIZATION TREE DETAILS
|
|
22079
22092
|
getTreeDetails: function getTreeDetails(_key) {
|
|
22080
22093
|
return {
|
|
22081
|
-
db_name: dbName,
|
|
22094
|
+
db_name: dbName$1,
|
|
22082
22095
|
entity: "Organization",
|
|
22083
22096
|
filter: "Organization._key=='".concat(_key, "' AND Organization.activestatus==true"),
|
|
22084
22097
|
// filter: `Organization._key=='10044' AND Organization.activestatus==true`,
|
|
@@ -22088,7 +22101,7 @@ var queries$c = {
|
|
|
22088
22101
|
//GET PARENT ORG NAME BY ID
|
|
22089
22102
|
getParentOrgNameById: function getParentOrgNameById(_key) {
|
|
22090
22103
|
return {
|
|
22091
|
-
db_name: dbName,
|
|
22104
|
+
db_name: dbName$1,
|
|
22092
22105
|
entity: "Organization",
|
|
22093
22106
|
filter: "Organization.id == ".concat(_key),
|
|
22094
22107
|
return_fields: "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,parentorgid:Organization.ParentOrgID}"
|
|
@@ -22097,7 +22110,7 @@ var queries$c = {
|
|
|
22097
22110
|
//UPSERT STATUS
|
|
22098
22111
|
upsertSatus: function upsertSatus(key, status) {
|
|
22099
22112
|
return [{
|
|
22100
|
-
db_name: dbName,
|
|
22113
|
+
db_name: dbName$1,
|
|
22101
22114
|
entity: "Organization",
|
|
22102
22115
|
is_metadata: true,
|
|
22103
22116
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -22111,7 +22124,7 @@ var queries$c = {
|
|
|
22111
22124
|
},
|
|
22112
22125
|
orgAddType: function orgAddType() {
|
|
22113
22126
|
return {
|
|
22114
|
-
db_name: dbName,
|
|
22127
|
+
db_name: dbName$1,
|
|
22115
22128
|
entity: "CodeableConceptMaster",
|
|
22116
22129
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22117
22130
|
filter: "CodeableConceptMaster.Type=='ADDRESSTYPE'",
|
|
@@ -22120,7 +22133,7 @@ var queries$c = {
|
|
|
22120
22133
|
},
|
|
22121
22134
|
orgAddUSE: function orgAddUSE() {
|
|
22122
22135
|
return {
|
|
22123
|
-
db_name: dbName,
|
|
22136
|
+
db_name: dbName$1,
|
|
22124
22137
|
entity: "CodeableConceptMaster",
|
|
22125
22138
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22126
22139
|
filter: "CodeableConceptMaster.Type=='ADDRESSUSE'",
|
|
@@ -22129,7 +22142,7 @@ var queries$c = {
|
|
|
22129
22142
|
},
|
|
22130
22143
|
orgAddCity: function orgAddCity() {
|
|
22131
22144
|
return {
|
|
22132
|
-
db_name: dbName,
|
|
22145
|
+
db_name: dbName$1,
|
|
22133
22146
|
entity: "SMGeographicMaster",
|
|
22134
22147
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22135
22148
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='city' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true",
|
|
@@ -22138,7 +22151,7 @@ var queries$c = {
|
|
|
22138
22151
|
},
|
|
22139
22152
|
orgAddDISTRICT: function orgAddDISTRICT(val) {
|
|
22140
22153
|
return {
|
|
22141
|
-
db_name: dbName,
|
|
22154
|
+
db_name: dbName$1,
|
|
22142
22155
|
entity: "SMGeographicMaster",
|
|
22143
22156
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22144
22157
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='district' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22147,7 +22160,7 @@ var queries$c = {
|
|
|
22147
22160
|
},
|
|
22148
22161
|
orgAddSTATE: function orgAddSTATE(val) {
|
|
22149
22162
|
return {
|
|
22150
|
-
db_name: dbName,
|
|
22163
|
+
db_name: dbName$1,
|
|
22151
22164
|
entity: "SMGeographicMaster",
|
|
22152
22165
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22153
22166
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='state' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22156,7 +22169,7 @@ var queries$c = {
|
|
|
22156
22169
|
},
|
|
22157
22170
|
orgAddCOUNTRY: function orgAddCOUNTRY(val) {
|
|
22158
22171
|
return {
|
|
22159
|
-
db_name: dbName,
|
|
22172
|
+
db_name: dbName$1,
|
|
22160
22173
|
entity: "SMGeographicMaster",
|
|
22161
22174
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22162
22175
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster._id=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22165,7 +22178,7 @@ var queries$c = {
|
|
|
22165
22178
|
},
|
|
22166
22179
|
orgAddPINCODE: function orgAddPINCODE(val) {
|
|
22167
22180
|
return {
|
|
22168
|
-
db_name: dbName,
|
|
22181
|
+
db_name: dbName$1,
|
|
22169
22182
|
entity: "SMGeographicMaster",
|
|
22170
22183
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22171
22184
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='pincode' && SMGeographicMaster.parentGeogLevelCode=='".concat(val, "' && SMGeographicMaster.activestatus == true && SMGeographicMaster.active == true"),
|
|
@@ -22174,7 +22187,7 @@ var queries$c = {
|
|
|
22174
22187
|
},
|
|
22175
22188
|
orgContactDetailMode: function orgContactDetailMode() {
|
|
22176
22189
|
return {
|
|
22177
|
-
db_name: dbName,
|
|
22190
|
+
db_name: dbName$1,
|
|
22178
22191
|
entity: "CodeableConceptMaster",
|
|
22179
22192
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22180
22193
|
filter: "CodeableConceptMaster.Type=='CONTACTSYSTEM'",
|
|
@@ -22183,7 +22196,7 @@ var queries$c = {
|
|
|
22183
22196
|
},
|
|
22184
22197
|
orgContactDetailCode: function orgContactDetailCode() {
|
|
22185
22198
|
return {
|
|
22186
|
-
db_name: dbName,
|
|
22199
|
+
db_name: dbName$1,
|
|
22187
22200
|
entity: "SMGeographicMaster",
|
|
22188
22201
|
sort: "SMGeographicMaster.geogLevelName",
|
|
22189
22202
|
filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
|
|
@@ -22192,7 +22205,7 @@ var queries$c = {
|
|
|
22192
22205
|
},
|
|
22193
22206
|
orgContactDetailUse: function orgContactDetailUse() {
|
|
22194
22207
|
return {
|
|
22195
|
-
db_name: dbName,
|
|
22208
|
+
db_name: dbName$1,
|
|
22196
22209
|
entity: "CodeableConceptMaster",
|
|
22197
22210
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22198
22211
|
filter: "CodeableConceptMaster.Type=='USE'",
|
|
@@ -22201,7 +22214,7 @@ var queries$c = {
|
|
|
22201
22214
|
},
|
|
22202
22215
|
orgContactDetailPriority: function orgContactDetailPriority() {
|
|
22203
22216
|
return {
|
|
22204
|
-
db_name: dbName,
|
|
22217
|
+
db_name: dbName$1,
|
|
22205
22218
|
entity: "CodeableConceptMaster",
|
|
22206
22219
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22207
22220
|
filter: "CodeableConceptMaster.Type=='PRIORITY'",
|
|
@@ -22210,7 +22223,7 @@ var queries$c = {
|
|
|
22210
22223
|
},
|
|
22211
22224
|
orgNamePrefix: function orgNamePrefix() {
|
|
22212
22225
|
return {
|
|
22213
|
-
db_name: dbName,
|
|
22226
|
+
db_name: dbName$1,
|
|
22214
22227
|
entity: "CodeableConceptMaster",
|
|
22215
22228
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22216
22229
|
filter: "CodeableConceptMaster.Type=='NAMEPREFIX' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22219,7 +22232,7 @@ var queries$c = {
|
|
|
22219
22232
|
},
|
|
22220
22233
|
orgNameSuffix: function orgNameSuffix() {
|
|
22221
22234
|
return {
|
|
22222
|
-
db_name: dbName,
|
|
22235
|
+
db_name: dbName$1,
|
|
22223
22236
|
entity: "CodeableConceptMaster",
|
|
22224
22237
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22225
22238
|
filter: "CodeableConceptMaster.Type=='NAMESUFFIX' AND CodeableConceptMaster.activestatus==true",
|
|
@@ -22228,7 +22241,7 @@ var queries$c = {
|
|
|
22228
22241
|
},
|
|
22229
22242
|
positionDesi: function positionDesi() {
|
|
22230
22243
|
return {
|
|
22231
|
-
db_name: dbName,
|
|
22244
|
+
db_name: dbName$1,
|
|
22232
22245
|
entity: "CodeableConceptMaster",
|
|
22233
22246
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22234
22247
|
filter: "CodeableConceptMaster.Type=='DESIGNATION' && CodeableConceptMaster.activestatus==true",
|
|
@@ -22237,7 +22250,7 @@ var queries$c = {
|
|
|
22237
22250
|
},
|
|
22238
22251
|
SpecialtyDrop: function SpecialtyDrop() {
|
|
22239
22252
|
return {
|
|
22240
|
-
db_name: dbName,
|
|
22253
|
+
db_name: dbName$1,
|
|
22241
22254
|
entity: "CodeableConceptMaster",
|
|
22242
22255
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
22243
22256
|
filter: "CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.activestatus==true",
|
|
@@ -22523,7 +22536,7 @@ var generateJson$8 = {
|
|
|
22523
22536
|
}
|
|
22524
22537
|
|
|
22525
22538
|
return [_objectSpread2(_objectSpread2({
|
|
22526
|
-
db_name: dbName,
|
|
22539
|
+
db_name: dbName$1,
|
|
22527
22540
|
entity: "Organization",
|
|
22528
22541
|
is_metadata: true,
|
|
22529
22542
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -24322,7 +24335,7 @@ var organization_role_actions = _objectSpread2({}, organizationActions);
|
|
|
24322
24335
|
var queries$b = {
|
|
24323
24336
|
careTypeRead: function careTypeRead() {
|
|
24324
24337
|
return {
|
|
24325
|
-
db_name: dbName,
|
|
24338
|
+
db_name: dbName$1,
|
|
24326
24339
|
entity: "CareType",
|
|
24327
24340
|
filter: "CareType.activestatus==true",
|
|
24328
24341
|
return_fields: "{id:CareType.id,_id:CareType._id,careType:CareType.careType,description:CareType.description,carelevelRank:CareType.carelevelRank}"
|
|
@@ -24330,7 +24343,7 @@ var queries$b = {
|
|
|
24330
24343
|
},
|
|
24331
24344
|
levelOfCareRead: function levelOfCareRead() {
|
|
24332
24345
|
return {
|
|
24333
|
-
db_name: dbName,
|
|
24346
|
+
db_name: dbName$1,
|
|
24334
24347
|
entity: "LevelOfCare",
|
|
24335
24348
|
filter: "LevelOfCare.activestatus==true",
|
|
24336
24349
|
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active,key:LevelOfCare._key}",
|
|
@@ -24339,7 +24352,7 @@ var queries$b = {
|
|
|
24339
24352
|
},
|
|
24340
24353
|
levelOfCareSinleRead: function levelOfCareSinleRead(key) {
|
|
24341
24354
|
return {
|
|
24342
|
-
db_name: dbName,
|
|
24355
|
+
db_name: dbName$1,
|
|
24343
24356
|
entity: "LevelOfCare",
|
|
24344
24357
|
filter: "LevelOfCare.activestatus==true && LevelOfCare._key=='".concat(key, "'"),
|
|
24345
24358
|
return_fields: "{id:LevelOfCare.id,_id:LevelOfCare._id,levelofcareCode:LevelOfCare.levelofcareCode,description:LevelOfCare.description,careType:document(LevelOfCare.careType),active:LevelOfCare.active}"
|
|
@@ -24347,7 +24360,7 @@ var queries$b = {
|
|
|
24347
24360
|
},
|
|
24348
24361
|
status_update_level_of_care: function status_update_level_of_care(data) {
|
|
24349
24362
|
return [{
|
|
24350
|
-
db_name: dbName,
|
|
24363
|
+
db_name: dbName$1,
|
|
24351
24364
|
entity: "LevelOfCare",
|
|
24352
24365
|
filter: {
|
|
24353
24366
|
_key: data._key
|
|
@@ -24371,7 +24384,7 @@ var queries$b = {
|
|
|
24371
24384
|
}
|
|
24372
24385
|
|
|
24373
24386
|
return [_objectSpread2(_objectSpread2({
|
|
24374
|
-
db_name: dbName,
|
|
24387
|
+
db_name: dbName$1,
|
|
24375
24388
|
entity: "LevelOfCare"
|
|
24376
24389
|
}, filter), {}, {
|
|
24377
24390
|
is_metadata: true,
|
|
@@ -24388,7 +24401,7 @@ var queries$b = {
|
|
|
24388
24401
|
//HEALTH CARE SERVICE READ
|
|
24389
24402
|
healthCareServiceRead: function healthCareServiceRead() {
|
|
24390
24403
|
return {
|
|
24391
|
-
db_name: dbName,
|
|
24404
|
+
db_name: dbName$1,
|
|
24392
24405
|
entity: "HealthcareService",
|
|
24393
24406
|
filter: "HealthcareService.activestatus==true",
|
|
24394
24407
|
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)})}",
|
|
@@ -24398,7 +24411,7 @@ var queries$b = {
|
|
|
24398
24411
|
//HEALTH CARE SERVICE STATUS CHANGE
|
|
24399
24412
|
healthCareServiceStatusChange: function healthCareServiceStatusChange(data) {
|
|
24400
24413
|
return [{
|
|
24401
|
-
db_name: dbName,
|
|
24414
|
+
db_name: dbName$1,
|
|
24402
24415
|
entity: "HealthcareService",
|
|
24403
24416
|
filter: {
|
|
24404
24417
|
_key: data._key
|
|
@@ -24421,7 +24434,7 @@ var queries$b = {
|
|
|
24421
24434
|
// },
|
|
24422
24435
|
editHealthCareService: function editHealthCareService(_key) {
|
|
24423
24436
|
return {
|
|
24424
|
-
db_name: dbName,
|
|
24437
|
+
db_name: dbName$1,
|
|
24425
24438
|
entity: "HealthcareService",
|
|
24426
24439
|
filter: "HealthcareService.activestatus==true && HealthcareService._key=='".concat(_key, "'"),
|
|
24427
24440
|
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)})}"
|
|
@@ -24430,7 +24443,7 @@ var queries$b = {
|
|
|
24430
24443
|
//SPECIALITY READ
|
|
24431
24444
|
specialityRead: function specialityRead() {
|
|
24432
24445
|
return {
|
|
24433
|
-
db_name: dbName,
|
|
24446
|
+
db_name: dbName$1,
|
|
24434
24447
|
entity: "Specialty",
|
|
24435
24448
|
filter: "Specialty.activestatus==true && Specialty.parentspecialtyCode==''",
|
|
24436
24449
|
return_fields: "merge(Specialty,{facilities:document(Specialty.facilities)},{parentspecialtyCode:document(Specialty.parentspecialtyCode)})"
|
|
@@ -24439,7 +24452,7 @@ var queries$b = {
|
|
|
24439
24452
|
//SPECIALITY CHILD READ
|
|
24440
24453
|
specialityChildRead: function specialityChildRead(id) {
|
|
24441
24454
|
return {
|
|
24442
|
-
db_name: dbName,
|
|
24455
|
+
db_name: dbName$1,
|
|
24443
24456
|
entity: "Specialty",
|
|
24444
24457
|
filter: "Specialty.activestatus==true && Specialty.parentspecialtyCode=='".concat(id, "'"),
|
|
24445
24458
|
return_fields: "merge(Specialty,{facilities:document(Specialty.facilities)},{parentspecialtyCode:document(Specialty.parentspecialtyCode)})"
|
|
@@ -24448,7 +24461,7 @@ var queries$b = {
|
|
|
24448
24461
|
//SPECIALITY EDIT
|
|
24449
24462
|
editSpeciality: function editSpeciality(_key) {
|
|
24450
24463
|
return {
|
|
24451
|
-
db_name: dbName,
|
|
24464
|
+
db_name: dbName$1,
|
|
24452
24465
|
entity: "Specialty",
|
|
24453
24466
|
filter: "Specialty.activestatus==true && Specialty._key=='".concat(_key, "'"),
|
|
24454
24467
|
return_fields: "merge(Specialty,{facilities:(for fac in document(Specialty.facilities) return merge(fac,{orgId:document(fac.orgId)}))},{parentspecialtyCode:document(Specialty.parentspecialtyCode)})"
|
|
@@ -24470,7 +24483,7 @@ var generateJson$7 = function generateJson(data) {
|
|
|
24470
24483
|
}
|
|
24471
24484
|
|
|
24472
24485
|
var arr = [_objectSpread2(_objectSpread2({
|
|
24473
|
-
"db_name": dbName,
|
|
24486
|
+
"db_name": dbName$1,
|
|
24474
24487
|
"entity": "HealthcareService"
|
|
24475
24488
|
}, filter), {}, {
|
|
24476
24489
|
"is_metadata": true,
|
|
@@ -24519,7 +24532,7 @@ var generateJsonSpeciality = function generateJsonSpeciality(data) {
|
|
|
24519
24532
|
}
|
|
24520
24533
|
|
|
24521
24534
|
var arr = [_objectSpread2(_objectSpread2({
|
|
24522
|
-
"db_name": dbName,
|
|
24535
|
+
"db_name": dbName$1,
|
|
24523
24536
|
"entity": "Specialty"
|
|
24524
24537
|
}, filter), {}, {
|
|
24525
24538
|
"is_metadata": true,
|
|
@@ -24656,7 +24669,7 @@ var generateapplicableFacility = function generateapplicableFacility(data, state
|
|
|
24656
24669
|
var masterQuery$3 = {
|
|
24657
24670
|
careTypeMasterQuery: function careTypeMasterQuery() {
|
|
24658
24671
|
return {
|
|
24659
|
-
db_name: dbName,
|
|
24672
|
+
db_name: dbName$1,
|
|
24660
24673
|
entity: "CareType",
|
|
24661
24674
|
sort: "CareType.description",
|
|
24662
24675
|
filter: "CareType.activestatus==true",
|
|
@@ -24665,7 +24678,7 @@ var masterQuery$3 = {
|
|
|
24665
24678
|
},
|
|
24666
24679
|
healthcareservice_LocationDescription_MasterQuery: function healthcareservice_LocationDescription_MasterQuery(id) {
|
|
24667
24680
|
return {
|
|
24668
|
-
db_name: dbName,
|
|
24681
|
+
db_name: dbName$1,
|
|
24669
24682
|
entity: "LocationMaster",
|
|
24670
24683
|
sort: "LocationMaster.locationID",
|
|
24671
24684
|
filter: "LocationMaster.activestatus==true && LocationMaster.locationType=='".concat(id, "'"),
|
|
@@ -24674,7 +24687,7 @@ var masterQuery$3 = {
|
|
|
24674
24687
|
},
|
|
24675
24688
|
specialityMasterParentSpeciality: function specialityMasterParentSpeciality() {
|
|
24676
24689
|
return {
|
|
24677
|
-
db_name: dbName,
|
|
24690
|
+
db_name: dbName$1,
|
|
24678
24691
|
entity: "Specialty",
|
|
24679
24692
|
filter: "Specialty.activestatus==true",
|
|
24680
24693
|
return_fields: "{_id:Specialty._id,_key:Specialty._key,id:Specialty.id,specialtyCode:Specialty.specialtyCode,description:Specialty.description,parentspecialtyCode:document(Specialty.parentspecialtyCode).specialtyCode}"
|
|
@@ -24682,7 +24695,7 @@ var masterQuery$3 = {
|
|
|
24682
24695
|
},
|
|
24683
24696
|
specialityMasterFacility: function specialityMasterFacility() {
|
|
24684
24697
|
return {
|
|
24685
|
-
db_name: dbName,
|
|
24698
|
+
db_name: dbName$1,
|
|
24686
24699
|
entity: "Organization",
|
|
24687
24700
|
filter: "Organization.activestatus==true && lower(first(document(Organization.OrgType)[*].display)) == 'facility'",
|
|
24688
24701
|
return_fields: "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
@@ -24690,17 +24703,17 @@ var masterQuery$3 = {
|
|
|
24690
24703
|
}
|
|
24691
24704
|
};
|
|
24692
24705
|
var masterQueryHealthCareService = {
|
|
24693
|
-
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 }"),
|
|
24694
|
-
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 }"),
|
|
24695
|
-
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 }"),
|
|
24696
|
-
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 }"),
|
|
24706
|
+
serviceCategory: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodingMaster\",\n \"sort\":\"CodingMaster.display\",\n \"filter\": \"CodingMaster.activestatus==true && CodingMaster.Type=='SERVICECATEGORY'\",\n \"return_fields\": \"CodingMaster\"\n }"),
|
|
24707
|
+
serviceType: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"CodingMaster\",\n \"sort\":\"CodingMaster.display\",\n \"filter\": \"CodingMaster.activestatus==true && CodingMaster.Type=='SERVICETYPE'\",\n \"return_fields\": \"CodingMaster\"\n }"),
|
|
24708
|
+
speciality: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
24709
|
+
facilityName: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
24697
24710
|
// locationType : `{
|
|
24698
24711
|
// "db_name": dbName,
|
|
24699
24712
|
// "entity": "CodingMaster",
|
|
24700
24713
|
// "filter": "CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONTYPE'",
|
|
24701
24714
|
// "return_fields": "CodingMaster"
|
|
24702
24715
|
// }`,
|
|
24703
|
-
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 }")
|
|
24716
|
+
locationType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }")
|
|
24704
24717
|
};
|
|
24705
24718
|
|
|
24706
24719
|
var _extraReducers$n;
|
|
@@ -25877,7 +25890,7 @@ var organization_config_master_action = _objectSpread2({}, organizationConfigMas
|
|
|
25877
25890
|
var query$6 = {
|
|
25878
25891
|
signInRead: function signInRead(list) {
|
|
25879
25892
|
return {
|
|
25880
|
-
db_name: dbName,
|
|
25893
|
+
db_name: dbName$1,
|
|
25881
25894
|
entity: "Person_ContactPointMaster_E",
|
|
25882
25895
|
filter: "LOWER(DOCUMENT(Person_ContactPointMaster_E._to).system)=='email' && LOWER(DOCUMENT(Person_ContactPointMaster_E._to).value)=='".concat(list, "'"),
|
|
25883
25896
|
return_fields: "DOCUMENT(Person_ContactPointMaster_E._from)"
|
|
@@ -25885,7 +25898,7 @@ var query$6 = {
|
|
|
25885
25898
|
},
|
|
25886
25899
|
IdmGetPermission: function IdmGetPermission(id) {
|
|
25887
25900
|
return {
|
|
25888
|
-
db_name: "".concat(dbName),
|
|
25901
|
+
db_name: "".concat(dbName$1),
|
|
25889
25902
|
entity: "PermissionRoleMapping",
|
|
25890
25903
|
filter: "PermissionRoleMapping.role_id == ".concat(id),
|
|
25891
25904
|
return_fields: "{PermissionRoleMapping}"
|
|
@@ -25963,7 +25976,7 @@ var SEARCH_PRACTIONER = createAsyncThunk("signInApiSlice/SearchPractioner", /*#_
|
|
|
25963
25976
|
_context2.prev = 2;
|
|
25964
25977
|
_payload$email = payload.email, email = _payload$email === void 0 ? "" : _payload$email;
|
|
25965
25978
|
body = {
|
|
25966
|
-
db_name: dbName,
|
|
25979
|
+
db_name: dbName$1,
|
|
25967
25980
|
queryid: query_ids["signInApiSlice/SearchPractioner"],
|
|
25968
25981
|
filter: {
|
|
25969
25982
|
emailId: email
|
|
@@ -26218,7 +26231,7 @@ var queries$a = {
|
|
|
26218
26231
|
"filter": "CodeableConceptMaster.Type == 'PRACTROLE' && CodeableConceptMaster.status == true"
|
|
26219
26232
|
};
|
|
26220
26233
|
return _objectSpread2(_objectSpread2({
|
|
26221
|
-
"db_name": dbName,
|
|
26234
|
+
"db_name": dbName$1,
|
|
26222
26235
|
"entity": "CodeableConceptMaster"
|
|
26223
26236
|
}, filter), {}, {
|
|
26224
26237
|
"sort": "CodeableConceptMaster.createddate",
|
|
@@ -26235,7 +26248,7 @@ var queries$a = {
|
|
|
26235
26248
|
}
|
|
26236
26249
|
|
|
26237
26250
|
return _objectSpread2(_objectSpread2({
|
|
26238
|
-
"db_name": dbName,
|
|
26251
|
+
"db_name": dbName$1,
|
|
26239
26252
|
"entity": "PermissionRoleMapping"
|
|
26240
26253
|
}, filter), {}, {
|
|
26241
26254
|
"return_fields": "{PermissionRoleMapping}"
|
|
@@ -26247,7 +26260,7 @@ var queries$a = {
|
|
|
26247
26260
|
// }
|
|
26248
26261
|
|
|
26249
26262
|
return _objectSpread2(_objectSpread2({
|
|
26250
|
-
"db_name": dbName,
|
|
26263
|
+
"db_name": dbName$1,
|
|
26251
26264
|
"entity": "PermissionManagement"
|
|
26252
26265
|
}, filter), {}, {
|
|
26253
26266
|
"return_fields": "{PermissionManagement}"
|
|
@@ -26265,7 +26278,7 @@ var queries$a = {
|
|
|
26265
26278
|
}
|
|
26266
26279
|
|
|
26267
26280
|
return [_objectSpread2(_objectSpread2({
|
|
26268
|
-
"db_name": dbName,
|
|
26281
|
+
"db_name": dbName$1,
|
|
26269
26282
|
"entity": "PermissionRoleMapping",
|
|
26270
26283
|
"is_metadata": true,
|
|
26271
26284
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26285,7 +26298,7 @@ var queries$a = {
|
|
|
26285
26298
|
}
|
|
26286
26299
|
|
|
26287
26300
|
return [_objectSpread2(_objectSpread2({
|
|
26288
|
-
"db_name": dbName,
|
|
26301
|
+
"db_name": dbName$1,
|
|
26289
26302
|
"entity": "CodeableConceptMaster",
|
|
26290
26303
|
"is_metadata": true,
|
|
26291
26304
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26305,7 +26318,7 @@ var queries$a = {
|
|
|
26305
26318
|
}
|
|
26306
26319
|
|
|
26307
26320
|
return [_objectSpread2({
|
|
26308
|
-
"db_name": dbName,
|
|
26321
|
+
"db_name": dbName$1,
|
|
26309
26322
|
"entity": "CodeableConceptMaster",
|
|
26310
26323
|
// "is_metadata": true,
|
|
26311
26324
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26313,7 +26326,7 @@ var queries$a = {
|
|
|
26313
26326
|
},
|
|
26314
26327
|
coding_update: function coding_update(data) {
|
|
26315
26328
|
return [{
|
|
26316
|
-
"db_name": dbName,
|
|
26329
|
+
"db_name": dbName$1,
|
|
26317
26330
|
"entity": "CodingMaster",
|
|
26318
26331
|
"is_metadata": true,
|
|
26319
26332
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -26718,7 +26731,7 @@ var queries$9 = {
|
|
|
26718
26731
|
"filter": "CodeableConceptMaster.Type == 'PRACTROLE' && CodeableConceptMaster.status == true"
|
|
26719
26732
|
};
|
|
26720
26733
|
return _objectSpread2(_objectSpread2({
|
|
26721
|
-
"db_name": dbName,
|
|
26734
|
+
"db_name": dbName$1,
|
|
26722
26735
|
"entity": "CodeableConceptMaster"
|
|
26723
26736
|
}, filter), {}, {
|
|
26724
26737
|
"return_fields": "MERGE(CodeableConceptMaster,{coding:(for cod IN TO_ARRAY(CodeableConceptMaster.coding) RETURN DOCUMENT(cod))})"
|
|
@@ -26734,7 +26747,7 @@ var queries$9 = {
|
|
|
26734
26747
|
}
|
|
26735
26748
|
|
|
26736
26749
|
return _objectSpread2(_objectSpread2({
|
|
26737
|
-
"db_name": dbName,
|
|
26750
|
+
"db_name": dbName$1,
|
|
26738
26751
|
"entity": "PermissionRoleMapping"
|
|
26739
26752
|
}, filter), {}, {
|
|
26740
26753
|
"return_fields": "{PermissionRoleMapping}"
|
|
@@ -26751,7 +26764,7 @@ var queries$9 = {
|
|
|
26751
26764
|
// }
|
|
26752
26765
|
|
|
26753
26766
|
return _objectSpread2(_objectSpread2({
|
|
26754
|
-
"db_name": dbName,
|
|
26767
|
+
"db_name": dbName$1,
|
|
26755
26768
|
"entity": "Repository"
|
|
26756
26769
|
}, filter), {}, {
|
|
26757
26770
|
"return_fields": "{Repository}"
|
|
@@ -26834,7 +26847,7 @@ var queries$8 = {
|
|
|
26834
26847
|
"filter": "PermissionManagement.activestatus==true"
|
|
26835
26848
|
};
|
|
26836
26849
|
return _objectSpread2(_objectSpread2({
|
|
26837
|
-
"db_name": dbName,
|
|
26850
|
+
"db_name": dbName$1,
|
|
26838
26851
|
"entity": "PermissionManagement"
|
|
26839
26852
|
}, filter), {}, {
|
|
26840
26853
|
"return_fields": "{PermissionManagement}"
|
|
@@ -26850,7 +26863,7 @@ var queries$8 = {
|
|
|
26850
26863
|
}
|
|
26851
26864
|
|
|
26852
26865
|
return _objectSpread2({
|
|
26853
|
-
"db_name": dbName,
|
|
26866
|
+
"db_name": dbName$1,
|
|
26854
26867
|
"entity": "PermissionManagement",
|
|
26855
26868
|
// "is_metadata": true,
|
|
26856
26869
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -26868,7 +26881,7 @@ var queries$8 = {
|
|
|
26868
26881
|
}
|
|
26869
26882
|
|
|
26870
26883
|
return [_objectSpread2(_objectSpread2({
|
|
26871
|
-
"db_name": dbName,
|
|
26884
|
+
"db_name": dbName$1,
|
|
26872
26885
|
"entity": "PermissionManagement",
|
|
26873
26886
|
"is_metadata": true,
|
|
26874
26887
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27056,7 +27069,7 @@ var permission_actions = _objectSpread2({}, permissionActions);
|
|
|
27056
27069
|
var queries$7 = {
|
|
27057
27070
|
person_read: function person_read(data) {
|
|
27058
27071
|
return {
|
|
27059
|
-
"db_name": dbName,
|
|
27072
|
+
"db_name": dbName$1,
|
|
27060
27073
|
"entity": "Person",
|
|
27061
27074
|
"filter": "Person.activestatus==true",
|
|
27062
27075
|
"sort": "Person.createddate",
|
|
@@ -27075,7 +27088,7 @@ var queries$7 = {
|
|
|
27075
27088
|
}
|
|
27076
27089
|
|
|
27077
27090
|
return [_objectSpread2({
|
|
27078
|
-
"db_name": dbName,
|
|
27091
|
+
"db_name": dbName$1,
|
|
27079
27092
|
"entity": "Person",
|
|
27080
27093
|
// "is_metadata": true,
|
|
27081
27094
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27094,7 +27107,7 @@ var queries$7 = {
|
|
|
27094
27107
|
|
|
27095
27108
|
delete data._key;
|
|
27096
27109
|
return [_objectSpread2(_objectSpread2({
|
|
27097
|
-
"db_name": dbName,
|
|
27110
|
+
"db_name": dbName$1,
|
|
27098
27111
|
"entity": "Person",
|
|
27099
27112
|
"is_metadata": true,
|
|
27100
27113
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27104,7 +27117,7 @@ var queries$7 = {
|
|
|
27104
27117
|
},
|
|
27105
27118
|
contact_system_master: function contact_system_master(data) {
|
|
27106
27119
|
return {
|
|
27107
|
-
"db_name": dbName,
|
|
27120
|
+
"db_name": dbName$1,
|
|
27108
27121
|
"entity": "CodingMaster",
|
|
27109
27122
|
"filter": "CodingMaster.Type=='CONTACTSYSTEM' && CodingMaster.activestatus==true",
|
|
27110
27123
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27112,7 +27125,7 @@ var queries$7 = {
|
|
|
27112
27125
|
},
|
|
27113
27126
|
entity_name_master: function entity_name_master(data) {
|
|
27114
27127
|
return {
|
|
27115
|
-
"db_name": dbName,
|
|
27128
|
+
"db_name": dbName$1,
|
|
27116
27129
|
"entity": "Organization",
|
|
27117
27130
|
"filter": "Organization.activestatus==true && lower(first(document(Organization.OrgType)[*].display)) == '".concat(data, "'"),
|
|
27118
27131
|
"return_fields": "{_id:Organization._id,_key:Organization._key,id:Organization.id,name:Organization.name,alias:Organization.alias}"
|
|
@@ -27120,7 +27133,7 @@ var queries$7 = {
|
|
|
27120
27133
|
},
|
|
27121
27134
|
entity_type_master: function entity_type_master(data) {
|
|
27122
27135
|
return {
|
|
27123
|
-
"db_name": dbName,
|
|
27136
|
+
"db_name": dbName$1,
|
|
27124
27137
|
"entity": "CodingMaster",
|
|
27125
27138
|
"filter": "CodingMaster.Type=='ORGTYPE' && CodingMaster.activestatus==true",
|
|
27126
27139
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27128,7 +27141,7 @@ var queries$7 = {
|
|
|
27128
27141
|
},
|
|
27129
27142
|
gender_master: function gender_master(data) {
|
|
27130
27143
|
return {
|
|
27131
|
-
"db_name": dbName,
|
|
27144
|
+
"db_name": dbName$1,
|
|
27132
27145
|
"entity": "CodingMaster",
|
|
27133
27146
|
"filter": "CodingMaster.Type=='GENDER' && CodingMaster.activestatus==true",
|
|
27134
27147
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27136,7 +27149,7 @@ var queries$7 = {
|
|
|
27136
27149
|
},
|
|
27137
27150
|
id_type_master: function id_type_master(data) {
|
|
27138
27151
|
return {
|
|
27139
|
-
"db_name": dbName,
|
|
27152
|
+
"db_name": dbName$1,
|
|
27140
27153
|
"entity": "CodingMaster",
|
|
27141
27154
|
"filter": "CodingMaster.Type=='ALTERNATEIDTYPE' && CodingMaster.activestatus==true",
|
|
27142
27155
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27144,7 +27157,7 @@ var queries$7 = {
|
|
|
27144
27157
|
},
|
|
27145
27158
|
prefix_master: function prefix_master(data) {
|
|
27146
27159
|
return {
|
|
27147
|
-
"db_name": dbName,
|
|
27160
|
+
"db_name": dbName$1,
|
|
27148
27161
|
"entity": "CodingMaster",
|
|
27149
27162
|
"filter": "CodingMaster.Type=='NAMEPREFIX' && CodingMaster.activestatus==true",
|
|
27150
27163
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27152,7 +27165,7 @@ var queries$7 = {
|
|
|
27152
27165
|
},
|
|
27153
27166
|
priority_master: function priority_master(data) {
|
|
27154
27167
|
return {
|
|
27155
|
-
"db_name": dbName,
|
|
27168
|
+
"db_name": dbName$1,
|
|
27156
27169
|
"entity": "CodingMaster",
|
|
27157
27170
|
"filter": "CodingMaster.Type=='PRIORITY' && CodingMaster.activestatus==true",
|
|
27158
27171
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27160,7 +27173,7 @@ var queries$7 = {
|
|
|
27160
27173
|
},
|
|
27161
27174
|
surffix_master: function surffix_master(data) {
|
|
27162
27175
|
return {
|
|
27163
|
-
"db_name": dbName,
|
|
27176
|
+
"db_name": dbName$1,
|
|
27164
27177
|
"entity": "CodingMaster",
|
|
27165
27178
|
"filter": "CodingMaster.Type=='NAMESUFFIX' && CodingMaster.activestatus==true",
|
|
27166
27179
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27168,7 +27181,7 @@ var queries$7 = {
|
|
|
27168
27181
|
},
|
|
27169
27182
|
use_master: function use_master(data) {
|
|
27170
27183
|
return {
|
|
27171
|
-
"db_name": dbName,
|
|
27184
|
+
"db_name": dbName$1,
|
|
27172
27185
|
"entity": "CodingMaster",
|
|
27173
27186
|
"filter": "CodingMaster.Type=='USE' && CodingMaster.activestatus==true",
|
|
27174
27187
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|
|
@@ -27176,7 +27189,7 @@ var queries$7 = {
|
|
|
27176
27189
|
},
|
|
27177
27190
|
single_read_person: function single_read_person(data) {
|
|
27178
27191
|
return {
|
|
27179
|
-
"db_name": dbName,
|
|
27192
|
+
"db_name": dbName$1,
|
|
27180
27193
|
"entity": "Person",
|
|
27181
27194
|
"filter": " Person._key=='".concat(data._key, "' && Person.activestatus==true"),
|
|
27182
27195
|
"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)})"
|
|
@@ -27946,7 +27959,7 @@ var queries$6 = {
|
|
|
27946
27959
|
user_read: function user_read(data) {
|
|
27947
27960
|
var filter = {};
|
|
27948
27961
|
return _objectSpread2(_objectSpread2({
|
|
27949
|
-
"db_name": dbName,
|
|
27962
|
+
"db_name": dbName$1,
|
|
27950
27963
|
"entity": "Practitioner"
|
|
27951
27964
|
}, filter), {}, {
|
|
27952
27965
|
"return_fields": "{Practitioner}"
|
|
@@ -27964,7 +27977,7 @@ var queries$6 = {
|
|
|
27964
27977
|
}
|
|
27965
27978
|
|
|
27966
27979
|
return [_objectSpread2({
|
|
27967
|
-
"db_name": dbName,
|
|
27980
|
+
"db_name": dbName$1,
|
|
27968
27981
|
"entity": "Practitioner",
|
|
27969
27982
|
// "is_metadata": true,
|
|
27970
27983
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27982,7 +27995,7 @@ var queries$6 = {
|
|
|
27982
27995
|
}
|
|
27983
27996
|
|
|
27984
27997
|
return [_objectSpread2(_objectSpread2({
|
|
27985
|
-
"db_name": dbName,
|
|
27998
|
+
"db_name": dbName$1,
|
|
27986
27999
|
"entity": "Practitioner",
|
|
27987
28000
|
"is_metadata": true,
|
|
27988
28001
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -27992,7 +28005,7 @@ var queries$6 = {
|
|
|
27992
28005
|
},
|
|
27993
28006
|
practitioner_by_id: function practitioner_by_id(data) {
|
|
27994
28007
|
return {
|
|
27995
|
-
"db_name": dbName,
|
|
28008
|
+
"db_name": dbName$1,
|
|
27996
28009
|
"entity": "Practitioner",
|
|
27997
28010
|
"filter": "Practitioner.PersonID==".concat(data.id, " && Practitioner.activestatus==true"),
|
|
27998
28011
|
"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))}))})"
|
|
@@ -28193,7 +28206,7 @@ var generateJson$6 = function generateJson(data, _key) {
|
|
|
28193
28206
|
};
|
|
28194
28207
|
});
|
|
28195
28208
|
return [_objectSpread2(_objectSpread2({
|
|
28196
|
-
"db_name": dbName
|
|
28209
|
+
"db_name": dbName$1
|
|
28197
28210
|
}, filter), {}, {
|
|
28198
28211
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28199
28212
|
"is_metadata": true,
|
|
@@ -28279,7 +28292,7 @@ var UPSERT_ALERT_STATUS = createAsyncThunk("alertRestictionsMasterSlice/save_ale
|
|
|
28279
28292
|
_context2.prev = 2;
|
|
28280
28293
|
list = payload.list, _key = payload._key;
|
|
28281
28294
|
queriesjson = [{
|
|
28282
|
-
"db_name": dbName,
|
|
28295
|
+
"db_name": dbName$1,
|
|
28283
28296
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28284
28297
|
"is_metadata": true,
|
|
28285
28298
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -28348,35 +28361,35 @@ var GET_ALL_MASTER = createAsyncThunk("alertRestictionsMasterSlice/get_all_maste
|
|
|
28348
28361
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
28349
28362
|
_context3.prev = 2;
|
|
28350
28363
|
get_facility = {
|
|
28351
|
-
"db_name": dbName,
|
|
28364
|
+
"db_name": dbName$1,
|
|
28352
28365
|
"entity": "Organization",
|
|
28353
28366
|
"sort": "Organization.name",
|
|
28354
28367
|
"filter": "Organization.activestatus==true && Organization.active==true ",
|
|
28355
28368
|
"return_fields": "Organization"
|
|
28356
28369
|
};
|
|
28357
28370
|
get_app_level = {
|
|
28358
|
-
"db_name": dbName,
|
|
28371
|
+
"db_name": dbName$1,
|
|
28359
28372
|
"entity": "CodeableConceptMaster",
|
|
28360
28373
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28361
28374
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'APPROVALLEVEL'",
|
|
28362
28375
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28363
28376
|
};
|
|
28364
28377
|
service_applicable = {
|
|
28365
|
-
"db_name": dbName,
|
|
28378
|
+
"db_name": dbName$1,
|
|
28366
28379
|
"entity": "CodeableConceptMaster",
|
|
28367
28380
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28368
28381
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'SERVICEAPPLICABILITY'",
|
|
28369
28382
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28370
28383
|
};
|
|
28371
28384
|
rule_type = {
|
|
28372
|
-
"db_name": dbName,
|
|
28385
|
+
"db_name": dbName$1,
|
|
28373
28386
|
"entity": "CodeableConceptMaster",
|
|
28374
28387
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
28375
28388
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'RULETYPE'",
|
|
28376
28389
|
"return_fields": "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})"
|
|
28377
28390
|
};
|
|
28378
28391
|
privillage_type = {
|
|
28379
|
-
"db_name": dbName,
|
|
28392
|
+
"db_name": dbName$1,
|
|
28380
28393
|
"entity": "CodeableConceptMaster",
|
|
28381
28394
|
"sort": "CodeableConceptMaster.text",
|
|
28382
28395
|
"filter": "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='PRIVILEGETYPE'",
|
|
@@ -28498,7 +28511,7 @@ var READ_ALERT = createAsyncThunk("orderCatalogApiSlice/orderCatalogRead", /*#__
|
|
|
28498
28511
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
28499
28512
|
_context4.prev = 2;
|
|
28500
28513
|
read = {
|
|
28501
|
-
"db_name": dbName,
|
|
28514
|
+
"db_name": dbName$1,
|
|
28502
28515
|
"entity": "CA_OrderCatalogPrivilegeLevel",
|
|
28503
28516
|
"sort": "CA_OrderCatalogPrivilegeLevel.createddate",
|
|
28504
28517
|
"filter": "CA_OrderCatalogPrivilegeLevel.activestatus==true",
|
|
@@ -28579,7 +28592,7 @@ var vitalsMasters = _objectSpread2(_objectSpread2(_objectSpread2({}, vitalsMeasu
|
|
|
28579
28592
|
var queries$5 = {
|
|
28580
28593
|
fullread: function fullread() {
|
|
28581
28594
|
return {
|
|
28582
|
-
db_name: dbName,
|
|
28595
|
+
db_name: dbName$1,
|
|
28583
28596
|
entity: "DrugUOM",
|
|
28584
28597
|
filter: "DrugUOM.activestatus == true",
|
|
28585
28598
|
sort: "DrugUOM.createddate",
|
|
@@ -28588,7 +28601,7 @@ var queries$5 = {
|
|
|
28588
28601
|
},
|
|
28589
28602
|
DRUG_UOM_TYPE: function DRUG_UOM_TYPE() {
|
|
28590
28603
|
return {
|
|
28591
|
-
db_name: dbName,
|
|
28604
|
+
db_name: dbName$1,
|
|
28592
28605
|
entity: "CodeableConceptMaster",
|
|
28593
28606
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
28594
28607
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type == 'DRUGUOMTYPE' ",
|
|
@@ -28605,7 +28618,7 @@ var queries$5 = {
|
|
|
28605
28618
|
// "MERGE(CodeableConceptMaster,{coding: DOCUMENT(CodeableConceptMaster.coding)})",
|
|
28606
28619
|
// };
|
|
28607
28620
|
return {
|
|
28608
|
-
"db_name": dbName,
|
|
28621
|
+
"db_name": dbName$1,
|
|
28609
28622
|
"entity": "DrugUOM",
|
|
28610
28623
|
"filter": "DrugUOM.activestatus == true && DrugUOM.UOMType == '".concat(id, "' && LOWER(DrugUOM.UOM) !=LOWER('").concat(type, "') && DrugUOM.status==true"),
|
|
28611
28624
|
"return_fields": "{id:DrugUOM.id, _id:DrugUOM._id, UOM:DrugUOM.UOM, longdesc:DrugUOM.longdesc, shortdesc:DrugUOM.shortdesc}"
|
|
@@ -28613,7 +28626,7 @@ var queries$5 = {
|
|
|
28613
28626
|
},
|
|
28614
28627
|
To_UOM_Read_line: function To_UOM_Read_line(key) {
|
|
28615
28628
|
return {
|
|
28616
|
-
db_name: dbName,
|
|
28629
|
+
db_name: dbName$1,
|
|
28617
28630
|
entity: "DrugUOM",
|
|
28618
28631
|
filter: "DrugUOM.activestatus == true && DrugUOM._key == '".concat(key, "'"),
|
|
28619
28632
|
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:
|
|
@@ -28625,7 +28638,7 @@ var queries$5 = {
|
|
|
28625
28638
|
},
|
|
28626
28639
|
To_UOM_UPDATE_STATUS: function To_UOM_UPDATE_STATUS(status, key) {
|
|
28627
28640
|
return [{
|
|
28628
|
-
db_name: dbName,
|
|
28641
|
+
db_name: dbName$1,
|
|
28629
28642
|
entity: "DrugUOM",
|
|
28630
28643
|
filter: {
|
|
28631
28644
|
_key: "".concat(key)
|
|
@@ -28662,7 +28675,7 @@ var generateJson$5 = {
|
|
|
28662
28675
|
};
|
|
28663
28676
|
});
|
|
28664
28677
|
return [_objectSpread2(_objectSpread2({
|
|
28665
|
-
db_name: dbName,
|
|
28678
|
+
db_name: dbName$1,
|
|
28666
28679
|
entity: "DrugUOM",
|
|
28667
28680
|
is_metadata: true
|
|
28668
28681
|
}, filter), {}, {
|
|
@@ -29092,7 +29105,7 @@ var drugMasterUOMSlice$1 = drugMasterUOMSlice.reducer;
|
|
|
29092
29105
|
var queries$4 = {
|
|
29093
29106
|
fullread: function fullread(type) {
|
|
29094
29107
|
return {
|
|
29095
|
-
db_name: dbName,
|
|
29108
|
+
db_name: dbName$1,
|
|
29096
29109
|
entity: "FrequencyMaster",
|
|
29097
29110
|
sort: "FrequencyMaster.freqcode",
|
|
29098
29111
|
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)})"
|
|
@@ -29100,7 +29113,7 @@ var queries$4 = {
|
|
|
29100
29113
|
},
|
|
29101
29114
|
SCHEDULEBY: function SCHEDULEBY() {
|
|
29102
29115
|
return {
|
|
29103
|
-
db_name: dbName,
|
|
29116
|
+
db_name: dbName$1,
|
|
29104
29117
|
entity: "CodeableConceptMaster",
|
|
29105
29118
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
29106
29119
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='SCHEDULEBY'",
|
|
@@ -29109,7 +29122,7 @@ var queries$4 = {
|
|
|
29109
29122
|
},
|
|
29110
29123
|
UOM: function UOM() {
|
|
29111
29124
|
return {
|
|
29112
|
-
db_name: dbName,
|
|
29125
|
+
db_name: dbName$1,
|
|
29113
29126
|
entity: "DrugUOM",
|
|
29114
29127
|
sort: "DrugUOM.UOM",
|
|
29115
29128
|
return_fields: "DrugUOM"
|
|
@@ -29117,7 +29130,7 @@ var queries$4 = {
|
|
|
29117
29130
|
},
|
|
29118
29131
|
WEEKDAYS: function WEEKDAYS() {
|
|
29119
29132
|
return {
|
|
29120
|
-
db_name: dbName,
|
|
29133
|
+
db_name: dbName$1,
|
|
29121
29134
|
entity: "CodeableConceptMaster",
|
|
29122
29135
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='WEEKDAYS'",
|
|
29123
29136
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
|
|
@@ -29125,7 +29138,7 @@ var queries$4 = {
|
|
|
29125
29138
|
},
|
|
29126
29139
|
FIXEDDURATIONTYPE: function FIXEDDURATIONTYPE() {
|
|
29127
29140
|
return {
|
|
29128
|
-
db_name: dbName,
|
|
29141
|
+
db_name: dbName$1,
|
|
29129
29142
|
entity: "CodeableConceptMaster",
|
|
29130
29143
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
29131
29144
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='FIXEDDURATIONTYPE'",
|
|
@@ -29134,7 +29147,7 @@ var queries$4 = {
|
|
|
29134
29147
|
},
|
|
29135
29148
|
FREQUENCYTYPE: function FREQUENCYTYPE() {
|
|
29136
29149
|
return {
|
|
29137
|
-
db_name: dbName,
|
|
29150
|
+
db_name: dbName$1,
|
|
29138
29151
|
entity: "CodeableConceptMaster",
|
|
29139
29152
|
sort: "document(CodeableConceptMaster.coding[0]).display",
|
|
29140
29153
|
filter: "CodeableConceptMaster.activestatus==true && CodeableConceptMaster.Type=='FREQUENCYTYPE'",
|
|
@@ -29143,7 +29156,7 @@ var queries$4 = {
|
|
|
29143
29156
|
},
|
|
29144
29157
|
FREQUENCYTYPESTATUS: function FREQUENCYTYPESTATUS(data, key) {
|
|
29145
29158
|
return [{
|
|
29146
|
-
db_name: dbName,
|
|
29159
|
+
db_name: dbName$1,
|
|
29147
29160
|
entity: "FrequencyMaster",
|
|
29148
29161
|
is_metadata: true,
|
|
29149
29162
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -29157,7 +29170,7 @@ var queries$4 = {
|
|
|
29157
29170
|
},
|
|
29158
29171
|
SINGLEREADDOC: function SINGLEREADDOC(key) {
|
|
29159
29172
|
return {
|
|
29160
|
-
db_name: dbName,
|
|
29173
|
+
db_name: dbName$1,
|
|
29161
29174
|
entity: "FrequencyMaster",
|
|
29162
29175
|
filter: "FrequencyMaster._key=='".concat(key, "'"),
|
|
29163
29176
|
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)})"
|
|
@@ -29180,7 +29193,7 @@ var generateJson$4 = {
|
|
|
29180
29193
|
}
|
|
29181
29194
|
|
|
29182
29195
|
return [_objectSpread2(_objectSpread2({
|
|
29183
|
-
db_name: dbName,
|
|
29196
|
+
db_name: dbName$1,
|
|
29184
29197
|
entity: "FrequencyMaster",
|
|
29185
29198
|
is_metadata: true
|
|
29186
29199
|
}, filter), {}, {
|
|
@@ -29787,7 +29800,7 @@ var drug_actions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_
|
|
|
29787
29800
|
var query$5 = {
|
|
29788
29801
|
orderSetList: function orderSetList() {
|
|
29789
29802
|
return {
|
|
29790
|
-
db_name: "".concat(dbName),
|
|
29803
|
+
db_name: "".concat(dbName$1),
|
|
29791
29804
|
entity: "CA_OrderSet",
|
|
29792
29805
|
filter: "CA_OrderSet.activestatus == true",
|
|
29793
29806
|
return_fields: "keep(CA_OrderSet,'id','_key','_id','longDesc','shortDesc','orderSetCode','status')",
|
|
@@ -29796,7 +29809,7 @@ var query$5 = {
|
|
|
29796
29809
|
},
|
|
29797
29810
|
orderSetListById: function orderSetListById(_key) {
|
|
29798
29811
|
return {
|
|
29799
|
-
db_name: "".concat(dbName),
|
|
29812
|
+
db_name: "".concat(dbName$1),
|
|
29800
29813
|
entity: "CA_OrderSet",
|
|
29801
29814
|
filter: "CA_OrderSet._key == '".concat(_key, "' && CA_OrderSet.activestatus == true"),
|
|
29802
29815
|
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)}))})"
|
|
@@ -29804,7 +29817,7 @@ var query$5 = {
|
|
|
29804
29817
|
},
|
|
29805
29818
|
status_update_order_set_master: function status_update_order_set_master(data) {
|
|
29806
29819
|
return [{
|
|
29807
|
-
db_name: "".concat(dbName),
|
|
29820
|
+
db_name: "".concat(dbName$1),
|
|
29808
29821
|
entity: "CA_OrderSet",
|
|
29809
29822
|
is_metadata: true,
|
|
29810
29823
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -29818,7 +29831,7 @@ var query$5 = {
|
|
|
29818
29831
|
},
|
|
29819
29832
|
orderSetComponentDelete: function orderSetComponentDelete(_key) {
|
|
29820
29833
|
return {
|
|
29821
|
-
db_name: "".concat(dbName),
|
|
29834
|
+
db_name: "".concat(dbName$1),
|
|
29822
29835
|
entity: "CA_OrderSet_Components",
|
|
29823
29836
|
filter: "CA_OrderSet_Components._key== '".concat(_key, "'")
|
|
29824
29837
|
};
|
|
@@ -29826,16 +29839,16 @@ var query$5 = {
|
|
|
29826
29839
|
};
|
|
29827
29840
|
|
|
29828
29841
|
var masterQuery$2 = {
|
|
29829
|
-
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 }"),
|
|
29830
|
-
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 }"),
|
|
29831
|
-
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 }"),
|
|
29832
|
-
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 }"),
|
|
29833
|
-
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 }")
|
|
29842
|
+
orderCategory: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
29843
|
+
commonUOM: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"DrugUOM\",\n \"filter\": \"DrugUOM.status == true && DrugUOM.activestatus == true\",\n \"return_fields\": \"keep(DrugUOM,'_key','_id','UOM','shortdesc','longdesc','status')\"\n }"),
|
|
29844
|
+
route: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
29845
|
+
drugFreqCode: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
29846
|
+
durationDropDown: "{\n \"db_name\": \"".concat(dbName$1, "\", \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 }")
|
|
29834
29847
|
};
|
|
29835
29848
|
var orderCategoty = {
|
|
29836
29849
|
orderCategory: function orderCategory() {
|
|
29837
29850
|
return {
|
|
29838
|
-
db_name: "".concat(dbName),
|
|
29851
|
+
db_name: "".concat(dbName$1),
|
|
29839
29852
|
entity: "OrderCategory",
|
|
29840
29853
|
filter: "OrderCategory.activestatus == true && OrderCategory.status==true",
|
|
29841
29854
|
return_fields: "keep(OrderCategory,'id','_id','_key','shortdesc','ordercategory','longdesc')",
|
|
@@ -29846,7 +29859,7 @@ var orderCategoty = {
|
|
|
29846
29859
|
var dynamicMaster$1 = {
|
|
29847
29860
|
orderDrugType: function orderDrugType(order_category) {
|
|
29848
29861
|
return {
|
|
29849
|
-
db_name: "".concat(dbName),
|
|
29862
|
+
db_name: "".concat(dbName$1),
|
|
29850
29863
|
entity: "OrderType",
|
|
29851
29864
|
filter: "OrderType.ordercategory=='".concat(order_category, "' && OrderType.activestatus == true && OrderType.status == true"),
|
|
29852
29865
|
return_fields: "MERGE(keep(OrderType,'id','_key','_id','shortdesc','ordertype','longdesc','ordercategory'),{ordercategory:(DOCUMENT(OrderType.ordercategory))})",
|
|
@@ -29855,7 +29868,7 @@ var dynamicMaster$1 = {
|
|
|
29855
29868
|
},
|
|
29856
29869
|
drugType: function drugType() {
|
|
29857
29870
|
return {
|
|
29858
|
-
db_name: "".concat(dbName),
|
|
29871
|
+
db_name: "".concat(dbName$1),
|
|
29859
29872
|
entity: "DrugType",
|
|
29860
29873
|
filter: "DrugType.activestatus == true && DrugType.status == true",
|
|
29861
29874
|
return_fields: "KEEP(DrugType,'_id','_key','drugtype','longdesc','shortdesc')",
|
|
@@ -29864,7 +29877,7 @@ var dynamicMaster$1 = {
|
|
|
29864
29877
|
},
|
|
29865
29878
|
orderCatalog: function orderCatalog(order_category, order_drug_type) {
|
|
29866
29879
|
return {
|
|
29867
|
-
db_name: "".concat(dbName),
|
|
29880
|
+
db_name: "".concat(dbName$1),
|
|
29868
29881
|
entity: "OrderCatalog",
|
|
29869
29882
|
filter: "OrderCatalog.ordercategory=='".concat(order_category, "' && OrderCatalog.ordertype=='").concat(order_drug_type, "' && OrderCatalog.activestatus == true && OrderCatalog.status==true"),
|
|
29870
29883
|
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})",
|
|
@@ -29873,7 +29886,7 @@ var dynamicMaster$1 = {
|
|
|
29873
29886
|
},
|
|
29874
29887
|
drugCatalog: function drugCatalog(drug_type) {
|
|
29875
29888
|
return {
|
|
29876
|
-
db_name: "".concat(dbName),
|
|
29889
|
+
db_name: "".concat(dbName$1),
|
|
29877
29890
|
entity: "DrugMaster",
|
|
29878
29891
|
filter: "DrugMaster.DrugType=='".concat(drug_type, "' && DrugMaster.activestatus == true && DrugMaster.statusactive==true"),
|
|
29879
29892
|
return_fields: "merge(keep(DrugMaster,'id','_id','_key','ShortDesc','LongDesc','DrugType'),{DrugType:document(DrugMaster.DrugType)})",
|
|
@@ -29896,7 +29909,7 @@ var generateJson$3 = function generateJson(data) {
|
|
|
29896
29909
|
}
|
|
29897
29910
|
|
|
29898
29911
|
return [_objectSpread2(_objectSpread2({
|
|
29899
|
-
db_name: dbName,
|
|
29912
|
+
db_name: dbName$1,
|
|
29900
29913
|
entity: "CA_OrderSet",
|
|
29901
29914
|
is_metadata: true,
|
|
29902
29915
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -30992,7 +31005,7 @@ var orderSetMasterSlice$1 = orderSetMasterSlice.reducer;
|
|
|
30992
31005
|
var query$4 = {
|
|
30993
31006
|
orderSetApplicabilityList: function orderSetApplicabilityList(_id) {
|
|
30994
31007
|
return {
|
|
30995
|
-
db_name: "".concat(dbName),
|
|
31008
|
+
db_name: "".concat(dbName$1),
|
|
30996
31009
|
entity: "CA_OrderSet_Applicability",
|
|
30997
31010
|
filter: "CA_OrderSet_Applicability.Ordersetcode=='".concat(_id, "' && CA_OrderSet_Applicability.activestatus==true"),
|
|
30998
31011
|
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)})"
|
|
@@ -31000,7 +31013,7 @@ var query$4 = {
|
|
|
31000
31013
|
},
|
|
31001
31014
|
orderSetApplicabilityById: function orderSetApplicabilityById(_key) {
|
|
31002
31015
|
return {
|
|
31003
|
-
db_name: "".concat(dbName),
|
|
31016
|
+
db_name: "".concat(dbName$1),
|
|
31004
31017
|
entity: "CA_OrderSet_Applicability",
|
|
31005
31018
|
filter: "CA_OrderSet_Applicability._key=='".concat(_key, "' && CA_OrderSet_Applicability.activestatus==true"),
|
|
31006
31019
|
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)})"
|
|
@@ -31008,7 +31021,7 @@ var query$4 = {
|
|
|
31008
31021
|
},
|
|
31009
31022
|
status_update_order_set_master: function status_update_order_set_master(data) {
|
|
31010
31023
|
return [{
|
|
31011
|
-
db_name: "".concat(dbName),
|
|
31024
|
+
db_name: "".concat(dbName$1),
|
|
31012
31025
|
entity: "CA_OrderSet",
|
|
31013
31026
|
is_metadata: true,
|
|
31014
31027
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -31022,7 +31035,7 @@ var query$4 = {
|
|
|
31022
31035
|
},
|
|
31023
31036
|
orderSetApplicabilityDelete: function orderSetApplicabilityDelete(_key) {
|
|
31024
31037
|
return {
|
|
31025
|
-
db_name: "".concat(dbName),
|
|
31038
|
+
db_name: "".concat(dbName$1),
|
|
31026
31039
|
entity: "CA_OrderSet_Applicability",
|
|
31027
31040
|
filter: "CA_OrderSet_Applicability._key== '".concat(_key, "'")
|
|
31028
31041
|
};
|
|
@@ -31031,15 +31044,15 @@ var query$4 = {
|
|
|
31031
31044
|
|
|
31032
31045
|
var masterQuery$1 = {
|
|
31033
31046
|
//name
|
|
31034
|
-
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 }"),
|
|
31047
|
+
facilityName: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
31035
31048
|
// coding[0]?.display
|
|
31036
|
-
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 }"),
|
|
31049
|
+
speciality: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
31037
31050
|
// coding[0]?.display
|
|
31038
|
-
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 }"),
|
|
31051
|
+
practitionerType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
31039
31052
|
//array of string
|
|
31040
|
-
codeSet: "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"Diagnosis\",\n \"return_fields\": \"distinct Diagnosis.termcode\",\n \"sort\": \"Diagnosis.termcode\"\n }"),
|
|
31053
|
+
codeSet: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"Diagnosis\",\n \"return_fields\": \"distinct Diagnosis.termcode\",\n \"sort\": \"Diagnosis.termcode\"\n }"),
|
|
31041
31054
|
//coding[0]?.display
|
|
31042
|
-
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 }")
|
|
31055
|
+
locationType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }")
|
|
31043
31056
|
};
|
|
31044
31057
|
var dynamicMaster = {
|
|
31045
31058
|
orderSetAppPractitioner: function orderSetAppPractitioner(_id) {
|
|
@@ -31051,7 +31064,7 @@ var dynamicMaster = {
|
|
|
31051
31064
|
// "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))}))})",
|
|
31052
31065
|
// };
|
|
31053
31066
|
return {
|
|
31054
|
-
"db_name": "".concat(dbName),
|
|
31067
|
+
"db_name": "".concat(dbName$1),
|
|
31055
31068
|
"entity": "Practitioner",
|
|
31056
31069
|
"filter": "document(document(Practitioner.practitioner_type).coding)[*]._id any=='".concat(_id, "' && Practitioner.activestatus==true && Practitioner.active == true"),
|
|
31057
31070
|
"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))}))})"
|
|
@@ -31059,7 +31072,7 @@ var dynamicMaster = {
|
|
|
31059
31072
|
},
|
|
31060
31073
|
orderSetAppDiagnosisGroup: function orderSetAppDiagnosisGroup(_id) {
|
|
31061
31074
|
return {
|
|
31062
|
-
db_name: "".concat(dbName),
|
|
31075
|
+
db_name: "".concat(dbName$1),
|
|
31063
31076
|
entity: "Diagnosis",
|
|
31064
31077
|
filter: "Diagnosis.termcode=='".concat(_id, "' && Diagnosis.icdcode == Diagnosis.parenticdcode && Diagnosis.activestatus==true"),
|
|
31065
31078
|
return_fields: "KEEP(Diagnosis,'_id','id','_key','icdcode', 'icdname', 'parenticdcode', 'levelnumber')",
|
|
@@ -31068,7 +31081,7 @@ var dynamicMaster = {
|
|
|
31068
31081
|
},
|
|
31069
31082
|
orderSetAppDiagnosisCode: function orderSetAppDiagnosisCode(_id, search) {
|
|
31070
31083
|
return {
|
|
31071
|
-
db_name: "".concat(dbName),
|
|
31084
|
+
db_name: "".concat(dbName$1),
|
|
31072
31085
|
entity: "Diagnosis",
|
|
31073
31086
|
filter: "((Diagnosis.icdcode != Diagnosis.parenticdcode && like (Diagnosis.icdname,'%".concat(search, "%',true)) || Diagnosis.parenticdcode=='").concat(_id, "') && Diagnosis.activestatus==true"),
|
|
31074
31087
|
return_fields: "KEEP(Diagnosis,'_id','id','_key','icdcode', 'icdname', 'parenticdcode', 'levelnumber')",
|
|
@@ -31085,7 +31098,7 @@ var dynamicMaster = {
|
|
|
31085
31098
|
// sort: "LocationMaster.shortdesc",
|
|
31086
31099
|
// };
|
|
31087
31100
|
return {
|
|
31088
|
-
"db_name": "".concat(dbName),
|
|
31101
|
+
"db_name": "".concat(dbName$1),
|
|
31089
31102
|
"entity": "LocationMaster",
|
|
31090
31103
|
"filter": "document(document(LocationMaster.locationType).coding)[*]._id any == '".concat(_id, "' && LocationMaster.activestatus==true && LocationMaster.status=='Active'"),
|
|
31091
31104
|
"return_fields": "KEEP(LocationMaster,'id','_id','key','locationID','longdesc','shortdesc')",
|
|
@@ -31108,7 +31121,7 @@ var generateJson$2 = function generateJson(data, orderSetKey) {
|
|
|
31108
31121
|
}
|
|
31109
31122
|
|
|
31110
31123
|
var arr = [_objectSpread2(_objectSpread2({
|
|
31111
|
-
db_name: dbName,
|
|
31124
|
+
db_name: dbName$1,
|
|
31112
31125
|
entity: "CA_OrderSet_Applicability",
|
|
31113
31126
|
is_metadata: true,
|
|
31114
31127
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -31886,7 +31899,7 @@ var orderSetApplicabilitySlice$1 = orderSetApplicabilitySlice.reducer;
|
|
|
31886
31899
|
var query$3 = {
|
|
31887
31900
|
getList: function getList(page, perpage) {
|
|
31888
31901
|
return {
|
|
31889
|
-
db_name: "".concat(dbName),
|
|
31902
|
+
db_name: "".concat(dbName$1),
|
|
31890
31903
|
entity: "AllergyMaster",
|
|
31891
31904
|
filter: "AllergyMaster.activestatus == true",
|
|
31892
31905
|
limit: {
|
|
@@ -31913,7 +31926,7 @@ var generateJson$1 = function generateJson(data) {
|
|
|
31913
31926
|
}
|
|
31914
31927
|
|
|
31915
31928
|
return [_objectSpread2(_objectSpread2({
|
|
31916
|
-
db_name: "".concat(dbName),
|
|
31929
|
+
db_name: "".concat(dbName$1),
|
|
31917
31930
|
entity: "AllergyMaster",
|
|
31918
31931
|
is_metadata: true,
|
|
31919
31932
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -31968,9 +31981,9 @@ var generateReadJSON$1 = function generateReadJSON(data) {
|
|
|
31968
31981
|
};
|
|
31969
31982
|
|
|
31970
31983
|
var masterQuery = {
|
|
31971
|
-
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 }"),
|
|
31972
|
-
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 }"),
|
|
31973
|
-
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 }")
|
|
31984
|
+
allergyTypeIndicator: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
31985
|
+
conceptIdType: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
31986
|
+
extSystemSourceId: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }")
|
|
31974
31987
|
};
|
|
31975
31988
|
|
|
31976
31989
|
var _extraReducers$a;
|
|
@@ -32186,7 +32199,7 @@ var UPDATE_ALLERGEN_MASTER_STATUS = createAsyncThunk("allergenMasterApiSlice/upd
|
|
|
32186
32199
|
_context6.prev = 2;
|
|
32187
32200
|
_key = payload._key, status = payload.status;
|
|
32188
32201
|
queriesjson = [{
|
|
32189
|
-
db_name: dbName,
|
|
32202
|
+
db_name: dbName$1,
|
|
32190
32203
|
entity: "AllergyMaster",
|
|
32191
32204
|
is_metadata: true,
|
|
32192
32205
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -32302,12 +32315,12 @@ var allergenMasterActions = {
|
|
|
32302
32315
|
var allergenMasterSlice$1 = allergenMasterSlice.reducer;
|
|
32303
32316
|
|
|
32304
32317
|
var flexQuery = {
|
|
32305
|
-
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 }"),
|
|
32306
|
-
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 }"),
|
|
32307
|
-
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 }"),
|
|
32318
|
+
attributeTypeDropDown: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
32319
|
+
numUomDropDown: "{\n \"db_name\":\"".concat(dbName$1, "\",\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 }"),
|
|
32320
|
+
flexAttributeFullRead: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
32308
32321
|
flexAttrFullRead: function flexAttrFullRead(page, perpage, search) {
|
|
32309
32322
|
return {
|
|
32310
|
-
db_name: dbName,
|
|
32323
|
+
db_name: dbName$1,
|
|
32311
32324
|
entity: "CA_OrderAttribMaster",
|
|
32312
32325
|
filter: "(like (CA_OrderAttribMaster.attribcode,'%".concat(search, "%',true)) && CA_OrderAttribMaster.activestatus==true"),
|
|
32313
32326
|
limit: {
|
|
@@ -32320,7 +32333,7 @@ var flexQuery = {
|
|
|
32320
32333
|
},
|
|
32321
32334
|
flexStatusChange: function flexStatusChange(list, key) {
|
|
32322
32335
|
return [{
|
|
32323
|
-
db_name: dbName,
|
|
32336
|
+
db_name: dbName$1,
|
|
32324
32337
|
entity: "CA_OrderAttribMaster",
|
|
32325
32338
|
is_metadata: true,
|
|
32326
32339
|
filter: {
|
|
@@ -32334,7 +32347,7 @@ var flexQuery = {
|
|
|
32334
32347
|
},
|
|
32335
32348
|
flexAttrSingleRead: function flexAttrSingleRead(key) {
|
|
32336
32349
|
return {
|
|
32337
|
-
db_name: dbName,
|
|
32350
|
+
db_name: dbName$1,
|
|
32338
32351
|
entity: "CA_OrderAttribMaster",
|
|
32339
32352
|
filter: "CA_OrderAttribMaster._key=='".concat(key, "' && CA_OrderAttribMaster.activestatus==true"),
|
|
32340
32353
|
return_fields: "merge(CA_OrderAttribMaster,{attribtype:document(CA_OrderAttribMaster.attribtype)},{attribnumUOM:(document(CA_OrderAttribMaster.attribnumUOM))})"
|
|
@@ -32342,7 +32355,7 @@ var flexQuery = {
|
|
|
32342
32355
|
},
|
|
32343
32356
|
flexAttrSearch: function flexAttrSearch(search) {
|
|
32344
32357
|
return {
|
|
32345
|
-
db_name: dbName,
|
|
32358
|
+
db_name: dbName$1,
|
|
32346
32359
|
entity: "CA_OrderAttribMaster",
|
|
32347
32360
|
filter: "(like (CA_OrderAttribMaster.attribcode,'%".concat(search, "%',true)) && CA_OrderAttribMaster.activestatus==true"),
|
|
32348
32361
|
return_fields: "merge(CA_OrderAttribMaster,{attribtype:document(CA_OrderAttribMaster.attribtype).display},{attribnumUOM:to_array(document(CA_OrderAttribMaster.attribnumUOM).display)})"
|
|
@@ -32432,7 +32445,7 @@ var flexQuery = {
|
|
|
32432
32445
|
}
|
|
32433
32446
|
|
|
32434
32447
|
return [_objectSpread2(_objectSpread2({
|
|
32435
|
-
db_name: dbName,
|
|
32448
|
+
db_name: dbName$1,
|
|
32436
32449
|
entity: "CA_OrderAttribMaster",
|
|
32437
32450
|
is_metadata: true,
|
|
32438
32451
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -32812,7 +32825,7 @@ var flexMaster = _objectSpread2({}, flexAttributeActions);
|
|
|
32812
32825
|
var flexCriteriaQuery = {
|
|
32813
32826
|
flexCriteriaDropDown: function flexCriteriaDropDown(list, id) {
|
|
32814
32827
|
return {
|
|
32815
|
-
db_name: dbName,
|
|
32828
|
+
db_name: dbName$1,
|
|
32816
32829
|
entity: "CA_OrderAttribMaster",
|
|
32817
32830
|
filter: "CA_OrderAttribMaster.attribcode=='".concat(list, "' && CA_OrderAttribMaster.attribtype=='").concat(id, "' && CA_OrderAttribMaster.status==true && CA_OrderAttribMaster.activestatus==true"),
|
|
32818
32831
|
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})"
|
|
@@ -32820,7 +32833,7 @@ var flexCriteriaQuery = {
|
|
|
32820
32833
|
},
|
|
32821
32834
|
flexCriteriaCodeDropDown: function flexCriteriaCodeDropDown() {
|
|
32822
32835
|
return {
|
|
32823
|
-
db_name: dbName,
|
|
32836
|
+
db_name: dbName$1,
|
|
32824
32837
|
entity: "CA_OrderAttribMaster",
|
|
32825
32838
|
filter: "CA_OrderAttribMaster.status == true && CA_OrderAttribMaster.activestatus == true",
|
|
32826
32839
|
return_fields: "keep(CA_OrderAttribMaster,'_key','_id','attribcode','attriblabel','status','attribtype')",
|
|
@@ -32829,7 +32842,7 @@ var flexCriteriaQuery = {
|
|
|
32829
32842
|
},
|
|
32830
32843
|
flexCriteriaFullRead: function flexCriteriaFullRead(page, perpage, search) {
|
|
32831
32844
|
return {
|
|
32832
|
-
db_name: dbName,
|
|
32845
|
+
db_name: dbName$1,
|
|
32833
32846
|
entity: "CA_FlexAttribApplicability",
|
|
32834
32847
|
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32835
32848
|
limit: {
|
|
@@ -32842,7 +32855,7 @@ var flexCriteriaQuery = {
|
|
|
32842
32855
|
},
|
|
32843
32856
|
flexCriteriaSingleRead: function flexCriteriaSingleRead(key) {
|
|
32844
32857
|
return {
|
|
32845
|
-
db_name: dbName,
|
|
32858
|
+
db_name: dbName$1,
|
|
32846
32859
|
entity: "CA_FlexAttribApplicability",
|
|
32847
32860
|
filter: "CA_FlexAttribApplicability._key == '".concat(key, "' && CA_FlexAttribApplicability.activestatus == true"),
|
|
32848
32861
|
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
@@ -32852,7 +32865,7 @@ var flexCriteriaQuery = {
|
|
|
32852
32865
|
var _list$attributeLableN, _list$attributeCompon;
|
|
32853
32866
|
|
|
32854
32867
|
return [{
|
|
32855
|
-
db_name: dbName,
|
|
32868
|
+
db_name: dbName$1,
|
|
32856
32869
|
entity: "CA_FlexAttribApplicability",
|
|
32857
32870
|
is_metadata: true,
|
|
32858
32871
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -32875,7 +32888,7 @@ var flexCriteriaQuery = {
|
|
|
32875
32888
|
},
|
|
32876
32889
|
flexCriteriaStatus: function flexCriteriaStatus(status, key) {
|
|
32877
32890
|
return [{
|
|
32878
|
-
db_name: dbName,
|
|
32891
|
+
db_name: dbName$1,
|
|
32879
32892
|
entity: "CA_FlexAttribApplicability",
|
|
32880
32893
|
filter: {
|
|
32881
32894
|
_key: key
|
|
@@ -32891,7 +32904,7 @@ var flexCriteriaQuery = {
|
|
|
32891
32904
|
var _list$attributeLableN2, _list$status;
|
|
32892
32905
|
|
|
32893
32906
|
return [{
|
|
32894
|
-
db_name: dbName,
|
|
32907
|
+
db_name: dbName$1,
|
|
32895
32908
|
entity: "CA_FlexAttribApplicability",
|
|
32896
32909
|
filter: {
|
|
32897
32910
|
_key: list === null || list === void 0 ? void 0 : list.key
|
|
@@ -32920,7 +32933,7 @@ var flexCriteriaQuery = {
|
|
|
32920
32933
|
},
|
|
32921
32934
|
flexCriteriaSearch: function flexCriteriaSearch(search) {
|
|
32922
32935
|
return {
|
|
32923
|
-
db_name: dbName,
|
|
32936
|
+
db_name: dbName$1,
|
|
32924
32937
|
entity: "CA_FlexAttribApplicability",
|
|
32925
32938
|
filter: "(LIKE (CA_FlexAttribApplicability.winlabelName,'%".concat(search, "%', true)) && CA_FlexAttribApplicability.activestatus == true"),
|
|
32926
32939
|
return_fields: "merge(CA_FlexAttribApplicability,{AttribComponents:(for att in CA_FlexAttribApplicability.AttribComponents return merge(att,{attribCode:document((CA_FlexAttribApplicability.AttribComponents)[*].attribCode)}))})"
|
|
@@ -33355,7 +33368,7 @@ var query$2 = {
|
|
|
33355
33368
|
// }
|
|
33356
33369
|
|
|
33357
33370
|
return {
|
|
33358
|
-
"db_name": "".concat(dbName),
|
|
33371
|
+
"db_name": "".concat(dbName$1),
|
|
33359
33372
|
"entity": "Diagnosis",
|
|
33360
33373
|
"filter": "Diagnosis.levelnumber == -1 && Diagnosis.activestatus == true",
|
|
33361
33374
|
"return_fields": "Diagnosis",
|
|
@@ -33365,7 +33378,7 @@ var query$2 = {
|
|
|
33365
33378
|
diagnosisListChild: function diagnosisListChild(level, code) {
|
|
33366
33379
|
var childvl = level + 1;
|
|
33367
33380
|
return {
|
|
33368
|
-
"db_name": "".concat(dbName),
|
|
33381
|
+
"db_name": "".concat(dbName$1),
|
|
33369
33382
|
"entity": "Diagnosis",
|
|
33370
33383
|
"filter": "Diagnosis.parenticdcode=='".concat(code, "' && Diagnosis.levelnumber == ").concat(childvl, " && Diagnosis.activestatus==true"),
|
|
33371
33384
|
"return_fields": "Diagnosis",
|
|
@@ -33376,7 +33389,7 @@ var query$2 = {
|
|
|
33376
33389
|
var _data$effTo;
|
|
33377
33390
|
|
|
33378
33391
|
return [{
|
|
33379
|
-
"db_name": "".concat(dbName),
|
|
33392
|
+
"db_name": "".concat(dbName$1),
|
|
33380
33393
|
"entity": "Diagnosis",
|
|
33381
33394
|
"is_metadata": true,
|
|
33382
33395
|
"filter": {
|
|
@@ -33390,7 +33403,7 @@ var query$2 = {
|
|
|
33390
33403
|
},
|
|
33391
33404
|
searchList: function searchList(text) {
|
|
33392
33405
|
return {
|
|
33393
|
-
"db_name": "".concat(dbName),
|
|
33406
|
+
"db_name": "".concat(dbName$1),
|
|
33394
33407
|
"entity": "Diagnosis",
|
|
33395
33408
|
"filter": "(LIKE (Diagnosis.icdcode, '%".concat(text, "%', true) || LIKE (Diagnosis.icdname, '%").concat(text, "%', true)) && Diagnosis.activestatus==true limit 50"),
|
|
33396
33409
|
"return_fields": "Diagnosis",
|
|
@@ -33620,7 +33633,7 @@ var consultActions = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2
|
|
|
33620
33633
|
|
|
33621
33634
|
var query$1 = {
|
|
33622
33635
|
// pending list
|
|
33623
|
-
getList: "{\n \"db_name\": \"".concat(dbName, "\",\n \"queryid\": \"2b8b8013-75da-43c0-b2f8-c6f411e7e630\"\n }"),
|
|
33636
|
+
getList: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"queryid\": \"2b8b8013-75da-43c0-b2f8-c6f411e7e630\"\n }"),
|
|
33624
33637
|
// view pending detials
|
|
33625
33638
|
getPendingPatientList: function getPendingPatientList(data) {
|
|
33626
33639
|
// return`{
|
|
@@ -33632,7 +33645,7 @@ var query$1 = {
|
|
|
33632
33645
|
// },
|
|
33633
33646
|
// "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))})})"
|
|
33634
33647
|
// }`
|
|
33635
|
-
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 }");
|
|
33648
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
33636
33649
|
},
|
|
33637
33650
|
getPractitionerAgainstSpeciality: function getPractitionerAgainstSpeciality(data) {
|
|
33638
33651
|
// return`
|
|
@@ -33644,10 +33657,10 @@ var query$1 = {
|
|
|
33644
33657
|
// },
|
|
33645
33658
|
// "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)}) })) }))}"
|
|
33646
33659
|
// }`
|
|
33647
|
-
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 }");
|
|
33660
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
33648
33661
|
},
|
|
33649
33662
|
getCancellationReason: function getCancellationReason(data) {
|
|
33650
|
-
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 }");
|
|
33663
|
+
return "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"ReasonMaster\",\n \"filter\": \"ReasonMaster.ReasonCode == '").concat(data === null || data === void 0 ? void 0 : data.code, "'\",\n \"return_fields\": \"ReasonMaster\"\n }");
|
|
33651
33664
|
}
|
|
33652
33665
|
};
|
|
33653
33666
|
|
|
@@ -33673,10 +33686,10 @@ var GET_PENDING_RESCHEDULE_LIST = createAsyncThunk("getPendingRescheduleListApiS
|
|
|
33673
33686
|
case 5:
|
|
33674
33687
|
data = _context.sent;
|
|
33675
33688
|
returnedData = data ? data === null || data === void 0 ? void 0 : data.map(function (_) {
|
|
33676
|
-
var
|
|
33689
|
+
var _makeName, _$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;
|
|
33677
33690
|
|
|
33678
33691
|
return {
|
|
33679
|
-
"resource name": (
|
|
33692
|
+
"resource name": (_makeName = makeName(_ === null || _ === void 0 ? void 0 : (_$name = _.name) === null || _$name === void 0 ? void 0 : _$name[0])) !== null && _makeName !== void 0 ? _makeName : '',
|
|
33680
33693
|
"date": (_$Date = _ === null || _ === void 0 ? void 0 : _.Date) !== null && _$Date !== void 0 ? _$Date : '',
|
|
33681
33694
|
"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$ : '',
|
|
33682
33695
|
"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 : '',
|
|
@@ -33727,14 +33740,14 @@ var VIEW_PENDING_PATIENT_LIST = createAsyncThunk("getPendingRescheduleListApiSli
|
|
|
33727
33740
|
case 5:
|
|
33728
33741
|
data = _context2.sent;
|
|
33729
33742
|
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 (_) {
|
|
33730
|
-
var
|
|
33743
|
+
var _makeName2, _$Patient, _$Patient$name, _$Patient$alias, _$Patient2, _$Patient$age, _$Patient3, _ref6, _$Patient4, _$Patient4$telecom, _$Patient4$telecom$, _$appno, _$Patient$slotID$0$bl, _$Patient5, _$Patient5$slotID, _$Patient5$slotID$, _$Patient5$slotID$$bl, _$Patient$gender$, _$Patient6, _$Patient6$gender, _$id2;
|
|
33731
33744
|
|
|
33732
33745
|
return {
|
|
33733
33746
|
"select": false,
|
|
33734
|
-
"name": (
|
|
33735
|
-
"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 : '',
|
|
33747
|
+
"name": (_makeName2 = makeName(_ === 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[0])) !== null && _makeName2 !== void 0 ? _makeName2 : '',
|
|
33748
|
+
"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 : '---',
|
|
33736
33749
|
"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 : '',
|
|
33737
|
-
"mobile no": (
|
|
33750
|
+
"mobile no": (_ref6 = "".concat(_ === 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 && _ref6 !== void 0 ? _ref6 : '',
|
|
33738
33751
|
"appt ref no.": (_$appno = _ === null || _ === void 0 ? void 0 : _.appno) !== null && _$appno !== void 0 ? _$appno : '',
|
|
33739
33752
|
"appt date & time": _ !== null && _ !== void 0 && _.start ? utcTOLocal(_ === null || _ === void 0 ? void 0 : _.start, 'DD MMM,YYYY hh:mm A') : '',
|
|
33740
33753
|
"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 : '',
|
|
@@ -33762,7 +33775,7 @@ var VIEW_PENDING_PATIENT_LIST = createAsyncThunk("getPendingRescheduleListApiSli
|
|
|
33762
33775
|
})));
|
|
33763
33776
|
var GET_PRACTITIONER_AGAINST_SPECIALITY = createAsyncThunk("getPendingRescheduleListApiSlice/getPractitionerAgainstSpeciality", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
33764
33777
|
var payload,
|
|
33765
|
-
|
|
33778
|
+
_ref8,
|
|
33766
33779
|
rejectWithValue,
|
|
33767
33780
|
_data$result2,
|
|
33768
33781
|
_data$result2$,
|
|
@@ -33778,7 +33791,7 @@ var GET_PRACTITIONER_AGAINST_SPECIALITY = createAsyncThunk("getPendingReschedule
|
|
|
33778
33791
|
switch (_context3.prev = _context3.next) {
|
|
33779
33792
|
case 0:
|
|
33780
33793
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
33781
|
-
|
|
33794
|
+
_ref8 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
33782
33795
|
_context3.prev = 2;
|
|
33783
33796
|
_context3.next = 5;
|
|
33784
33797
|
return fetchData({
|
|
@@ -33820,7 +33833,7 @@ var GET_PRACTITIONER_AGAINST_SPECIALITY = createAsyncThunk("getPendingReschedule
|
|
|
33820
33833
|
})));
|
|
33821
33834
|
var CANCELLATION_REASON = createAsyncThunk("getPendingRescheduleListApiSlice/getCancellationReason", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
33822
33835
|
var payload,
|
|
33823
|
-
|
|
33836
|
+
_ref10,
|
|
33824
33837
|
rejectWithValue,
|
|
33825
33838
|
_data$result4,
|
|
33826
33839
|
data,
|
|
@@ -33832,7 +33845,7 @@ var CANCELLATION_REASON = createAsyncThunk("getPendingRescheduleListApiSlice/get
|
|
|
33832
33845
|
switch (_context4.prev = _context4.next) {
|
|
33833
33846
|
case 0:
|
|
33834
33847
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
33835
|
-
|
|
33848
|
+
_ref10 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
33836
33849
|
_context4.prev = 2;
|
|
33837
33850
|
_context4.next = 5;
|
|
33838
33851
|
return fetchData({
|
|
@@ -33910,7 +33923,7 @@ var pendingRescheduleListSlice = getPendingRescheduleListApiSlice.reducer;
|
|
|
33910
33923
|
var queries$3 = {
|
|
33911
33924
|
geoCodeType: function geoCodeType(type) {
|
|
33912
33925
|
return {
|
|
33913
|
-
db_name: dbName,
|
|
33926
|
+
db_name: dbName$1,
|
|
33914
33927
|
entity: "CodingMaster",
|
|
33915
33928
|
sort: "CodingMaster.display",
|
|
33916
33929
|
filter: "CodingMaster.activestatus==true && CodingMaster.Type=='GEOCODE'",
|
|
@@ -33919,7 +33932,7 @@ var queries$3 = {
|
|
|
33919
33932
|
},
|
|
33920
33933
|
geoParentType: function geoParentType(type) {
|
|
33921
33934
|
return {
|
|
33922
|
-
db_name: dbName,
|
|
33935
|
+
db_name: dbName$1,
|
|
33923
33936
|
entity: "CodingMaster",
|
|
33924
33937
|
sort: "CodingMaster.display",
|
|
33925
33938
|
filter: "CodingMaster.activestatus==true && CodingMaster.Type=='GEOCODE'",
|
|
@@ -33929,7 +33942,7 @@ var queries$3 = {
|
|
|
33929
33942
|
//COUNTRY READ
|
|
33930
33943
|
geoCountryRead: function geoCountryRead() {
|
|
33931
33944
|
return {
|
|
33932
|
-
db_name: dbName,
|
|
33945
|
+
db_name: dbName$1,
|
|
33933
33946
|
entity: "SMGeographicMaster",
|
|
33934
33947
|
filter: "SMGeographicMaster.activestatus==true && lower(document(SMGeographicMaster.geogLevelType).display)=='country'",
|
|
33935
33948
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -33941,7 +33954,7 @@ var queries$3 = {
|
|
|
33941
33954
|
var _ref, _ref$toUpperCase;
|
|
33942
33955
|
|
|
33943
33956
|
return {
|
|
33944
|
-
db_name: dbName,
|
|
33957
|
+
db_name: dbName$1,
|
|
33945
33958
|
entity: "SMGeographicMaster",
|
|
33946
33959
|
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), "'"),
|
|
33947
33960
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -33953,7 +33966,7 @@ var queries$3 = {
|
|
|
33953
33966
|
var _ref2, _ref2$toUpperCase;
|
|
33954
33967
|
|
|
33955
33968
|
return {
|
|
33956
|
-
db_name: dbName,
|
|
33969
|
+
db_name: dbName$1,
|
|
33957
33970
|
entity: "SMGeographicMaster",
|
|
33958
33971
|
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), "'"),
|
|
33959
33972
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -33965,7 +33978,7 @@ var queries$3 = {
|
|
|
33965
33978
|
var _ref3, _ref3$toUpperCase;
|
|
33966
33979
|
|
|
33967
33980
|
return {
|
|
33968
|
-
db_name: dbName,
|
|
33981
|
+
db_name: dbName$1,
|
|
33969
33982
|
entity: "SMGeographicMaster",
|
|
33970
33983
|
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), "'"),
|
|
33971
33984
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -33977,7 +33990,7 @@ var queries$3 = {
|
|
|
33977
33990
|
var _ref4, _ref4$toUpperCase;
|
|
33978
33991
|
|
|
33979
33992
|
return {
|
|
33980
|
-
db_name: dbName,
|
|
33993
|
+
db_name: dbName$1,
|
|
33981
33994
|
entity: "SMGeographicMaster",
|
|
33982
33995
|
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), "'"),
|
|
33983
33996
|
sort: "SMGeographicMaster.createddate desc",
|
|
@@ -33987,7 +34000,7 @@ var queries$3 = {
|
|
|
33987
34000
|
//STATUS CHANGE
|
|
33988
34001
|
geoStatusChange: function geoStatusChange(data) {
|
|
33989
34002
|
return [{
|
|
33990
|
-
db_name: dbName,
|
|
34003
|
+
db_name: dbName$1,
|
|
33991
34004
|
entity: "SMGeographicMaster",
|
|
33992
34005
|
filter: {
|
|
33993
34006
|
_key: data._key
|
|
@@ -34002,7 +34015,7 @@ var queries$3 = {
|
|
|
34002
34015
|
//GEOGRAPHIC_MASTER_MASTER
|
|
34003
34016
|
geoMasterMaster: function geoMasterMaster() {
|
|
34004
34017
|
return {
|
|
34005
|
-
db_name: dbName,
|
|
34018
|
+
db_name: dbName$1,
|
|
34006
34019
|
entity: "CodingMaster",
|
|
34007
34020
|
sort: "CodingMaster.display",
|
|
34008
34021
|
filter: "CodingMaster.activestatus==true && CodingMaster.Type=='GEOCODE'",
|
|
@@ -34012,7 +34025,7 @@ var queries$3 = {
|
|
|
34012
34025
|
//GEOGRAPHIC_PARENT_CODE
|
|
34013
34026
|
geoMasterParentCode: function geoMasterParentCode(id) {
|
|
34014
34027
|
return {
|
|
34015
|
-
db_name: dbName,
|
|
34028
|
+
db_name: dbName$1,
|
|
34016
34029
|
entity: "SMGeographicMaster",
|
|
34017
34030
|
sort: "SMGeographicMaster.geogLevelName",
|
|
34018
34031
|
filter: "SMGeographicMaster.geogLevelType=='".concat(id, "' && SMGeographicMaster.activestatus==true"),
|
|
@@ -34022,7 +34035,7 @@ var queries$3 = {
|
|
|
34022
34035
|
//GEOGRAPHIC_SINGLE_READ
|
|
34023
34036
|
editGeoGraphicSingleRead: function editGeoGraphicSingleRead(id) {
|
|
34024
34037
|
return {
|
|
34025
|
-
db_name: dbName,
|
|
34038
|
+
db_name: dbName$1,
|
|
34026
34039
|
entity: "SMGeographicMaster",
|
|
34027
34040
|
filter: "SMGeographicMaster.activestatus==true && SMGeographicMaster._key=='".concat(id, "'"),
|
|
34028
34041
|
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}"
|
|
@@ -34032,7 +34045,7 @@ var queries$3 = {
|
|
|
34032
34045
|
geoCodeExits: function geoCodeExits(_ref5) {
|
|
34033
34046
|
var levelType = _ref5.levelType,
|
|
34034
34047
|
geoLevelCode = _ref5.geoLevelCode;
|
|
34035
|
-
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 }");
|
|
34048
|
+
return "{\n\t\t\t\"db_name\": \"".concat(dbName$1, "\",\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 }");
|
|
34036
34049
|
}
|
|
34037
34050
|
};
|
|
34038
34051
|
|
|
@@ -34050,7 +34063,7 @@ var generateJson = function generateJson(data) {
|
|
|
34050
34063
|
}
|
|
34051
34064
|
|
|
34052
34065
|
var arr = [_objectSpread2(_objectSpread2({
|
|
34053
|
-
"db_name": dbName,
|
|
34066
|
+
"db_name": dbName$1,
|
|
34054
34067
|
"entity": "SMGeographicMaster",
|
|
34055
34068
|
"is_metadata": true
|
|
34056
34069
|
}, filter), {}, {
|
|
@@ -34904,8 +34917,8 @@ var additionalcolumns = function additionalcolumns(list) {
|
|
|
34904
34917
|
};
|
|
34905
34918
|
|
|
34906
34919
|
var queries$2 = {
|
|
34907
|
-
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 }"),
|
|
34908
|
-
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 }"),
|
|
34920
|
+
generalMasterlist_val: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"GMvalues\",\n \"filter\": \"GMvalues.activestatus==true\",\n \"return_fields\": \"merge(GMvalues,{gentype:document(GMvalues.gentype)})\"\n }"),
|
|
34921
|
+
generalMasterlist: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
34909
34922
|
// column_type: `{
|
|
34910
34923
|
// "db_name": "${dbName}",
|
|
34911
34924
|
// "entity": "CodingMaster",
|
|
@@ -34913,8 +34926,8 @@ var queries$2 = {
|
|
|
34913
34926
|
// "filter": "CodingMaster.Type=='QDMDATATYPE' && CodingMaster.activestatus==true",
|
|
34914
34927
|
// "return_fields": "{ID:CodingMaster.id,_id:CodingMaster._id,Key:CodingMaster._key,ColumnType:CodingMaster.display,code:CodingMaster.code}"
|
|
34915
34928
|
// }`,
|
|
34916
|
-
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 }"),
|
|
34917
|
-
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 }"),
|
|
34929
|
+
column_type: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
34930
|
+
visit_type_indicator: "{\n \"db_name\": \"".concat(dbName$1, "\",\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 }"),
|
|
34918
34931
|
upsert_general_master: function upsert_general_master(datas) {
|
|
34919
34932
|
var filter = {};
|
|
34920
34933
|
|
|
@@ -34927,7 +34940,7 @@ var queries$2 = {
|
|
|
34927
34940
|
}
|
|
34928
34941
|
};
|
|
34929
34942
|
return [_objectSpread2(_objectSpread2({
|
|
34930
|
-
"db_name": dbName,
|
|
34943
|
+
"db_name": dbName$1,
|
|
34931
34944
|
"entity": "GMdefinition",
|
|
34932
34945
|
"is_metadata": true
|
|
34933
34946
|
}, filter), {}, {
|
|
@@ -34940,7 +34953,7 @@ var queries$2 = {
|
|
|
34940
34953
|
var _datas$general_type, _datas$general_name, _datas$additional_col2;
|
|
34941
34954
|
|
|
34942
34955
|
return [_objectSpread2(_objectSpread2({
|
|
34943
|
-
"db_name": dbName,
|
|
34956
|
+
"db_name": dbName$1,
|
|
34944
34957
|
"entity": "GMdefinition",
|
|
34945
34958
|
"is_metadata": true
|
|
34946
34959
|
}, filter), {}, {
|
|
@@ -34957,7 +34970,7 @@ var queries$2 = {
|
|
|
34957
34970
|
},
|
|
34958
34971
|
get_general_master_type: function get_general_master_type(type) {
|
|
34959
34972
|
return {
|
|
34960
|
-
"db_name": dbName,
|
|
34973
|
+
"db_name": dbName$1,
|
|
34961
34974
|
"entity": "CodeableConceptMaster",
|
|
34962
34975
|
"sort": "document(CodeableConceptMaster.coding[0]).display",
|
|
34963
34976
|
"filter": "CodeableConceptMaster.Type=='".concat(type, "' && CodeableConceptMaster.activestatus==true"),
|
|
@@ -34989,7 +35002,7 @@ var queries$2 = {
|
|
|
34989
35002
|
// }
|
|
34990
35003
|
// ]
|
|
34991
35004
|
return [{
|
|
34992
|
-
"db_name": dbName,
|
|
35005
|
+
"db_name": dbName$1,
|
|
34993
35006
|
"entity": "CodeableConceptMaster",
|
|
34994
35007
|
"is_metadata": true,
|
|
34995
35008
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -35017,7 +35030,7 @@ var queries$2 = {
|
|
|
35017
35030
|
var _edit_data$_key, _edit_data$code$trim, _edit_data$code, _edit_data$long_descr, _edit_data$short_desc, _edit_data$addition;
|
|
35018
35031
|
|
|
35019
35032
|
return [{
|
|
35020
|
-
"db_name": dbName,
|
|
35033
|
+
"db_name": dbName$1,
|
|
35021
35034
|
"entity": "CodingMaster",
|
|
35022
35035
|
"is_metadata": true,
|
|
35023
35036
|
"filter": {
|
|
@@ -35056,7 +35069,7 @@ var queries$2 = {
|
|
|
35056
35069
|
// }
|
|
35057
35070
|
// ]
|
|
35058
35071
|
return [{
|
|
35059
|
-
"db_name": dbName,
|
|
35072
|
+
"db_name": dbName$1,
|
|
35060
35073
|
"entity": "CodeableConceptMaster",
|
|
35061
35074
|
"is_metadata": true,
|
|
35062
35075
|
"metadataId": "04ecb73d-f048-44ce-8563-c9be015812dd",
|
|
@@ -35074,7 +35087,7 @@ var queries$2 = {
|
|
|
35074
35087
|
},
|
|
35075
35088
|
codingMasterQuery: function codingMasterQuery(name) {
|
|
35076
35089
|
return {
|
|
35077
|
-
"db_name": dbName,
|
|
35090
|
+
"db_name": dbName$1,
|
|
35078
35091
|
"entity": "CodingMaster",
|
|
35079
35092
|
"filter": "CodingMaster.Type== '".concat(name, "' && CodingMaster.activestatus==true && CodingMaster.status==true"),
|
|
35080
35093
|
"return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')"
|
|
@@ -35738,7 +35751,7 @@ var generalMasterSlice$1 = generalMasterSlice.reducer;
|
|
|
35738
35751
|
var queries$1 = {
|
|
35739
35752
|
status_update_practitioner: function status_update_practitioner(data) {
|
|
35740
35753
|
return [{
|
|
35741
|
-
db_name: dbName,
|
|
35754
|
+
db_name: dbName$1,
|
|
35742
35755
|
entity: "CodeableConceptMaster",
|
|
35743
35756
|
filter: {
|
|
35744
35757
|
_key: data._key
|
|
@@ -35752,7 +35765,7 @@ var queries$1 = {
|
|
|
35752
35765
|
},
|
|
35753
35766
|
status_update_symptom_and_specialty: function status_update_symptom_and_specialty(data) {
|
|
35754
35767
|
return [{
|
|
35755
|
-
db_name: dbName,
|
|
35768
|
+
db_name: dbName$1,
|
|
35756
35769
|
entity: "SymptomsMapping",
|
|
35757
35770
|
filter: {
|
|
35758
35771
|
_key: data._key
|
|
@@ -35778,7 +35791,7 @@ var queries$1 = {
|
|
|
35778
35791
|
}
|
|
35779
35792
|
|
|
35780
35793
|
return [_objectSpread2(_objectSpread2({
|
|
35781
|
-
db_name: dbName,
|
|
35794
|
+
db_name: dbName$1,
|
|
35782
35795
|
entity: "SymptomsMapping"
|
|
35783
35796
|
}, filter), {}, {
|
|
35784
35797
|
is_metadata: true,
|
|
@@ -35794,7 +35807,7 @@ var queries$1 = {
|
|
|
35794
35807
|
},
|
|
35795
35808
|
symptom_and_specialty_read: function symptom_and_specialty_read() {
|
|
35796
35809
|
return {
|
|
35797
|
-
db_name: dbName,
|
|
35810
|
+
db_name: dbName$1,
|
|
35798
35811
|
entity: "SymptomsMapping",
|
|
35799
35812
|
filter: "SymptomsMapping.activestatus==true",
|
|
35800
35813
|
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})",
|
|
@@ -35803,7 +35816,7 @@ var queries$1 = {
|
|
|
35803
35816
|
},
|
|
35804
35817
|
symptom_and_specialty_single_read: function symptom_and_specialty_single_read(_key) {
|
|
35805
35818
|
return {
|
|
35806
|
-
db_name: dbName,
|
|
35819
|
+
db_name: dbName$1,
|
|
35807
35820
|
entity: "SymptomsMapping",
|
|
35808
35821
|
filter: "SymptomsMapping._key=='".concat(_key, "' && SymptomsMapping.activestatus==true"),
|
|
35809
35822
|
return_fields: "merge(SymptomsMapping,{specialty:(FOR cod IN CodeableConceptMaster filter cod._id in SymptomsMapping.specialty RETURN merge(cod,{coding:document(cod.coding)}))})"
|
|
@@ -35811,7 +35824,7 @@ var queries$1 = {
|
|
|
35811
35824
|
},
|
|
35812
35825
|
specialtyMaster: function specialtyMaster() {
|
|
35813
35826
|
return {
|
|
35814
|
-
db_name: dbName,
|
|
35827
|
+
db_name: dbName$1,
|
|
35815
35828
|
entity: "CodeableConceptMaster",
|
|
35816
35829
|
filter: "CodeableConceptMaster.Type=='SPECIALTY' && CodeableConceptMaster.activestatus==true",
|
|
35817
35830
|
return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
|
|
@@ -35837,7 +35850,7 @@ var queries$1 = {
|
|
|
35837
35850
|
}
|
|
35838
35851
|
|
|
35839
35852
|
return [_objectSpread2(_objectSpread2({
|
|
35840
|
-
db_name: dbName,
|
|
35853
|
+
db_name: dbName$1,
|
|
35841
35854
|
entity: "CodeableConceptMaster",
|
|
35842
35855
|
is_metadata: true,
|
|
35843
35856
|
metadataId: "04ecb73d-f048-44ce-8563-c9be015812dd"
|
|
@@ -36182,7 +36195,7 @@ var symptomAndSpecialtySlice$1 = symptomAndSpecialtySlice.reducer;
|
|
|
36182
36195
|
var queries = {
|
|
36183
36196
|
encounterType: function encounterType(type) {
|
|
36184
36197
|
return {
|
|
36185
|
-
"db_name": dbName,
|
|
36198
|
+
"db_name": dbName$1,
|
|
36186
36199
|
"entity": "AMPatientClass",
|
|
36187
36200
|
"filter": "AMPatientClass.activestatus==true",
|
|
36188
36201
|
"return_fields": "merge(AMPatientClass,{encType:document(AMPatientClass.encType).code},{encTypeDesc:document(AMPatientClass.encTypeDesc).display},{encClsType:document(AMPatientClass.encClsType).code},{encClsDesc:document(AMPatientClass.encClsDesc).display})",
|
|
@@ -36192,7 +36205,7 @@ var queries = {
|
|
|
36192
36205
|
//STATUS CHANGE
|
|
36193
36206
|
encouterStatusChange: function encouterStatusChange(data) {
|
|
36194
36207
|
return [{
|
|
36195
|
-
"db_name": dbName,
|
|
36208
|
+
"db_name": dbName$1,
|
|
36196
36209
|
"entity": "AMPatientClass",
|
|
36197
36210
|
"filter": {
|
|
36198
36211
|
_key: data._key
|
|
@@ -36338,8 +36351,7 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36338
36351
|
var payload,
|
|
36339
36352
|
_ref2,
|
|
36340
36353
|
rejectWithValue,
|
|
36341
|
-
|
|
36342
|
-
_data$2,
|
|
36354
|
+
_resp$result,
|
|
36343
36355
|
_payload$id,
|
|
36344
36356
|
id,
|
|
36345
36357
|
_payload$startdate,
|
|
@@ -36350,6 +36362,7 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36350
36362
|
type,
|
|
36351
36363
|
body,
|
|
36352
36364
|
isClinic,
|
|
36365
|
+
resp,
|
|
36353
36366
|
data,
|
|
36354
36367
|
slots,
|
|
36355
36368
|
healthCareId,
|
|
@@ -36364,14 +36377,11 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36364
36377
|
_ref2 = _args.length > 1 ? _args[1] : undefined, rejectWithValue = _ref2.rejectWithValue;
|
|
36365
36378
|
_context.prev = 2;
|
|
36366
36379
|
_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;
|
|
36367
|
-
body = {
|
|
36368
|
-
|
|
36369
|
-
|
|
36370
|
-
|
|
36371
|
-
|
|
36372
|
-
}, type, id),
|
|
36373
|
-
queryid: query_ids["slotApiSlice/readSlot"][type]
|
|
36374
|
-
};
|
|
36380
|
+
body = query_ids["slotApiSlice/readSlot"]["query"]({
|
|
36381
|
+
start: startdate,
|
|
36382
|
+
end: enddate,
|
|
36383
|
+
id: id
|
|
36384
|
+
});
|
|
36375
36385
|
isClinic = false;
|
|
36376
36386
|
|
|
36377
36387
|
if (type === 'clinicid') {
|
|
@@ -36381,12 +36391,13 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36381
36391
|
_context.next = 9;
|
|
36382
36392
|
return fetchData({
|
|
36383
36393
|
body: JSON.stringify(body)
|
|
36384
|
-
},
|
|
36394
|
+
}, __readDocumentUrl__);
|
|
36385
36395
|
|
|
36386
36396
|
case 9:
|
|
36387
|
-
|
|
36388
|
-
|
|
36389
|
-
|
|
36397
|
+
resp = _context.sent;
|
|
36398
|
+
data = (resp === null || resp === void 0 ? void 0 : (_resp$result = resp.result) === null || _resp$result === void 0 ? void 0 : _resp$result[0]) || {};
|
|
36399
|
+
slots = (data === null || data === void 0 ? void 0 : data.slots) || [];
|
|
36400
|
+
healthCareId = (data === null || data === void 0 ? void 0 : data.orgId) || [];
|
|
36390
36401
|
returnData = {
|
|
36391
36402
|
morning: [],
|
|
36392
36403
|
afternoone: [],
|
|
@@ -36395,34 +36406,30 @@ var READ_SLOT = createAsyncThunk("slotAvailabilityApiSlice/readSlot", /*#__PURE_
|
|
|
36395
36406
|
allSession: [],
|
|
36396
36407
|
slots: slots,
|
|
36397
36408
|
isClinic: isClinic,
|
|
36398
|
-
healthCareId: healthCareId
|
|
36399
|
-
|
|
36400
|
-
|
|
36401
|
-
|
|
36402
|
-
|
|
36403
|
-
|
|
36404
|
-
|
|
36405
|
-
// returnData.allSession,
|
|
36406
|
-
// isClinic,
|
|
36407
|
-
// );
|
|
36408
|
-
|
|
36409
|
+
healthCareId: healthCareId,
|
|
36410
|
+
resourceInfo: {
|
|
36411
|
+
resourcecode: (data === null || data === void 0 ? void 0 : data.resourceCode) || "",
|
|
36412
|
+
resourcerole: (data === null || data === void 0 ? void 0 : data.resourceRole) || "",
|
|
36413
|
+
resourcetype: (data === null || data === void 0 ? void 0 : data.resourceType) || ""
|
|
36414
|
+
}
|
|
36415
|
+
};
|
|
36409
36416
|
return _context.abrupt("return", _objectSpread2(_objectSpread2({}, defaultState.Info), {}, {
|
|
36410
36417
|
data: returnData
|
|
36411
36418
|
}));
|
|
36412
36419
|
|
|
36413
|
-
case
|
|
36414
|
-
_context.prev =
|
|
36420
|
+
case 17:
|
|
36421
|
+
_context.prev = 17;
|
|
36415
36422
|
_context.t0 = _context["catch"](2);
|
|
36416
36423
|
return _context.abrupt("return", rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
36417
36424
|
message: _context.t0.message
|
|
36418
36425
|
})));
|
|
36419
36426
|
|
|
36420
|
-
case
|
|
36427
|
+
case 20:
|
|
36421
36428
|
case "end":
|
|
36422
36429
|
return _context.stop();
|
|
36423
36430
|
}
|
|
36424
36431
|
}
|
|
36425
|
-
}, _callee, null, [[2,
|
|
36432
|
+
}, _callee, null, [[2, 17]]);
|
|
36426
36433
|
})));
|
|
36427
36434
|
var SLOT_AVAILABILITY = createAsyncThunk("slotAvailabilityApiSlice/slotAvailability", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
36428
36435
|
var payload,
|
|
@@ -36443,7 +36450,7 @@ var SLOT_AVAILABILITY = createAsyncThunk("slotAvailabilityApiSlice/slotAvailabil
|
|
|
36443
36450
|
_context2.prev = 2;
|
|
36444
36451
|
_payload$slotId = payload.slotId, slotId = _payload$slotId === void 0 ? "" : _payload$slotId;
|
|
36445
36452
|
body = {
|
|
36446
|
-
"db_name": dbName,
|
|
36453
|
+
"db_name": dbName$1,
|
|
36447
36454
|
"queryid": query_ids["slotAvailabilityApiSlice/slotAvailability"],
|
|
36448
36455
|
"filter": {
|
|
36449
36456
|
slotid: slotId
|
|
@@ -36503,7 +36510,7 @@ var slotAvailabilityApiSlice$1 = slotAvailabilityApiSlice.reducer;
|
|
|
36503
36510
|
var query = {
|
|
36504
36511
|
modifyStatusAppointment: function modifyStatusAppointment(data) {
|
|
36505
36512
|
return [{
|
|
36506
|
-
"db_name": dbName,
|
|
36513
|
+
"db_name": dbName$1,
|
|
36507
36514
|
"entity": "Appointment",
|
|
36508
36515
|
"filter": {
|
|
36509
36516
|
"id": data === null || data === void 0 ? void 0 : data.id
|
|
@@ -36534,7 +36541,7 @@ var APPOINTMENT_READ = createAsyncThunk("appointmentApiSlice/readAppointment", /
|
|
|
36534
36541
|
_context.prev = 2;
|
|
36535
36542
|
_payload$appointmentI = payload.appointmentId, appointmentId = _payload$appointmentI === void 0 ? "" : _payload$appointmentI;
|
|
36536
36543
|
body = {
|
|
36537
|
-
db_name: dbName,
|
|
36544
|
+
db_name: dbName$1,
|
|
36538
36545
|
queryid: query_ids["appointmentApiSlice/readAppointment"],
|
|
36539
36546
|
filter: {
|
|
36540
36547
|
appointment_id: appointmentId
|
|
@@ -36582,7 +36589,7 @@ var APPOINTMENT_DELETE = createAsyncThunk("appointmentApiSlice/deleteAppointment
|
|
|
36582
36589
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
36583
36590
|
_context2.prev = 2;
|
|
36584
36591
|
body = [{
|
|
36585
|
-
db_name: dbName,
|
|
36592
|
+
db_name: dbName$1,
|
|
36586
36593
|
entity: "Appointment",
|
|
36587
36594
|
is_metadata: true,
|
|
36588
36595
|
metadataId: query_ids["appointmentApiSlice/deleteAppointment"],
|
|
@@ -36642,7 +36649,7 @@ var APPOINTMENT_UPDATE = createAsyncThunk("appointmentApiSlice/updateAppointment
|
|
|
36642
36649
|
_context3.prev = 2;
|
|
36643
36650
|
// start end slotId
|
|
36644
36651
|
body = [{
|
|
36645
|
-
db_name: dbName,
|
|
36652
|
+
db_name: dbName$1,
|
|
36646
36653
|
entity: "Appointment",
|
|
36647
36654
|
is_metadata: true,
|
|
36648
36655
|
metadataId: query_ids["appointmentApiSlice/updateAppointment"],
|
|
@@ -36745,7 +36752,7 @@ var REASON_FOR_APPT_CANCEL_MODIFY = createAsyncThunk("appointmentReducer/getReas
|
|
|
36745
36752
|
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
36746
36753
|
_context5.prev = 2;
|
|
36747
36754
|
body = {
|
|
36748
|
-
db_name: dbName,
|
|
36755
|
+
db_name: dbName$1,
|
|
36749
36756
|
entity: "CodingMaster",
|
|
36750
36757
|
filter: "CodingMaster.Type=='".concat(payload.type, "' && CodingMaster.activestatus==true"),
|
|
36751
36758
|
return_fields: "KEEP(CodingMaster,'_id','id','_key','code','display','Type')"
|