primary_care_admin_binder 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs.js +13 -2
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -20259,7 +20259,7 @@ var queries$d = {
20259
20259
  };
20260
20260
 
20261
20261
  var generateJson$9 = function generateJson(data, _key) {
20262
- var _data$performingData, _data$orderingFacilit, _data$orderingFacilit2, _data$locationType$va, _data$locationType, _data$sourceLocation$, _data$sourceLocation, _data$ServiceApplicab, _data$ServiceApplicab2, _data$status;
20262
+ var _data$performingData, _data$orderingFacilit, _data$orderingFacilit2, _data$locationType$va, _data$locationType, _data$sourceLocation$, _data$sourceLocation, _data$ServiceApplicab, _data$ServiceApplicab2, _ruleSet, _data$status;
20263
20263
 
20264
20264
  var filter = {};
20265
20265
 
@@ -20280,6 +20280,17 @@ var generateJson$9 = function generateJson(data, _key) {
20280
20280
  performing_location_code: v === null || v === void 0 ? void 0 : (_v$performing_locatio = v.performing_location) === null || _v$performing_locatio === void 0 ? void 0 : _v$performing_locatio.value
20281
20281
  };
20282
20282
  });
20283
+ var ruleSet = [];
20284
+
20285
+ if (data !== null && data !== void 0 && data.ruleSet && Array.isArray(data === null || data === void 0 ? void 0 : data.ruleSet)) {
20286
+ ruleSet = data === null || data === void 0 ? void 0 : data.ruleSet.map(function (val) {
20287
+ return {
20288
+ group: val.group,
20289
+ rule: val.rule
20290
+ };
20291
+ });
20292
+ }
20293
+
20283
20294
  return [_objectSpread2(_objectSpread2({
20284
20295
  "db_name": dbName
20285
20296
  }, filter), {}, {
@@ -20292,7 +20303,7 @@ var generateJson$9 = function generateJson(data, _key) {
20292
20303
  "ordering_source_type": (_data$locationType$va = data === null || data === void 0 ? void 0 : (_data$locationType = data.locationType) === null || _data$locationType === void 0 ? void 0 : _data$locationType.value) !== null && _data$locationType$va !== void 0 ? _data$locationType$va : '',
20293
20304
  "ordering_source_code": (_data$sourceLocation$ = data === null || data === void 0 ? void 0 : (_data$sourceLocation = data.sourceLocation) === null || _data$sourceLocation === void 0 ? void 0 : _data$sourceLocation.value) !== null && _data$sourceLocation$ !== void 0 ? _data$sourceLocation$ : '',
20294
20305
  "service_applicability": (_data$ServiceApplicab = data === null || data === void 0 ? void 0 : (_data$ServiceApplicab2 = data.ServiceApplicabiliy) === null || _data$ServiceApplicab2 === void 0 ? void 0 : _data$ServiceApplicab2._id) !== null && _data$ServiceApplicab !== void 0 ? _data$ServiceApplicab : '',
20295
- "order_criteria": [],
20306
+ "order_criteria": (_ruleSet = ruleSet) !== null && _ruleSet !== void 0 ? _ruleSet : [],
20296
20307
  "status": (_data$status = data.status) !== null && _data$status !== void 0 ? _data$status : false,
20297
20308
  "performing_details": performing_details_data.length > 0 ? _toConsumableArray(performing_details_data || []) : []
20298
20309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",