diff --git a/ui/app/common/uicontrols/programmanagement/controllers/manageProgramController.js b/ui/app/common/uicontrols/programmanagement/controllers/manageProgramController.js index a0696fec0..f757e4812 100644 --- a/ui/app/common/uicontrols/programmanagement/controllers/manageProgramController.js +++ b/ui/app/common/uicontrols/programmanagement/controllers/manageProgramController.js @@ -127,6 +127,12 @@ angular.module('bahmni.common.uicontrols.programmanagment') return !_.isEmpty($scope.endedPrograms); }; + $scope.programOutcomeChanged = function (_value) { + if (_value) { + _value.PROGRAM_MANAGEMENT_OTHER_PROGRAM_OUTCOME = ""; + } + }; + $scope.enrollPatient = function () { if (!isProgramSelected()) { messagingService.showMessage("error", "PROGRAM_MANAGEMENT_SELECT_PROGRAM_MESSAGE_KEY"); diff --git a/ui/app/common/uicontrols/programmanagement/views/programAttributes.html b/ui/app/common/uicontrols/programmanagement/views/programAttributes.html index f57b63841..faf71fe09 100644 --- a/ui/app/common/uicontrols/programmanagement/views/programAttributes.html +++ b/ui/app/common/uicontrols/programmanagement/views/programAttributes.html @@ -1,4 +1,4 @@ -
+
@@ -26,7 +26,7 @@
-
+

{{'PROGRAM_MANAGEMENT_REASON_FOR_DEFAULTING' | translate}} :
diff --git a/ui/app/common/uicontrols/programmanagement/views/programEnrollment.html b/ui/app/common/uicontrols/programmanagement/views/programEnrollment.html index da6a038b3..0d75d9164 100644 --- a/ui/app/common/uicontrols/programmanagement/views/programEnrollment.html +++ b/ui/app/common/uicontrols/programmanagement/views/programEnrollment.html @@ -48,7 +48,7 @@
-
+
diff --git a/ui/app/common/uicontrols/programmanagement/views/programRow.html b/ui/app/common/uicontrols/programmanagement/views/programRow.html index a64d2501b..e3d6aee6d 100644 --- a/ui/app/common/uicontrols/programmanagement/views/programRow.html +++ b/ui/app/common/uicontrols/programmanagement/views/programRow.html @@ -60,10 +60,16 @@
+
+
+ +
+
diff --git a/ui/app/i18n/clinical/locale_en.json b/ui/app/i18n/clinical/locale_en.json index 592f93b22..9d68ec286 100644 --- a/ui/app/i18n/clinical/locale_en.json +++ b/ui/app/i18n/clinical/locale_en.json @@ -60,6 +60,7 @@ "PROGRAM_MANAGEMENT_712_FEELS_HEALTHY" : "Feels healthy", "PROGRAM_MANAGEMENT_713_INSECURITY" : "Insecurity", "PROGRAM_MANAGEMENT_714_OTHER_DEFAULTING_REASON" : "Other reason for defaulting", + "PROGRAM_MANAGEMENT_OTHER_PROGRAM_OUTCOME" : "Other Program Outcome", "PROGRAM_MANAGEMENT_2_LAST_FAILED_APPOINTMENT_DATE": "Date of last failed appointment", "PROGRAM_MANAGEMENT_DEFAULTING_OUTCOME": "Program Outcome", "PROGRAM_MANAGEMENT_3_PRETRACKING_OUTCOME": "Pretracking outcome", diff --git a/ui/app/i18n/clinical/locale_fr.json b/ui/app/i18n/clinical/locale_fr.json index ea64322f8..845f7db33 100644 --- a/ui/app/i18n/clinical/locale_fr.json +++ b/ui/app/i18n/clinical/locale_fr.json @@ -68,6 +68,7 @@ "PROGRAM_MANAGEMENT_712_FEELS_HEALTHY" : "Se sens en santé", "PROGRAM_MANAGEMENT_713_INSECURITY" : "Insecurité", "PROGRAM_MANAGEMENT_714_OTHER_DEFAULTING_REASON" : "Autre raison de l'absence", + "PROGRAM_MANAGEMENT_OTHER_PROGRAM_OUTCOME" : "Autre résultat du programme", "PROGRAM_MANAGEMENT_2_LAST_FAILED_APPOINTMENT_DATE": "Date de rendez-vous manqué", "PROGRAM_MANAGEMENT_DEFAULTING_OUTCOME": "Résultat du programme", "PROGRAM_MANAGEMENT_3_PRETRACKING_OUTCOME": "Situation du patient avant traçage", diff --git a/ui/app/version.txt b/ui/app/version.txt index 05f629f1b..b7c8e167d 100644 --- a/ui/app/version.txt +++ b/ui/app/version.txt @@ -1 +1 @@ -v1.6.0 \ No newline at end of file +v1.7.0 \ No newline at end of file diff --git a/ui/test/unit/clinical/models/drugOrderViewModel.spec.js b/ui/test/unit/clinical/models/drugOrderViewModel.spec.js index d2dd2da21..018ecb4b3 100644 --- a/ui/test/unit/clinical/models/drugOrderViewModel.spec.js +++ b/ui/test/unit/clinical/models/drugOrderViewModel.spec.js @@ -388,7 +388,7 @@ describe("drugOrderViewModel", function () { treatment.durationUnit = "Mois"; treatment.calculateDurationInDays(); - expect(treatment.durationInDays >= 182 && treatment.durationInDays < 185).toBeTruthy(); + expect(treatment.durationInDays >= 181 && treatment.durationInDays < 185).toBeTruthy(); treatment.durationUnit = "Day(s)" treatment.calculateDurationInDays();