PharmaLedger-IMI / ctr-workspace

UC8 Clinical Trials Recruitment
MIT License
2 stars 0 forks source link

patient-ssapp displays Key eligibility criteria as text, not as raw html #19

Closed joaoluis-pdm closed 3 years ago

joaoluis-pdm commented 3 years ago

Background: The "key eligibility criteria" should be +/- configurable along with the definition of trial's questions. (That is what is hinted by the clickeable prototype). Unfortunately that seems not possible, as the text to display is not exactly the same as the question text. So, someone needs to write a "key eligibility criteria" manually for each trial. As the clickeable prototype shows some graphical information for the "key eligibility criteria" image I modeled the database ClinicalTrial.eligibilityCriteria to be HTML source text. (All images and CSS must pre-exist in both patient-ssapp and backoffice-frontend).

Currently it is not working for patient-ssapp:

image

According to RMS, in WebCardinal, it is not possible to display model properties as raw HTML. As such, a web-component would have to be developed for that purpose.

joaoluis-pdm commented 3 years ago

Should be ready for v0.6.0

joaoluis-pdm commented 3 years ago

The wrapper data-if seems to destroy inner content

joaoluis-pdm commented 3 years ago

Worked around data-if by changing the wrapper display style