From 182f54e24e31d4a8e0b27b4010c8636beec6c1da Mon Sep 17 00:00:00 2001 From: fredkingham Date: Thu, 15 Nov 2018 16:38:36 +0000 Subject: [PATCH] exclude the intrahospital api and the external demographics from the extract --- intrahospital_api/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/intrahospital_api/models.py b/intrahospital_api/models.py index 8f7402b33..4f29eaac2 100644 --- a/intrahospital_api/models.py +++ b/intrahospital_api/models.py @@ -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) @@ -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