|
|
@ -386,6 +386,7 @@ class Parser (Process):
|
|
|
|
_cinfo = util.get.config(self._custom_config[_code],row)
|
|
|
|
_cinfo = util.get.config(self._custom_config[_code],row)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
_cinfo = {}
|
|
|
|
_cinfo = {}
|
|
|
|
|
|
|
|
|
|
|
|
if _info or _cinfo:
|
|
|
|
if _info or _cinfo:
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
@ -393,6 +394,8 @@ class Parser (Process):
|
|
|
|
|
|
|
|
|
|
|
|
_info = jsonmerge.merge(_info,_cinfo)
|
|
|
|
_info = jsonmerge.merge(_info,_cinfo)
|
|
|
|
tmp = self.get.value(row,_info)
|
|
|
|
tmp = self.get.value(row,_info)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not tmp :
|
|
|
|
if not tmp :
|
|
|
|
continue
|
|
|
|
continue
|
|
|
@ -501,7 +504,7 @@ class Parser (Process):
|
|
|
|
|
|
|
|
|
|
|
|
if len(file) == 1 :
|
|
|
|
if len(file) == 1 :
|
|
|
|
|
|
|
|
|
|
|
|
file = file[0].split('CLM')
|
|
|
|
file = file[0].split('HL')
|
|
|
|
_code = '837'
|
|
|
|
_code = '837'
|
|
|
|
section = 'HL'
|
|
|
|
section = 'HL'
|
|
|
|
|
|
|
|
|
|
|
@ -592,7 +595,7 @@ class Parser (Process):
|
|
|
|
|
|
|
|
|
|
|
|
if segment and segment[0].startswith(section) :
|
|
|
|
if segment and segment[0].startswith(section) :
|
|
|
|
# default_claim = dict({"name":index},**DEFAULT_VALUE)
|
|
|
|
# default_claim = dict({"name":index},**DEFAULT_VALUE)
|
|
|
|
|
|
|
|
|
|
|
|
claim = self.apply(segment,_code)
|
|
|
|
claim = self.apply(segment,_code)
|
|
|
|
if claim :
|
|
|
|
if claim :
|
|
|
|
claim['index'] = len(claims)
|
|
|
|
claim['index'] = len(claims)
|
|
|
|