[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [task #16518] Add ImageReportMixin and register to Report c
From: |
Feng Shu |
Subject: |
[Health-dev] [task #16518] Add ImageReportMixin and register to Report class |
Date: |
Thu, 14 Mar 2024 04:02:29 -0400 (EDT) |
URL:
<https://savannah.gnu.org/task/?16518>
Summary: Add ImageReportMixin and register to Report class
Group: GNU Health
Submitter: tumashu
Submitted: Thu 14 Mar 2024 08:02:28 AM UTC
Should Start On: Thu 14 Mar 2024 12:00:00 AM UTC
Should be Finished on: Thu 14 Mar 2024 12:00:00 AM UTC
Category: Reporting
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Percent Complete: 0%
Open/Closed: Open
Release: None
Discussion Lock: Any
Module: health*
Component: Hospital Management
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 14 Mar 2024 08:02:28 AM UTC By: Feng Shu <tumashu>
See https://hg.savannah.gnu.org/hgweb/health/rev/802d2903439d
11. How to keep ratio when add a image to report?
We have added *ImageReportMixin* class and register to *Report*
class with the help of *Pool.register_mixin*, user can use its
methods in report template, for example:
1. patient_card.fodt: *image: image_crop(patient.photo, 2.5, 3.5)*
2. labtest_report.fodt: *image: image_resize(image.data, 5, 5)*
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?16518>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Health-dev] [task #16518] Add ImageReportMixin and register to Report class,
Feng Shu <=