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

Patient allergies #679

Merged
merged 2 commits into from
Oct 20, 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
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