-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RA-1851:Add Encounters tool-tip when viewing visits
- Loading branch information
1 parent
d960bb6
commit da8a59b
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
14 changes: 11 additions & 3 deletions
14
omod/src/main/web/dashboardwidgets/visitbyencountertype/visitbyencountertype.html
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
<ul> | ||
<li ng-if="$ctrl.visits.length != 0" ng-repeat="visit in $ctrl.visits track by $index"> | ||
<a href="{{$ctrl.serverUrl}}/coreapps/patientdashboard/patientDashboard.page?patientId={{$ctrl.config.patientUuid}}&visitId={{visit.uuid}}"> | ||
<a href="{{$ctrl.serverUrl}}/coreapps/patientdashboard/patientDashboard.page?patientId={{$ctrl.config.patientUuid}}&visitId={{visit.uuid}}" > | ||
{{$ctrl.widgetsCommons.formatDate(visit.startDatetime,$ctrl.config.JSDateFormat,$ctrl.config.language)}} | ||
</a> | ||
<div class="tag" ng-if="visit.encounterType !== ''">{{visit.encounterType | translate }}</div> | ||
<div class="tag" ng-if="visit.encounterType !== '' && visit.encounterType !== 'Visit Note'">{{visit.encounterType | translate }}</div> | ||
<div class="tag" ng-if="visit.encounterType !== '' && visit.encounterType === 'Visit Note'" data-toggle="tooltip" data-placement="right" title="{{$ctrl.widgetsCommons.formatDate(visit.startDatetime,$ctrl.config.JSDateFormat,$ctrl.config.language)}}">{{visit.encounterType | translate }}</div> | ||
|
||
</li> | ||
<p ng-if="$ctrl.visits.length == 0"> | ||
{{ 'coreapps.none' | translate }} | ||
</p> | ||
</ul> | ||
</ul> | ||
|
||
<script> | ||
$(document).ready(function(){ | ||
$('[data-toggle="tooltip"]').tooltip(); | ||
}); | ||
</script> |