This PR introduces a few formatting improvements to the HTML templates used for the PDF generation of the questionnaires response, as well as extracting a duplicate method used for getting a patient's full name as a string.
Changes
1. HTML template changes
Change header fields "Detalles del paciente" and "Detalles del profesional" to "Datos del paciente" and "Datos del profesional" for all the questionnaires, respectively.
Change header field "Licencia" to "M.P." (matrícula profesional) for all the questionnaires.
Removes the "meses" detail of the patient's age in the header.
Change questionnaire title from "Nombre del cuestionario - Resultados de informe" to ""Nombre del cuestionario - Informe de resultados" for all the questionnaires.
In the FRAIL report, change syntax to more appropiate one for an item of the test for easier understanding.
In the FRAIL report, add the assessment result section at the end. This implies the addition of 2 rows to minsal_lr_item table for the relevant item. @DocOc98
2. Function duplicates extraction
Create a small new @Service currently only used for sharing a function that generates a string with the full name from a Person object. This is consumed by the PDF and the 'get all questionnaires by patient' endpoints.
Description
This PR introduces a few formatting improvements to the HTML templates used for the PDF generation of the questionnaires response, as well as extracting a duplicate method used for getting a patient's full name as a string.
Changes
1. HTML template changes
minsal_lr_item
table for the relevant item. @DocOc982. Function duplicates extraction
@Service
currently only used for sharing a function that generates a string with the full name from aPerson
object. This is consumed by the PDF and the 'get all questionnaires by patient' endpoints.Related issues
Closes #138