Skip to content

Commit

Permalink
rdrf#2457 harden rdrf_date transform
Browse files Browse the repository at this point in the history
  • Loading branch information
id2359 committed Apr 21, 2023
1 parent eb537b1 commit e7baefa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rdrf/intframework/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def date(hl7_value):
def rdrf_date(hl7_value):
if not hl7_value:
return None
if hl7_value == '""':
return None
date_object = date(hl7_value).date()
s = "%s-%s-%s" % (date_object.year, date_object.month, date_object.day)
return s
Expand Down

0 comments on commit e7baefa

Please sign in to comment.