@openmrs/ngx-formentry 3.0.1-pre.87 → 3.0.1-pre.89
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/bundles/openmrs-ngx-formentry.umd.js +10 -8
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -1
- package/esm2015/form-entry/helpers/historical-expression-helper-service.js +11 -9
- package/fesm2015/openmrs-ngx-formentry.js +10 -8
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -1
- package/form-entry/helpers/historical-expression-helper-service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12734,16 +12734,18 @@
|
|
|
12734
12734
|
var HistoricalHelperService = /** @class */ (function () {
|
|
12735
12735
|
function HistoricalHelperService() {
|
|
12736
12736
|
}
|
|
12737
|
-
HistoricalHelperService.prototype.evaluate = function (expr, dataSources,
|
|
12737
|
+
HistoricalHelperService.prototype.evaluate = function (expr, dataSources, additionalScopeValues) {
|
|
12738
12738
|
var HD = new HistoricalEncounterDataService();
|
|
12739
12739
|
HD.registerEncounters('prevEnc', dataSources['rawPrevEnc']);
|
|
12740
|
-
|
|
12741
|
-
HD
|
|
12742
|
-
}
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
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
|
}
|