Skip to content

Commit

Permalink
fix birth country check
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoTrabach committed Sep 1, 2023
1 parent 862cc8b commit ab5b2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhir_utils/fhir/patient/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit ab5b2a7

Please sign in to comment.