Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoTrabach committed Sep 1, 2023
1 parent ab5b2a7 commit c6e2f1e
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 @@ -215,7 +215,9 @@ def compare(self, new_resource):
return compare_resources(self, new_resource)

def merge(self, new_resource, force_invalid_merge: False):

# TODO: check if new telecom and address are the same or not before appending
# TODO: mode that discard invalid values

# check if both resource are of the same type
if is_dataclass(new_resource):
try:
Expand All @@ -234,8 +236,6 @@ def merge(self, new_resource, force_invalid_merge: False):
logging.warning("Force merge invalid resources enabled")

# start merge process
# TODO: check if new telecom and address are the same or not before appending

return replace(self,
name = merge_element(self.name, new_resource.name, mode = "coalesce"),
gender = merge_element(self.gender, new_resource.gender, mode = "coalesce"),
Expand Down

0 comments on commit c6e2f1e

Please sign in to comment.