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

Issue 627: Fix visit types list not refreshing. #645

Merged
merged 1 commit into from
Sep 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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