Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #645 from akong/627_visitTypes
Browse files Browse the repository at this point in the history
Issue 627: Fix visit types list not refreshing.
  • Loading branch information
jkleinsc authored Sep 12, 2016
2 parents a8534ef + 4edaaf2 commit caea7a1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/appointments/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default AbstractEditController.extend(AppointmentStatuses, PatientSubmodu
isAdmissionAppointment = this.get('isAdmissionAppointment');
return (!allDay && isAdmissionAppointment);
}.property('model.allDay', 'isAdmissionAppointment'),
visitTypesList: Ember.computed.alias('appointmentsController.visitTypeList'),
visitTypesList: Ember.computed.alias('appointmentsController.visitTypesList'),

cancelAction: function() {
var returnTo = this.get('model.returnTo');
Expand Down
2 changes: 1 addition & 1 deletion app/appointments/search/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default AppointmentIndexController.extend(AppointmentStatuses, VisitTypes
startDate: null,
startKey: [],
status: null,
visitTypesList: Ember.computed.alias('appointmentsController.visitTypeList'),
visitTypesList: Ember.computed.alias('appointmentsController.visitTypesList'),

actions: {
search: function() {
Expand Down
4 changes: 2 additions & 2 deletions app/mixins/visit-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export default Ember.Mixin.create({

visitTypes: function() {
return this._getVisitTypes();
}.property('visitTypesList', 'defaultVisitTypes'),
}.property('visitTypesList', 'defaultVisitTypes').volatile(),

visitTypesWithEmpty: function() {
return this._getVisitTypes(true);
}.property('visitTypesList', 'defaultVisitTypes')
}.property('visitTypesList', 'defaultVisitTypes').volatile()
});
2 changes: 1 addition & 1 deletion app/patients/reports/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default AbstractReportController.extend(PatientDiagnosis, PatientVisits,
physicianList: Ember.computed.map('patientsController.physicianList.value', SelectValues.selectValuesMap),
locationList: Ember.computed.map('patientsController.locationList.value', SelectValues.selectValuesMap),
statusList: Ember.computed.map('patientsController.statusList.value', SelectValues.selectValuesMap),
visitTypesList: Ember.computed.alias('patientsController.visitTypeList'),
visitTypesList: Ember.computed.alias('patientsController.visitTypesList'),
reportType: 'detailedAdmissions',
patientDetails: {},

Expand Down
2 changes: 1 addition & 1 deletion app/visits/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default AbstractEditController.extend(ChargeActions, PatientSubmodule, Pa
pricingTypes: Ember.computed.alias('visitsController.wardPricingTypes'),
physicianList: Ember.computed.alias('visitsController.physicianList'),
locationList: Ember.computed.alias('visitsController.locationList'),
visitTypesList: Ember.computed.alias('visitsController.visitTypeList'),
visitTypesList: Ember.computed.alias('visitsController.visitTypesList'),
lookupListsToUpdate: [{
name: 'diagnosisList',
property: 'model.primaryBillingDiagnosis',
Expand Down

0 comments on commit caea7a1

Please sign in to comment.