primary_care_admin_binder 0.1.185 → 0.1.187
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 +79 -22
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2372,17 +2372,23 @@ var setBinderRuntimeEnv = function setBinderRuntimeEnv() {
|
|
|
2372
2372
|
*/
|
|
2373
2373
|
var getBinderEnv = function getBinderEnv(key) {
|
|
2374
2374
|
var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
2375
|
-
if (typeof window !== "undefined" && window.binderRuntimeEnv) {
|
|
2376
|
-
return window.binderRuntimeEnv[key]
|
|
2375
|
+
if (typeof window !== "undefined" && window.binderRuntimeEnv && window.binderRuntimeEnv[key]) {
|
|
2376
|
+
return window.binderRuntimeEnv[key];
|
|
2377
2377
|
}
|
|
2378
|
-
|
|
2378
|
+
if (binderRuntimeEnv && binderRuntimeEnv[key]) {
|
|
2379
|
+
return binderRuntimeEnv[key];
|
|
2380
|
+
}
|
|
2381
|
+
if (typeof process !== "undefined" && process.env && process.env[key]) {
|
|
2382
|
+
return process.env[key];
|
|
2383
|
+
}
|
|
2384
|
+
return fallback;
|
|
2379
2385
|
};
|
|
2380
|
-
var _dbName =
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
+
var _dbName = "";
|
|
2387
|
+
var _dbNameNg = "";
|
|
2388
|
+
var _ruleDBName = "";
|
|
2389
|
+
var _metaDatadbName = "";
|
|
2390
|
+
var _metaDataId = "";
|
|
2391
|
+
var _tenantId = "";
|
|
2386
2392
|
|
|
2387
2393
|
/**
|
|
2388
2394
|
* Builds all Binder URLs dynamically from runtime env
|
|
@@ -2563,6 +2569,12 @@ function refreshBinderUrls() {
|
|
|
2563
2569
|
dbNameNg = urls.dbNameNg;
|
|
2564
2570
|
ruleDBName = urls.ruleDBName;
|
|
2565
2571
|
dbType = urls.dbtype;
|
|
2572
|
+
_dbName = urls.dbName;
|
|
2573
|
+
_metaDatadbName = urls.metaDatadbName;
|
|
2574
|
+
_metaDataId = urls.metaDataId;
|
|
2575
|
+
_tenantId = urls.tenantId;
|
|
2576
|
+
_dbNameNg = urls.dbNameNg;
|
|
2577
|
+
_ruleDBName = urls.ruleDBName;
|
|
2566
2578
|
if (typeof window !== "undefined") {
|
|
2567
2579
|
window.refreshBinderUrls = refreshBinderUrls;
|
|
2568
2580
|
}
|
|
@@ -2574,6 +2586,9 @@ if (typeof window !== "undefined") {
|
|
|
2574
2586
|
window.refreshBinderUrls = refreshBinderUrls;
|
|
2575
2587
|
}
|
|
2576
2588
|
|
|
2589
|
+
// Initial call to populate exports
|
|
2590
|
+
refreshBinderUrls();
|
|
2591
|
+
|
|
2577
2592
|
var moment = createCommonjsModule(function (module, exports) {
|
|
2578
2593
|
(function (global, factory) {
|
|
2579
2594
|
module.exports = factory() ;
|
|
@@ -8975,7 +8990,7 @@ var GMTYPE = {
|
|
|
8975
8990
|
|
|
8976
8991
|
var codingMasterFilter = function codingMasterFilter(type) {
|
|
8977
8992
|
return {
|
|
8978
|
-
appcode:
|
|
8993
|
+
appcode: dbName,
|
|
8979
8994
|
requestid: "95931016-caf1-413c-8bf5-96f05c5709fb",
|
|
8980
8995
|
filter: {
|
|
8981
8996
|
type: type,
|
|
@@ -8984,16 +8999,57 @@ var codingMasterFilter = function codingMasterFilter(type) {
|
|
|
8984
8999
|
}
|
|
8985
9000
|
};
|
|
8986
9001
|
};
|
|
8987
|
-
var
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
9002
|
+
var getCodingMasterQuery = function getCodingMasterQuery() {
|
|
9003
|
+
return JSON.stringify(codingMasterFilter(codingMasterTypes));
|
|
9004
|
+
};
|
|
9005
|
+
var getMasterQuery = function getMasterQuery() {
|
|
9006
|
+
return {
|
|
9007
|
+
entity_name: JSON.stringify({
|
|
9008
|
+
appcode: dbName,
|
|
9009
|
+
requestid: "9f065c19-10c9-41e1-b925-53458964974f",
|
|
9010
|
+
filter: {
|
|
9011
|
+
activestatus: true,
|
|
9012
|
+
id: "",
|
|
9013
|
+
sortByName: false,
|
|
9014
|
+
active: ""
|
|
9015
|
+
}
|
|
9016
|
+
}),
|
|
9017
|
+
location: JSON.stringify({
|
|
9018
|
+
appcode: dbName,
|
|
9019
|
+
requestid: "c27d71be-6c29-4024-aab3-1dd0a0a88c32",
|
|
9020
|
+
filter: {
|
|
9021
|
+
activestatus: true,
|
|
9022
|
+
status: "active",
|
|
9023
|
+
parentLocationId: "",
|
|
9024
|
+
locationtype: null,
|
|
9025
|
+
organizationId: ""
|
|
9026
|
+
}
|
|
9027
|
+
}),
|
|
9028
|
+
nationality: JSON.stringify({
|
|
9029
|
+
appcode: dbName,
|
|
9030
|
+
requestid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
|
|
9031
|
+
filter: {
|
|
9032
|
+
display: "country",
|
|
9033
|
+
activestatus: true,
|
|
9034
|
+
active: true,
|
|
9035
|
+
sort: "geogLevelName"
|
|
9036
|
+
}
|
|
9037
|
+
}),
|
|
9038
|
+
country_code: JSON.stringify({
|
|
9039
|
+
appcode: dbName,
|
|
9040
|
+
requestid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
|
|
9041
|
+
filter: {
|
|
9042
|
+
display: "country",
|
|
9043
|
+
activestatus: true,
|
|
9044
|
+
active: true,
|
|
9045
|
+
sort: "GeoLocationISDCode"
|
|
9046
|
+
}
|
|
9047
|
+
})
|
|
9048
|
+
};
|
|
8993
9049
|
};
|
|
8994
9050
|
var geoQuery = function geoQuery(display, geogLevelCode) {
|
|
8995
9051
|
return {
|
|
8996
|
-
appcode:
|
|
9052
|
+
appcode: dbName,
|
|
8997
9053
|
requestid: query_ids.geoHierarchicalRead,
|
|
8998
9054
|
filter: _objectSpread2({
|
|
8999
9055
|
activestatus: true,
|
|
@@ -9006,7 +9062,7 @@ var geoQuery = function geoQuery(display, geogLevelCode) {
|
|
|
9006
9062
|
var masterqueries = {
|
|
9007
9063
|
country: function country() {
|
|
9008
9064
|
return {
|
|
9009
|
-
appcode:
|
|
9065
|
+
appcode: dbName,
|
|
9010
9066
|
requestid: "2daa7e4a-bff4-4d1c-a5f9-d0fa6c82bd4a",
|
|
9011
9067
|
filter: {
|
|
9012
9068
|
code: "GE002",
|
|
@@ -9351,18 +9407,19 @@ var _extraReducers$B;
|
|
|
9351
9407
|
var loopMasters$9 = function loopMasters() {
|
|
9352
9408
|
return new es6Promise.Promise(/*#__PURE__*/function () {
|
|
9353
9409
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(resolve, reject) {
|
|
9354
|
-
var calls;
|
|
9410
|
+
var currentMasterQuery, calls;
|
|
9355
9411
|
return _regenerator().w(function (_context2) {
|
|
9356
9412
|
while (1) switch (_context2.n) {
|
|
9357
9413
|
case 0:
|
|
9358
9414
|
try {
|
|
9359
|
-
|
|
9415
|
+
currentMasterQuery = getMasterQuery();
|
|
9416
|
+
calls = Object.keys(currentMasterQuery).map(/*#__PURE__*/function () {
|
|
9360
9417
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(val) {
|
|
9361
9418
|
return _regenerator().w(function (_context) {
|
|
9362
9419
|
while (1) switch (_context.n) {
|
|
9363
9420
|
case 0:
|
|
9364
9421
|
_context.n = 1;
|
|
9365
|
-
return fetchMaster$9(val,
|
|
9422
|
+
return fetchMaster$9(val, currentMasterQuery[val]);
|
|
9366
9423
|
case 1:
|
|
9367
9424
|
return _context.a(2, _context.v);
|
|
9368
9425
|
}
|
|
@@ -9372,7 +9429,7 @@ var loopMasters$9 = function loopMasters() {
|
|
|
9372
9429
|
return _ref2.apply(this, arguments);
|
|
9373
9430
|
};
|
|
9374
9431
|
}()); // Add the batch query for coding masters
|
|
9375
|
-
calls.push(fetchMaster$9("coding_masters",
|
|
9432
|
+
calls.push(fetchMaster$9("coding_masters", getCodingMasterQuery()));
|
|
9376
9433
|
es6Promise.Promise.all(calls).then(function (data) {
|
|
9377
9434
|
var json = {};
|
|
9378
9435
|
|