Skip to content

Commit

Permalink
BAH-1240 | reverting to old style function def for array filter, and …
Browse files Browse the repository at this point in the history
…find (#375)
  • Loading branch information
angshu authored Sep 14, 2021
1 parent b94109b commit 5b4076b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ angular.module('bahmni.common.displaycontrol.pacsOrders')
radiologyOrders.forEach(function (ro) {
ro.pacsImageUrl = ($scope.config.pacsImageUrl || "").replace('{{patientID}}', $scope.patient.identifier).replace('{{orderNumber}}', ro.orderNumber);
if (radiologyStudies) {
var matchingStudy = radiologyStudies.find((rs) => {
var matchingStudy = radiologyStudies.find(function (rs) {
if (!rs.identifier) {
return false;
}
var matches = rs.identifier.filter((rsi) => {
var matches = rs.identifier.filter(function (rsi) {
return pacsService.getAccessionNumber(rsi) === ro.orderNumber;
});
return (matches && matches.length > 0);
Expand Down

0 comments on commit 5b4076b

Please sign in to comment.