@openmrs/ngx-formentry 3.0.1-pre.83 → 3.0.1-pre.85

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.
@@ -12734,16 +12734,18 @@
12734
12734
  var HistoricalHelperService = /** @class */ (function () {
12735
12735
  function HistoricalHelperService() {
12736
12736
  }
12737
- HistoricalHelperService.prototype.evaluate = function (expr, dataSources, additionalScopevalues) {
12737
+ HistoricalHelperService.prototype.evaluate = function (expr, dataSources, additionalScopeValues) {
12738
12738
  var HD = new HistoricalEncounterDataService();
12739
12739
  HD.registerEncounters('prevEnc', dataSources['rawPrevEnc']);
12740
- var deps = {
12741
- HD: HD
12742
- };
12743
- if (additionalScopevalues) {
12744
- for (var o in additionalScopevalues) {
12745
- if (additionalScopevalues[o]) {
12746
- deps[o] = additionalScopevalues[o];
12740
+ if (dataSources.hasOwnProperty('rawPrevObs')) {
12741
+ HD.registerEncounters('prevObs', dataSources['rawPrevObs']);
12742
+ }
12743
+ var deps = { HD: HD };
12744
+ if (additionalScopeValues) {
12745
+ for (var o in additionalScopeValues) {
12746
+ var value = additionalScopeValues[o];
12747
+ if (typeof value !== 'undefined' && value !== null) {
12748
+ deps[o] = value;
12747
12749
  }
12748
12750
  }
12749
12751
  }