Skip to content

Commit

Permalink
Merge pull request #950 from openhealthcare/less-hardcoding-is-more-good
Browse files Browse the repository at this point in the history
Less hardcoding is more good
  • Loading branch information
fredkingham committed Jan 28, 2017
2 parents f2da1d9 + 9e47a38 commit 899f5fe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions opal/core/search/static/js/search/controllers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ angular.module('opal.controllers').controller(
$scope.limit = 10;
$scope.results = [];
$scope.searched = false;
$scope.episode_category_list = ['OPAT', 'Inpatient', 'Outpatient', 'Review'];
$scope.hospital_list = ['Heart Hospital', 'NHNN', 'UCH'];
$scope.paginator = new Paginator($scope.search);

$scope.getQueryParam = function(){
Expand Down
2 changes: 0 additions & 2 deletions opal/static/js/opal/controllers/edit_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ angular.module('opal.controllers').controller(
});
};

$scope.episode_category_list = ['Inpatient', 'Outpatient', 'Review'];

$scope.delete = function(result){
$modalInstance.close(result);
var modal = $modal.open({
Expand Down
1 change: 0 additions & 1 deletion opal/templates/modals/add_episode.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ <h3>
<div class="modal-body">
<form class="form-horizontal" name="form">
{% include models.Demographics.get_form_template %}
{% select label="Category" model="editing.location.category" lookuplist="episode_category_list" %}
{% select label="Hospital" model="editing.location.hospital" lookuplist="hospital_list" %}
{% input label="Ward" model="editing.location.ward" %}
{% input label="Bed" model="editing.location.bed" %}
Expand Down

0 comments on commit 899f5fe

Please sign in to comment.