fix (Lab Test): None TypeError in Patient Medical Record
This commit is contained in:
parent
11117810c5
commit
ac4199f2d7
@ -290,10 +290,14 @@ def insert_lab_test_to_medical_record(doc):
|
||||
comment = ""
|
||||
if item.lab_test_comment:
|
||||
comment = str(item.lab_test_comment)
|
||||
event = ""
|
||||
table_row = item.lab_test_name
|
||||
|
||||
if item.lab_test_event:
|
||||
event = item.lab_test_event
|
||||
table_row = item.lab_test_name +" "+ event +" "+ item.result_value
|
||||
table_row += " " + item.lab_test_event
|
||||
|
||||
if item.result_value:
|
||||
table_row += " " + item.result_value
|
||||
|
||||
if item.normal_range:
|
||||
table_row += " normal_range("+item.normal_range+")"
|
||||
table_row += " "+comment
|
||||
|
Loading…
Reference in New Issue
Block a user