taskGNU Health - Tasks: task #16494, Let health_lab report more...

 
 

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

task #16494: Let health_lab report more customize

Submitter:  Feng Shu <tumashu>
Submitted:  Mon 29 Jan 2024 03:38:14 AM UTC
   
 
Release:  4.3.0 Should Start On:  Mon 29 Jan 2024 12:00:00 AM UTC
Should be Finished on:  Mon 29 Jan 2024 12:00:00 AM UTC Category:  Data model
Priority:  5 - Normal Status:  In Progress
Privacy:  Public Assigned to:  tumashu
Percent Complete:  90% Open/Closed:  Open
Module:  health_lab Component:  Hospital Management

Wed 06 Mar 2024 12:05:27 PM UTC, comment #4: 

Hi, Feng

Great! I like the idea, specially the tags.

About the category, probably we might not even use with the adoption of LOINC (see task #16515)

Let's move this features to the "future" branch, so we make sure no new models or attributes are in default.

Also, in "future" we need to document the upcoming features we have in the packages.

Bests,
Luis

Luis Falcon <meanmicio>
Group administrator
Mon 05 Feb 2024 02:43:57 AM UTC, comment #3: 

(4) support image in result,

1. https://hg.savannah.gnu.org/hgweb/health/rev/ef8edfed73cd
2. https://hg.savannah.gnu.org/hgweb/health/rev/aebd13f095bd
3. https://hg.savannah.gnu.org/hgweb/health/rev/4691b7a5030e

By default, if user add image files to lab test result. a new image table will be inserted to report,
if user add string: <<critearea_code>> to image's description, and select report style:
'Table with result column and inline images (no header)', the images will inline after result in
result table and image table will not be showed.

Feng Shu <tumashu>
Tue 30 Jan 2024 03:17:58 PM UTC, comment #2: 

(3) Add tags field:

+    tags = fields.Char(
+        'Tags', help='Tags of test type, which can be used in '
+        'if directive of report template file, '
+        'tags use letters and numbers, separated by colon.')


https://hg.savannah.gnu.org/hgweb/health/rev/5c93e8ca69d8

Feng Shu <tumashu>
Mon 29 Jan 2024 04:35:41 AM UTC, 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

Feng Shu <tumashu>
Mon 29 Jan 2024 03:38:14 AM UTC, original submission:  
Feng Shu <tumashu>

 

(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 meanmicio (Posted a comment)
  • -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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-03-06 meanmicio CategoryNone Data model
    2024-02-05 tumashu Percent Complete0% 90%
    2024-01-29 tumashu ReleaseNone 4.3.0

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code