bugGNU Health - Bugs: bug #64268, get_analytes_summary in Lab class...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64268: get_analytes_summary in Lab class of health_lab should add analyte.units.name

Submitter:  Feng Shu <tumashu>
Submitted:  Thu 01 Jun 2023 02:06:23 AM UTC
   
 
Category:  Functionality Severity:  3 - Normal
Item Group:  None Status:  Ready For Test
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Module:  health_lab Component:  Hospital Management

Thu 01 Jun 2023 03:04:27 AM UTC, comment #1: 

For example:

NEU 1.0 10^3/uL

or

NEU 1.0 (10^3/uL)


analytes_summary will be include into page of life, so I think it it important to add unit.

Feng Shu <tumashu>
Group Member
Thu 01 Jun 2023 02:06:23 AM UTC, original submission:  


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

    ...

  


Feng Shu <tumashu>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tumashu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-11 tumashu StatusNone Ready For Test
        ComponentNone Hospital Management

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code