Skip to content

Commit

Permalink
Merge pull request #566 from openhealthcare/exclude-extract-intrahosp…
Browse files Browse the repository at this point in the history
…ital-api

exclude the intrahospital api and the external demographics from the …
  • Loading branch information
davidmiller committed Nov 19, 2018
2 parents 18fd6ba + 435085f commit 4f610d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions intrahospital_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
class ExternalDemographics(PatientSubrecord):
_is_singleton = True
_icon = "fa fa-handshake-o"
_advanced_searchable = False
_exclude_from_extract = True

hospital_number = models.CharField(max_length=255, blank=True)
nhs_number = models.CharField(max_length=255, blank=True, null=True)
Expand Down Expand Up @@ -79,6 +81,8 @@ class InitialPatientLoad(PatientLoad, PatientSubrecord):
""" This model is the initial load of a patient
future loads are done by the cron batch load
"""
_advanced_searchable = False
_exclude_from_extract = True

def __unicode__(self):
hospital_number = self.patient.demographics_set.first().hospital_number
Expand Down

0 comments on commit 4f610d2

Please sign in to comment.