[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [bug #64268] get_analytes_summary in Lab class of health_la
From: |
Feng Shu |
Subject: |
[Health-dev] [bug #64268] get_analytes_summary in Lab class of health_lab should add analyte.units.name |
Date: |
Wed, 31 May 2023 22:06:25 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64268>
Summary: get_analytes_summary in Lab class of health_lab
should add analyte.units.name
Group: GNU Health
Submitter: tumashu
Submitted: Thu 01 Jun 2023 02:06:23 AM UTC
Category: Functionality
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Release: None
Discussion Lock: Any
Module: health_lab
Component: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 01 Jun 2023 02:06:23 AM UTC By: Feng Shu <tumashu>
I think we should add analyte.units.name behind of analyte.result
----------------------------------
class Lab(ModelSQL, ModelView):
'Patient Lab Test Results'
__name__ = 'gnuhealth.lab'
...
def get_analytes_summary(self, name):
summ = ""
for analyte in self.critearea:
if analyte.result or analyte.result_text:
res = ""
res_text = ""
if analyte.result_text:
res_text = analyte.result_text
if analyte.result:
res = str(analyte.result) + " "
summ = summ + analyte.rec_name + " " + \
res + res_text + "\n"
return summ
...
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64268>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Health-dev] [bug #64268] get_analytes_summary in Lab class of health_lab should add analyte.units.name,
Feng Shu <=