Skip to content

Commit

Permalink
Fix ICD9 in depends
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Oct 26, 2016
1 parent bc01720 commit 9d07ad3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions connector_carepoint/models/medical_patient_disease.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ def _import_dependencies(self):
'carepoint.medical.patient')
self._import_dependency(record['caring_md_id'],
'carepoint.medical.physician')
pathology = self.unit_for(MedicalPathologyUnit,
'carepoint.medical.pathology')
pathology._import_by_code(record['icd9'].strip())
if record['icd9']:
pathology = self.unit_for(MedicalPathologyUnit,
'carepoint.medical.pathology')
pathology._import_by_code(record['icd9'].strip())

def _create(self, data): # pragma: no cover
binding = super(MedicalPatientDiseaseImporter, self)._create(data)
Expand Down

0 comments on commit 9d07ad3

Please sign in to comment.