Skip to content

Commit

Permalink
fix calculate register quality counter
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoTrabach committed Sep 1, 2023
1 parent 9a356f8 commit a7f0702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fhir_utils/fhir/patient/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Patient:
active : bool = True
address : list = field(default_factory=list)
birth_city : str = ""
deceased : bool = True
deceased : bool = False
nationality : str = ""
naturalization : str = ""
mother : str = ""
Expand Down Expand Up @@ -192,8 +192,8 @@ def calculate_register_quality(self):

for p in self.__dict__.items():
if p[0] in quality_properties:
if type(p[0]) is str and p[1] != "" and p[0] not in self._invalid_elements:
counter += 1
if type(p[0]) is str and p[1] != "" and p[1] != None and p[0] not in self._invalid_elements:
counter += 1
elif type(p[0]) is list and len(p[1]) > 0 and p[0] not in self._invalid_elements:
counter += 1

Expand Down

0 comments on commit a7f0702

Please sign in to comment.