bug fix with procedure codes

This commit is contained in:
Steve Nyemba 2020-02-01 09:38:50 -06:00
parent a4913c0ba8
commit 0fbead54f5
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def format_time(value):
return ":".join([value[:2],value[2:] ])[:5]
def format_proc(value):
if ':' in value :
return {"procedure_type":value.split(':')[0].strip(),"procedure_code":value.split(':')[1].strip()}
return {"type":value.split(':')[0].strip(),"code":value.split(':')[1].strip()}
else:
return value
def format_diag(value):