diff --git a/fhir_utils/fhir/patient/resource.py b/fhir_utils/fhir/patient/resource.py index 257ccd7..e4f0fbd 100644 --- a/fhir_utils/fhir/patient/resource.py +++ b/fhir_utils/fhir/patient/resource.py @@ -105,7 +105,7 @@ def check_cns(self): #raise ValueError("CNS must have 15 digits") def check_birth_country(self): - if self.gender not in ["B", "E", "N"]: + if self.birth_country not in ["B", "E", "N"]: self._is_valid = False self._invalid_elements.append("birth_country")