senaite / senaite.core

Enterprise Open Source Laboratory System (LIMS)
https://senaite.com
GNU General Public License v2.0
254 stars 145 forks source link

Remarks field on Report with TinyMCE #2497

Closed ngslabex closed 5 months ago

ngslabex commented 8 months ago

Description

The results of cytogenetic test analyzes are based on interpretation and often chromosome images need to be added.

Observed behaviour

Cytogenetic analysis results are independent of any threshold and warning values and are based on interpretation.

Expected behaviour

I think this situation can be met by giving the Remark field a rich text feature.

Versions

Screenshot

image

Sample FISH Report: image

grulisco commented 8 months ago

Hi @ngslabex generally I would like to extend analysis remarks to rich htext or html content for myself, but...

As I understand plone/senaite (I'm not a delevoper), it's not recommended to put images into text fields in a large number because of database performance issues.

And even now, you can upload images to a sample, that should be finally displayed in the report between the results and interpretation block.

Code see: https://github.com/senaite/senaite.impress/tree/2.x/src/senaite/impress/analysisrequest/templates

In our lab we have the same issue with sem microscopy and enrich our reports with images this way.

I can still imagine an more advanced way of displaying images depending on the upload mode (to sample or to specific analysis), but this would need more customization of the report code.

ngslabex commented 5 months ago

Hi @grulisco ,

Thank you very much for your insightful response and the helpful information.

I have resolved the issue by attaching images to the sample, and it works perfectly in the reports. I apologize for the delayed response as I took some time to test it thoroughly.

Please find attached a screenshot of the result for your reference.

Again, thank you for your support and assistance.

Best regards, image

image

ngslabex commented 5 months ago

I have solve with attach as image file.