Summary Table
| Categories |
Total Count |
| PII |
0 |
| URL |
0 |
| DNS |
0 |
| EKL |
0 |
| IP |
0 |
| PORT |
0 |
| VsID |
0 |
| CF |
0 |
| AI |
0 |
| VPD |
0 |
| PL |
0 |
| Other |
0 |
File Content
define(['angular', 'app'], function (angular, app) {
'use strict';
app.controller('ResponseSummaryController', function ($scope, $rootScope, formatter, medicationTypes, imageResponseService, mediaRequestNavigationService) {
$scope.evaluation = imageResponseService.getEvaluation();
$scope.getMedsByType = function (medType) {
var meds = [];
$scope.evaluation.medications.forEach(function (med) {
if (med.type === medType) {
meds.push(med);
}
});
return meds;
};
$scope.toTitleCase = formatter.toTitleCase;
$scope.hasComments = $scope.evaluation.additionalComments !== 'N/A' ? 'Yes' : 'No';
$scope.comments = $scope.hasComments === 'Yes' ? ' - ' + $scope.evaluation.additionalComments : '';
$scope.hasMeds = !!$scope.evaluation.medicationTypes.length;
$scope.medTypes = _.filter($scope.evaluation.medicationTypes, function (medType) {
return medType !== 'OTHER';
});
$scope.hasOtherMeds = $scope.evaluation.medicationTypes.indexOf('OTHER') !== -1;
$scope.previous = function () {
mediaRequestNavigationService.previousPage();
};
$scope.accept = function () {
$scope.evaluation.isResponsesAccepted = true;
mediaRequestNavigationService.nextPage();
};
$scope.swipeLeft = function(){
$rootScope.$broadcast('swipeLeft');
};
});
});