Skip to content

Commit

Permalink
RA-1851:Add Encounters tool-tip when viewing visits
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertYiga committed Apr 21, 2021
1 parent d960bb6 commit 30511be
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion omod/src/main/webapp/fragments/clinicianfacing/visitsSection.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@
<% if (config.showVisitTypeOnPatientHeaderSection == false) { %>
<% recentVisitsWithLinks.each { it, url -> %>
<li class="clear">
<a href="${url}" class="visit-link">
<a href="${url}" class="visit-link identifier">
${ ui.formatDatePretty(it.startDatetime) }
<% if(it.stopDatetime && !it.startDatetime.format("yyyy/MM/dd").equals(it.stopDatetime.format("yyyy/MM/dd"))){ %> - ${ ui.formatDatePretty(it.stopDatetime) }<% } %>
</a>
<ul id="" class="appui-toggle">
<li>
visit details to be displayed here
</li>
</ul>

<script type="text/javascript">
jq('.identifier').on(event,function(){
jq('.appui-toggle').toggle();
});
</script>

<div class="tag">
<% if (it.stopDatetime == null || new Date().before(it.stopDatetime)) { %> ${ ui.message("coreapps.clinicianfacing.active") } - <% } %>
${ (it.admissionEncounter) ? ui.message("coreapps.clinicianfacing.inpatient") : ui.message("coreapps.clinicianfacing.outpatient") }
Expand Down

0 comments on commit 30511be

Please sign in to comment.