pmeng / therapy-scheme-generator

1 stars 2 forks source link

Templating and improvements for therapy schemes #79

Closed pmeng closed 2 months ago

pmeng commented 5 months ago

Part 1

Generated PDFs shall now be more sophisticately styled and the user shall gain the possibility to set default settings.

Attached you can find a mockup of the template. Mockup Template Styling.pdf

User-definable settings are:

The text of the Page counter (page n of n) needs to be localizable

The logo image is automatically adjusted to a height of 3,5cm. The logo shall align to the top and right margins. The width is automatically applied, image relations shall be preserved (no skewing of the image)

These settings apply only to the generated PDF!

Part 2

I need some additional fields for input in the therapy scheme view. First of all, the above defined new fields for objective, place/date and salutation Salhave to be added to the screen Additionally for each therapy stub category, at the bottom a multi-line text-field is added. The text that is being written in this field is printed AFTER each therapy sub categorie's therapy stubs. So for example. Therapy stub category 1 name therapy stub therapy stub therapy stub Free text Therapy stub category 2 name therapy stub Free text Therapy stub category 3 name Free text etc.

This means, that always all therapy stub categories are shown in the screen, even when no therapy stubs have been selected. And for each therapy stub category that is shown, a textfield can be found at the bottom.

For the case, that a therapy stub category has no selected therapy stubs and there is no text entered in the free text input field, then the heading of the therapy stub category is not being printed in the output (HTML/PDF)

Attached you find a mockup for demonstration. Mockup additional fields issue 79

Implementation for Part 2 applies to both HTML and PDF. The free text is printed in all forms - Patient form, short form, combined form.