Skip to content

Commit

Permalink
[Rahul] | BAH-4064 | Add. IPD Dashboard Link For All IPD Visits
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh committed Aug 13, 2024
1 parent d2ad40b commit 24762ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions ui/app/clinical/consultation/models/visitHistoryEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Bahmni.Clinical.VisitHistoryEntry = (function () {
return this.stopDatetime === null;
},

isActiveIPDVisit: function () {
return this.stopDatetime === null && (this.visitType.name || this.visitType.display) === "IPD";
isIPDVisit: function () {
return (this.visitType.name || this.visitType.display) === "IPD";
},

isFromCurrentLocation: function (currentVisitLocation) {
Expand Down
11 changes: 5 additions & 6 deletions ui/app/clinical/displaycontrols/allvisits/views/visitsTable.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ <h2 class="section-title" ng-show="::params.translationKey" >
<table class="visits dashboard-table" id="visitDisplayTable" ng-if="::hasVisits()">
<tbody>
<tr id="eachVisit" ng-repeat="visit in ::visits | limitTo: params.maximumNoOfVisits">
<td class="name" width="50%">
<td class="name" width="40%">
<a class="visit" ng-click="openVisit(visit)">
<span>{{::visit.startDatetime | bahmniDate}}</span>
<span ng-if="::!visit.isOneDayVisit()">- {{::visit.stopDatetime | bahmniDate }}</span>
<i class="fa fa-star current-visit-icon" id="currentVisitIcon" ng-if="::visit.isActive()"
title="Current Visit"></i>
</a>
</td>
<td class="value" id="visitType" ng-if="::visit.isActiveIPDVisit()">
<td class="value" id="visitType">{{::translateVisitTypes(visit.getVisitType())}}</td>
<td class="value" id="visitType" ng-if="::visit.isIPDVisit()">
<a class="visit" ng-click="openIPDDashboard(visit)">
{{::translateVisitTypes(visit.getVisitType())}}
{{::'VIEW_IPD_DASHBOARD'|translate}}
<i class="fa fa-external-link"></i>
</a>
</td>
<td class="value" id="visitType" ng-if="::!visit.isActiveIPDVisit()">
{{::translateVisitTypes(visit.getVisitType())}}
</td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ angular.module('bahmni.common.displaycontrol.navigationlinks')
"translationKey": "PATIENT_REGISTRATION_PAGE_KEY",
"url": "../registration/#/patient/{{patientUuid}}",
"title": "Registration"
},
{
"name": "labEntry",
"translationKey": "LAB_ENTRY_KEY",
"url": "/lab/patient/{{patientUuid}}",
"title": "Lab Entry"
}
];

Expand Down
2 changes: 1 addition & 1 deletion ui/app/i18n/clinical/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"MESSAGE_DIALOG_OPTION_OKAY": "OK",
"MESSAGE_DIALOG_OPTION_REVIEW": "Review",
"MESSAGE_DIALOG_OPTION_DISCARD": "Discard",
"LAB_ENTRY_KEY": "Lab Entry",
"VIEW_IPD_DASHBOARD": "View IPD Dashboard",
"OBS_BOOLEAN_YES_KEY": "Yes",
"OBS_BOOLEAN_NO_KEY": "No",
"CLINICAL_DUPLICATE_DIAGNOSIS_ERROR_MESSAGE": "Please correct the duplicate diagnosis entered.",
Expand Down

0 comments on commit 24762ea

Please sign in to comment.