fix (Lab Test): None TypeError in Patient Medical Record

This commit is contained in:
Rucha Mahabal 2020-03-06 12:22:55 +05:30
parent 11117810c5
commit ac4199f2d7

View File

@ -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