malac-utils 1.3.0__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: malac-utils
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: Mapping Language Compiler Utils
5
5
  Author-email: cdeHealth-Team <contact-project+cdehealth-malac-hd-52276676-issue-@incoming.gitlab.com>
6
6
  Project-URL: Homepage, https://gitlab.com/cdehealth/malac-hd
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = "1.3.2"
@@ -11,7 +11,9 @@ class PartialDate:
11
11
 
12
12
  def parse(datestr):
13
13
  datestr = getattr(datestr, "value", datestr)
14
- if re.search("^[0-9]{1,6}$", datestr):
14
+ if re.search("^[0-9]{1,8}$", datestr):
15
+ if len(datestr) > 6:
16
+ return PartialDate(datestr[0:4] + '-' + datestr[4:6] + '-' + datestr[6:])
15
17
  if len(datestr) > 4:
16
18
  return PartialDate(datestr[0:4] + "-" + datestr[4:])
17
19
  else:
@@ -1026,6 +1026,8 @@ class FHIRPathUtils(object):
1026
1026
  result = val.value
1027
1027
  else:
1028
1028
  result = str(val)
1029
+ elif isinstance(val, dateutil.PartialDate):
1030
+ result = val.isoformat()
1029
1031
  else:
1030
1032
  result = False
1031
1033
  return [result]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: malac-utils
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: Mapping Language Compiler Utils
5
5
  Author-email: cdeHealth-Team <contact-project+cdehealth-malac-hd-52276676-issue-@incoming.gitlab.com>
6
6
  Project-URL: Homepage, https://gitlab.com/cdehealth/malac-hd
@@ -1,2 +0,0 @@
1
-
2
- __version__ = "1.3.0"
File without changes
File without changes
File without changes
File without changes