-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BS-207 | Placement of previous alerts near Drugs (#683)
* BS-207 | Patrick | add CDSS alert icons and tooltips for previous drug alerts * BS-207 | Patrick | Fix tooltip placement * BS-207 | Patrick | add cdss alert details and link * BS-207 | Patrick | make CDSS alert icon a button * BS-207 | Patrick | fix alert icon button size * BS-207 | Patrick | Refactor previous alert filtering logic * BS-207 | Patrick | Refactor new drug order alert filtering logic * BS-207 | Patrick | remove font size from global icon class * BS-207 | Patrick | Allow multiple cdss alerts in one tooltip * BS-207 | Patrick | move tooltip trigger to button * BS-207 | Patrick | Fix tooltip padding * BS-207 | Patrick | Add directive for CDSS alerts * BS-207 | Patrick | Add watchers for the alerts and treatment changes * BS-207 | Patrick | Add translations for "Dismissed" * BS-207 | Patrick | Add unit tests * BS-207 | Patrick | remove translations for other languages
- Loading branch information
1 parent
ca8cd8e
commit 42a1f9a
Showing
16 changed files
with
660 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"use strict"; | ||
|
||
angular.module('bahmni.clinical') | ||
.directive('cdssPopover', [function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: './consultation/views/cdssPopover.html', | ||
scope: { | ||
alerts: '=' | ||
} | ||
}; | ||
}] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div ng-repeat="alert in alerts" class="tooltip-list"> | ||
<div | ||
class="cdss-tooltip__status" | ||
ng-class="{'status-critical': alert.indicator == 'critical','status-warning' : alert.indicator == 'warning', 'status-info': alert.indicator == 'info'}" | ||
> | ||
{{ "DISMISSED_KEY" | translate}} {{alert.indicator}} | ||
</div> | ||
<p>{{alert.summary}}</p> | ||
<p> | ||
<span> {{alert.detail}} </span> | ||
<a href="{{alert.source.url}}" target="_blank" ng-show="alert.source.url"> | ||
<i class="fa fa-question-circle drug-link"></i> | ||
</a> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.