bug fix: procedure code default parsing

This commit is contained in:
Steve Nyemba 2021-01-18 13:34:39 -06:00
parent ae0f768ec5
commit 52fc7e4b0f
2 changed files with 4 additions and 2 deletions

View File

@ -159,10 +159,12 @@ class Formatters :
def procedure(self,value):
for xchar in [':','<'] :
for xchar in [':','<','|'] :
if xchar in value and len(value.split(xchar)) > 1 :
#_value = {"type":value.split(':')[0].strip(),"code":value.split(':')[1].strip()}
_value = {"type":value.split(xchar)[0].strip(),"code":value.split(xchar)[1].strip()}
if value.split(xchar) >= 3 :
_value['modifier'] = value.split(xchar)[2]
break
else:
_value = str(value)

View File

@ -8,7 +8,7 @@ import sys
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
args = {
"name":"healthcareio","version":"1.5.1",
"name":"healthcareio","version":"1.5.2",
"author":"Vanderbilt University Medical Center",
"author_email":"steve.l.nyemba@vumc.org",
"include_package_data":True,