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

Commit

Permalink
Patient allergies (#679)
Browse files Browse the repository at this point in the history
* Added initial Allergy model

* Patient hasMany allergies
  • Loading branch information
bspaulding authored and jkleinsc committed Oct 20, 2016
1 parent 5b1b928 commit 5b1f096
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/models/allergy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import AbstractModel from 'hospitalrun/models/abstract';
import DS from 'ember-data';

export default AbstractModel.extend({
description: DS.attr('string'),
icd9CMCode: DS.attr('string'),
icd10Code: DS.attr('string')
});
3 changes: 3 additions & 0 deletions app/models/patient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default AbstractModel.extend(DOBDays, PatientName, {
address2: DS.attr('string'),
address3: DS.attr('string'),
address4: DS.attr('string'),
allergies: DS.hasMany('allergy', {
async: true
}),
bloodType: DS.attr('string'),
clinic: DS.attr('string'),
country: DS.attr('string'),
Expand Down

0 comments on commit 5b1f096

Please sign in to comment.