health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [task #16494] Let health_lab report more customize


From: Feng Shu
Subject: [Health-dev] [task #16494] Let health_lab report more customize
Date: Sun, 28 Jan 2024 23:35:42 -0500 (EST)

Update of task#16494 (group health):

                 Release:                    None => 4.3.0                  

    _______________________________________________________

Follow-up Comment #1:

At the moment, I have done the following job:

(1) Add category field to TestType:

+    category = fields.Selection([
+        (None, ''),
+        ('hematology', 'Hematology Testing'),
+        ('fluid_excreta', 'Body Fluid and Excreta Examination'),
+        ('biochemical', 'Biochemical Testing'),
+        ('immunological', 'Immunological Testing'),
+        ('molecular_biology', 'Molecular Biology Testing'),
+        ('chromosome_genetic', 'Chromosome and Genetic Disease Detection'),
+        ('others', 'Others'),
+        ], 'Category', sort=False, select=True)

At the moment, I just use a Selection field at the moment,  
I'm not sure whether this choice is suitableļ¼Œ we need to discuss: 

1. Selection or Many2One? which one is better? why
2. does user need to customize category? 
3. Can we find a standard classification 

https://hg.savannah.gnu.org/hgweb/health/rev/812df721f231


(2) Add report_style fiedl to Test type, and let fodt template conside it.

+    report_style = fields.Selection([
+        ('tbl_h_r_u_nr', 'Table with result, unit and normal_range
columns'),
+        ('tbl_h_r_nr', 'Table with result and normal_range columns'),
+        ('tbl_h_r', 'Table with result column'),
+        ('tbl_nh_r', 'Table with result column (no header)'),
+        ('no_tbl', 'Do not use table'),
+        ], 'Report style', sort=False, select=True)
+

If other common used styles are lost, please comment and let me know.

https://hg.savannah.gnu.org/hgweb/health/rev/3ea7c1d2be3f



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/task/?16494>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]