malac-utils 1.3.1__tar.gz → 1.3.3__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.1
3
+ Version: 1.3.3
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.3"
@@ -8,10 +8,15 @@ class PartialDate:
8
8
 
9
9
  def isoformat(self):
10
10
  return self.value
11
+
12
+ def __repr__(self):
13
+ return self.value
11
14
 
12
15
  def parse(datestr):
13
16
  datestr = getattr(datestr, "value", datestr)
14
- if re.search("^[0-9]{1,6}$", datestr):
17
+ if re.search("^[0-9]{1,8}$", datestr):
18
+ if len(datestr) > 6:
19
+ return PartialDate(datestr[0:4] + '-' + datestr[4:6] + '-' + datestr[6:])
15
20
  if len(datestr) > 4:
16
21
  return PartialDate(datestr[0:4] + "-" + datestr[4:])
17
22
  else:
@@ -1018,12 +1018,12 @@ class FHIRPathUtils(object):
1018
1018
  result = "true" if self.boolean_value(val) else "false"
1019
1019
  elif isinstance(val, self.model.integer) or isinstance(val, int):
1020
1020
  if isinstance(val, self.model.integer):
1021
- result = val.value
1021
+ result = str(val.value)
1022
1022
  else:
1023
1023
  result = str(val)
1024
1024
  elif isinstance(val, self.model.decimal) or isinstance(val, decimal.Decimal):
1025
1025
  if isinstance(val, self.model.decimal):
1026
- result = val.value
1026
+ result = str(val.value)
1027
1027
  else:
1028
1028
  result = str(val)
1029
1029
  elif isinstance(val, dateutil.PartialDate):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: malac-utils
3
- Version: 1.3.1
3
+ Version: 1.3.3
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.1"
File without changes
File without changes
File without changes
File without changes