Skip to content

Commit b738bdf

Browse files
committed
RA-1851:Add Encounters tool-tip when viewing visits
1 parent d960bb6 commit b738bdf

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
<ul>
22
<li ng-if="$ctrl.visits.length != 0" ng-repeat="visit in $ctrl.visits track by $index">
3-
<a href="{{$ctrl.serverUrl}}/coreapps/patientdashboard/patientDashboard.page?patientId={{$ctrl.config.patientUuid}}&visitId={{visit.uuid}}">
3+
<a href="{{$ctrl.serverUrl}}/coreapps/patientdashboard/patientDashboard.page?patientId={{$ctrl.config.patientUuid}}&visitId={{visit.uuid}}" >
44
{{$ctrl.widgetsCommons.formatDate(visit.startDatetime,$ctrl.config.JSDateFormat,$ctrl.config.language)}}
55
</a>
6-
<div class="tag" ng-if="visit.encounterType !== ''">{{visit.encounterType | translate }}</div>
6+
<div class="tag" ng-if="visit.encounterType !== '' && visit.encounterType !== 'Visit Note'">{{visit.encounterType | translate }}</div>
7+
<div class="tag" ng-if="visit.encounterType !== '' && visit.encounterType === 'Visit Note'" data-toggle="tooltip" data-placement="right" title="we wana display the encounter data here!">{{visit.encounterType | translate }}</div>
8+
79
</li>
810
<p ng-if="$ctrl.visits.length == 0">
911
{{ 'coreapps.none' | translate }}
1012
</p>
11-
</ul>
13+
</ul>
14+
15+
<script>
16+
$(document).ready(function(){
17+
$('[data-toggle="tooltip"]').tooltip();
18+
});
19+
</script>

0 commit comments

Comments
 (0)