Skip to content

Commit

Permalink
update translationkey for next-ui allergies panel (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go authored and tanyaa-tw committed Mar 27, 2024
1 parent 2768bfd commit 1d5c833
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ angular.module('bahmni.clinical')
$state.current.views['dashboard-content'].templateUrl : $state.current.views['dashboard-content'];

$scope.loadIPD = dashboard.translationKey === "DASHBOARD_IPD_DRUG_CHART_TAB_KEY";
$scope.loadAllergies = dashboard.translationKey === "DASHBOARD_NEXT_UI_ALLERGIES_KEY";
};

$scope.init(getCurrentTab());
Expand Down
2 changes: 1 addition & 1 deletion ui/app/clinical/dashboard/views/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
active-visit-uuid="visitHistory.activeVisit.uuid" visit-summary="visitSummary" enrollment="enrollment">
</dashboard>
<mfe-ipd-dashboard ng-if="loadIPD" style="margin: 45px auto 0; display: block;"></mfe-ipd-dashboard>
<mfe-next-ui-patient-alergies-control ng-if="loadIPD" style="display: block;" host-data="alergyData" host-api="alergyApi"></mfe-next-ui-patient-alergies-control>
<mfe-next-ui-patient-alergies-control ng-if="loadAllergies" style="display: block;" host-data="alergyData" host-api="alergyApi"></mfe-next-ui-patient-alergies-control>
<div ng-show ="!loadIPD && !stateChange()" ui-view="consultation-content" class="consultation-content"></div>
1 change: 1 addition & 0 deletions ui/app/i18n/clinical/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
"SIGN_SYMPTOM_DURATION_KEY": "Sign/symptom duration",
"CHIEF_COMPLAINT_DURATION_UNIT_KEY": "Chief Complaint Duration",
"DASHBOARD_IPD_DRUG_CHART_TAB_KEY": "Drug Chart",
"DASHBOARD_NEXT_UI_ALLERGIES_KEY": "Allergies",
"FALSE_POSITIVE_ALERT": "The alert triggered, but it was a false positive and no action is needed.",
"NOT_APPLICABLE_TO_THE_PATIENT": "The alert does not apply to the patient in question.",
"ALREADY_RESOLVED_BY_MEDICATION_ADJUSTMENT": "The alert was previously resolved by adjusting the patient's medication.",
Expand Down

0 comments on commit 1d5c833

Please sign in to comment.