Skip to content

Commit

Permalink
Merge eb023f7 into f2ac07c
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller committed Aug 9, 2019
2 parents f2ac07c + eb023f7 commit 9f4a978
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
6 changes: 6 additions & 0 deletions changelog.md
@@ -1,5 +1,11 @@
### 0.17.0 (Major Release)

#### Javascript API removals

* Removes the function Episode.isDischarged() (This was rarely if ever used, and no longer an accurate represenation of dischargedness.)

#### Miscelanious changes

Bumps Flake8 version to 3.7.8 - new code will now be required to pass flake8 v3.7.8

### 0.16.0 (Major Release)
Expand Down
8 changes: 0 additions & 8 deletions opal/static/js/opal/services/episode.js
Expand Up @@ -239,14 +239,6 @@ recently changed it - refresh the page and try again');
return deferred.promise;
},


//
// Predicate to determine whether this episode is discharged or not
//
isDischarged: function(){
return this.location[0].category == 'Discharged' ||
(this.end && moment(this.end).isBefore(moment()));
}
}; // Closes prototype


Expand Down
6 changes: 0 additions & 6 deletions opal/static/js/test/episode.service.test.js
Expand Up @@ -319,12 +319,6 @@ describe('Episode', function() {

});

describe('isDischarged()', function() {
it('should return true', function() {
expect(episode.isDischarged()).toEqual(true);
});
});

describe('findByHospitalNumber()', function (){
it('Should call the newPatient callback', function () {
var mock_new = jasmine.createSpy('Mock for new patient')
Expand Down

0 comments on commit 9f4a978

Please sign in to comment.