Skip to content

Commit

Permalink
Merge pull request #93 from IntelliSOFT-Consulting/editappointments
Browse files Browse the repository at this point in the history
Removed edit appointment error
  • Loading branch information
daviemukungi committed Aug 28, 2020
2 parents 49827bc + 23f593a commit 1989752
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ angular.module('bahmni.appointments')
$scope.manageAppointmentPrivilege = Bahmni.Appointments.Constants.privilegeManageAppointments;

$scope.navigateTo = function (viewName) {
if ($scope.getCurrentAppointmentTabName() === "list") {
$rootScope.$emit("PopulateInfoForNextAppointment", {});
}
$scope.currentTab = viewName;
var path = 'home.manage.appointments.' + viewName;
$state.params.appointmentsData = $rootScope.appointmentsData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ angular.module('bahmni.appointments')
$scope.appointment = Bahmni.Appointments.AppointmentViewModel.create(appointmentContext.appointment || { appointmentKind: 'Scheduled' }, appointmentCreateConfig);
$scope.selectedService = appointmentCreateConfig.selectedService;
$scope.isPastAppointment = $scope.isEditMode() ? Bahmni.Common.Util.DateUtil.isBeforeDate($scope.appointment.date, moment().startOf('day')) : false;
$scope.appointment.patient = $scope.patientInfo || null;
if ($scope.appointment.patient) {
$scope.onSelectPatient($scope.appointment.patient);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,5 @@ angular.module('bahmni.appointments')
var allowedActions = $scope.allowedActionsByStatus.hasOwnProperty(status) ? $scope.allowedActionsByStatus[status] : [];
return _.includes(allowedActions, action);
};
var parsePatient = function (patientInfo) {
var patient = {};
patient.label = patientInfo.name + " (" + patientInfo.identifier + ")";
patient.uuid = patientInfo.uuid;
return patient;
};
// $rootScope.$on("PopulateInfoForNextAppointment", function () {
// if ($scope.getCurrentAppointmentTabName() === "list") {
// var patient = {};
// patient.label = $scope.selectedPatientlabel;
// return;
// }
// });
init();
}]);
1 change: 0 additions & 1 deletion ui/app/appointments/views/manage/newAppointment.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ <h2 ng-show="isEditMode()">{{ ::'EDIT_APPOINTMENT_KEY' | translate}}</h2>
min-length="minCharLengthToTriggerPatientSearch"
bahmni-autocomplete
ng-model="appointment.patient.label"
ng-init="appointment.patient.label = patientInfo"
source="search"
response-map="responseMap"
on-select="onSelectPatient"
Expand Down

0 comments on commit 1989752

Please sign in to comment.